Qwen Video · Video Generation
Text to VideoNEW
📌 What is this:Generate a video directly from a text prompt.
💡 When to use:Use when you do not have a reference image and want to create a clip from an idea.
Endpoints
| Usage | Method | Path |
|---|---|---|
| Submit task | POST | /api/cqt/generator/qwen |
| Query Result | GET | /api/cqt/info/qwen?id={taskId} |
⏱ Recommended polling interval:Video jobs usually take 1-5 minutes. Poll every 15-20s until status = succeeded / failed.
Request Parameters
| Param | Type | Required | Description |
|---|---|---|---|
| model | string | Required | wan2.7-t2v / wan2.5-t2v-preview / happyhorse-1.0-t2v / happyhorse-1.1-t2v |
| prompt | string | Required | Video prompt |
| duration | integer | — | Duration in seconds, default 5, affects billing; wan2.5-preview supports only 5 / 10 |
| aspectRatio | string | — | Ratio / resolution mapping: 16:9 and 9:16 usually map to 1080P; 1:1 maps to 720P |
| negativePrompt | string | — | Negative prompt |
| promptExtend | boolean | — | Whether to extend the prompt, default true |
| audioUrl | string | — | Optional audio URL when supported |
| webhookUrl | string | — | Completion webhook URL |
Request Example
curl -X POST https://api.cqtai.com/api/cqt/generator/qwen \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Content-Type: application/json' \
-d '{
"model": "wan2.7-t2v",
"prompt": "一只柯基在阳光草地上奔跑,慢动作,电影感",
"aspectRatio": "16:9",
"duration": 5
}'
# -> { "code":200, "data":"<taskId>" }Response Example
{
"code": 200,
"data": {
"id": "<taskId>",
"status": "succeeded",
"resultUrl": "https://.../result.mp4",
"createTime": "2026-06-15 10:00:00",
"completeTime": "2026-06-15 10:02:00"
}
}Billing & Credits
wan2.7-t2v: 720P=60 / 1080P=100 credits/sec; wan2.5-t2v-preview: 480P=30 / 720P=60 / 1080P=100 credits/sec (x your user rate). Auto-refunded on failure.