Skip to main content
Wan 2.7

Wan 2.7 -- Retrieve reference-to-video result

Check Wan 2.7 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": "52cade0d-905e-9b7d-a01e-xxxxxx",
  "output": {
    "task_id": "18814247-f944-4102-aa4a-xxxxxx",
    "task_status": "SUCCEEDED",
    "submit_time": "2026-04-02 22:53:19.537",
    "scheduled_time": "2026-04-02 22:53:30.427",
    "end_time": "2026-04-02 23:00:39.287",
    "orig_prompt": "Video 2 holds Image 3 and plays a soothing American country ballad in a coffee shop, while Video 1 smiles, watches Video 2, and slowly walks towards him",
    "video_url": "https://dashscope-a717.oss-accelerate.aliyuncs.com/xxx.mp4?xxxx"
  },
  "usage": {
    "duration": 15,
    "input_video_duration": 5,
    "output_video_duration": 10,
    "video_count": 1,
    "SR": 720,
    "ratio": "16:9"
  }
}
Check task status and retrieve the generated video URL. The response includes timestamps and the original prompt for tracking.

Polling strategy

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

Important notes

  • URL expiration: Video URLs expire after 24 hours. Download promptly.
  • Task status flow: PENDING -> RUNNING -> SUCCEEDED or FAILED.
  • Enhanced metadata: The response includes submit_time, scheduled_time, end_time, and orig_prompt (the original prompt before any prompt extension).
  • Usage details: Billing is based on duration (= input_video_duration + output_video_duration). The response also returns SR (resolution) and ratio.

Authorizations

string
header
required

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

Path Parameters

string
required

Task identifier returned by the video creation endpoint.

Response

200-application/json
string

Unique request identifier.

object
object

Usage statistics (only present when task succeeds).