ComfyUI Node
LC Z-Image AnyPaint π©Ή
Inpaint and outpaint for Z-Image (Turbo / Base) with Alibaba's Z-Image Fun ControlNet Union 2.1 in inpaint mode: the kept pixels put back after every step and a border the model blends. Your picture outside the mask comes back unchanged. Describe the whole finished picture in the prompt. Outpaint: wire LC Outpaint's or Rotate + Pad's control_image and control_mask in.
LC Z-Image AnyPaint π©Ή
- model
- clip
- vae
- image
- mask
- image
- mask
βpromptβΊ
βcontrol(no model patches found)βΊ
βcontrol_strength1.00βΊ
βseed0βΊ
βsteps8βΊ
βsampler_nameeulerβΊ
βschedulersimpleβΊ
βcrop_to_masktrueβΊ
βpadding128βΊ
βinpaint_resolution1024βΊ
βboundary_px32βΊ
βcompositekeep originalβΊ
CategoryLC MaskMaker/inpaint
Inputs (17)
| Name | Type | Default | Description |
|---|---|---|---|
| model | MODEL | Z-Image (Turbo / Base). The ControlNet patch is added for this node only. | |
| clip | CLIP | Z-Image's text encoder (Qwen3 4B, CLIP type lumina2). | |
| vae | VAE | β | |
| image | IMAGE | β | |
| mask | MASK | White = paint, black = keep. Optional: no mask with LC Outpaint's canvas uses its mask. Wire LC Outpaint's control_image as the image and control_mask as the mask to outpaint. | |
| prompt | STRING | Describe the WHOLE finished picture, not just the change: "a woman in a red coat on a snowy street". Removal-only prompts ("remove the car") tend to leave a flat blob. | |
| control | COMBO | (no model patches found) | Alibaba's Z-Image Fun ControlNet Union 2.1 (models/model_patches), used in inpaint mode. The 8steps one is made for Z-Image Turbo. |
| control_strength | FLOAT | 1.000β2 | How strongly the ControlNet holds the painting to your picture. 1 = as trained. |
| seed | INT | 00β18446744073709550000 | β |
| steps | INT | 81β100 | 8 (Krea 2 Turbo). The keep is exact with euler. |
| sampler_name | COMBO | euler | euler is what AnyPaint was trained and tested with; the keep step is exact only for euler. |
| scheduler | COMBO | simple | simple, as in the reference. |
| crop_to_mask | BOOLEAN | true | On: a small mask is redrawn in its own crop, scaled up to inpaint_resolution (more detail). Off: the whole picture at inpaint_resolution. |
| padding | INT | 1280β2048 | Context around the mask when cropping (px). More = the model sees more of the scene. |
| inpaint_resolution | INT | 1024256β2048 | Size of the redraw (as an area: 1024 = about 1 MP). AusBoss found above about 1.6 MP Krea 2 starts to crease limbs and darken skies. |
| boundary_px | INT | 320β128 | Border around the mask the model redraws to blend the seam (in redraw pixels). 32 = the reference. |
| composite | COMBO | keep original | keep original = only the painted area (soft edge, colour fixed) is pasted back: everything else is exactly your picture. raw = the model's whole redraw of the crop. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | Your picture with the masked area painted. |
| mask | MASK | Where it was pasted back (soft edge). |