Prompt Qwen-Image-2.1 in ComfyUI: reusable templates for exact text, edits, multi-reference scenes and transparent PNGs, plus steps, CFG and resolution.
Qwen-Image-2.1 combines text-to-image generation, image editing, multi-reference composition, and native transparent output. In ComfyUI, strong results start with a clear description of the intended image or edit, references assigned distinct roles, and settings matched to the workflow. This guide covers reusable prompt patterns, text and layout control, local edits, transparency, and the sampler choices that matter most.
It applies to Qwen-Image-2.1 and its faster Qwen-Image-2.1-Turbo checkpoint. For very long, information-dense briefs, such as full newspaper pages or multi-panel infographics, see Qwen-Image-3.0, which accepts much longer instructions but has no downloadable weights.
Decide whether you are making a new image or changing a supplied one. Qwen-Image-2.1 uses the same model family for both, but the prompt should describe a new scene for text-to-image or a specific change for editing.
Goal
What to provide
What to say
Text-to-image
A prompt and an output aspect ratio
The subject, action, framing, setting, and visual treatment
Image edit
The image to edit, plus any references
What changes, what stays recognizable, and how the result should fit the source
Multi-reference edit
A target image and selected reference images
Which details come from each reference and where they belong
Transparent asset
A prompt or source image, with RGBA output enabled by the workflow
The subject and an explicit request for a transparent background and alpha channel
The model has a 7B-parameter visual generation component with 32 Single-Stream DiT layers. Its text encoder is Qwen3-VL 8B, and its 64-channel RGBA VAE handles transparency natively. When setting up ComfyUI manually, start from the official Qwen-Image-2.1 workflow and use its matching model components rather than substituting an unrelated text encoder.
Write in natural language. Name the main subject and action first, then add the details that define the composition: camera framing, location, lighting, color, materials, style, and any required text. A complete brief is usually easier to follow than a long pile of disconnected quality tags.
A {{image_type}} of {{subject}} {{action}}.
Composition: {{framing}}; place {{important_elements}} at {{positions}}.
Setting: {{environment}}.
Appearance: {{materials}}, {{colors}}, and {{distinctive_details}}.
Lighting: {{light_source_and_quality}}.
Style: {{visual_style}}.
{{#if exact_text}}Include the exact text "{{exact_text}}" on {{surface}}, positioned {{text_position}}.{{/if}}
{{#if preserve}}Keep {{details_to_preserve}} recognizable and unchanged.{{/if}}
Keep the details that affect the result and remove instructions that compete with each other. If an object must be visible, say where it sits in the frame. If there is a fixed number of objects, state the count and describe their arrangement. For a poster or infographic, describe the reading order from headline to supporting information and labels.
Put required copy in quotation marks so it is easy to distinguish from the visual description. Specify where the text appears, how it is arranged, and which line should be most prominent. Separate each text block when a design has a headline, subtitle, labels, and footer.
Create a {{design_type}} about {{topic}}.
Place the headline "{{headline}}" {{headline_position}} in {{headline_style}} lettering.
Below it, place "{{subtitle}}" in smaller {{subtitle_style}} text.
Add these labels beside the matching elements: "{{label_one}}" and "{{label_two}}".
Keep generous spacing and a clear reading order from headline to labels.
For bilingual artwork, write each language exactly as it should appear and assign it a place in the layout. Keep copy concise when the words must be exact, then zoom in and proofread every line after generation. Dense layouts can render many text elements, but an image model is not a substitute for final proofreading.
For an edit, name the target, describe the desired state, and say what should remain recognizable. “Make it better” leaves the edit open-ended; “replace the paper cup with a clear glass, keeping the hand, table, and crop unchanged” gives the model a concrete job.
Edit <image1>: {{specific_change}}.
Keep {{identity_or_structure_to_preserve}} unchanged.
Match the source image's {{lighting_or_visual_style}} and keep the edit consistent with the surrounding scene.
For a local edit, identify the object or region rather than restating the whole image. The official model supports circles, painted annotations, and separate masks for local editing. If you use a colored mark in the ComfyUI edit workflow, name that color in the prompt and keep the mark inside the area you want to change. A separate mask is useful when you want the workflow to define the edit boundary independently from the source image; inspect the surrounding pixels in the result as well.
Use references to supply visual details that are hard to describe, such as a person's identity, a garment's construction, or a product's shape. State which image provides each attribute, and avoid assigning the same attribute to multiple references unless that is intentional.
In the official ComfyUI edit template, image_1 is the image being edited and the remaining inputs are references. Address the images in the prompt as <image1>, <image2>, and so on. Qwen's repository documents up to 10 references, and the standard ComfyUI edit template wires 10 image slots.
Use <image1> as the scene to edit.
Take the person's identity and pose from <image2>.
Use the jacket from <image3>, keeping its {{distinctive_garment_details}}.
Bring in the {{prop}} from <image4> and place it {{placement}}.
Keep the background and camera framing from <image1>.
Only add the references needed for the task. For a multi-person scene, assign one image to each identity and state each person's position in the final composition. For product work, identify which image supplies the product, label, packaging, or background. This makes it easier to spot which input caused a mismatch when reviewing the output.
Qwen-Image-2.1 can generate a transparent image, edit transparent layers, and extract a subject from a photo. For a new cutout, wrap the subject description in the wording the Qwen repository recommends: an opening sentence that declares an RGBA image and a closing sentence that asks for an alpha channel and a transparent background.
This is an RGBA image with transparency. {{subject_and_materials}}, shown {{pose_or_view}} with {{lighting_and_surface_details}}. The image has alpha channel and the background is transparent.
For example, describe a product's material, label, viewing angle, and studio highlights, then request a transparent background. Save the result in a format that retains alpha, such as PNG, and check the alpha channel in an image editor. A checkerboard drawn into the picture is not transparency.
For background removal, provide the source image and ask for the background to be removed with a transparent PNG result. For a transparent layer edit, state the exact change while asking to retain the transparent background. If the saved file appears opaque, check that the workflow produced RGBA and that the export step preserved the alpha channel.
Start with the settings in the official workflow that matches the task. Qwen's Diffusers examples use 40 denoising steps for the base model. ComfyUI's base templates start at 25 steps with Euler, the Simple scheduler, and CFG 1; Comfy's guide notes that the published pipeline commonly uses about 40–50 Euler steps. Treat the template defaults as a useful baseline, then change one setting at a time when a specific detail needs work.
Setting
Qwen-Image-2.1 base
Qwen-Image-2.1-Turbo
Steps
ComfyUI template starts at 25; Qwen's Diffusers example uses 40
8-step schedule bundled with the checkpoint
CFG
1 is the standard ComfyUI path; test 2 when a dense prompt or small text needs stronger adherence
1 with the bundled schedule
Sampler / schedule
Euler with Simple in the ComfyUI templates
Euler with the checkpoint's fixed schedule
At CFG 1, the standard ComfyUI workflow does not use the negative prompt. Comfy's guide describes CFG 2 as an option for following dense prompts and small text more closely, with a risk of over-sharpened edges. If you test it, compare at the same seed and change only CFG; very high guidance can degrade the image. For Turbo, keep the eight-step schedule and CFG 1 rather than applying base-model settings.
Resolution controls differ between text-to-image and editing. For text-to-image, the ComfyUI Resolution Selector uses an aspect ratio and megapixel target; about 1 MP is close to 1024 × 1024, while about 4 MP targets a native 2K square. Qwen publishes these recommended output sizes for common ratios:
Aspect ratio
Recommended size (width × height)
1:1
2048 × 2048
4:3
2400 × 1792
3:4
1792 × 2400
3:2
2528 × 1696
2:3
1696 × 2528
16:9
2752 × 1536
9:16
1536 × 2752
In the edit template, the output canvas follows image_1 by default. If you turn on a custom size, keep its aspect ratio and dimensions close to the resized target image; a large mismatch can shift the edit. Choose the image dimensions and pixel budget for the job before raising them, since larger canvases require more work and do not repair an unclear prompt.
Use prompt enhancement as a draft, not a black box#
ComfyUI's Qwen-Image-2.1 text-to-image and edit templates include an optional prompt enhancement step. It can expand a short request into a longer description before sampling. Turn it on when you want help fleshing out a brief, then preview the rewritten prompt and check that it has not added unwanted objects, text, or style instructions. Keep enhancement off when you need your prompt to pass through unchanged.
A required object is missing: Move it earlier in the prompt, state its position and count, and remove conflicting scene details.
The text is wrong or crowded: Shorten the copy, give each block its own position and visual hierarchy, and inspect the image at full size.
A reference attribute went to the wrong person or object: Simplify the reference map so each input has one clear role, and name its <imageN> token directly.
An edit changes too much of the source: Narrow the instruction to one object or region, use the local-edit controls, and compare the unedited areas with the original.
The edit shifts or changes framing: Check that the custom canvas stays close to the target image's aspect ratio and size.
The image looks too sharp after raising CFG: Return to CFG 1 or reduce guidance. Keep the seed fixed while comparing settings.
A transparent asset has a solid background: Confirm the prompt asks for an alpha channel and the output workflow saves RGBA rather than flattening the image.
The downloadable Qwen-Image-2.1 and Qwen-Image-2.1-Turbo weights are released under the Qwen Research License Agreement. It covers research and non-commercial use; commercial use needs a separate license from Qwen. Read the full terms before using either checkpoint in a commercial workflow.