Nodes/ZIT-Ideogram/Z-Image-Turbo Region Builder KJ
ComfyUI Node

Z-Image-Turbo Region Builder KJ

Visual region prompt builder for Z-Image-Turbo. Draw boxes on the canvas, set a prompt, optional negative prompt, strength, and feather per region. The node outputs Z-Image text conditionings with ComfyUI masks, a batch of independent masks, a combined mask for img2img/inpainting, and serialized region data for workflow save/load.

By bbc-s·Created 2 months ago·Updated 2 months ago· 1
Z-Image-Turbo Region Builder KJ
  • clip
  • image
  • vae
  • positive
  • negative
  • region_masks
  • combined_mask
  • source_image
  • preview
  • regions_json
  • bboxes
  • width
  • height
  • latent_with_noise_mask
width1024
height1024
global_prompt
global_negative_prompt
modetext_to_image
default_region_strength1.00
default_feather16
conditioning_modesingle_prompt_fast
regions_data
bg_brightness35
batch_size1
CategoryZIT-Ideogram/Z-Image

Inputs (14)

NameTypeDefaultDescription
clipCLIP
widthINT102464–16384
heightINT102464–16384
global_promptSTRING
global_negative_promptSTRING
modeCOMBOtext_to_image2 options: text_to_image, image_to_image_region_edit
default_region_strengthFLOAT1.000–10Default mask strength for regions. In single_prompt_fast this affects mask/noise_mask outputs, not text prompt strength. For img2img edits keep near 1.0 and control change with KSampler denoise.
default_featherFLOAT160–512Default mask feather in pixels. 0 = hard rectangle edge, 8-24 = normal soft edge, 32+ = very soft transition.
conditioning_modeCOMBOsingle_prompt_fastRecommended: single_prompt_fast. regional_conditioning_slow is experimental for Z-Image-Turbo, often slower and less reliable because ZIT is not designed for masked multi-conditioning.
regions_dataSTRING
bg_brightnessSTRING35Background brightness. String for compatibility with older workflow widget ordering.
batch_sizeINT11–4096Batch size for the latent_with_noise_mask output. Kept at the end for workflow compatibility.
imageoptIMAGEOptional source/reference image shown in the editor and passed through.
vaeoptVAEOptional VAE. When provided with an image, the node also outputs an encoded latent with combined_mask as noise_mask for img2img regional edits.

Outputs (11)

NameTypeDescription
positiveCONDITIONING
negativeCONDITIONING
region_masksMASK
combined_maskMASK
source_imageIMAGE
previewIMAGE
regions_jsonSTRING
bboxesBOUNDING_BOX
widthINT
heightINT
latent_with_noise_maskLATENT