Qwen Video · Introduction
Qwen video generation uses the qwen gateway; select the concrete video model with the request body model field. Based on the Wan 2.7 / Wan 2.5 preview, HappyHorse and Vidu families, covering text-to-video / image-to-video / reference-to-video / video editing. The submit endpoint returns a taskId; video jobs are asynchronous and require polling. • Wan 2.7: text-to-video, image-to-video with optional audio, reference-to-video, video editing; 720P=60 credits/sec, 1080P=100 credits/sec. wan2.7-i2v supports three tasks: first-frame, first+last frame (pass lastFrameUrl), and video continuation (pass a .mp4/.mov in imageUrls). • Wan 2.5 preview: text-to-video (wan2.5-t2v-preview), image-to-video (wan2.5-i2v-preview, audio on by default); 480P=30 / 720P=60 / 1080P=100 credits/sec; duration only 5 / 10. • HappyHorse 1.0 / 1.1: text / image / reference to video and video editing (happyhorse-1.0/1.1-t2v / -i2v / -r2v, video-edit 1.0 only). 720P=90 / 1080P=160 credits/sec; except happyhorse-1.1-r2v 1080P=120. duration 3-15; r2v accepts multiple reference images (<=9). • Vidu (vidu/viduq3-pro_img2video): image-to-video. Note: account not enabled / allowlist closed — currently unavailable.
How to call
- Submit:
POST /api/cqt/generator/qwen, returns a taskId. - Query:
GET /api/cqt/info/qwen?id=taskId, poll until status = succeeded.
Capability map
Common Errors
| Code | msg | Meaning | How to fix |
|---|---|---|---|
| 451 | prompt_unsafe / image_unsafe / video_unsafe | Prompt, input image/video, or generated result was flagged | Edit the prompt or replace input assets, then retry |
| 400 | invalid_request | Invalid parameter, unsupported model, or invalid value | Check model / imageUrls / duration / aspectRatio fields |
| 500 | failed / timeout | Task failed or timed out; data.errorMsg usually contains details | Adjust based on the error and retry; contact support if it persists |
Errors are returned as upstream bizCode, e.g. upstream bizCode=451, msg=prompt_unsafe.
Tip: after saving your API Key via Authorize, every capability page supports "Try it".