- WAN AI Video Generator Blog - AI Video Creation Guides & Updates
- What References Does Qwen Image 2.1 Take? 10 vs 16 Slots, Slot Order and 2K Output (2026)
What References Does Qwen Image 2.1 Take? 10 vs 16 Slots, Slot Order and 2K Output (2026)
The question sounds like a spec-sheet lookup: how many reference images does Qwen Image 2.1 take? The answer is 10 โ except in ComfyUI, where the text encoder node accepts 16 slots, except in the official edit templates, which only wire the first 10. Three different numbers, all correct, depending on which layer of the stack you are asking about.
That matters because the number is not trivia. It decides whether your virtual try-on works with a person, a garment and a pair of shoes, whether a group portrait of six people holds six distinct faces, and why the tenth reference sometimes does nothing at all.
I spent a week working through Qwen Image 2.1's reference pipeline โ the official model card, the ComfyUI node behaviour, and the failure reports coming out of image-edit work โ and this is the write-up: what counts as a reference, how the slots are ordered, how many you should actually use for which job, and where the extra slots are a trap rather than a feature.
TL;DR
- The model takes up to 10 reference images. That is the number in Qwen's own release notes for the 7B model, and it is the number your API call or pipeline should be built around.
- The ComfyUI text encoder accepts 16 slots (
image_1toimage_16), but the official edit templates wire only the first 10. If you are on a template, 10 is your ceiling no matter what the node allows. - Slot order is not cosmetic. References are spliced into the text encoder in slot order and addressed by index in the prompt, so
image_1is the image being edited and everything else supplies content. - More references is not better. Past four or five, subjects start bleeding into each other โ the most common complaint with 2.1's edit mode is faces getting copied between people.
- Native 2K output is the reason to care about reference quality. A soft 720p reference upscaled into a 2048ร2048 render is visible in the result; the model does not invent the detail back.
- Practical number: two references for product-on-model, three to four for outfit swaps, six for a group portrait, ten for interiors and composition-heavy scenes. Beyond that you are usually rewriting the prompt, not adding slots.
The Short Answer, Layer by Layer
Here is the whole answer in one table, because the confusion is entirely about which layer someone is describing.
| Layer | Reference limit | Where the number comes from |
|---|---|---|
| Qwen-Image-2.1 the model | 10 images | Qwen's official release notes for the 7B visual generation component |
| Qwen-Image-2.1 in ComfyUI, text encoder node | 16 slots (image_1โimage_16) |
ComfyUI's Text Encode Qwen Image 2.1 node documentation |
| Official ComfyUI edit templates | 10 wired (image_1โimage_10) |
Both edit workflows in ComfyUI's template library |
| Previous generation (Qwen-Image-Edit-2509/Plus lineage) | 3 on the Plus pipeline | Community documentation for QwenImageEditPlus |
| Browser tools wrapping the API | Usually 1โ4 in the UI | Whatever the front-end exposes; the model is not the constraint |
If you take one line from this article: build for 10. That is the model's own documented ceiling, it is what the reference templates wire, and it is the number that will behave consistently whether you call an API or open a workflow.
The 16-slot figure is real but it is a node capability, not a model promise. Eleven references through a node that accepts sixteen is the kind of thing that appears to work and produces the face-bleed failures described below.
What Actually Counts as a Reference
Not all ten slots are equal, and the difference is the single most useful thing to understand about this model.
ComfyUI's documentation is explicit: references are spliced into the text encoder in slot order, and image_1 is the image being edited. The remaining slots supply content โ a garment, a second person, a room, a texture. You then address them by index in the prompt, written as <image1>, <image2> and so on.
That produces three rules that decide most outcomes:
Rule 1 โ image_1 is the canvas. Whatever is in slot one is what gets edited. If you put the garment in slot one and the person in slot two, you will get a garment edited to look like it is wearing a person. This is the most common mistake in the entire workflow, and it is invisible until you look at the output.
Rule 2 โ Order is priority. References are processed in slot order, so early slots carry more weight in practice. Put the subject you care most about in the earliest content slot you can.
Rule 3 โ You must name them in the prompt. A reference that is not referenced in the prompt is dead weight or, worse, a source of drift, because the model has the pixels but no instruction about their role.
A working prompt for a two-reference garment swap looks like this:
Put the shirt from <image2> on the person in <image1>.
Keep the person's face, hair and pose exactly as in <image1>.
Match the shirt's collar, buttons and fabric texture from <image2>.
Compare it to the prompt most people write โ a person wearing a blue shirt โ which throws away both references and lets the model invent a person and a shirt.
How Many References for Which Job
The official release examples are the best guide to what the model was designed for, and they map neatly onto slot budgets.
| Job | References needed | Slot layout | Why that number |
|---|---|---|---|
| Product on model (try-on) | 2 | image_1 person, image_2 garment |
Both subjects need to be explicit; a third adds noise |
| Full outfit (top, bottom, shoes) | 3โ4 | Model first, then each garment | Each garment needs its own slot to keep attributes separate |
| Group portrait from individual photos | 6 | One face per slot | Qwen's own example composes six portraits into one photograph |
| Interior design from furnishing shots | Up to 10 | Room or empty space first, then each piece | Qwen's example builds an interior from ten furnishing references |
| Style transfer | 2 | Content first, style second | One slot for what, one for how |
| Character sheet consistency | 3 | Front, profile, detail | Diminishing returns past three angles |
| Background removal / extraction | 1 | The photo | This is an edit task, not a reference task |
The pattern: every distinct object with its own attributes wants its own slot, and every extra slot costs prompt precision. Two references with a precise prompt beat six with a lazy one, every time.
A note on the older 3-reference assumption: the Plus-era pipeline documented a three-image limit, and a lot of tutorials still reflect it. If you are following a guide that says three, you are reading about the previous generation. Qwen-Image-2.1 raised the ceiling to ten.
The Failure Mode You Will Hit: Face Bleed
Search for problems with Qwen Image 2.1's edit mode and you will find the same complaint repeatedly: faces leaking from one subject into another, or the same face pasted across everyone in a composition.
The cause is structural, not a bug. When you pass six portraits and ask for a group photo, the model is doing exactly what you asked โ treating six face references as content to be combined. If the prompt does not assign each face to a specific person and position, the model has no reason to keep them apart, and blending is the statistically likely output.
Three fixes, in order of effectiveness:
- Assign positions explicitly.
The woman from <image1> sits on the left in a red jacket; the man from <image2> stands behind her in a grey coat.Position plus clothing gives the model two independent anchors per person. - Reduce the count. Six faces in one render is a hard composition. Two or three is easy. If you need six, consider two renders and a composite, which is less glamorous and more reliable.
- Separate the identity from the styling. Keep the reference set to faces only โ no body, no background, no clothing โ so the model has fewer attributes to shuffle between subjects.
This is also why the tenth slot is usually a trap. The model's capacity to track distinct subjects degrades before you reach the limit, so hitting 10 references on a six-person scene does not give you a better six-person scene. It gives you a scene where the model is juggling sixteen objects' worth of attributes from ten slots.
Slot Ordering in ComfyUI, Concretely
If you are building the workflow rather than using a template, the wiring is straightforward once you know what each node expects.
- Text Encode Qwen Image 2.1 exposes
image_1throughimage_16. Load images intoLoadImagenodes and connect them in the order you want them prioritised. - The official edit templates wire 10 (
image_1โimage_10). If you need to go past ten, you are editing the graph yourself, and you are past the model's documented limit. image_1is the edit target. In the template's example the first slot is the person in denim, the second is the shirt to be applied.- Prompt syntax uses the index, e.g.
<image1>,<image2>. Write the prompt with indices rather than descriptions like "the first photo". - One checkpoint covers both jobs. The same weights do text-to-image and instruction editing, so you do not swap models between the two tasks โ which is why the reference slots live on the text encoder rather than on a separate edit node.
If you would rather not build the graph, our Qwen Image 2.1 ComfyUI workflow guide walks through the template wiring end to end, including VRAM behaviour with multiple references in memory at once.
Why Reference Resolution Matters More Than Reference Count
Qwen Image 2.1 outputs natively at up to 2K โ 2048ร2048 โ and that changes what makes a good reference.
With a model that renders at 1024 and upscales afterwards, reference quality is forgiving: the upscaler blurs everything equally, so a soft reference does not stand out. With native 2K output, detail is preserved at the pixel level, which means the reference's own sharpness becomes visible in the result. A 600-pixel-wide product photo used as a garment reference will produce a 2K render with a garment that looks like it was sampled from a 600-pixel image.
Practical rules:
- Match or exceed the output resolution in the region that matters. For a garment, that means a crop where the fabric fills a meaningful part of the frame, not a full-body shot where the shirt is 8% of the pixels.
- Keep references consistent in lighting. The model reconciles lighting across references; if one is daylight and one is tungsten, you get a compromise that looks like neither.
- Use PNG for anything with transparency. The model has a four-channel VAE and supports RGBA output natively, so transparent references and transparent outputs are both reasonable โ a JPEG will destroy the alpha and leave you with a coloured box.
That alpha support is worth a paragraph of its own, because it is new in 2.1 and it changes a workflow. Previous generations required a separate layering model to get transparent assets; 2.1 generates and edits transparency in the same model, using the prompt to decide whether the output has an alpha channel. For anyone building product assets, that is the difference between a two-model pipeline and one. For a closer look at how it stacks up against other models, see Krea 2 vs Qwen Image Edit vs Z.
Running References Without Building a Graph
Not every job needs ComfyUI. If you are doing one garment swap or a single group photo, a hosted tool is faster and the reference limit is the same 10 in the model โ the UI just exposes fewer slots.
What to look for in a hosted tool, based on what actually goes wrong:
- Named, ordered upload slots rather than a single "upload images" bucket, so you can control which image is the edit target
- A prompt field that lets you type indices, or a UI that inserts them for you
- Output at native resolution, not a forced 1024 downscale
- PNG or transparent output, if the asset is going into a layout
The Qwen image tool on this site exposes the camera and reference controls without a local install, which is what I use for quick two-reference checks before committing to a longer graph run.
And if the still is a starting point rather than the deliverable, the next step is motion: the free image-to-video generator animates a finished 2K still, which is where most product and social work ends up.
Common Mistakes, and the Fix for Each
| Mistake | What you see | Fix |
|---|---|---|
| Garment in slot 1, person in slot 2 | A garment shaped like a human | image_1 must be the edit target |
| References not named in the prompt | Invented subject, references ignored | Address each as <image1>, <image2> |
| Six portraits, no positional prompt | Blended faces | Assign position and clothing per person |
| Ten references on a simple job | Mushy, over-constrained composition | Cut to the objects that need distinct attributes |
| Low-res reference | Detail that looks sampled, not rendered | Crop the region that matters before uploading |
| JPEG reference for a cut-out | Grey or coloured halo at the edges | Use PNG with alpha |
| Expecting 16 slots to behave like 10 | Unpredictable blend past slot 10 | Stay at or below the documented 10 |
The Bottom Line
Qwen Image 2.1 takes 10 reference images โ that is the model's number, and it is the one to build on. ComfyUI's 16 slots are a node-level allowance, not a model capability, and the official templates only wire the first ten for a reason.
The more useful skill is not counting slots but assigning them. image_1 is the canvas, order is priority, and every reference must be named in the prompt or it does nothing. Two well-chosen references with a precise instruction beat ten vague ones on every job I have seen, and the face-bleed failure that dominates complaints about 2.1's edit mode is almost always a prompt that never told the model who was who.
If you only change one habit: stop uploading a folder and start writing a sentence that names every slot.
Try Qwen Image 2.1 Free
You do not need a GPU or a ComfyUI install to test the reference behaviour โ the model is the same, and a two-reference swap takes about a minute.
- Reference slots without graph wiring โ upload the edit target first, then the content references
- Native 2K output โ see what your reference resolution actually costs you
- Transparent PNG output โ cut-outs and layered assets in one pass
- Runs in the browser โ no VRAM maths, no checkpoint downloads, no node debugging
Open the Qwen image tool with reference support and run the two-reference test before you build the ten-reference one. If you are comparing models first, our Qwen Image 2.1 complete guide covers the 7B architecture and where it beats the alternatives.
FAQ
How many reference images does Qwen Image 2.1 accept? Up to 10, per Qwen's official release notes for the 7B model. The ComfyUI text encoder node accepts 16 slots, but the official edit templates wire only the first 10.
What is image_1 in a Qwen Image 2.1 edit?
image_1 is the image being edited โ the canvas. Every other reference slot supplies content: a garment, a second person, a piece of furniture, a texture.
Do I have to reference the image slots in the prompt?
Yes, in practice. References are addressed by index (for example <image2>). A reference that is not named in the prompt is either ignored or drifts, because the model has no instruction about its role.
Why do faces get mixed up when I use several portraits? Because the model combines the references as instructed and nothing in the prompt assigns each face to a person and a position. Assign positions and clothing, or reduce the number of references.
Can Qwen Image 2.1 output transparent images? Yes. The model has a four-channel VAE and supports RGBA generation and editing natively, which is new in 2.1 โ previous generations needed a separate layering model.
What resolution does Qwen Image 2.1 output? Natively up to 2K (2048ร2048 in ComfyUI's templates). It is a 7B model with 32 single-stream DiT layers, designed to run on a single consumer GPU.
Should I use more references for better accuracy? Usually no. Past four or five references, subjects bleed into each other. Use one slot per object that has distinct attributes you need preserved, and spend the rest of the effort on prompt precision.
Related guides
- Qwen Image 2.1 complete guide โ the 7B architecture, 2K output and transparency in detail
- Qwen Image 2.1 ComfyUI workflow โ node setup, template wiring and VRAM
- Qwen Image 2.1 uncensored: the GGUF route โ open weights, quantization and what the filters actually are
- Z-Image vs Qwen Image โ which open-weight model fits which job
- Qwen Image 3.0 complete guide โ what changed in the next generation
References
- Qwen โ Qwen-Image-2.1: Compact, Efficient, and Unified Image Creation โ official release: 7B visual generation component, 32 single-stream DiT layers, up to 10 reference images, native transparency, KV cache reuse
- ComfyUI docs โ Qwen-Image-2.1: text-to-image, editing and 2K output โ 16-slot text encoder, 10 wired in templates, slot ordering and prompt index syntax, 2048ร2048 native output
- QwenLM/Qwen-Image-2.1 on GitHub โ multi-reference pipeline example and memory optimisation
- Comfy-Org/Qwen-Image-2.1 on Hugging Face โ ComfyUI-format checkpoint files
- r/StableDiffusion โ passing multiple references to Qwen Image Edit โ the 3-reference limit on the older
QwenImageEditPluspipeline - Kie.ai โ What is Qwen Image 2.1 โ release date, 2K output and reference limits summarised
Free Tools
- Free Wan2.1 Video Generator
Generate videos with Wan2.1 model
- Free Wan2.2 Video Generator
More powerful Wan2.2 model
- Speech to Video Generator
Convert speech to video
- Text to Video Generator
Transform text into videos
- Image to Video Generator
Animate your images
- Z Image Generator
AI-powered image generation
- Wan Animate AI
AI-powered animation tool
Latest Posts
Qwen Image 2.1 Uncensored: The GGUF Route, the Filters, and What Actually Changes (2026 Guide)
a day agoZ-Anime Guide: Free Anime Image Generation from a Z-Image Fine-Tune (2026)
2 days agoWan 2.6 Free: Credit Math, Free Routes and When 2.7 Is Cheaper (2026 Guide)
3 days agoQwen Image Edit 3D Camera Control: Change the Angle Without Reshooting (2026 Guide)
4 days agoOpen Source AI Video Generators in 2026: What Actually Runs on Your Hardware
5 days ago
Recommended Reading
Read More
Qwen Image 2.1 Uncensored: The GGUF Route, the Filters, and What Actually Changes (2026 Guide)
Qwen Image 2.1 has no prompt filter in the weights - the filter lives in hosted services. The GGUF file table, ComfyUI setup, VRAM maths and a 10-min A/B test.

Qwen Image Edit 3D Camera Control: Change the Angle Without Reshooting (2026 Guide)
Qwen-Image-Edit-2511 camera control turns angle into three numbers. Exact azimuth, elevation and distance settings, six recipes and the inputs that fail.

Qwen Image 2.1: Complete Guide to Alibaba's 7B Open-Weight Model (2026)
Qwen Image 2.1 is a 7B open-weight model that generates and edits images with real alpha output. See why it runs on one GPU, and how to use it free.

Qwen Image Edit Guide: How to Change Images Without Losing Details
Need to edit an image without losing key details? Learn Qwen Image Edit prompts, a preserve-first workflow, examples, and fixes for common drift.