Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Build Z-Image txt2img workflows — RedCraft checkpoint, Z-Image Turbo/Base LoRAs, ControlNet, and sampler presets
.claude/skills/artokun-z-image-txt2img/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 225% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 113% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 98% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 202% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 193% | 0% |
> Launch flag. Z-Image does not sample correctly under > --use-sage-attention (black / garbled output). Launch ComfyUI with > --use-pytorch-cross-attention for Z-Image. See > comfyui-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, so no separate loaders are needed.
| 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] CONDITIONINGWhen using CheckpointLoaderSimple, standard CLIPTextEncode works since the checkpoint bundles the correct tokenizer:
json{ "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, grainyNegative 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 to 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 to 1.0.
General aesthetic improvement LoRA:
Z-Image-Aesthetic-Base v1.safetensors (352MB)json{ "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 } }
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 schedulerjson{ "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" }} }
json{ "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 to 0.8 strength improves output quality across all Z-Image Base variantspacks/ and observed renders; not a vendor prompting guide.| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 43,423 | 23,832 | -45% | 1 | 1 | 0% | 1,401 | 4,559 | +225% | 0 | 0 | — |
case-02 | fail→pass | 24,528 | 24,928 | +2% | 1 | 1 | 0% | 3,289 | 7,000 | +113% | 0 | 0 | — |
case-03 | fail→pass | 38,667 | 15,087 | -61% | 1 | 1 | 0% | 2,865 | 5,661 | +98% | 0 | 0 | — |
case-04 | fail→pass | 27,291 | 8,808 | -68% | 1 | 1 | 0% | 1,473 | 4,455 | +202% | 0 | 0 | — |
case-05 | fail→pass | 12,986 | 7,095 | -45% | 1 | 1 | 0% | 1,405 | 4,118 | +193% | 0 | 0 | — |
case-06 | fail→pass | 9,963 | 9,191 | -8% | 1 | 1 | 0% | 1,637 | 4,289 | +162% | 0 | 0 | — |
case-07 | fail→pass | 23,691 | 7,858 | -67% | 1 | 1 | 0% | 2,287 | 4,286 | +87% | 0 | 0 | — |
case-08 | pass→pass | 18,153 | 7,398 | -59% | 1 | 1 | 0% | 1,959 | 4,016 | +105% | 0 | 0 | — |
case-09 | fail→pass | 15,543 | 9,530 | -39% | 1 | 1 | 0% | 1,649 | 4,221 | +156% | 0 | 0 | — |
case-10 | fail→pass | 17,272 | 7,089 | -59% | 1 | 1 | 0% | 1,867 | 4,109 | +120% | 0 | 0 | — |
case-11 | fail→pass | 15,822 | 8,057 | -49% | 1 | 1 | 0% | 1,771 | 4,206 | +137% | 0 | 0 | — |
case-12 | fail→pass | 16,778 | 7,278 | -57% | 1 | 1 | 0% | 1,772 | 4,139 | +134% | 0 | 0 | — |
case-13 | fail→pass | 24,537 | 7,431 | -70% | 1 | 1 | 0% | 2,367 | 4,205 | +78% | 0 | 0 | — |
case-14 | pass→pass | 14,934 | 9,031 | -40% | 1 | 1 | 0% | 1,515 | 4,455 | +194% | 0 | 0 | — |
case-15 | pass→pass | 21,160 | 18,166 | -14% | 1 | 1 | 0% | 2,404 | 5,816 | +142% | 0 | 0 | — |
case-16 | fail→pass | 15,427 | 2,068 | -87% | 1 | 1 | 0% | 1,832 | 4,135 | +126% | 0 | 0 | — |
case-17 | pass→pass | 13,910 | 8,037 | -42% | 1 | 1 | 0% | 1,161 | 4,321 | +272% | 0 | 0 | — |
case-18 | fail→pass | 21,279 | 6,797 | -68% | 1 | 1 | 0% | 2,492 | 4,840 | +94% | 0 | 0 | — |
case-19 | fail→pass | 16,473 | 7,269 | -56% | 1 | 1 | 0% | 3,071 | 4,169 | +36% | 0 | 0 | — |
case-20 | pass→pass | 17,177 | 17,052 | -1% | 1 | 1 | 0% | 2,289 | 5,937 | +159% | 0 | 0 | — |
case-21 | pass→pass | 9,693 | 15,628 | +61% | 1 | 1 | 0% | 1,630 | 5,764 | +254% | 0 | 0 | — |
case-22 | fail→fail | 11,916 | 13,613 | +14% | 1 | 1 | 0% | 2,053 | 5,236 | +155% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted, and 21 counted toward the lift figure. The other 1 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +68 percentage points is the difference between those two pass rates over the 21 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.