Models / Qwen

Qwen-Image-2.1 API

Alibaba's 7B open-weights image editor with real transparency

Alibaba's Qwen team puts generation, ten-reference editing and native transparent PNGs into one 7B model, publishes the weights, and tops the open-model arenas. The catch is a research-only licence.

  • Kind: image
  • Made by: Alibaba (Qwen team, Tongyi Lab)
  • Price: 4 credits per image 1K, 8 2K (from $0.04; 1 credit = $0.01 on monthly plans, $0.015 as a top-up)
  • Released: 2026-09-20
  • Open weights: yes (Open weights, Qwen Research License Agreement (non-commercial; commercial use needs a separate licence))
  • Parameters: 7B generator (32 DiT layers) + Qwen3-VL 8B encoder
  • Max resolution: Native 2K (e.g. 2048 × 2048, 2752 × 1536)
  • Reference images: Up to 10 per request
  • Transparency: Native RGBA output (PNG or WebP)
  • Local editing: Masks, circles or painted marks
  • Licence: Qwen Research License (non-commercial)
  • Inputs: seed, prompt, mask_url, background, image_urls, resolution, aspect_ratio, nsfw_checker, output_format, enhance_prompt

Call it with POST https://api.unicornapi.net/v1/jobs and model qwen2-1-image-to-image, or try it in the Playground.

Where it shines

  • Generates and edits transparent RGBA images natively
  • Combines up to 10 reference images in one edit
  • Mask-based local edits that leave the rest untouched
  • Top open-weights model on both Arena image boards at launch
  • Small 7B generator with published weights

Watch out for

  • Research-only licence for the downloadable weights
  • Trails the best closed models such as GPT Image 2.5 Sunburst
  • Detail per reference drops when you send more than about four
  • 2K output takes much longer than 1K

Made with Qwen 2.1 Image to Image

Qwen 2.1 Image to Image: A product photo turned into a transparent PNG cut-out in one call
A product photo turned into a transparent PNG cut-out in one call Prompt: The speckled cream ceramic mug from the first image, isolated as a single object, full mug visible including the handle, clean edges, soft natural shading on the glaze
Qwen 2.1 Image to Image: Two references combined: a person and a garment placed in a new scene
Two references combined: a person and a garment placed in a new scene Prompt: The woman from the first image wearing the mustard yellow raincoat from the second image, walking along a rainy city street at dusk, wet pavement reflecting shop lights, candid street photograph, keep her face and hair exactly as in the first image
Qwen 2.1 Image to Image: Sign lettering added to a photo while the rest of the scene is kept
Sign lettering added to a photo while the rest of the scene is kept Prompt: Paint hand-lettered text on the blank sign above the door of the shop in the first image: "Juniper Bakery" in large cream serif letters, and below it "Fresh bread daily" in smaller script. Keep the building, window display and lighting unchanged

Qwen-Image-2.1 is the new image model from Alibaba's Qwen team, and its headline trick is built into the main model rather than bolted on: it generates and edits pictures with a real transparent background. Ask for a product, a sticker or a logo mark and it can hand back an RGBA image with a working alpha channel, no background-removal pass required. Around that headline feature sit two more practical upgrades: editing from up to ten reference images at once, and local edits steered by a mask, a circle or a painted mark.

It is also small. The image generator has 7 billion parameters, about a third of the size of the original Qwen-Image, and Alibaba has published the weights on Hugging Face and ModelScope with support in Diffusers, ComfyUI, vLLM-Omni and SGLang on day one. That makes Qwen-Image-2.1 the highest-ranked image model anyone can download, a position the public preference arenas confirmed within two days of launch.

The asterisk is the licence. Unlike earlier Qwen-Image releases, which shipped under Apache 2.0, version 2.1 comes under a research-only licence that rules out commercial use of the weights without a separate agreement. On Unicorn API the model, listed as Qwen 2.1 Image, runs as a hosted image-to-image endpoint, so you can try its editing and transparency features without downloading or serving anything yourself.

