Text-to-Video
This section contains endpoint-specific behavior, parameters, or usage notes for this API.
curl --location '{{BASE_URL}}/qwen/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": "wan2.5-t2v-preview",
"input": {
"prompt": "An epically cute scene. A tiny cartoon kitten general in detailed golden armor and an oversized helmet stands bravely on a cliff. Riding a small but heroic warhorse, he declares: \"Dark clouds gather above the Snow Mountain, and from the lone city we gaze toward Yumenguan. After a hundred battles in yellow sand, the golden armor is worn through; we will not return until Loulan is broken.\" Below the cliff, a vast and endless army of mice charges forward with improvised weapons. It is a dramatic large-scale battle scene inspired by ancient Chinese war epics. Dark clouds hang above the distant Snow Mountain, blending comedy, cuteness, and epic grandeur."
},
"parameters": {
"size": "832*480",
"prompt_extend": true,
"duration": 10,
"audio": true
}
}'{
"output": {
"task_status": "PENDING",
"task_id": "0385dc79-5ff8-4d82-bcb6-xxxxxx"
},
"request_id": "4909100c-7b5a-9f92-bfe5-xxxxxx"
}This section contains endpoint-specific behavior, parameters, or usage notes for this API.
curl -X GET {{BASE_URL}}/qwen/api/v1/tasks/86ecf553-d340-4e21-xxxxxxxxx
--header "Authorization: Bearer $DASHSCOPE_API_KEY"This section contains endpoint-specific behavior, parameters, or usage notes for this API.
| Model Name | Notes | Unit Price |
|---|---|---|
| wan2.5-12v-preview Provider note | Provider note | 480P:0.3Provider note |
| wan2.2-12v-plus Provider note | Provider note | 480P:0.14Provider note |
| wanx2.1-12v-turbo | Provider note | 0.24Provider note |
| wanx2.1-12v-plus | Provider note | 0.70Provider note |