curl --location 'https://dashscope-intl.aliyuncs.com/api/v1/services/aigc/video-generation/video-synthesis' \
-H 'X-DashScope-Async: enable' \
-H "Authorization: Bearer $DASHSCOPE_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "wan3.0-video",
"input": {
"prompt": "A premium smart glasses product ad with a minimalist, futuristic, and fashionably sophisticated style. Restrained lighting with black, silver-gray, and ice-blue as the primary palette, accented by soft white light and parametric UI graphics. Opening on a pure black background, smart glasses slowly emerge from darkness with refined highlights along the temple edges, the frame outlined by cool rim lighting. The camera captures ultra-close-up shots of the lens, nose pads, hinges, temples, and material details, showcasing the delicate texture of metal and high-performance composites. Subsequently the product rotates slowly in mid-air while minimalist motion graphics display core specs. Then the camera quickly converges, all components precisely reassembling into the complete product, cutting to a young model wearing them—sharp features, confident demeanor, in clean urban fashion, naturally turning, raising a hand, walking, and smiling in a minimal space with city light and shadow. The closing shot shows the product suspended on a solid background as the camera slowly pushes into the brand logo and core slogan.",
"media": [
{
"type": "file",
"url": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20260806/ebapmr/glass.pptx"
}
]
},
"parameters": {
"resolution": "480P",
"ratio": "adaptive",
"duration": 10
}
}'{
"request_id": "4909100c-7b5a-9f92-bfe5-xxxxxx",
"output": {
"task_id": "0385dc79-5ff8-4d82-bcb6-xxxxxx",
"task_status": "PENDING"
}
}Authorizations
QwenCloud API Key. See Get an API Key.
Header Parameters
Must be set to enable for asynchronous task submission. Missing this header causes: "current user api does not support synchronous calls".
Body
application/jsonModel name. Fixed value: wan3.0-video.
Input information. Either prompt or media is required.
Show child attributes
Show child attributes
Text prompt describing the desired video content. Either this or media is required. Supports Chinese and English, up to 20,000 characters (auto-truncated beyond). In all-in-one reference mode, use "Image1", "Video1" etc. in the prompt to refer to media items by their array order.
Media array supporting images, videos, audio, files, and web links as input. Either this or prompt is required. In reference mode, array order defines the numbering in prompts (images and videos are counted separately). reference_xx/file/link types and first_frame/last_frame types are mutually exclusive.
Show child attributes
Show child attributes
Media type. reference_xx/file/link types and first_frame/last_frame types are mutually exclusive within the same request.
Media URL or Base64-encoded data. Supports public URLs (HTTP/HTTPS) and Base64 encoding (data:{MIME_type};base64,{data}).
Video generation parameters.
Show child attributes
Show child attributes
Output video resolution tier.
Output video aspect ratio. adaptive automatically selects the best ratio based on input media and intent.
Output video duration in seconds. Without video input: integer in [2, 30]. With video input: input + output duration must not exceed 30s. Set to -1 for smart duration mode (model selects optimal length).
Whether the output video includes audio. true (default): includes sound. false: no audio track. Pricing is the same regardless of this setting.
Random seed for reproducibility.
Whether to add a watermark.
Response
Unique request identifier for tracing and troubleshooting.