What is Qwen-Image-2.1?

Qwen-Image-2.1 is an open-weight image generation model that combines image generation and editing in a single model.

A closed-source Qwen-Image 2.0 came first, but within the open-weight Qwen-Image family this is the successor to Qwen-Image-2512 and Qwen-Image-Edit-2511.

Previous Qwen-Image models used separate models for generation and editing. Like MiniMax H3, the 2.x architecture feeds both text and reference images into a single DiT, so the same model can handle image generation, editing, and Ref2Image.

It also supports native RGBA output—in other words, transparent images.

The image generation component is a compact 7B model, yet it covers generation, editing, references, and transparency. It is quite a versatile model.


Recommended settings

  • Resolution
    • 2K (about 4 MP recommended)
      • 2048 × 2048 px for 1:1
    • Use multiples of 32 for both width and height

Downloading the models

📂ComfyUI/
└── 📂models/
    ├── 📂diffusion_models/
    │   └── qwen_image_2.1_int8_convrot.safetensors
    ├── 📂text_encoders/
    │   └── qwen3vl_8b_int8_convrot.safetensors
    └── 📂vae/
        └── qwen_image_2.1_vae_bf16.safetensors

text2image

qwen_image_2_1_text2image.json
  • CFG: 1.0
    • The official workflow does not use CFG, but it may be worth raising it slightly to try a Negative Prompt

For better or worse, the Seed makes a very large difference. Changing the resolution also changes the image substantially, so try a variety of resolutions and Seeds.

Output example


Ref2Image

This workflow combines reference images to create a new image.

qwen_image_2_1_ref2image.json
  • Accepts up to 10 reference images
  • Specify which images to use in the prompt, such as “the woman from <image1> is sitting in the location from <image2>.”

Text Encode Qwen Image 2.1

Enter the reference images and prompt here.

  • resolution
    • Reference images are resized to about 1 MP while preserving their aspect ratio before being passed to the model
  • latent output
    • This is an empty latent based on the size of the first image, but its dimensions are rounded internally. I do not use it in my workflow because I want the output to match the input image dimensions exactly

Output example


Image editing

The workflow is almost the same as Ref2Image. The only difference is that the output size is matched to the first image.

For editing, it would be inconvenient if the result came back at a different size. This workflow reads the first image dimensions with Get Image Size and passes them to Empty Latent Image.

The second and subsequent images can be used as references, just as in Ref2Image.

Basic image editing

qwen_image_2_1_image_edit.json

As with other image-editing models, simply give an instruction such as “remove the man,” “make the clothes red,” or “turn this into a watercolor painting.”

Text Encode Qwen Image 2.1

  • resolution
    • Unlike Ref2Image, set this to 0. The image is not scaled; its dimensions are only rounded to multiples of 32 (I resize the image beforehand, so in practice nothing changes)
    • It is still a good idea to match the size seen by the model to the output size
input
input
output
output

Specify the location with colored circles

Draw colored circles around the areas you want to edit.

qwen_image_2_1_image_edit_local.json

Draw directly on the image to mark the objects you want to edit.

  • You can also use the Mask Editor attached to the Load Image node

Then simply give an instruction such as “remove the wristwatch inside the red circle.”

You can use several colors for separate instructions, which is handy when the location is difficult to describe in words.

input
input
output
output

Specify the location with a mask

qwen_image_2_1_image_edit_local_mask.json

The idea is the same as using a colored circle, but here a black-and-white image that marks the location is supplied separately from the original image.

The nice part is that you do not have to draw directly on and alter the original image.

Convert the mask to an image

Convert the MASK output from Load Image into a black-and-white image with Convert Mask to Image, then connect it to image_2.

In fact, the model only receives an ordinary black-and-white image. You can skip the mask conversion and prepare an image painted white over a black background instead.

This works very differently from inpainting.
Inpainting has a mechanism that prevents edits outside the mask, while this is only a location guide.
The edit may therefore spill outside the specified area.

input
input
mask
mask
output
output

Outpainting

This works very differently from ordinary Outpainting, where padding is added and then inpainted.

qwen_image_2_1_outpainting.json

What happens if you provide a wide image as a reference, but generate a portrait image?

Qwen-Image-2.1 creates a new image that fills in the space above and below.

It redraws the whole image rather than only the added space, so the original area will also change slightly.

This is not a way to preserve the source image precisely, but it is wonderfully simple.

input
input
output
output

Transparent images

Qwen-Image-2.1 can generate transparent images with only a small change to the prompt.

No special nodes are required. It produces an RGBA image with an Alpha Channel from the start.

Generate a transparent image

qwen_image_2_1_text2image_rgba.json

Write the prompt in this format:

This is an RGBA image with transparency. <your prompt here>. The image has alpha channel and the background is transparent.

The beginning and ending are fixed phrases, so you can copy them as-is and replace only the middle.

Save the output as PNG to preserve transparency. JPEG would discard the Alpha Channel.

Output example

Subject extraction

Combine transparent generation with image editing and—yes—you can pull a subject out of an image too.

qwen_image_2_1_subject_extraction.json

Use the same format as above and tell it what to extract with Extract ....

input
input
output
output

Applications

Panorama generation

Give it any reference image and ask for an ERP image at a 2:1 resolution. That alone is enough to generate a 360-degree panorama. Almost too easy...

Custom node

  • nomadoor/ComfyUI-Panorama-Stickers
    • A little self-promotion: this is my custom node for previewing panoramas and taking shots inside a panorama. Give it a try if it sounds useful.
qwen_image_2_1_panorama.json

This workflow generates a wide 2:1 image while using the source image as a reference.

Rather than strictly outpainting the left and right sides, it redraws the full ERP image so everything fits naturally into the panoramic space.