원클릭으로
z-image-txt2img
Build Z-Image txt2img workflows — RedCraft checkpoint, Z-Image Turbo/Base LoRAs, ControlNet, and sampler presets
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Build Z-Image txt2img workflows — RedCraft checkpoint, Z-Image Turbo/Base LoRAs, ControlNet, and sampler presets
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Drive the LTX Director (Timeline) node — its Add Image/Text/Audio buttons are DOM-only and cannot be clicked by an agent; edit the hidden timeline_data JSON widget instead. Load when a workflow contains LTXDirector / LTXDirectorGuide / PromptRelayEncodeTimeline, or when asked to add, move, retime, or remove timeline segments (image / text / audio / motion).
Train a character/identity LoRA locally on FLUX.1-dev via the comfyui-mcp train_* tools (GPU Docker + ostris ai-toolkit). Use when the user wants to train a LoRA of a person/character from their photos on the local GPU — covers dataset prep, launch, monitoring, and using the result in ComfyUI. For WAN/Z-Image training via the ai-toolkit UI see ai-toolkit-trainer.
Core ComfyUI knowledge — workflow format, node types, pipeline patterns, and MCP tool usage
Discover Civitai models with the BUILT-IN search_civitai_models tool and install/generate them locally — find a checkpoint/LoRA/embedding on Civitai, download it into ComfyUI, and use its trigger words. Optionally pair the official Civitai MCP for community features (images browsing, posting, collections).
Run the ComfyUI agent locally for FREE — no subscription, no API key, fully offline — using our gemma4 models fine-tuned on the comfyui-mcp tool suite via Ollama. Use when the user asks about running locally, running for free, offline use, avoiding API costs, Ollama setup, or which local model to pick.
Debug a WRONG or imperfect render (not a hard error) by inspecting inputs and intermediate steps with run-to-node — render one branch up to an output, preview-tap latents/masks/preprocessor maps, localize the first bad stage, then fix. Use when a final image/video comes out wrong — artifacts, wrong subject/pose/composition/color, blur, a ControlNet/IPAdapter/mask/LoRA not taking, a two-stage refiner or upscale degrading the result — rather than the run failing with an error (for errors/OOM/missing nodes use the troubleshooting skill).
| name | z-image-txt2img |
| description | Build Z-Image txt2img workflows — RedCraft checkpoint, Z-Image Turbo/Base LoRAs, ControlNet, and sampler presets |
| globs | ["**/*.json"] |
⚠️ Launch flag: Z-Image does not sample correctly under
--use-sage-attention(black / garbled output). Launch ComfyUI with--use-pytorch-cross-attentionfor Z-Image. Seecomfyui-launch-flags.
Z-Image is a 6B-parameter image generation model from Alibaba's Tongyi Lab using a Scalable Single-Stream DiT (S3-DiT) architecture. It uses a Qwen text encoder (not CLIP-L/T5). Its VAE shares the Flux VAE architecture (same tensor shapes, so the file is the same 320MB size) but ships different weights — it is NOT byte-identical to Flux's ae.safetensors and must be kept as a separate file (z-image-ae.safetensors) to avoid clobbering the Flux VAE. Two variants:
| Component | Node | Model | Notes |
|---|---|---|---|
| Checkpoint | CheckpointLoaderSimple | redcraftRedzimageUpdatedJAN30_redzibDX1.safetensors | 17GB, bundles UNET+CLIP+VAE |
RedCraft is a Z-Image Base finetune by the RedCraft team. Designed for faster inference than stock Z-Image Base. Uses CheckpointLoaderSimple since it's a combined checkpoint — no need for separate loaders.
| Component | Node | Model | Notes |
|---|---|---|---|
| UNET | UNETLoader | z_image_turbo_bf16.safetensors | Not currently installed |
| CLIP | CLIPLoader (type=qwen_image) | qwen_3_4b.safetensors | Not currently installed |
| VAE | VAELoader | z-image-ae.safetensors | 320MB. Flux VAE architecture but different weights — NOT the same file as Flux's ae.safetensors. From Comfy-Org/z_image_turbo (split_files/vae/ae.safetensors) |
| Component | Node | Model | Notes |
|---|---|---|---|
| UNET | UNETLoader | z_image_base_bf16.safetensors | Not currently installed |
| CLIP | CLIPLoader (type=qwen_image) | qwen_3_4b.safetensors | Not currently installed |
| VAE | VAELoader | z-image-ae.safetensors | 320MB. Flux VAE architecture but different weights — NOT the same file as Flux's ae.safetensors |
For Z-Image separate component loading. Supports reference images via CLIP Vision:
Required Inputs:
- clip: CLIP
- prompt: STRING (multiline)
- auto_resize_images: BOOLEAN (default true)
Optional Inputs:
- image_encoder: CLIP_VISION (for reference images)
- vae: VAE
- image1-3: IMAGE (up to 3 reference images)
Outputs:
[0] CONDITIONING
When using CheckpointLoaderSimple, standard CLIPTextEncode works since the checkpoint bundles the correct tokenizer:
{
"class_type": "CLIPTextEncode",
"inputs": { "clip": ["<checkpoint>", 1], "text": "<prompt>" }
}
| Preset | Steps | CFG | Sampler | Scheduler | Notes |
|---|---|---|---|---|---|
| Distilled Fast | 10 | 1.0 | euler | simple | Quick iteration |
| Standard | 30 | 4.0 | euler | simple | Full quality |
| Preset | Steps | CFG | Sampler | Scheduler | Notes |
|---|---|---|---|---|---|
| Author recommended | 14 | 1.0 | res_2s | simple | CopaxTimeless author pick |
| Beauty/fashion | 10 | 1.0 | euler_ancestral | beta | Smooth skin, fashion photography |
| Sharpest | 10 | 1.0 | dpmpp_sde | beta | Sharpest, most natural (560-image test) |
Stage 1 — Primary generation:
| Parameter | Value |
|---|---|
| Steps | 22 |
| CFG | 4.0 (range 4–7) |
| Sampler | res_2s |
| Scheduler | beta |
| Denoise | 1.0 |
Stage 2 — Detail refinement (optional img2img pass):
| Parameter | Value |
|---|---|
| Steps | 3 |
| CFG | 4.0 |
| Sampler | res_2s |
| Scheduler | normal |
| Denoise | 0.15 |
Supports negative prompts at CFG > 1.0:
3D, ai generated, semi realistic, illustrated, drawing, comic, digital painting, 3D model, blender, video game screenshot, screenshot, render, high-fidelity, smooth textures, CGI, masterpiece, text, writing, subtitle, watermark, logo, blurry, low quality, jpeg, artifacts, grainy
Negative prompts are not effective — CFG is baked in via distillation. Use the positive prompt to guide away from unwanted elements instead.
Recommended positive-side avoidance template:
over-smooth skin, plastic skin, doll face, anime, CGI, waxy texture, blurry face, fake pores, exaggerated makeup, over-sharpening, unrealistic symmetry, flat lighting, low detail skin, extra fingers, distorted anatomy
| Aspect | Resolution | Notes |
|---|---|---|
| Square | 1024x1024 | Standard |
| Square (native) | 1328x1328 | Higher quality at native resolution |
| Portrait 3:4 | 896x1152 | |
| Portrait 5:8 | 832x1216 | |
| Portrait 9:16 | 768x1344 | |
| Landscape 16:9 | 1280x720 |
Dimensions must be divisible by 16.
Located in loras/ZImageTurbo/ with subfolders:
style/ — Style LoRAs (e.g., TurboPussyZ_v2.safetensors)concept/ — Concept LoRAs (e.g., body from below.safetensors, ZITnsfwLoRA.safetensors)character/ — Character LoRAs (e.g., NSFW_master_ZIT_000008766.safetensors)action/ — Action LoRAsUse with Z-Image Turbo base model. Typical LoRA strength: 0.6–1.0.
Located in loras/ZImageBase/ with subfolders:
style/ — Style LoRAs (e.g., NSGIRL-Z-Image-LoRA-By-MM744.safetensors)concept/ — Concept LoRAsUse with Z-Image Base or RedCraft. Typical LoRA strength: 0.6–1.0.
General aesthetic improvement LoRA:
Z-Image-Aesthetic-Base v1.safetensors (352MB){
"class_type": "LoraLoader",
"inputs": {
"model": ["<checkpoint_or_unet>", 0],
"clip": ["<checkpoint_or_clip>", 1],
"lora_name": "ZImageTurbo\\style\\TurboPussyZ_v2.safetensors",
"strength_model": 0.8,
"strength_clip": 0.8
}
}
Note: When using CheckpointLoaderSimple for RedCraft, model output is index 0 and CLIP output is index 1. When stacking multiple LoRAs, chain them sequentially.
Experimental built-in node for Z-Image ControlNet. Patches the model with a control signal:
Required Inputs:
- model: MODEL
- model_patch: MODEL_PATCH (from ControlNet loader)
- vae: VAE
- strength: FLOAT (default 1.0, range -10 to 10)
Optional Inputs:
- image: IMAGE (reference/control image)
- inpaint_image: IMAGE
- mask: MASK
Outputs:
[0] MODEL (patched)
A unified ControlNet supporting multiple condition types:
res_2s, res_5s, or res_2m samplers + beta57 scheduler{
"1": { "class_type": "CheckpointLoaderSimple", "inputs": { "ckpt_name": "redcraftRedzimageUpdatedJAN30_redzibDX1.safetensors" }},
"2": { "class_type": "CLIPTextEncode", "inputs": { "clip": ["1", 1], "text": "<positive prompt>" }, "_meta": { "title": "Positive" }},
"3": { "class_type": "CLIPTextEncode", "inputs": { "clip": ["1", 1], "text": "" }, "_meta": { "title": "Negative" }},
"4": { "class_type": "EmptyLatentImage", "inputs": { "width": 1024, "height": 1024, "batch_size": 1 }},
"5": { "class_type": "KSampler", "inputs": {
"model": ["1", 0],
"positive": ["2", 0],
"negative": ["3", 0],
"latent_image": ["4", 0],
"seed": 42, "steps": 10, "cfg": 1, "sampler_name": "euler", "scheduler": "simple", "denoise": 1
}},
"6": { "class_type": "VAEDecode", "inputs": { "samples": ["5", 0], "vae": ["1", 2] }},
"7": { "class_type": "SaveImage", "inputs": { "images": ["6", 0], "filename_prefix": "redcraft" }}
}
{
"1": { "class_type": "CheckpointLoaderSimple", "inputs": { "ckpt_name": "redcraftRedzimageUpdatedJAN30_redzibDX1.safetensors" }},
"2": { "class_type": "LoraLoader", "inputs": {
"model": ["1", 0], "clip": ["1", 1],
"lora_name": "Z-Image-Aesthetic-Base v1.safetensors",
"strength_model": 0.8, "strength_clip": 0.8
}},
"3": { "class_type": "LoraLoader", "inputs": {
"model": ["2", 0], "clip": ["2", 1],
"lora_name": "ZImageBase\\style\\NSGIRL-Z-Image-LoRA-By-MM744.safetensors",
"strength_model": 0.7, "strength_clip": 0.7
}},
"4": { "class_type": "CLIPTextEncode", "inputs": { "clip": ["3", 1], "text": "<positive prompt>" }},
"5": { "class_type": "CLIPTextEncode", "inputs": { "clip": ["3", 1], "text": "<negative prompt>" }},
"6": { "class_type": "EmptyLatentImage", "inputs": { "width": 896, "height": 1152, "batch_size": 1 }},
"7": { "class_type": "KSampler", "inputs": {
"model": ["3", 0],
"positive": ["4", 0],
"negative": ["5", 0],
"latent_image": ["6", 0],
"seed": 42, "steps": 30, "cfg": 4, "sampler_name": "euler", "scheduler": "simple", "denoise": 1
}},
"8": { "class_type": "VAEDecode", "inputs": { "samples": ["7", 0], "vae": ["1", 2] }},
"9": { "class_type": "SaveImage", "inputs": { "images": ["8", 0], "filename_prefix": "redcraft_lora" }}
}
Natural language descriptions work best (uses Qwen LLM tokenizer, not CLIP):
Good: "Professional headshot of a confident businesswoman in her 30s, natural makeup, soft studio lighting, neutral gray background, sharp focus on eyes, Canon EOS R5"
Bad: "masterpiece, best quality, 1girl, businesswoman, studio"
| Config | VRAM | Notes |
|---|---|---|
| RedCraft DX1 checkpoint | ~17GB | Fits comfortably on RTX 4090 |
| Z-Image Turbo separate | ~8GB UNET + CLIP | Very lightweight |
| Z-Image Base separate | ~12GB |
clear_vram before switching to Z-Image from another model familydpmpp_sde + beta schedulerZ-Image-Aesthetic-Base v1 LoRA at 0.6–0.8 strength noticeably improves output quality across all Z-Image Base variants