The Wan image editing model series supports multi-image input and multi-image output, enabling capabilities such as image editing, multi-image fusion, subject feature preservation, and object detection and segmentation through text instructions.
QuickStart
This example demonstrates how to use the wan2.7-image-pro model to generate an edited image based on two input images and a prompt.
Prompt: spray the graffiti from image 2 onto the car in image 1
Input image 1 | Input image 2 | Output image (wan2.7-image-pro) |
|---|---|---|
![]() | ![]() | ![]() |
- Synchronous call
- Asynchronous call
- Python
- Java
- curl
Request example
Response example
The URL is valid for 24 hours. Download the image in time.
Click to view the wan2.5-i2i-preview calling examples
Click to view the wan2.5-i2i-preview calling examples
- Synchronous call
- Asynchronous call
- Python
- Java
Request example
Response example
The url is valid for 24 hours. Download the image in a timely manner.
Model Selection
-
wan2.7-image-pro and wan2.7-image (recommended): suitable for scenarios that require high editing precision or need to generate multiple images with coherent content.
- Precise local editing: select a specified region in the image, then move, replace, or add new elements to the objects in that region. Applicable to e-commerce photo retouching and design draft adjustments
- Multi-frame continuous image generation: outputs multiple images with a consistent style at once, applicable to comic storyboarding, product series images, and sequential story images
- wan2.6-image: suitable for stylized editing scenarios with mixed text and images or multiple reference images. It can generate corresponding text content when generating images, and supports up to 4 reference images as input.
- wan2.5-i2i-preview: suitable for simple image editing and multi-image fusion.
Showcases
Image-to-image set generation
Input image | Output image |
|---|---|
![]() | ![]() |
![]() | ![]() |
Click to view the prompt
Click to view the prompt
Interactive editing
Input image | Output image |
|---|---|
![]() | ![]() Place the pattern framed in image 1 at the framed area in image 2 |
Multi-image fusion
Input image | Output image |
|---|---|
![]() | ![]() Take a portrait photo of the man in image 1 and the dog in image 2, with the man holding the dog in his arms and both of them looking happy, under soft studio lighting against a blue textured background |
![]() | ![]() Recolor the dress in image 1 based on the colors of the bird in image 2, with an artistic feel, keeping the dress style and the model unchanged |
Subject feature preservation
Input image | Output image |
|---|---|
![]() | ![]() Please generate a set of four instant photos arranged in a 2x2 grid with a "Seasonal Changes" theme. Each photo is taken at the same location, under a tree in a park, but depicts one of the four seasons: spring, summer, autumn, or winter. The person's clothing should also match the season: a light jacket in spring, short sleeves in summer, a trench coat in autumn, and a scarf and heavy coat in winter. Place this set of photos on a dining table. |
Detection and segmentation
Input image | Output image |
|---|---|
![]() | ![]() Detect the laptop and alarm clock in the image, draw boxes around them and label them "laptop" and "clock" |
![]() | ![]() Segment the glass in the image |
Element extraction
Input image | Output image |
|---|---|
![]() | ![]() Extract outfit items from the uploaded photo, arrange them in a flat-lay layout on a pure white background, preserving realistic details and material textures, in a fashion e-commerce style, suitable for clothing display. |
Text editing
Input image | Output image |
|---|---|
![]() | ![]() Remove watermarks from the entire image |
![]() | ![]() Write "Time for Holiday?" by hand in the sand on the beach |
![]() | ![]() Change 18 to 29 and JUNE to SEPTEMBER |
Camera and perspective editing
Input image | Output image |
|---|---|
![]() | ![]() Keep the person's features unchanged and generate the front view, side view, and back view |
![]() | ![]() Retake this photo with a fisheye lens |
Input instructions
Input image specifications
Type | wan2.7-image-pro、wan2.7-image | wan2.6-image | wan2.5-i2i-preview |
|---|---|---|---|
Number of input images | 0 to 9 images (0 images corresponds to the text-to-image mode) | Image editing: 1 to 4 images / Image-text composition: 0 to 1 images | 1 to 3 images |
Image Format | JPEG, JPG, PNG (transparency channel not supported), BMP, WEBP | JPEG, JPG, PNG (transparency channel not supported), BMP, WEBP | JPEG, JPG, PNG (transparency channel not supported), BMP, WEBP |
Image width and height range | [240, 8000] pixels | [240, 8000] pixels | [384, 5000] pixels |
File Size | ≤ 20MB | ≤ 10MB | ≤ 10MB |
Aspect Ratio | [1:8, 8:1] | Unlimited | [1:4, 4:1] |
Image input order
When multiple images are input, the image order is defined by their order in the array. Therefore, the image numbers referenced in the prompt must correspond one-to-one with the order in the image array. For example: the first image in the array is "Image 1", the second is "Image 2", or you can use marker forms such as "[Image 1]" and "[Image 2]".
Input image | Output image | ||
|---|---|---|---|
![]() Image 1 | ![]() Image 2 | ![]() Prompt: Move Image 1 onto Image 2 | ![]() Prompt: Move Image 2 onto Image 1 |
Image input methods
Images can be passed in using the following methods:
Method 1: Public URL
Method 1: Public URL
- Provide a publicly accessible image URL that supports the HTTP or HTTPS protocol.
- Example value:
https://xxxx/img.png. - Applicable scenario: The image is already hosted on object storage (such as OSS) or a public image hosting service.
Method 2: Base64 encoding
Method 2: Base64 encoding
data:{MIME_type};base64,{base64_data}.-
Example value:
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABDg......(only a fragment is shown due to length limits). When making the call, you must pass in the complete string. - {base64_data}: The Base64-encoded string of the image file.
-
{MIME_type}: The media type of the image, which must match the file format.
Image Format
MIME Type
JPEG
image/jpeg
JPG
image/jpeg
PNG
image/png
BMP
image/bmp
WEBP
image/webp
- Applicable scenarios: local images, private images, or scenarios that require encrypted transmission.
Sample code: Image Base64 encoding
Sample code: Image Base64 encoding
Method 3: Local file path (SDK only)
Method 3: Local file path (SDK only)
-
Python SDK: Supports both absolute and relative paths of files. The file path rules are as follows:
System
Input file path
Example (absolute path)
Example (relative path)
Linux or macOS
file://{absolute or relative file path}
file:///home/images/test.png
file://./images/test.png
Windows
file://D:/images/test.png
file://./images/test.png
-
Java SDK: Only supports absolute paths of files. The file path rules are as follows:
System
Input file path
Example (absolute path)
Linux or macOS
file://{absolute file path}
file:///home/images/test.png
Windows
file:///{absolute file path}
file:///D:/images/test.png
- Applicable scenarios: Suitable for quick testing in a local development environment.
Key capabilities
1. Instruction following (prompt)
Parameters: messages.content.text or input.prompt (required), and negative_prompt (optional).
- text \ prompt (positive prompt): Describes the content, subject, scene, style, lighting, and composition you want to see in the image.
- negative_prompt (negative prompt): Describes the content you do not want to appear in the image, such as "blur" or "extra fingers". It is only used to help optimize generation quality.
Parameter | wan2.7-image-pro、wan2.7-image | wan2.6-image | wan2.5-i2i-preview |
|---|---|---|---|
text | Required, up to 5000 characters | Required, up to 2000 characters | Not supported |
prompt | Not supported | Not supported | Required, up to 2000 characters |
negative_prompt | Not supported | Supported, up to 500 characters | Supported, up to 500 characters |
2. Enable intelligent prompt rewriting
Parameter: parameters.prompt_extend (bool, defaults to true).
This feature automatically expands and optimizes short prompts to improve output image quality. Enabling this feature adds extra processing time.
Best practices:
- Recommended to enable: When the input prompt is brief or broad, this feature can improve image quality.
- Recommended to disable: If you need to control image details, have already provided a detailed description, or are sensitive to response latency. Please explicitly set the
prompt_extendparameter tofalse.
Parameter | wan2.7-image-pro、wan2.7-image | wan2.6-image | wan2.5-i2i-preview |
|---|---|---|---|
prompt_extend | Not supported | Supported (image editing mode only) | Supported |
3. Set the output image resolution
Parameter: parameters.size (string), in the format "width*height".
| Parameter | wan2.7-image-pro、wan2.7-image | wan2.6-image | wan2.5-i2i-preview |
|---|---|---|---|
| size | Method 1: Specify the resolution of the output image (recommended)In edit mode (with at least one image provided), the available output resolution tiers are 1K and 2K (default).
Only wan2.7-image-pro in the text-to-image scenario supports 4K resolution | Method 1: Reference the aspect ratio of the input image (recommended)In edit mode (enable_interleave=false), the available output resolution tiers are 1K (default) and 2K.
The actual pixel values of the output image are multiples of 16 close to the specified values. | Only specifying the width and height pixel values of the generated image is supported
|
4. Interactive precise editing
The parameters.bbox_list parameter boxes the objects or areas in the image that need editing, achieving more accurate editing results. Only wan2.7-image-pro and wan2.7-image support this.
- Correspondence: The list length must match the number of input images. If an image does not need editing, pass an empty list
[]in the corresponding position. - Coordinate format:
[x1, y1, x2, y2](top-left x, top-left y, bottom-right x, bottom-right y), using absolute pixel coordinates of the original image, with the top-left corner at (0, 0), the x-axis pointing right, and the y-axis pointing down. If you use a vision model (such as qwen3.6-plus) to locate the target area, it returns normalized coordinates [0, 999]. Convert them to absolute pixel coordinates using the auxiliary code below before passing them in. - Quantity limit: A single image supports at most 2 bounding boxes.
Click to view the invocation example
Click to view the invocation example
How to determine the coordinates of the editing area
How to determine the coordinates of the editing area
Billing and rate limits
- For the model free quota and billing unit price, see Model list and prices.
- For model rate limits, see Wan.
-
Billing details:
- Billing is based on the number of images successfully generated. You are billed only after the API returns
task_statusasSUCCEEDEDand the images are successfully generated. - Failed model calls or processing errors incur no charges and do not consume the free quota.
- Billing is based on the number of images successfully generated. You are billed only after the API returns
API reference
Each model uses different endpoints and request structures:
Model | Endpoint (with the Singapore region as an example) |
|---|---|
| Synchronous endpoint: Asynchronous endpoint: When calling, replace |
| Asynchronous endpoint: When calling, replace |
wan2.7/wan2.6:messagesformat. In themessages[].contentarray, images are passed viaimage, and prompts viatext.wan2.5: Images are passed via theinput.imagesarray, and prompts viainput.prompt


































