<aside> ðŸ›
Edit One Region, Leave the Rest Untouched
Paint a mask over the part of an image you want to change, describe the change in words, and the model only edits that region — everything outside the mask stays pixel-identical to the original. It is the same idea as Photoshop's "Generative Fill" or Adobe Firefly's inpaint tool, but powered by Qwen-Image-ControlNet-Inpainting — a purpose-built inpainting ControlNet from the InstantX Team, layered on top of Alibaba's Qwen-Image base model. Supports object replacement, text modification, background replacement, and outpainting.
</aside>
QWEN-Inpaint is a mask-based image editing node built on Qwen-Image-ControlNet-Inpainting, a ControlNet released by the InstantX Team specifically for mask-based inpainting and outpainting on top of Alibaba's Qwen-Image base model. The workflow: supply a mask (a black-and-white image showing which region to edit — white = "change this", black = "leave alone") together with a text prompt, and the model only modifies inside the mask. With the "Keep everything outside the mask pixel-identical to the input" option on, the rest of the image is preserved exactly. This is the classic inpainting workflow — the same pattern as Photoshop's "Generative Fill" or Adobe Firefly's inpaint tool. Because this is a ControlNet purpose-built for inpainting (rather than a general image-editing model given a mask afterwards), the model has been trained end-to-end to respect the mask boundary — which is why the four core use cases it advertises are object replacement, text modification, background replacement, and outpainting.
<aside>
<aside>
<aside>
***** Prompting Tips**
Positive prompts do most of the work. Negative prompts have very limited effect on this model.
"a red sneaker" for the masked area, write "a red sneaker on a wooden hardwood floor with soft window light"."a green taxi driving on the road", not "replace the car with a green taxi". The model is a ControlNet, not an instruction-following editor.negative_prompt=" " (an empty placeholder) in its own official examples. Classic SD-style negative prompts like "blurry, low quality, watermark, extra fingers" will have little to no effect. If something looks wrong, rewrite the positive prompt in more detail.CFG scale slider (default 4.0) is the primary lever for controlling how strictly the model follows your prompt.a wooden storefront sign that reads "Grand Opening"). Typography is not controllable through a font input on this model — style and size are inferred from the prompt and surrounding context.
</aside><aside>
<aside>
Typical inpainting flow:
| Model | InstantX/Qwen-Image-ControlNet-Inpainting — a ControlNet on top of Qwen/Qwen-Image |
| Advertised use cases | Object replacement, text modification, background replacement, outpainting |
| Training | Trained from scratch for 65K steps on 10M high-quality general and human images; 1328 × 1328 resolution, BFloat16, batch size 128, learning rate 4e-5, text drop ratio 0.10 |
| Architecture note | The ControlNet consists of 6 double blocks copied from the pretrained Qwen-Image transformer layers |
| Recommended prompting | Use descriptive prompts that describe the whole image (both the inpainted area and the background), not just an instruction for the masked region — the model is sensitive to this |
| Precision | bfloat16 recommended |
| Ecosystem | Native ComfyUI support (>= 0.3.59); community support on Liblib AI |