Qwen-Image-Edit API
Alibaba's open 20B editor for English and Chinese text
The editing version of Qwen-Image changes one detail or the whole style from a plain instruction, keeps fonts intact when it rewrites words, and ships under Apache 2.0.
- Kind: image
- Made by: Alibaba (Qwen team, Tongyi Lab)
- Price: 5 credits per image (from $0.05; 1 credit = $0.01 on monthly plans, $0.015 as a top-up)
- Released: 2025-08-19
- Open weights: yes (Open weights, Apache 2.0 (Hugging Face and ModelScope))
- Base model: Qwen-Image, 20B MMDiT
- Image encoders: Qwen2.5-VL (semantics) + VAE (appearance)
- Input: One image plus an instruction
- Text editing: English and Chinese, font kept
- Output sizes on Unicorn: 6 presets, 1 to 4 images
- GEdit-Bench (EN / CN): 7.56 / 7.52 (Qwen report)
- Licence: Apache 2.0, open weights
- Inputs: seed, prompt, image_url, image_size, num_images, acceleration, nsfw_checker, output_format, guidance_scale, negative_prompt, num_inference_steps, enable_safety_checker
Call it with POST https://api.unicornapi.net/v1/jobs and model qwen-image-edit, or try it in the Playground.
Where it shines
- Rewrites English and Chinese text in images while keeping font, size and style
- Local appearance edits and global semantic edits in one model
- Rotates objects 90 or 180 degrees to show unseen sides
- Tops GPT Image 1 [High] on GEdit-Bench and ImgEdit in the Qwen report
- Apache 2.0 open weights for commercial use, fine-tuning and self-hosting
Watch out for
- Users report zoom and aspect-ratio drift, so outputs may not align pixel for pixel
- Faces can change subtly during edits
- Edits one input image at a time
- Hard text fixes may need several chained edits
Made with Qwen Image Edit