Where Qwen-Image-2.1 comes from

Qwen is Alibaba's family of foundation models, built by the company's Tongyi Lab; the licence names Hangzhou Tongyi Laboratory Technology Co., Ltd. as the licensor. The image branch has moved quickly. The first Qwen-Image arrived in August 2025 as a roughly 20-billion-parameter open model under Apache 2.0, best known for rendering Chinese and English text inside images. Qwen Image Edit followed the same month, then Qwen-Image-2512 and Qwen-Image-Layered in December. Layered was the first Qwen model to deal in transparency: it split a finished picture into separate RGBA layers.

Qwen-Image-2.0 changed the design in February 2026. It shrank the generator to 7B, paired it with an 8B Qwen3-VL encoder, merged generation and editing into one model and moved to native 2K output. It was also, at first, available only as an API on Alibaba Cloud. Qwen-Image-2.1, released on 20 September 2026, is the release that puts that compact architecture in public hands and adds the features 2.0 lacked.

What changed from Qwen-Image-2.0

The 2.1 release is an upgrade in capability, not in size. The main changes:

  • Native transparency. The model's autoencoder now works in four channels, so it can generate RGBA images from a prompt, cut a subject out of an ordinary photo as a transparent layer, change text on an asset while keeping its background, and edit part of an image that is already transparent. Before, this took the separate Qwen-Image-Layered model or a background remover after the fact.
  • Ten reference images. One request can combine up to ten inputs, for example a person, a garment, a product and a setting, referred to in the prompt by their order. On Unicorn API the earlier Qwen2 Image Edit endpoint takes up to three.
  • Local editing by pointing. Edits can be confined to an area marked with a circle, a painted annotation or a separate black-and-white mask, instead of hoping the model infers the region from words.
  • Efficiency for multi-image work. Qwen describes a lightweight design with mixed-granularity attention and prefix KV-cache reuse. In plain terms, the reference images and prompt are processed once and reused across the denoising steps, which keeps ten-image edits practical.
  • Quality polish. Qwen lists refined typography, better portrait lighting and finer textures, and highlights identity preservation for people and products during edits.
  • Open weights. The full checkpoint is downloadable, along with two companion prompt-enhancer models, Qwen-Image-2.1-PE-T2I and PE-I2I, that rewrite short prompts into fuller descriptions for generation and editing.

The one thing that moved backwards is the licence, covered below.

How it works

Qwen has published the architecture in the model card and code. Three components do the work:

  1. A Qwen3-VL 8B encoder reads the prompt and the reference images. Because it is a vision-language model rather than a plain text encoder, it understands instructions like "the jacket from the second image" and the content of each reference.
  2. A 7B diffusion transformer with 32 single-stream layers generates the image. Text tokens and image tokens share one stream. Attention is block-causal: text uses a token-level causal mask, while each image attends to itself bidirectionally. That structure is what allows the prefix cache: the conditioning part of the sequence does not change between steps, so it is computed once.
  3. A 64-channel RGBA autoencoder with 16x spatial compression turns the latent into pixels, including the alpha channel.

Sampling uses flow matching with an Euler scheduler, 40 steps by default. Self-hosters should note the memory figures: the BF16 generator weights are about 14.2 GB, an INT8 build about 7.3 GB, and Qwen's default configuration peaked at 56.5 GiB when making 2K images on an H100. Community builds with offloading and quantisation run it on 24 GB consumer cards, more slowly.

Specs at a glance

Qwen-Image-2.1
Generator7B parameters, 32 single-stream DiT layers
EncoderQwen3-VL 8B
Autoencoder64-channel RGBA, 16x compression
Native sizes2048 × 2048 (1:1), 2752 × 1536 (16:9), 2528 × 1696 (3:2), 2400 × 1792 (4:3) and portrait versions
Reference imagesUp to 10
Local editingMasks, circles, painted annotations
Default steps40
LicenceQwen Research License Agreement
On Unicorn API1K or 2K; aspect auto, 1:1, 4:3, 3:4, 3:2, 2:3, 16:9, 9:16, 21:9, 9:21; PNG, WebP or JPEG

