Skip to main content
Wan2.5

Wan 2.5 — Retrieve editing result

Check Wan2.5 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": "d1f2a1be-9c58-48af-b43f-xxxxxx",
  "output": {
    "task_id": "7f4836cd-1c47-41b3-b3a4-xxxxxx",
    "task_status": "SUCCEEDED",
    "submit_time": "2025-09-23 22:14:10.800",
    "scheduled_time": "2025-09-23 22:14:10.825",
    "end_time": "2025-09-23 22:15:23.456",
    "results": [
      {
        "orig_prompt": "Change the floral dress to a vintage-style lace long dress with exquisite embroidery details on the collar and cuffs.",
        "actual_prompt": "Replace the pink pleated dress with a vintage-style lace long dress with exquisite embroidery details on the collar and cuffs. Keep the person's hairstyle, makeup, and posture unchanged. The overall style should be consistent with the soft tones and classic atmosphere of the original image.",
        "url": "https://dashscope-result-sh.oss-cn-shanghai.aliyuncs.com/xxx.png?Expires=xxx"
      }
    ],
    "task_metrics": {
      "TOTAL": 1,
      "FAILED": 0,
      "SUCCEEDED": 1
    }
  },
  "usage": {
    "image_count": 1
  }
}
Query task status and results.

Polling strategy

  1. Submit a task via Create task to receive a task_id.
  2. Poll every 10 seconds until task_status is SUCCEEDED or FAILED.
  3. On success, results contains image download URLs.

Important notes

  • URL expiration: Image URLs expire in 24 hours. Download promptly.
  • Task status flow: PENDING -> RUNNING -> SUCCEEDED or FAILED.
  • Task ID validity: Task IDs are valid for 24 hours. After the task ID expires, the status and results cannot be queried.
  • Avoid duplicate tasks: Use polling to retrieve results. Do not resubmit requests.
  • Partial failures: When n > 1, task status is SUCCEEDED if at least one image succeeds. Failed images include error details in results. Only successful images count toward usage.

Authorizations

string
header
required

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

Path Parameters

string
required

Task identifier returned by the image editing creation endpoint.

Response

200-application/json
string

Unique identifier for the request.

object
object

Output statistics. Only successful results are counted.