Short answer: The built-in Qwen Image 2.1: Image Edit template changes an image from a written instruction, such as "Remove the cars from the image". It uses Qwen-Image 2.1 at 25 steps, CFG 1, euler and simple, accepts up to 10 input images, and has an optional Prompt Enhancer that rewrites your instruction. It loads four files, about 26.8 GB in total. The licence is the Qwen Research License, which does not allow commercial use by default.

Output example

This workflow was run on a PC with an RTX 3090. We downloaded the saved output and inspected the image. It is one prompt and seed, not a general quality benchmark.

Generated example: Moonlit blue landscape with violet horizon, silver highlights and recognizable source shoreline, forest and foreground rocks.
Moonlit blue landscape with violet horizon, silver highlights and recognizable source shoreline, forest and foreground rocks.

Input references

Input reference 1: Clay Elliot
Input reference 1.

Clay Elliot · Source licence. Pillow proportional thumbnail to fit 1280x704, JPEG quality 95; upscale fixture fits 384x216, JPEG quality 80

Prompt used for this example
Change the time of day to moonlit blue hour, with cool deep-blue sky, silver moonlight on the mountain ridges and a gentle violet glow at the horizon. Preserve the lake shoreline, tree positions, mountain silhouettes, framing and photographic detail. Do not add objects, people or text.

Observed limits: Adds a visible moon despite the no-added-objects clause; sky and fine vegetation are re-rendered.

Inside the Qwen Image 2.1 image edit subgraph: a Prompt Enhancer group with Load CLIP, Batch Images, Generate Text, Text (System Prompt), If/Else Switch and Preview as Text; below it Models, Image Size, Conditioning and Sampling groups with Text Encode Qwen Image 2.1, a second If/Else Switch, Qwen Image 2.1 Cache, KSampler and VAE Decode
Inside the subgraph. The top group rewrites your instruction when refine_prompt is on, and Preview as Text shows the result. The lower If/Else Switch picks between the encoder's latent and Empty Latent Image: that is the custom_size switch. The Text Encode node at bottom-left is not connected.

Download and load the workflow

Download workflow (JSON)

Drag the downloaded JSON file onto the ComfyUI canvas to load it.

Install the model files and any custom nodes listed below. If the workflow uses input images, video or audio, select your own files in the input nodes before running it.

Which files go where

All four files come from Comfy-Org/Qwen-Image-2.1. The repository is not gated, and no custom node packs are needed.

PartFileSizeFolder
Diffusion modelqwen_image_2.1_int8_convrot.safetensors7.26 GBmodels/diffusion_models
Text encoderqwen3vl_8b_int8_convrot.safetensors9.35 GBmodels/text_encoders
Prompt Enhancer modelqwen3.5_9b_qwen_image_2.1_pe_i2i.int8_convrot.safetensors9.47 GBmodels/text_encoders
VAEqwen_image_2.1_vae_bf16.safetensors0.68 GBmodels/vae

Total: 26.76 GB. The first three files are the same ones the text-to-image template uses, so you only need the Prompt Enhancer file on top.

Settings in this workflow

SettingValue
Steps25
CFG1.0
Sampler / schedulereuler / simple
Denoise1.00
Seed0, randomised after each run
refine_prompt (Prompt Enhancer)Off
custom_sizeOff (width and height 1024 are used only when on)
Text encoder resolution1024
Qwen Image 2.1 Cachedevice auto, dtype default
Generate Text (Prompt Enhancer)temperature 1.0, top_k 20, top_p 0.95, min_p 0.05, repetition penalty 1.05, thinking on, max length 16256

CFG (classifier-free guidance) sets how strongly the negative prompt pushes against the positive one. At CFG 1 it has no effect.

How to use it

  1. Choose your source picture in Load Image. It feeds image_1.
  2. For multi-image edits, add more Load Image nodes and connect them to image_2 up to image_10.
  3. Write the instruction in positive_prompt. Start with the action: "Remove", "Replace", "Add".
  4. Turn on refine_prompt if your instruction is short or vague. Enter the subgraph and read Preview as Text to see the rewrite.
  5. Turn on custom_size only if you want a fixed width and height.
  6. Run the workflow. The result is saved with the prefix Qwen-Image_2-1_Edit.

What the Prompt Enhancer does

This template has no notes, but its Text (System Prompt) node explains the rules the Prompt Enhancer follows. In short:

  • It edits only what you named, and keeps everything else as it is in the input, including faces, product details and the image's style.
  • It writes the description in your language if you write in Chinese or English, and in English for any other language.
  • Text to be painted into the image goes in double quotes. If you do not give the exact words, it uses the main language already in the image.
  • With two or more images, it refers to them as <image1>, <image2> and so on, and says what each one supplies.
  • It never adds a resolution or aspect ratio. The graph sets the size.

You can follow the same rules when you write prompts by hand with the enhancer off.

Licence

The Comfy-Org/Qwen-Image-2.1 repository lists the Qwen Research License for all four files. It is a research licence, not for commercial use by default. Read it before client work, and see our licence tracker for alternatives such as MOSS-Image edit.

Troubleshooting

ProblemLikely causeFix
Qwen Image 2.1 nodes show as missingComfyUI is too oldUpdate ComfyUI and restart.
Error about the qwen3.5_9b fileThe Prompt Enhancer model is missingDownload it to models/text_encoders.
Output size is not what you typedcustom_size is offTurn custom_size on, then set width and height.
The edit is weak or touches the wrong areaThe instruction is vagueName the object and action, or turn on refine_prompt and check Preview as Text.
Out-of-memory errorThe Prompt Enhancer and image model run in one jobKeep refine_prompt off, or use fewer input images.

Where to go next

FAQ

How many images can I feed in?

The subgraph has ten image inputs, image_1 to image_10. The template connects one.

Do I need the Prompt Enhancer?

No. It is off by default. Turn it on when a short instruction gives weak or unclear edits.

Is Qwen-Image 2.1 edit free for commercial use?

Not by default. The repository lists the Qwen Research License.

Sources