Skip to main content
First & last frames

Wan — Retrieve first-last-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
  }
}
Get task status and results for an image-to-video (first & last frames) generation task.

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.
  • Task status flow: PENDINGRUNNINGSUCCEEDED or FAILED.

Authorizations

string
header
required

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

Path Parameters

string
required

The ID of the task to query.

Response

200-application/json
string

Unique request identifier for tracing and troubleshooting.

ec016349-6b14-9ad6-8009-xxxxxx
object

Task output information.

object

Usage statistics. Only returned for successful tasks.