Skip to main content
Wan2.5

Wan 2.5 — Edit an image

Async Wan2.5 image edit

POST
/services/aigc/image2image/image-synthesis
curl --location 'https://dashscope-intl.aliyuncs.com/api/v1/services/aigc/image2image/image-synthesis' \
  -H 'X-DashScope-Async: enable' \
  -H "Authorization: Bearer $DASHSCOPE_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "wan2.5-i2i-preview",
  "input": {
    "prompt": "Change the floral dress to a vintage-style lace long dress with exquisite embroidery details on the collar and cuffs.",
    "images": [
      "https://img.alicdn.com/imgextra/i2/O1CN01vHOj4h28jOxUJPwY8_!!6000000007968-49-tps-1344-896.webp"
    ]
  },
  "parameters": {
    "prompt_extend": true,
    "n": 1
  }
}'
{
  "output": {
    "task_status": "PENDING",
    "task_id": "0385dc79-5ff8-4d82-bcb6-xxxxxx"
  },
  "request_id": "4909100c-7b5a-9f92-bfe5-xxxxxx"
}
Edit images using text prompts while preserving subject consistency. Supports multi-image fusion with up to three reference images.

Authorizations

string
header
required

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

Header Parameters

enum<string>
default"enable"
required

Enables asynchronous processing. Must be enable. HTTP requests only support asynchronous processing. Omitting this header returns a "current user api does not support synchronous calls" error.

enable

Body

application/json
enum<string>
required

Model name.

wan2.5-i2i-preview
wan2.5-i2i-preview
object
required

Input data for image editing.

object

Controls output resolution, prompt rewriting, watermarks, and other processing options.

Response

200-application/json
object
string

Unique identifier for the request. Use for tracing and troubleshooting issues.