DashScope (Alibaba Cloud Model Studio) video models use the Model Studio native protocol, transparently proxied by the platform: the request body {model, input, parameters}, task responses, and status enumerations are fully consistent with the official Model Studio API. Available models (such as wan2.6-t2v and happyhorse-1.0) are determined by the response from List Models (where protocols includes dashscope).
Authorizations
Bearer Token authentication; no Alibaba Cloud AK is required. Get an API Key: visit the API Key Management Page
Authorization: Bearer YOUR_API_KEYSubmit a Generation Task
Two submission endpoints (select according to the model, consistent with the official Model Studio API):
POST /api/v1/services/aigc/video-generation/video-synthesis # Text-to-videoPOST /api/v1/services/aigc/image2video/video-synthesis # Image-to-videoRequest Headers
| Header | Required | Description |
|---|---|---|
Authorization |
Yes | Bearer YOUR_API_KEY |
Content-Type |
Yes | application/json |
X-DashScope-Async |
Yes | Must be set to enable. Official Model Studio behavior: HTTP supports asynchronous calls only. If this header is missing, the error current user api does not support synchronous calls will be returned. |
The request body uses the native Model Studio format:
model(required)input:prompt,img_url(the first frame for image-to-video), etc., depending on model supportparameters:size/duration/seed, etc., depending on model support; refer to the official Model Studio documentation
Query a Task
GET /api/v1/tasks/{task_id}output.task_status enumeration (native Model Studio values): PENDING / RUNNING / SUCCEEDED / FAILED / CANCELED. After successful completion, the result is included in output (for example, video_url). The URL validity period is determined by Model Studio; save the result elsewhere promptly. The query and cancellation endpoints require only the Authorization header.
Cancel Task
POST /api/v1/tasks/{task_id}/cancelOnly tasks in the PENDING state can be canceled (Bailian semantics).
Notes
- Task queries and cancellations must use the same API Key used when submitting the task. Task IDs can be queried for 7 days; after that, the request returns 404
task_not_found. - Poll every 5–10 seconds until the task reaches a terminal state (
SUCCEEDED/FAILED/CANCELED). - Service/action combinations not on the allowlist return 404
unsupported_endpoint. - Refer to the official Alibaba Bailian documentation for each model's
input/parametersfields. The platform does not rewrite these fields.
