Skip to main content
Wan 2.1

Wan — Retrieve video editing result

Check video edit 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 the task status and retrieve the edited video.

Polling strategy

  1. Call Edit a video to get a task_id.
  2. Poll this endpoint every 15 seconds until task_status is SUCCEEDED or FAILED.
  3. On success, download the video from the video_url field.

Notes

  • URL expiration: The video_url expires after 24 hours—download it promptly.
  • Task status flow: PENDINGRUNNINGSUCCEEDED, FAILED, or CANCELLED.

Authorizations

string
header
required

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

Path Parameters

string
required

Task identifier returned by the video editing creation endpoint.

Response

200-application/json
string

Unique request identifier.

object
object

Usage statistics (only present when task succeeds).