This commit updates the documentation for the Save Image node, providing a clearer explanation of its internal process for exporting parameters into CivitAI-compatible metadata. It also introduces new functionality allowing users to mark third-party nodes (not automatically detected by the code) with ">>C" in their title, enabling the extraction of relevant information from these unknown nodes during the export process.
ComfyUI-ZImagePowerNodes is a collection of custom nodes designed and refined specifically for the Z-Image model. They are based on some ideas and discoveries I made while developing the Amazing Z-Image Workflow.
Table of Contents
Nodes
⚡ ZSampler Turbo
- A specialized sampler designed to divide the denoising process into three stages: composition, details, and refinement. It maintains image stability between 4 and 9 steps and achieves sufficient quality and detail starting from step 7, eliminating the need for further refining or post-processing.
"ZSampler Turbo" node documentation.
⚡ Style & Prompt Encoder
- Applies a selected visual styles to the prompt and encodes them using a text-encoder model (clip). Enables generating images that follow the desired aesthetic while guiding the diffusion process.
"Style Prompt Encoder" node documentation
⚡ Style String Injector
- Seamlessly integrates a chosen style into your prompt text. It accepts a string as input and modifies it based on the selected style.
"Style String Injector" node documentation
⚡ Save Image
- Saves generated images with the option to embed CivitAI-compatible metadata, making it easy to share generation parameters through that platform.
"Save Image" node documentation.
⚡ Empty Z-Image Latent Image
- Creates an empty latent image of the appropriate size for Z-Image, selecting aspect ratio, scale, and orientation.
"Empty Z-Image Latent Image" node documentation.
💀 Photo-Style Prompt Encoder
- Deprecated, use "Style & Prompt Encoder" node.
💀 Illustration-Style Prompt Encoder
- Deprecated, use "Style & Prompt Encoder" node.
Examples
A few example workflows demonstrating basic usage of these nodes can be found in the /workflows directory.
Installation
Ensure you have the latest version of ComfyUi.
Installation via ComfyUI Manager (Recommended)
The easiest way to install the nodes is through ComfyUI-Manager:
- Open ComfyUI and click on the "Manager" button to launch the "ComfyUI Manager Menu".
- Within the ComfyUI Manager, locate and click on the "Custom Nodes Manager" button.
- In the search bar, type "Z-Image Power Nodes".
- Select the option from the search results and click the "Install" button.
- Restart ComfyUI to ensure the changes take effect.
Manual Installation
🛠️ Manual installation instructions. (expand for details)
.- Open your preferred terminal application.
- Navigate to your ComfyUI directory:
cd <your_comfyui_directory> - Move into the custom_nodes folder and clone the repository:
cd custom_nodes git clone https://github.com/martin-rizzo/ComfyUI-ZImagePowerNodes.git
Windows Portable Installation
🛠️ Windows portable installation instructions. (expand for details)
.- Go to where you unpacked ComfyUI_windows_portable,
you'll find yourrun_nvidia_gpu.batfile here, confirming the correct location. - Press CTRL + SHIFT + RightClick in an empty space and select "Open PowerShell window here".
- Clone the repository into your custom nodes folder using:
git clone https://github.com/martin-rizzo/ComfyUI-ZImagePowerNodes .\ComfyUI\custom_nodes\ComfyUI-ZImagePowerNodes
Recommended Checkpoints
GGUF Format
GGUF checkpoints tend to run slightly slower in ComfyUI. However, if you are building a complex workflow that involves other models or using heavy LLMs with ollama, GGUF files can help prevent system freezes and OOM errors during generation, especially when VRAM is limited. For simple image generation workflows, a safetensors file (though heavier) might be preferable. When working with GGUF in Z-Image, from my experience, using the Q5_K_S quantization typically offers the best balance between file size and prompt response.
Note: ComfyUI does not natively support GGUF format, so you need to install the ComfyUI-GGUF nodes.
- z_image_turbo-Q5_K_S.gguf [5.19 GB]
Local Directory:ComfyUI/models/diffusion_models/ - Qwen3-4B.i1-Q5_K_S.gguf [2.82 GB]
Local Directory:ComfyUI/models/text_encoders/ - ae.safetensors [335 MB]
Local Directory:ComfyUI/models/vae/
Safetensors Format
Safetensors files are generally larger, but ComfyUI includes several built-in optimizations to speed up generation even with limited VRAM. It's always a good idea to test the original safetensors checkpoints on your system to see how they perform. However, using safetensors in fp8 format is strongly discouraged as it can significantly reduce quality. If you have an RTX 50 series GPU based on Blackwell architecture, NVFP4 quantized safetensors could be a better choice.
- z_image_turbo_bf16.safetensors (12.3 GB)
Local Directory:ComfyUI/models/diffusion_models/ - qwen_3_4b.safetensors (8.04 GB)
Local Directory:ComfyUI/models/text_encoders/ - ae.safetensors (335 MB)
Local Directory:ComfyUI/models/vae/
License
Copyright (c) 2026 Martin Rizzo
This project is licensed under the MIT license.
See the "LICENSE" file for details.
