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 image LoRAs). Use when the…
Build Z-Image txt2img workflows. RedCraft checkpoint, Z-Image Turbo/Base LoRAs, ControlNet, and sampler presets
$ npx -y skills add artokun/comfyui-mcp --skill z-image-txt2img --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/z-image-txt2imgContext preview
The summary Claude sees to decide when to auto-load this skill.
Build Z-Image txt2img workflows. RedCraft checkpoint, Z-Image Turbo/Base LoRAs, ControlNet, and sampler presets
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-attention` for Z-Image. See > [`comfyui-launch-flags`](../comfyui-launch-flags/SKILL.md).
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).
| 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] 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:
Use with Z-Image Turbo base model. Typical LoRA strength: 0.6 to
This project is no longer maintained. ComfyUI now ships official agent and MCP tooling — Comfy Agent and Comfy MCP — built and supported by the Comfy-Org team with deeper integration than a community project can match.
Repo: artokun/comfyui-mcp
Train custom LoRAs with ostris AI-Toolkit. Covers WAN 2.2/2.1 (people, styles, video motion) and Z-Image (Turbo & Base, low-VRAM image LoRAs). Use when the…
Anime/illustration text-to-image (ANIMA 1.0, ~2B Cosmos DiT). Use for anime, manga, illustrated characters; accepts Danbooru tags + natural language;…
Train a custom anime LoRA on the ANIMA base model with Citron's local Gradio trainer (kohya sd-scripts), <6GB VRAM, character/style LoRAs; covers setup,…
Discover Civitai models with the BUILT-IN download_model action:"search_civitai" and install/generate them locally. Find a checkpoint/LoRA/embedding on…
Diagnose and fix video/image color OBJECTIVELY with the get_image (action:"analyze_color") tool (scopes/stats such as black/white points, contrast, saturation,…
Core ComfyUI knowledge covering workflow format, node types, pipeline patterns, and MCP tool usage