Skip to main content
Video character swap

Wan — Retrieve character swap result

Check face swap 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",
    "submit_time": "2026-03-25 01:36:21.497",
    "scheduled_time": "2026-03-25 01:36:30.247",
    "end_time": "2026-03-25 01:37:31.910",
    "results": {
      "video_url": "https://dashscope-result-bj.oss-cn-beijing.aliyuncs.com/xxxxx.mp4?Expires=xxxxxx"
    }
  },
  "usage": {
    "video_duration": 5.2,
    "video_ratio": "standard"
  }
}
Check the status and get the result of a video character swap task.

How to poll

  1. Create a task 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.

Status flow and URL expiration

  • Status flow: PENDINGRUNNINGSUCCEEDED or FAILED.
  • URL expiration: video_url expires after 24 hours. Download the video promptly.

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.

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

Task output information.

object

Usage statistics. Returned only for successful results.