Skip to content
Automation
Skill

/z-image-txt2img

Build Z-Image txt2img workflows. RedCraft checkpoint, Z-Image Turbo/Base LoRAs, ControlNet, and sampler presets

From plugin
comfyui-mcp
88442 skills4 agents11 commands1 MCP

Claude Code

$ npx -y skills add artokun/comfyui-mcp --skill z-image-txt2img --agent claude-code

SKILL.md

z-image-txt2img.SKILL.md
name: z-image-txt2img
description: Build Z-Image txt2img workflows. RedCraft checkpoint, Z-Image Turbo/Base LoRAs, ControlNet, and sampler presets
globs:
  - "**/*.json"

Z-Image Text-to-Image Workflows

> **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`](../comfyui-launch-flags/SKILL.md).

Overview

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:

1. Z-Image Base (and RedCraft finetune). Full model, supports negative prompts, LoRA training, ControlNet. 10-30 steps. 2. Z-Image Turbo. DMD-distilled, 8-10 steps, no effective negative prompts (CFG baked in).

Models

RedCraft Redzimage DX1 (Installed — Combined Checkpoint)

| 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.

Z-Image Turbo (Separate Components — May Need Download)

| 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`) |

Z-Image Base (Separate Components — May Need Download)

| 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` |

Conditioning

TextEncodeZImageOmni (Built-in)

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

CLIPTextEncode (For RedCraft Checkpoint)

When using `CheckpointLoaderSimple`, standard `CLIPTextEncode` works since the checkpoint bundles the correct tokenizer:

{
  "class_type": "CLIPTextEncode",
  "inputs": { "clip": ["<checkpoint>", 1], "text": "<prompt>" }
}

Sampler Settings

RedCraft DX1

| Preset | Steps | CFG | Sampler | Scheduler | Notes | |--------|-------|-----|---------|-----------|-------| | **Distilled Fast** | 10 | 1.0 | euler | simple | Quick iteration | | **Standard** | 30 | 4.0 | euler | simple | Full quality |

Z-Image Turbo

| 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) |

Z-Image Base (Two-Stage)

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 |

Negative Prompts

RedCraft / Z-Image Base

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

Z-Image Turbo

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

Resolutions

| 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.

LoRA System

ZImageTurbo LoRAs

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 LoRAs

Use with Z-Image Turbo base model. Typical LoRA strength: 0.6 to

Read more
@artokun
Ships withcomfyui-mcp

<img src="docs/images/demo-poster.jpg" width="760" alt="The Agent panel driving ComfyUI end to end. Click to watch the demo"> The Agent panel driving ComfyUI end to end. It reads what is installed locally, wires the graph, frees VRAM, and runs the render.

88442 skills4 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
884
Star history of artokun/comfyui-mcp on GitHub, a chart by star-history.com

Other skills on comfyui-mcp.

ai-toolkit-trainer

ai-toolkit-trainer

Train custom LoRAs with ostris AI-Toolkit. Covers WAN 2.2/2.1 (people, styles, video motion) and Z-Image (Turbo & Base, low-VRAM…

@artokun@artokunInstall Skill
anima-base

anima-base

Anime/illustration text-to-image (ANIMA 1.0, ~2B Cosmos DiT). Use for anime, manga, illustrated characters; accepts Danbooru tags…

@artokun@artokunInstall Skill
anima-lora-trainer

anima-lora-trainer

Train a custom anime LoRA on the ANIMA base model with Citron's local Gradio trainer (kohya sd-scripts), <6GB VRAM,…

@artokun@artokunInstall Skill
civitai

civitai

Discover Civitai models with the BUILT-IN download_model action:"search_civitai" and install/generate them locally. Find a…

@artokun@artokunInstall Skill
color-correction

color-correction

Diagnose and fix video/image color OBJECTIVELY with the get_image (action:"analyze_color") tool (scopes/stats such as black/white…

@artokun@artokunInstall Skill
comfyui-core

comfyui-core

Core ComfyUI knowledge covering workflow format, node types, pipeline patterns, and MCP tool usage

@artokun@artokunInstall Skill

More skills from other plugins.

agent-builder

agent-builder

Load immediately after an Agent intent, before the first agent_builder_* call. Governs how you create, configure, test, and…

n8n11d209k
@n8n-io@n8n-ioInstall Skill
browser-use

browser-use

Direct browser control via CDP for web interaction: automation, scraping, testing, screenshots, and site/app work. Also covers…

@browser-use@browser-useInstall Skill
agent-browser

agent-browser

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling…

@vercel-labs-2@vercel-labs-2Install Skill
add-anydoc

add-anydoc

Add local office-document-to-Markdown conversion to NanoClaw agent containers with the pinned Firecrawl AnyDoc CLI. Use when…

@nanocoai@nanocoaiInstall Skill

Questions about z-image-txt2img.

Which coding agents can use z-image-txt2img?
z-image-txt2img installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.