Nodes/cmk_nodes/CMK Flow · 01 START HERE · Create Image
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'.

By CMKFlow·Created 3 months ago·Updated about 12 hours ago· 6
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)

NameTypeDefaultDescription
GLOBAL PROMPT POSoptSTRINGPositive prompt for the complete Flow.
PROMPT NEGoptSTRINGNegative prompt for the complete Flow.
INPAINT_MODEoptCOMBOText2ImageText2Image 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.
resolutionoptCOMBO1152x83220 options: 1024x1024, 1152x832, 832x1152, 1216x832, 832x1216, 1344x768, +14
swap_dimensionsoptBOOLEANfalse—
upscale_methodoptCOMBOlanczos4 options: lanczos, bicubic, bilinear, nearest
deviceoptCOMBOcpu3 options: cpu, mps, cuda
PROCESSoptCMK_PIPEOptional incoming PROCESS from an upstream CMK Flow input module. Create Image preserves it and applies its authoritative image settings.
IMAGEoptIMAGERequired only when INPAINT_MODE is enabled.
MASKoptMASKRequired for Inpaint except Extend Image. Extend Image generates the uncovered Fit-canvas mask and merges an optional input mask.
FILENAMEoptSTRINGRequired only when INPAINT_MODE is enabled; used by logging and project output.
LOGoptCMK_LOG_PIPEOptional incoming LOG from an upstream CMK Flow input module. Create Image appends its image preparation block.
LoRA SDXLoptCMK_LORA_SDXL_PIPEOptional complete SDXL LoRA bundle from 'LoRA Stack'.
LoRA ZIToptCMK_LORA_ZIT_PIPEOptional complete Z-Image Turbo LoRA bundle from 'LoRA Stack'.
outpaint_onoptBOOLEANfalse—
mask_fill_holesoptBOOLEANfalse—
fill_masked_areaoptCOMBOneutral7 options: neutral, telea, navier-stokes, original, black, white, +1
process_modeoptCOMBOCustomSelects 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_modeoptCOMBOFitFit preserves the complete image and masks the uncovered canvas. Crop fills the target without distortion. Stretch changes the aspect ratio.
crop_positionoptCOMBOCenterAnchors the image when Fit or Crop leaves an offset on one axis.
outpaint_overlapoptINT320–256Grows an active Outpaint mask inward over the source image. This overlap gives diffusion enough context to remove hard canvas seams.
model_familyoptCOMBOSDXLSDXL 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_enabledoptBOOLEANfalseSDXL Text2Image or Inpaint. Activates module 15 and makes module 10 use the InstantID layout preset.
instantid_modeoptCOMBOHYBRIDText2Image 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_expandoptINT164–32Expands only the sampler's Inpaint region beyond the drawn mask edge to prevent VAE/latent boundary seams.
hybrid_sdxl_handoffoptCOMBO90%HYBRID only. Stops SDXL at this sampling progress and hands its clean x0 prediction to ZIT.
hybrid_zit_denoiseoptCOMBO0.20HYBRID only. Low-strength ZIT finishing pass after the SDXL handoff.
unload_models_after_useoptBOOLEANtrueReleases generation, ControlNet and Refiner models at their last consumer. Saves memory; disabling can accelerate repeated runs.
HYBRID BALANCEoptINT20–4HYBRID only. Five fixed SDXL-to-ZIT transition profiles; left preserves more SDXL, right gives ZIT more influence.

Outputs (6)

NameTypeDescription
PROCESS SDXLCMK_PROCESS_SDXLSDXL and HYBRID pre-pass. Continue to CMK Flow · 05 ControlNet (optional) or CMK Flow · 10 KSampler SDXL.
PROCESS ZITCMK_PROCESS_Z_IMAGEZIT and HYBRID finish. Continue to CMK Flow · 10 KSampler Z-Image Turbo.
IMAGEIMAGEAuthoritative image; route it beside PROCESS and LOG to the next Flow module.
LOGCMK_LOG_PIPEStructured Flow log; route it beside PROCESS and IMAGE to the next Flow module.
VISUALCMK_VISUAL_PIPEInpaint preparation preview for the CMK Visualizer; empty in Text2Image mode.
diagnosticCMK_DIAGNOSTICOptional diagnostic information for troubleshooting.