Request

POST /api/v1/video/generate

Headers: X-API-Key: h3k_...

Body:

{
  "prompt": "a golden retriever running in a wheat field",
  "duration": 5,
  "resolution": "480p",
  "model": "t2v"
}
  • model: t2v / r2v / i2v / enhance.
  • resolution: 480p or 768p.
  • Upload reference media via /api/v1/upload/presign first, then pass ref_media_ids.

Response

{
  "task_id": "uuid",
  "status": "queued"
}

Example

curl -X POST https://api.h3hub.cn/api/v1/video/generate \
  -H "X-API-Key: h3k_xxx" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"a golden retriever running in a wheat field","duration":5,"resolution":"480p"}'