ZIT+ PiD T2I To 4K - Ver 20260528 [For Patreon Supporter] (Patreon)
Downloads
Content
Hey everyone! If you watched the PiD tutorial video https://www.patreon.com/posts/159460744, you saw me walk through how NVIDIA's Pixel Diffusion Decoder works inside ComfyUI.
This is the advanced workflow I was using — ready to download and plug into your own ComfyUI setup.
## What's Inside
*"ZIT+ PiD T2I To 4K - Ver 20260528"*
This is a full Z-Image Turbo + PiD pipeline that takes you from text prompt all the way to a 4K (4096px) output image in one connected workflow. Here's what it includes:
Workflow Sections
*1. Settings & Model Loading*
- Loads Z-Image Turbo model (UNET), text encoder (Qwen 3 4B), and VAE (ae.safetensors)
- PiD decoder model loaded separately with its own text encoder (Gemma 2B) and dedicated VAE
- Everything connected via Set/Get nodes so it stays clean and organized
2. LoRA Support
- Dedicated LoRA loading group (Power Lora Loader by rgthree)
- Drop in any compatible LoRA to style your generation before upscaling
- Easy bypass with the Fast Groups Bypasser if you want to run without LoRA
3. Prompt Entrance with Qwen VL
- Includes the *AILab QwenVL PromptEnhancer* node (Qwen3-VL-4B-Instruct-FP8)
- Feed it a reference image and it generates an enhanced text prompt automatically
- Or type your own prompt directly using the multiline text input
- Great for quickly turning Pinterest or reference images into detailed prompts
4. Z-Image Turbo Sampling (2-Pass)
- *Sampling 1:* First pass generates the base image at 1024x1024
- *Sampling 2:* Second pass refines the output for better quality
- Both passes share the same model/conditioning pipeline via Set/Get nodes
- Preview nodes at each stage so you can see progress
5. PiD 4K Upscaling
- Takes the latent from your Z-Image Turbo output
- *PiDConditioning* node processes it with Flux backbone, 4 steps
- Creates a new 4096x4096 latent canvas (EmptyChromaRadianceLatentImage)
- Runs through SamplerCustom with LCM scheduler, 4 steps, CFG 1
- No negative prompt needed — the distillation handles everything
6. Image Comparison
- *Two Image Comparer nodes* (rgthree) built in:
- Compare Sampling 1 vs Sampling 2 (before/after refinement)
- Compare final Z-Image output vs PiD 4K output
- Makes it easy to see exactly what PiD adds to your image
7. Save Output
- *SaveImageExtended* node saves your 4K output with timestamped filenames
- Organized prefix: `img_pi` with custom formatting
What Makes This Advanced
- *Fully connected pipeline* — no manual wiring between stages needed
- *Bypass controls* — use Fast Groups Bypasser to skip LoRA or any section
- *Reference image support* — Qwen VL prompt enhancer turns any image into a prompt
- *2-pass sampling* — gets better base results before PiD upscaling
- *Built-in comparisons* — see the difference at every stage
- *Aspect ratio flexible* — 4096px output that adapts to your input dimensions
How to Use
1. Make sure you have *ComfyUI updated to the latest version* (PiD nodes are native)
2. Download the required PiD model files from HuggingFace:
- PiD text encoder (Gemma 2B — BF16 or FP8)
- PiD diffusion model (Flux-1, 1024→4096, 4-step)
3. Place files in the correct folders as listed on the HuggingFace page
4. Load this workflow JSON into ComfyUI
5. Add your own LoRA to the LoRA group (or bypass it)
6. Type a prompt or feed a reference image to Qwen VL
7. Queue and enjoy your 4K output!
Compatible Models
- *Z-Image Turbo* (primary, tested)
- *Z-Image Base*
- *Flux-1 Dev* (shares the same VAE as Z-Image)
- Any model using Flux-1's 16-channel VAE
Required Custom Nodes
- `rgthree` nodes (Image Comparer, Fast Groups Bypasser, Power Lora Loader, Label)
- `AILab_QwenVL_PromptEnhancer` (optional — for image-to-prompt)
- `SaveImageExtended` (for timestamped output)
- Native ComfyUI PiD nodes (PiDConditioning — requires latest ComfyUI update)
Thanks for supporting the channel! If you have questions about setting this up, drop a message and I'll help out. Enjoy the 4K outputs!
— Benji