ComfyUI Node
CMK Flow · 01 START HERE · Create Image
CMK FLOW START. Selects SDXL, Z-Image Turbo or the sequential HYBRID path and creates the required family-bound PROCESS contracts together with IMAGE and LOG. Continue the SDXL path with '05 ControlNet SDXL' or '10 KSampler SDXL 1st Pass'; continue the Z path with '10 KSampler Z-Image Turbo'.
CMK Flow · 01 START HERE · Create Image
- PROCESS
- IMAGE
- MASK
- LOG
- LoRA SDXL
- LoRA ZIT
- PROCESS SDXL
- PROCESS ZIT
- IMAGE
- LOG
- VISUAL
- diagnostic
◄GLOBAL PROMPT POS►
◄PROMPT NEG►
◄INPAINT_MODEText2Image►
◄resolution1152x832►
◄swap_dimensionsfalse►
◄upscale_methodlanczos►
◄devicecpu►
◄FILENAME►
◄outpaint_onfalse►
◄mask_fill_holesfalse►
◄fill_masked_areaneutral►
◄process_modeCustom►
◄resize_modeFit►
◄crop_positionCenter►
◄outpaint_overlap32►
◄model_familySDXL►
◄instantid_enabledfalse►
◄instantid_modeHYBRID►
◄inpaint_mask_expand16►
◄hybrid_sdxl_handoff90%►
◄hybrid_zit_denoise0.20►
◄unload_models_after_usetrue►
◄HYBRID BALANCE2►
CategoryCMK/Flow/Input
Inputs (29)
| Name | Type | Default | Description |
|---|---|---|---|
| GLOBAL PROMPT POSopt | STRING | Positive prompt for the complete Flow. | |
| PROMPT NEGopt | STRING | Negative prompt for the complete Flow. | |
| INPAINT_MODEopt | COMBO | Text2Image | Text2Image creates a new image. Inpaint uses IMAGE and MASK and reveals the task-specific inpaint settings. Z-Image Turbo Inpaint is experimental. HYBRID Inpaint runs the patched Inpaint stage only in SDXL and uses ZIT solely for the subsequent low-denoise finish. |
| resolutionopt | COMBO | 1152x832 | 20 options: 1024x1024, 1152x832, 832x1152, 1216x832, 832x1216, 1344x768, +14 |
| swap_dimensionsopt | BOOLEAN | false | — |
| upscale_methodopt | COMBO | lanczos | 4 options: lanczos, bicubic, bilinear, nearest |
| deviceopt | COMBO | cpu | 3 options: cpu, mps, cuda |
| PROCESSopt | CMK_PIPE | Optional incoming PROCESS from an upstream CMK Flow input module. Create Image preserves it and applies its authoritative image settings. | |
| IMAGEopt | IMAGE | Required only when INPAINT_MODE is enabled. | |
| MASKopt | MASK | Required for Inpaint except Extend Image. Extend Image generates the uncovered Fit-canvas mask and merges an optional input mask. | |
| FILENAMEopt | STRING | Required only when INPAINT_MODE is enabled; used by logging and project output. | |
| LOGopt | CMK_LOG_PIPE | Optional incoming LOG from an upstream CMK Flow input module. Create Image appends its image preparation block. | |
| LoRA SDXLopt | CMK_LORA_SDXL_PIPE | Optional complete SDXL LoRA bundle from 'LoRA Stack'. | |
| LoRA ZITopt | CMK_LORA_ZIT_PIPE | Optional complete Z-Image Turbo LoRA bundle from 'LoRA Stack'. | |
| outpaint_onopt | BOOLEAN | false | — |
| mask_fill_holesopt | BOOLEAN | false | — |
| fill_masked_areaopt | COMBO | neutral | 7 options: neutral, telea, navier-stokes, original, black, white, +1 |
| process_modeopt | COMBO | Custom | Selects a guided inpaint preset; it does not perform semantic object recognition. Custom keeps the Sampler Advanced values. Replace Object discards the masked content before sampling and uses spatial inpaint guidance with the normal SDXL prompt, noise fill, denoise 1.00, noise mask ON, context reference OFF and outpaint OFF; user prompt and LoRAs remain active. Remove Object uses noise fill and full-strength Fooocus inpaint guidance. An existing prompt directs the reconstruction; without one, neutral internal background guidance is used. All LoRAs are bypassed. Extend Image uses Fit to create its outpaint canvas and mask, Navier-Stokes fill, denoise 1.00, noise mask ON and context reference ON. Guided modes override fill_masked_area. |
| resize_modeopt | COMBO | Fit | Fit preserves the complete image and masks the uncovered canvas. Crop fills the target without distortion. Stretch changes the aspect ratio. |
| crop_positionopt | COMBO | Center | Anchors the image when Fit or Crop leaves an offset on one axis. |
| outpaint_overlapopt | INT | 320–256 | Grows an active Outpaint mask inward over the source image. This overlap gives diffusion enough context to remove hard canvas seams. |
| model_familyopt | COMBO | SDXL | SDXL exposes the complete current CMK workflow. Z-Image Turbo supports Text2Image and experimental masked Inpaint. HYBRID supports Text2Image or SDXL Inpaint followed by a ZIT finish. |
| instantid_enabledopt | BOOLEAN | false | SDXL Text2Image or Inpaint. Activates module 15 and makes module 10 use the InstantID layout preset. |
| instantid_modeopt | COMBO | HYBRID | Text2Image only. HYBRID lets module 10 establish the composition; ZERO-PASS lets module 15 create it directly. Inpaint always uses the dedicated HYBRID INPAINT bridge. |
| inpaint_mask_expandopt | INT | 164–32 | Expands only the sampler's Inpaint region beyond the drawn mask edge to prevent VAE/latent boundary seams. |
| hybrid_sdxl_handoffopt | COMBO | 90% | HYBRID only. Stops SDXL at this sampling progress and hands its clean x0 prediction to ZIT. |
| hybrid_zit_denoiseopt | COMBO | 0.20 | HYBRID only. Low-strength ZIT finishing pass after the SDXL handoff. |
| unload_models_after_useopt | BOOLEAN | true | Releases generation, ControlNet and Refiner models at their last consumer. Saves memory; disabling can accelerate repeated runs. |
| HYBRID BALANCEopt | INT | 20–4 | HYBRID only. Five fixed SDXL-to-ZIT transition profiles; left preserves more SDXL, right gives ZIT more influence. |
Outputs (6)
| Name | Type | Description |
|---|---|---|
| PROCESS SDXL | CMK_PROCESS_SDXL | SDXL and HYBRID pre-pass. Continue to CMK Flow · 05 ControlNet (optional) or CMK Flow · 10 KSampler SDXL. |
| PROCESS ZIT | CMK_PROCESS_Z_IMAGE | ZIT and HYBRID finish. Continue to CMK Flow · 10 KSampler Z-Image Turbo. |
| IMAGE | IMAGE | Authoritative image; route it beside PROCESS and LOG to the next Flow module. |
| LOG | CMK_LOG_PIPE | Structured Flow log; route it beside PROCESS and IMAGE to the next Flow module. |
| VISUAL | CMK_VISUAL_PIPE | Inpaint preparation preview for the CMK Visualizer; empty in Text2Image mode. |
| diagnostic | CMK_DIAGNOSTIC | Optional diagnostic information for troubleshooting. |