Tencent HunyuanVideo · Video
Text to VideoNEW
📌 What is this:Generate a video from a text description.
💡 When to use:Use to turn a text idea straight into a clip; sending no image / video material means text-to-video.
Endpoints
| Usage | Method | Path |
|---|---|---|
| Submit task | POST | /api/cqt/generator/hunyuan |
| Query Result | GET | /api/cqt/info/hunyuan?id={taskId} |
⏱ Recommended polling interval:Generation takes ~1-3 min; poll every 10-15s until status = succeeded / failed.
Sub-models
Sub-models that support this mode. The tiers column is credits/sec (generateAudio → = audio tier, videoUrls → = with-reference-video tier). Resolutions / durations not listed are rejected at submit (no charge).
| model | Usage | Materials | Duration (sec) | Tier price (credits/sec) |
|---|---|---|---|---|
| hunyuan-video-1.5 | HunyuanVideo 1.5 | None (text only) | 5 | 720P=30 / 1080P=50 / 2K=75 / 4K=112 |
Request Parameters
| Param | Type | Required | Description |
|---|---|---|---|
| model | string | Required | Sub-model: hunyuan-video-1.5 (see the sub-model table below) |
| prompt | string | Required | Video description (required for text-to-video) |
| negativePrompt | string | — | Negative prompt (optional) |
| duration | integer | — | Duration (sec), range depends on the sub-model (see table), default 5 |
| resolution | string | — | 540P / 720P / 1080P / 2K / 4K (available tiers depend on the sub-model), default 720P (or the lowest tier if 720P is unavailable); 2K / 4K are upscaled |
| aspectRatio | string | — | Aspect ratio, e.g. 16:9 / 9:16 / 1:1 |
| enhancePrompt | boolean | — | Whether to auto-enhance the prompt (optional) |
| seed | integer | — | Random seed (optional) |
| returnFirstFrame / returnLastFrame / returnFrameAtSecond | boolean / boolean / number | — | Also return the first / last / given-second frame image of the result video (optional), 1 credit per frame |
Request Example
curl -X POST https://api.cqtai.com/api/cqt/generator/hunyuan \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Content-Type: application/json' \
-d '{
"model": "hunyuan-video-1.5",
"prompt": "a young woman in a red raincoat walking through a rainy neon-lit city street at night, cinematic tracking shot",
"duration": 5,
"resolution": "720P",
"aspectRatio": "16:9"
}'
# -> { "code":200, "data":"<taskId>" }Response Example
{
"code": 200,
"msg": "success",
"data": {
"id": "4d925de8d04a4395b0633a1983938c79",
"resultUrl": "https://cdn.novapi.ai/hunyuan/1791950129347_3f05f37037284223b601cf512bf9f609.mp4",
"status": "succeeded",
"errorMsg": null,
"createTime": "2026-10-14 11:53:18",
"completeTime": "2026-10-14 11:55:30"
}
}Response Fields
| Field | Type | Description |
|---|---|---|
| code | number | Status code; 200 means success |
| msg | string | Status message; "success" on success |
| data.id | string | Task ID (taskId); use it to poll GET /api/cqt/info |
| data.status | string | Task status: succeeded / failed / otherwise still processing |
| data.resultUrl | string | URL of the generated video; returned when status = succeeded, null otherwise |
| data.errorMsg | string | null | Failure reason; null on success |
| data.createTime | string | Task creation time |
| data.completeTime | string | null | Task completion time; null until finished |