ZIT + PiD T2I To 4K

Generate 1024×512 images via Z-Image Turbo and upscale them to full 4096×2048 (4K) using Pixel-in-Detail (PiD) diffusion — all in a single ComfyUI workflow.

4096 × 2048  ·  ComfyUI  ·  Z-Image Turbo + PiD

Before / After Comparison

Drag the slider to compare detail levels. The Z-Image Turbo generates at 1024×512, then the PiD model upscales to full 4096×2048 — a 4x resolution increase on each axis.

Before: 1024×512 Z-Image Turbo output After: 4096×2048 PiD upscaled output
Z-Image Turbo (1024×512)
PiD 4K Upscale (4096×2048)
Z-Image Turbo Output — 1024 × 512 PiD 4K Upscale — 4096 × 2048

DIT Notes

Although this seems to look nice… my inner DIT says way too crunchy, and I’d find a way to back off some of that hard edge stuff with a lift adjustment. — DIT feedback on the 4K upscale output

Workflow Graph

The full ComfyUI node graph for the ZIT + PiD 4K upscale pipeline.

ComfyUI workflow graph screenshot

How It Works

1

Z-Image Turbo Generation

A UNETLoader loads the Z-Image Turbo model (bf16). A CLIPLoader loads Qwen 3.4B text encoder. The KSampler generates a 1024×512 latent image in 4 steps using LCM sampling.

2

VAE Encode & Second Pass

The generated image is VAE-encoded to latent space and fed into a second Z-Image Turbo instance (PiD model). This pass extracts detailed structure for the upscale target.

3

PiD 4K Upscale

A PiD (Pixel-in-Detail) Flux model (pid_flux1_1024_to_4096_4step_bf16) is loaded via a second UNETLoader. The SamplerCustom node runs the full 4-step diffusion to produce a 4096×2048 latent.

4

Decode & Compare

A Pixel Space VAE decodes the upscaled latent back to pixels. The workflow includes Image Comparer nodes for inline A/B review of the before and after results.

Technical Specs

Base ModelZ-Image Turbo (bf16) via UNETLoader
Text EncoderQwen 3.4B (lumina2)
VAEae.safetensors (Z-Image) + pixel_space (Pixel Space)
Upscale Modelpid_flux1_1024_to_4096_4step_bf16 (PiD)
Upscale MethodDiffusion-based 4x upscale (1024→4096 on long edge)
Output Resolution4096 × 2048 (4K, 16:9 aspect ratio)
SamplingLCM scheduler, 4 steps per pass, cfg=1
Custom NodesSetNode / GetNode, PiDConditioning, EmptyChromaRadianceLatentImage, ReservedVRAMSetter, Image Comparer (rgthree), Fast Groups Bypasser, AILab_QwenVL_PromptEnhancer

Download

ZIT + PiD T2I To 4K Workflow Graph-format JSON — drag into ComfyUI to load
⬇ Download Workflow