Generate images and videos with Vidu models through the DashScope HTTP API on QwenCloud.
Quick start
Supported regions: Singapore only. Use an API key created in that region and the https://ap-southeast-1.maas.qwencloudapi.com endpoint. See Regions and endpoints.
Vidu models cover image generation and video generation. All models use the DashScope HTTP API with asynchronous tasks: submit a task, then poll /tasks/{task_id} for the result.
| Model | Type | Use this when |
|---|---|---|
vidu/vidu-image_reference2image | Image generation | Text-to-image, image editing, and reference image-to-image. Precise Chinese and English text rendering, pixel-level UI and chart details. |
vidu/viduq3-ad_reference2video | Reference-to-video | Advertising videos with marketing-grade transitions, camera movement, and audio. |
vidu/viduq3-drama_reference2video | Reference-to-video | Premium dramas and AI comics with strong character consistency and emotional expression. |
vidu/viduq3-mix_reference2video | Reference-to-video | General reference-to-video with balanced visual quality and motion. |
vidu/viduq2-pro-fast_img2video | Image-to-video | Animating a first-frame image with a text prompt, at low cost. |
Image generation
vidu/vidu-image_reference2image accepts a text prompt and up to 14 reference images. The server uses the first non-empty text as the prompt and all image entries as references.
- Text-to-image
- Reference image-to-image
| Parameter | Type | Required | Description |
|---|---|---|---|
size | string | No | Output size in width*height format. Default: 1024*1024. Tiers: 1K, 2K, 4K. |
n | integer | No | Number of images. Only 1 is supported. |
seed | integer | No | Random seed, 0 to 2147483647. 0 means random. |
watermark | boolean | No | Whether to add a watermark. Default: false. |
| Tier | Sizes |
|---|---|
| 1K | 1024*1024, 720*1440, 1440*720, 1024*768, 768*1024, 1920*1088, 1088*1920, 1536*1024, 1024*1536, 1920*816, 816*1920 |
| 2K | 2048*2048, 1088*2160, 2160*1088, 2736*2048, 2048*2736, 2560*1440, 1440*2560, 3072*2048, 2048*3072, 2560*1104, 1104*2560 |
| 4K | 2880*2880, 1440*2880, 2880*1440, 3312*2480, 2480*3312, 3840*2160, 2160*3840, 3520*2352, 2352*3520, 3840*1648, 1648*3840 |
Video generation
Video tasks return a task_id. Poll the task until task_status is SUCCEEDED, then download the video from output.video_url. Generation typically takes 1 to 5 minutes.
Image-to-video
vidu/viduq2-pro-fast_img2video takes exactly one image and an optional prompt.
Reference-to-video
Reference-to-video models take 1 to 7 reference images and keep the subject consistent across scenes.
| Parameter | Applies to | Description |
|---|---|---|
resolution | All | 720P or 1080P. It directly affects billing. Defaults: viduq3-ad 720P, viduq3-drama 1080P, viduq3-mix 720P. |
size | Reference-to-video | Output size in width*height format. Defaults to 1280*720 for 720P and 1920*1080 for 1080P. viduq3-drama supports only 16:9 and 9:16. |
duration | All | Video length in seconds. viduq3-ad 3 to 15, viduq3-drama 2 to 15, viduq3-mix 1 to 16, viduq2-pro-fast 1 to 10. Default: 5. |
audio | Reference-to-video | Whether to generate audio. Supported by viduq3-ad and viduq3-mix. viduq3-drama always outputs audio. |
watermark | All | Whether to add the watermark "Generated by AI" in the lower-right corner. Default: false. |
seed | All | Random seed, 0 to 2147483647. A fixed seed improves reproducibility. |
Poll for the result
Models and pricing
| Model | Billing | Price (USD) |
|---|---|---|
vidu/vidu-image_reference2image | Per image | 1K 0.16, 4K $0.24 |
vidu/viduq3-ad_reference2video | Per second | 720P 0.15 |
vidu/viduq3-drama_reference2video | Per second | 720P 0.14 |
vidu/viduq3-mix_reference2video | Per second | 720P 0.145 |
vidu/viduq2-pro-fast_img2video | Per second | 720P 0.032 |
Notes
- Same region: The model, endpoint, and API key must belong to the same region.
- Asynchronous only: Every Vidu request requires the
X-DashScope-Async: enableheader. - Task ID validity: A
task_idis valid for 24 hours. Do not submit the same task again while polling. - Image requirements: Images must be publicly accessible. Supported formats are JPG, JPEG, PNG, and WEBP, with an aspect ratio between 1:4 and 4:1.