On Unicorn API the 2K tier produces four times the pixels of 1K and can take up to about three minutes with reference images, so 1K is the sensible default while iterating.

Benchmarks and early reception

Qwen's launch material compares the model on Qwen-Image-Bench, its own benchmark. Qwen-Image-2.1 scores 60.28 there, just ahead of Google's Nano Banana 2.0 at 59.82 and OpenAI's GPT Image 1.5 at 59.65, and clearly behind OpenAI's GPT Image 2.5 Sunburst at 67.01. Those margins are under half a point, and the benchmark is Qwen's own and has not been reproduced independently, so read it as "in the same league" rather than "better".

The independent signals are more telling. Two days after release Arena's preliminary boards placed Qwen-Image-2.1 first among open models on both. In Image Edit it scored 1,367 points, 16th overall and 3 points behind GPT-Image-1.5-high-fidelity; in Text-to-Image it scored 1,228, 17th overall and 4 points behind Nano Banana Pro. Every model above it on both boards is proprietary, and the next open model trails by 65 points on the editing board.

Early testers praised the text rendering, one calling it "much, much better than anything else on the open weights market right now" with good small-text fidelity, and singled out transparency and multi-reference editing as features open models had not offered together. The criticism was mostly about the licence, which dominated the launch-day discussion on Hacker News. Some testers also found the typography praise overstated on harder samples, and one reported a yellowish tint in outputs that had not been cherry-picked.

Where Qwen-Image-2.1 shines

Transparent assets. This is the reason to choose it. Product cut-outs for a catalogue, stickers, game items, icons, overlay graphics and logo marks come back with a true alpha channel. Sending a product photo and asking for "the mug, isolated" returns a PNG that drops straight onto any page.

Compositing from several references. Putting a specific person in a specific outfit in a new location, or arranging three products into one hero shot, is a single request. The encoder understands which reference is which, and Qwen emphasises identity preservation for faces and products.

Precise retouching. With a mask, the edit stays inside the white area: replace one object, fix a background patch or change a garment's colour while the rest of the photo stays untouched.

Text in images. Sign lettering, packaging labels, poster headlines and chart labels are a Qwen strength going back to the first Qwen-Image, and 2.1 continues it.

Running it yourself. With a 7B generator and published weights, it is the top-ranked image model you can host on your own hardware. Research teams can fine-tune or study it directly, and community builds with offloading and quantisation bring it down to 24 GB consumer cards.

Limits worth knowing

The licence restricts the weights. The Qwen Research License Agreement allows research and evaluation, modification and redistribution, but "you shall not use the Materials for any commercial purpose without obtaining a separate commercial license." That licence has to be requested from Qwen. Teams that chose Qwen-Image for its Apache 2.0 terms cannot treat 2.1 the same way.

Not the best model overall. On every public board it sits behind a group of closed models, and on Qwen's own chart GPT Image 2.5 Sunburst leads by almost seven points.

More references, less detail each. Ten references is the ceiling, not the sweet spot. Unicorn's endpoint notes that each reference keeps less detail as you add more, and recommends staying within four when fidelity matters.

2K is the ceiling, and it is slow. There is no 4K option. 2K renders can take minutes.

Transparency has rules. On Unicorn API a transparent request must use PNG or WebP and cannot be combined with a mask. Prompts for transparent output should describe the subject only: mention a table or a room and the model may paint an opaque background.

On Unicorn API it needs a reference. The endpoint is image-to-image, so every request takes at least one image. For pure text-to-image, pick another model.

How to prompt Qwen-Image-2.1

Refer to references by position ("the first image", "the second image"), say what must stay unchanged, and leave enhance_prompt on unless you need exact wording, since it expands short prompts into fuller scene descriptions before generation. Prompts can be in any language and run to 5,000 characters.

