Skip to main content
Image-to-animation

Wan — Retrieve animation result

Check animation 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": "a67f8716-18ef-447c-a286-xxxxxx",
  "output": {
    "task_id": "0385dc79-5ff8-4d82-bcb6-xxxxxx",
    "task_status": "SUCCEEDED",
    "submit_time": "2025-09-18 15:32:00.105",
    "scheduled_time": "2025-09-18 15:32:15.066",
    "end_time": "2025-09-18 15:34:41.898",
    "results": {
      "video_url": "https://dashscope-result-sh.oss-accelerate.aliyuncs.com/xxxxx.mp4?Expires=xxxxxx"
    }
  },
  "usage": {
    "video_duration": 5.2,
    "video_ratio": "standard"
  }
}
Check the task status and retrieve the animation.

Polling strategy

  1. After creating a task, you'll receive a task_id.
  2. Poll every 15 seconds until task_status is SUCCEEDED or FAILED.
  3. On success, retrieve the animation from output.results.video_url.

Important notes

  • URL expiration: Animation 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.

a67f8716-18ef-447c-a286-xxxxxx
object
object

Output statistics. Returned only for successful tasks.