Qwen-Image-Edit is the editing version of Qwen-Image, the 20-billion-parameter image model that Alibaba's Qwen team open-sourced two weeks earlier. You give it one picture and a sentence describing the change, and it returns the edited picture: a jacket in a new colour, a sign with different words, a product turned round to show its back, a portrait redrawn as an illustration. No masks, no layers, no selection tools.
What makes the release stand out is the combination of three things that rarely arrive together. The first is text: Qwen-Image-Edit can add, delete and rewrite words inside an image in English and in Chinese while keeping the original font, size and style. The second is range: the same model handles small local fixes, where everything outside the edit must stay untouched, and large semantic changes such as rotating an object or switching the whole art style. The third is the licence: the weights are public under Apache 2.0, so anyone can download, fine-tune and run the model commercially.
In the Qwen team's own evaluation, the editing model edges out OpenAI's GPT Image 1 on the two public editing benchmarks it reports, and it does so in Chinese as well as English. That claim deserves the usual caution about self-reported numbers, but it puts an open model level with the best closed editors of mid-2025.
From Qwen-Image to Qwen-Image-Edit
Qwen is Alibaba's family of foundation models, built by the Qwen team inside the company's Tongyi Lab. The family is best known for its open-weight language models and the Qwen2.5-VL vision-language models. On 4 August 2025 the team added an image generator, Qwen-Image, together with a technical report and an Apache 2.0 release. Its headline skill was text rendering: it could set long passages, posters and slides in English and, more unusually, in dense Chinese characters.
The technical report already described an editing capability and benchmarked it, but the first public checkpoint was text-to-image only. Qwen-Image-Edit, announced on 19 August 2025, is that editing model made public. The Qwen team describes it as "the image editing version of Qwen-Image", built on the same 20B model, and the stated goal is to carry Qwen-Image's text rendering over to editing.
It ships the same way as its predecessor: weights on Hugging Face and ModelScope, code and examples in the Qwen-Image GitHub repository, support in the diffusers library, a hosted demo, an "Image Editing" mode in Qwen Chat and an API on Alibaba Cloud Model Studio. Apache 2.0 is one of the most permissive licences in use: commercial use, modification and redistribution are allowed without a separate agreement.
What the edit model adds
Qwen-Image could only start from a prompt. Qwen-Image-Edit starts from an existing image and splits editing into two kinds of work.
Appearance editing is the precise kind. You add, remove or change one element and every other region of the picture should stay exactly as it was. The Qwen team's examples include adding a reflection, removing a few stray hairs, changing the colour of a single letter, swapping a background and changing clothes.
Semantic editing is the broad kind. Most of the pixels can change, but the identity of the subject must survive. The examples here are more ambitious:
- IP creation: taking a mascot, in Qwen's case its capybara, and producing new scenes, poses and themed emoji packs that still read as the same character.
- Novel view synthesis: rotating an object by 90 degrees or a full 180 degrees, so you see the back of something the original photo never showed.
- Style transfer: turning a portrait into a painted or animated style while keeping the person's pose and features.
Text editing sits across both. The model can change the words on a poster, a T-shirt or a shop sign and keep the lettering style, in English and in Chinese. The announcement shows a calligraphy demonstration: a piece of Chinese calligraphy with wrong characters is corrected over several rounds, each edit fixing the characters that are still wrong, until the whole piece is right. The team calls this chained editing, and it is a useful pattern for any edit that is too fiddly to get right in one pass.
How it works: two views of the same picture
Qwen-Image is a multimodal diffusion transformer (MMDiT) with about 20 billion parameters, 60 layers deep. Prompts are read by Qwen2.5-VL, a 7B-class vision-language model, and images live in the latent space of a VAE that follows the Wan-2.1 design, with the encoder frozen and the image decoder fine-tuned on text-heavy material such as documents, slides and posters so that small type survives decoding. A positional scheme the team calls MSRoPE lets text and image tokens share the transformer.
For editing, the input picture is fed in twice. One copy goes through Qwen2.5-VL, which captures what is in the image: objects, relationships, scene and meaning. The other copy goes through the VAE encoder, which captures how it looks: colour, texture, lighting, exact layout. The technical report calls this dual encoding and says it lets the editor balance semantic consistency against visual fidelity. In practice, the semantic path is what makes a rotated object still look like the same object, and the appearance path is what keeps untouched parts of a photo looking untouched.
Training mixes text-to-image, text-plus-image-to-image and plain image-to-image reconstruction. The reconstruction task teaches the model to reproduce an input faithfully, which aligns the vision-language features with the diffusion model's latents and makes edits more consistent.
Specs and capabilities
| Qwen-Image-Edit | |
|---|---|
| Maker | Qwen team, Alibaba (Tongyi Lab) |
| Released | 19 August 2025 |
| Base model | Qwen-Image (20B MMDiT) |
| Condition encoder | Qwen2.5-VL (7B class) |
| Input | One image plus an instruction |
| Edit types | Appearance, semantic, text |
| Text editing languages | English and Chinese |
| Licence | Apache 2.0, open weights |
| On Unicorn | 6 output sizes, 1 to 4 images per request |
On Unicorn API the model takes a prompt of up to 2,000 characters and an image_url pointing at a JPEG, PNG or WebP file of up to 10 MB. Output size is set with image_size (square, square_hd, portrait_4_3, portrait_16_9, landscape_4_3, the default, or landscape_16_9). You can also set num_images, a negative_prompt of up to 500 characters, guidance_scale (0 to 20, default 4), num_inference_steps (2 to 49), a seed, the acceleration level (none, regular, high) and PNG or JPEG output.
Where Qwen-Image-Edit shines
Fixing and replacing text. This is the reason many people will try the model. Change a dish name on a menu board, translate a headline, correct a typo in a mock-up, swap the slogan on a T-shirt: the model aims to keep the original typeface, weight and colour rather than pasting in generic lettering. Chinese support is the real differentiator. In the technical report, FLUX.1 Kontext [Pro] scores 6.56 on the English half of GEdit-Bench but 1.23 on the Chinese half, while the Qwen editing model scores 7.56 and 7.52, nearly the same in both languages.
Benchmarks at the top of the field. On GEdit-Bench the report puts the Qwen model ahead of GPT Image 1 [High] in English (7.56 against 7.53) and in Chinese (7.52 against 7.30), and ahead of Step1X-Edit, BAGEL and Gemini 2.0. On ImgEdit, which covers nine editing task types, it scores 4.27 overall against 4.20 for GPT Image 1 [High] and 4.00 for FLUX.1 Kontext [Pro]. The margins over GPT Image 1 are small; the margin over every open model listed is not.
One model for small and big edits. Many editors are good either at surgical inpainting or at restyling. Qwen-Image-Edit is trained for both, so the same endpoint can remove a cable from a product shot and then turn the product round to show its back.
Characters and mascots. The IP-creation examples show a character kept recognisable through new poses, outfits and settings, which is what brand teams and sticker makers need.
Openness. Apache 2.0 weights mean you can prototype on an API and later self-host or fine-tune without changing models, and commercial use needs no separate agreement with Alibaba.
Where it struggles
Framing drift. Within a day of release, a user running the weights locally reported that edits could zoom the camera in or out and shift the aspect ratio, so the output no longer lined up pixel for pixel with the input, and compared this unfavourably with FLUX.1 Kontext. If you need overlays that align exactly with the original, check every result.
Faces can change. The same report describes faces being subtly altered during edits, and the Qwen team's own repository note from launch week singles out identity preservation and instruction following as areas improved by updating the diffusers library. Portrait retouching works, but keep an eye on likeness.
One image at a time. This checkpoint edits a single input picture. Combining a person from one photo with a product from another is not what it is built for.
Hard text still takes rounds. The calligraphy demo is impressive precisely because it needed several passes. Rare characters, very small type and long rewrites may not come out right first time; plan on chained edits.
Heavy to self-host. A 20B diffusion transformer plus a 7B vision-language encoder needs serious GPU memory and is not fast. Open weights do not make it light; that is a large part of why an API is convenient.
Prompting Qwen-Image-Edit
Write the instruction as a direct command, name the thing you are changing, and say what must stay the same. Short, specific edits are the easiest to get right and to check.
For text, quote the exact old and new words and ask for the style to be kept:
Change the text "FRESH COFFEE" on the chalkboard to "HOT COCOA". Keep the same chalk handwriting, size and position. Do not change anything else.
For a local appearance edit, describe the change and lock the rest:
Make the mug a deep cobalt blue glaze and add a little steam rising from it. Keep the table, the lighting and the background exactly as they are.
For a semantic edit, describe the new view or style and state what identity should survive:
Turn this photo into a soft watercolour illustration. Keep the woman's pose, her face, the bench and the composition the same.
Rotate the toy robot 180 degrees so we see its back. Keep its colours, materials and the studio background.
More tips:
- Chain difficult edits. Fix one word or one object per request and feed the output back in, as the Qwen team does with calligraphy.
- Match the output size to the input. Choose the
image_sizeclosest to your source aspect ratio to reduce cropping and zoom drift. - Use a seed when iterating. Fixing
seedlets you change only the wording of the instruction and compare. - Use
negative_promptsparingly to push away artefacts such as "blurry text, extra letters".
How it compares in the Unicorn catalog
The editing models that sit alongside Qwen-Image-Edit in the catalog take different approaches.
Ideogram 3.0 Edit is Ideogram's inpainting tool: you supply the image and a mask, and it repaints only the masked area. That gives exact control over where the change happens. Qwen-Image-Edit needs no mask, handles global restyles and rotations as well as local edits, and edits Chinese text. Choose Ideogram when you already have a mask and want a guaranteed boundary; choose Qwen when you want to describe the edit in words or work in Chinese. Ideogram 3.0 Remix reinterprets a whole image from a prompt and suits loose variations more than precise fixes.
Imagen 4 from Google is a text-to-image model on Unicorn, not an editor. It is a strong pick for making a clean new image from scratch; Qwen-Image-Edit is the tool once you have an image and need to change it.
Outside the catalog, the obvious references are GPT Image 1 and FLUX.1 Kontext [Pro], the closed editors the Qwen team benchmarks against. The published numbers put Qwen-Image-Edit level with or slightly ahead of both, with an Apache 2.0 licence and Chinese text editing as added advantages.
Getting started
Open the Qwen-Image-Edit playground, upload an image, type the change and run it. To call the model from code, create a key on the API keys page and send a job to /v1/jobs with the model id qwen-image-edit, a prompt and an image_url; the API tab on this page has complete examples, and the documentation covers authentication and the jobs API in full.
Verdict
On its makers' benchmarks, Qwen-Image-Edit is the strongest open-weight image editor of its moment and a match for the best closed ones. Its text editing, especially in Chinese, is the clearest reason to use it, and the ability to go from a one-word fix to a full restyle with the same model is a practical advantage. Framing drift and the occasional changed face mean results need a look before they ship. With an Apache 2.0 licence behind it, it is an easy model to adopt, and one you can take in-house later if your needs outgrow a hosted API.
Best for
- Replacing or correcting text on signs, posters and mock-ups
- Chinese-language design work
- Recolouring and cleaning up product photos
- Restyling photos into illustrations
- New poses and scenes for a mascot or character
Frequently asked questions
Is Qwen-Image-Edit open source?
Yes. Alibaba's Qwen team published the weights on Hugging Face and ModelScope under the Apache 2.0 licence, which allows commercial use, modification and redistribution. You can also use it through an API such as Unicorn API without running it yourself.
What settings does Qwen-Image-Edit accept on Unicorn API?
A prompt of up to 2,000 characters and one JPEG, PNG or WebP image of up to 10 MB, with six output-size presets and 1 to 4 images per request. Optional controls include a negative prompt, guidance scale (0 to 20), inference steps (2 to 49), a seed and an acceleration level.
Can Qwen-Image-Edit change text inside an image?
Yes, it is the model's signature skill. It can add, delete and rewrite English and Chinese text while keeping the original font, size and style. Difficult fixes may need a few chained edits, one correction at a time.
Qwen-Image-Edit vs FLUX.1 Kontext: which is better?
In the Qwen technical report the Qwen editing model scores 7.56 on English GEdit-Bench against 6.56 for FLUX.1 Kontext [Pro], and 7.52 against 1.23 on the Chinese half. Qwen-Image-Edit also has Apache 2.0 weights. Users have reported more framing drift with Qwen, so check alignment-sensitive edits.
Does Qwen-Image-Edit need a mask?
No. You describe the change in words and the model decides which pixels to touch. If you need a strict masked region, a mask-based editor such as Ideogram 3.0 Edit is the alternative.
What is Qwen-Image-Edit built on?
It is the editing version of Qwen-Image, a 20-billion-parameter multimodal diffusion transformer. The input image is fed both to Qwen2.5-VL, for meaning, and to a VAE encoder, for appearance, so edits can change content while keeping the look.