A transparent cut-out (background: transparent, output_format: png):

The speckled cream ceramic mug from the first image, isolated as a single object, full mug visible including the handle, clean edges, soft natural shading on the glaze

A two-reference composite (aspect_ratio: 3:2, which suits scenes with several subjects):

The woman from the first image wearing the mustard yellow raincoat from the second image, walking along a rainy city street at dusk, keep her face and hair exactly as in the first image

A text edit on a photo:

Paint hand-lettered text on the blank sign above the door of the shop in the first image: "Juniper Bakery" in large cream serif letters. Keep the building and lighting unchanged

A masked edit (one reference plus mask_url, white where the change goes):

A terracotta pot with a small olive tree, matching the afternoon light of the room

Fix the seed once you like a result; the same seed, prompt and settings reproduce the same image.

Qwen-Image-2.1 versus other models in the catalog

  • Nano Banana 2 is Google's model and the one Qwen chose to measure against; on Qwen's chart they are within half a point. Its weights are not published, and Qwen 2.1 adds native transparent output on top.
  • GPT Image 2.5 Sunburst leads Qwen's own benchmark by almost seven points and is the pick when top output quality matters more than transparency or open weights.
  • Seedream 5 Pro also produces transparent layers, but by decomposing a finished image into parts; Qwen generates the transparent asset directly.
  • Qwen2 Image Edit is the previous generation, with up to three references and no transparency. Alibaba's API-only Qwen3 Image line is the other Qwen editing option in the catalog.
  • Recraft Remove Background is the simpler tool if all you need is a cut-out from an existing photo with no other change.

Getting started

Open the Qwen 2.1 Image playground, upload one or more reference images and write your prompt. For code, create a key on the API keys page and follow the docs: send a job to /v1/jobs with the model id qwen2-1-image-to-image, a prompt, an image_urls array and optional resolution, aspect_ratio, background, mask_url and output_format, then poll for the result. The API tab on this page has complete examples.

Verdict

Qwen-Image-2.1 is the strongest image model with public weights at its release, and it treats transparency as a native output rather than a post-processing step. Ten-reference compositing, mask edits and good typography make it a capable all-round editor, and the 7B generator keeps it within reach of serious local hardware. It is not the best image model overall, and the research licence will disappoint anyone who built on Qwen's earlier Apache releases. As a hosted editor for cut-outs, composites and quick retouching, it is an easy recommendation.

Best for

  • Transparent product cut-outs
  • Stickers, icons and overlay assets
  • Multi-reference compositing
  • Sign and label text edits
  • Masked retouching

Frequently asked questions

Is Qwen-Image-2.1 open source?

Its weights are public on Hugging Face and ModelScope, but under the Qwen Research License Agreement, which allows research and evaluation only. Earlier Qwen-Image releases used Apache 2.0.

Can I use Qwen-Image-2.1 commercially?

The research licence covers the downloadable weights: running them yourself for commercial work needs a separate commercial licence, requested from Qwen.

What resolutions does Qwen-Image-2.1 support?

It generates natively at up to 2K, for example 2048 × 2048 at 1:1 or 2752 × 1536 at 16:9; there is no 4K option. On Unicorn API you choose 1K or 2K, and 2K renders can take up to about three minutes with reference images.

Can Qwen-Image-2.1 make transparent PNGs?

Yes. It outputs real RGBA images. On Unicorn API set background to transparent and output_format to png or webp, and describe only the subject in the prompt.

Qwen-Image-2.1 vs Nano Banana 2: which is better?

On Qwen's own benchmark they are almost level, 60.28 against 59.82. Qwen-Image-2.1 adds native transparent output and published weights, while Nano Banana 2 is a closed Google model.

How many images can Qwen-Image-2.1 combine?

Up to 10 reference images per request, referred to in the prompt by order. For the highest fidelity per reference, stay within about four.