The Qwen-Image-Edit model supports multi-image input and multi-image output. It can precisely modify text in images, add, remove, or move objects, change subject poses, transfer image styles, and enhance image details.
QuickStart
Before making calls, you need to obtain and configure an API Key, and then configure the API Key as an environment variable.
To make calls through the SDK, please install the DashScope SDK. Currently, the SDK supports Python and Java.
Please replace DASHSCOPE_API_HOST in the sample code with the obtained API Host.
- Python
- Java
- curl
Download the image to your local machine via the URL
Download the image to your local machine via the URL
Model selection recommendations
qwen-image-3.0-pro(Ultimate performance): Qwen-Image 3.0 Ultimate Edition, with comprehensively upgraded image generation and editing capabilities and stronger text rendering, realistic texture, and semantic adherence.qwen-image-2.1-pro(Best balance of speed, quality, and cost): Supports passing in up to 10 reference images, automatically decides whether to output a normal image or an image with a transparent channel based on the prompt, and does not supportnegative_prompt.qwen-image-2.1-turbo(Ultimate cost-effectiveness): Delivers the best overall cost-effectiveness in the Qwen-Image series, supports passing in up to 10 reference images, automatically decides whether to output a normal image or an image with a transparent channel based on the prompt, and does not supportnegative_prompt.qwen-image-3.0: Qwen-Image 3.0 Standard Edition, balancing quality and speed.
Input description
Input images (messages)
messages is an array and must contain only one object. The object must contain the role and content properties. Specifically, role must be set to user, and content must contain both image and text (an editing instruction). The qwen-image-3.0 series supports 1 to 3 images, and the qwen-image-2.1 series supports 1 to 10 images.
Input images must meet the following requirements:
-
Image formats: JPG, JPEG, PNG, BMP, TIFF, WEBP, and GIF.
Output images are in PNG format. For animated GIF images, only the first frame is processed.
- Image resolution: For best results, both the width and height of images are recommended to be between 384 and 3,072 pixels. A resolution that is too low may result in blurry generated output, while one that is too high increases processing time.
- File size: A single image file must not exceed 10 MB.
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 use markers 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
Public URL
- Provide a publicly accessible image address that supports the HTTP or HTTPS protocol.
- Example value:
https://xxxx/img.png.
data:{mime_type};base64,{base64_data}.
{mime_type}: the media type of the image, which must match the file format.{base64_data}: the Base64-encoded string of the file.- Example value:
data:image/jpeg;base64,GDU7MtCZz...(truncated for demonstration only)
More Parameters
You can adjust the generation results with the following optional parameters:
- n: the number of output images (default 1, up to 6). n directly affects the fee.
- negative_prompt: describes content you do not want to appear (such as "blurry" or "extra fingers") to help optimize generation quality. The qwen-image-2.1 series does not support this parameter; describe it in the positive prompt instead.
- size: the output resolution, in the format
width*height. The qwen-image-3.0 series and qwen-image-2.1 series support 512*512 to 2048*2048 (aspect ratio from 1:8 to 8:1); if not specified, the model automatically recommends one. - prompt_extend: intelligent prompt rewriting (enabled by default). It is recommended for concise prompts; disable it for detailed prompts or latency-sensitive scenarios.
- seed: the random seed; using the same value keeps generation results relatively stable.
- watermark: whether to add a watermark (disabled by default).
Effect Overview
Multi-image Fusion
Input image 1 | Input image 2 | Input image 3 | Output image |
|---|---|---|---|
![]() | ![]() | ![]() | ![]() The girl in image 1 wears the necklace from image 2 and carries the bag from image 3 on her left shoulder |
Subject Consistency Preservation
Input image | Output image 1 | Output image 2 | Output image 3 |
|---|---|---|---|
![]() | ![]() Change to an ID photo with a blue background; the person wears a white shirt, a black suit, and a striped tie | ![]() The person wears a white shirt, a gray suit, and a striped tie, touching the tie with one hand, against a light-colored background | ![]() The person wears a black hoodie featuring the words "Qwen Image" in a bold brush font, leaning against a railing with sunlight shining on her hair, with a bridge and the sea behind her |
![]() | ![]() Place this air conditioner in the living room, next to the sofa | ![]() Add mist coming out of the air conditioner vent, extending all the way to the sofa, and add green leaves. | ![]() Add white handwritten text "Natural Fresh Air, Breathe Freely" at the top |
Sketch Creation
Input image | Output image | |
|---|---|---|
![]() | ![]() Generate an image that matches the refined shape outlined in image 1 and follows this description: a young woman smiling on a sunny day, wearing a pair of round brown sunglasses with leopard-print frames. Her hair is neatly pulled up, she wears pearl earrings, a dark blue scarf with a purple star pattern around her neck, and a black leather jacket. | ![]() Generate an image that matches the refined shape outlined in image 1 and follows this description: an elderly man smiling at the camera, his face covered in wrinkles, his hair messy in the wind, wearing a pair of round reading glasses. Around his neck is a worn red scarf with a star pattern. He is wearing a padded cotton coat. |
Cultural and creative design
Input image | Output image | ||
|---|---|---|---|
![]() | ![]() Let this bear sit under the moon (represented by a light gray crescent moon outline on a white background), holding a guitar, with small stars and poem bubbles such as “Be Kind” floating around. | ![]() Print this pattern on a T-shirt and a handheld paper bag. A female model is displaying these items. The girl also wears a peaked cap with the words "Be kind" on it. | ![]() A hyper-realistic 1/7 scale character model, designed as a finished commercial product, placed on an iMac desk with a white keyboard. The model stands on a clean, round, transparent acrylic base with no labels or text. Professional studio lighting highlights the sculpted details. On the iMac screen in the background, the ZBrush modeling process of the same model is shown. Next to the model, place a packaging box with a transparent window on the front, showing only the transparent plastic shell inside, slightly taller than the model and reasonably sized to hold it. |
![]() This bear is wearing a spacesuit, pointing into the distance with its finger | ![]() This bear is wearing an ornate dance dress, with arms outstretched, performing an elegant dance move | ![]() This bear is wearing sportswear, holding a basketball in its hand, with one leg bent | |
Generate images from a depth map
Input image | Output image | |
|---|---|---|
![]() | ![]() Generate an image that matches the depth map outlined in Figure 1 and follows this description: a blue bicycle parked in an alley by the street, with a few weeds growing out of stone crevices in the background | ![]() Generate an image that matches the depth map outlined in Figure 1 and follows this description: a red, worn-out bicycle parked on a muddy path, with a dense primeval forest in the background |
Generate images from keypoints
Input image | Output image | |
|---|---|---|
![]() | ![]() Generate an image that matches the human pose outlined in Figure 1 and follows this description: a beautiful Chinese woman wearing Hanfu, holding an oil-paper umbrella in the rain, with a Suzhou garden in the background. | ![]() Generate an image that matches the human pose outlined in Figure 1 and follows this description: a young man standing on a subway platform, wearing a baseball cap on his head, dressed in a T-shirt and jeans. Behind him, a train speeds past. |
Text editing
Input image | Output image | Input image | Output image |
|---|---|---|---|
![]() | ![]() Replace 'HEALTH INSURANCE' on the Scrabble tile with 'Tomorrow will be better' | ![]() | ![]() Change the phrase “Take a Breather” on the note to “Relax and Recharge” |
Input image | Output image | ||
|---|---|---|---|
![]() | ![]() Change “Qwen-Image” to a black ink-drip font | ![]() Change “Qwen-Image” to a black handwritten font | ![]() Change “Qwen-Image” to a black pixel font |
![]() Change “Qwen-Image” to red | ![]() Change “Qwen-Image” to a blue-purple gradient | ![]() Change “Qwen-Image” to candy colors | |
![]() Change the “Qwen-Image” material to metal | ![]() Change the “Qwen-Image” material to clouds | ![]() Change the “Qwen-Image” material to glass | |
Add, remove, and modify
Capabilities | Input image | Output image |
|---|---|---|
Add elements | ![]() | ![]() Add a small wooden sign in front of the penguin that reads “Welcome to Penguin Beach”. |
Delete elements | ![]() | ![]() Remove hair from the plate |
Viewpoint conversion
Input image | Output image | Input image | Output image |
|---|---|---|---|
![]() | ![]() Obtain a front view | ![]() | ![]() Facing the left side |
![]() | ![]() Obtain a rear view | ![]() | ![]() Facing the right side |
Old photo processing
Capabilities | Input image | Output image |
|---|---|---|
Old photo restoration and colorization | ![]() | ![]() Restore old photos, remove scratches, reduce noise, enhance details, high resolution, realistic visuals, natural skin tones, clear facial features, and no distortion. |
![]() | ![]() Intelligently colorize images based on their content, making them more vivid |





























































