Skip to main content
First frame

Wan — Retrieve first-frame result

Check video task status

GET
/tasks/{task_id}
cURL - Query task result
# Replace {task_id} with the actual task ID from the submit response
curl -X GET 'https://dashscope-intl.aliyuncs.com/api/v1/tasks/{task_id}' \
  -H "Authorization: Bearer $DASHSCOPE_API_KEY"
{
  "request_id": "c1209113-8437-424f-a386-xxxxxx",
  "output": {
    "task_id": "966cebcd-dedc-4962-af88-xxxxxx",
    "task_status": "SUCCEEDED",
    "video_url": "https://dashscope-result-sh.oss-accelerate.aliyuncs.com/xxx.mp4?Expires=xxx",
    "task_metrics": {
      "TOTAL": 1,
      "SUCCEEDED": 1,
      "FAILED": 0
    }
  },
  "usage": {
    "video_count": 1,
    "video_duration": 5
  }
}
Check task status and retrieve the generated video.

Polling strategy

  1. Create a task to receive a task_id.
  2. Poll every 15 seconds until task_status is SUCCEEDED or FAILED.
  3. On success, retrieve the video from video_url.

Important notes

  • URL expiration: Video URLs expire after 24 hours. Download promptly.
  • Status flow: PENDINGRUNNINGSUCCEEDED or FAILED.

Authorizations

string
header
required

DashScope API Key. Create one in the Qwen Cloud console.

Path Parameters

string
required

The task ID returned by the POST endpoint.

Response

200-application/json
string

Unique request identifier.

2ca1c497-f9e0-449d-9a3f-xxxxxx
object
object

Output statistics. Returned only for successful tasks. Fields vary by model version.