ComfyUI Extension: SKIT_ComfyUI-ZImage-Generate
Run ComfyUI workflows without the setup
No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.
A ComfyUI custom node for generating images with Z-Image through Hugging Face Diffusers with configurable model selection and generation parameters.
README
ComfyUI Z-Image Generate
A single ComfyUI custom node for generating images with Z-Image through Hugging Face Diffusers.
Node
Z-Image Generate
Inputs:
prompt: text promptnegative_prompt: optional negative promptmodel_id: Hugging Face model id, defaultTongyi-MAI/Z-Imagewidth,height: output image sizesteps: diffusion stepsguidance_scale: prompt guidance strengthseed: deterministic seeddtype:auto,bfloat16,float16, orfloat32clear_cache: unload the cached pipeline after generation
Output:
IMAGE
Install
Clone this repository into your ComfyUI custom nodes folder:
cd ComfyUI/custom_nodes
git clone https://github.com/YOUR_USERNAME/ComfyUI-ZImage-Generate.git
Install dependencies in the same Python environment that runs ComfyUI:
pip install -r ComfyUI-ZImage-Generate/requirements.txt
Then restart ComfyUI.
Model Download
On the first run, Diffusers downloads the model from Hugging Face. Large models can take time and disk space.
The default model id is:
Tongyi-MAI/Z-Image
You can also try another compatible Z-Image model id in the node's model_id field.
Notes
- CUDA is used automatically when available.
autodtype usesbfloat16on CUDA andfloat32on CPU.- This node keeps one pipeline cached for faster repeated generations.
- Enable
clear_cacheif you want to release VRAM after a generation.
Repository Structure
ComfyUI-ZImage-Generate/
|-- __init__.py
|-- nodes.py
|-- requirements.txt
|-- README.md
`-- .gitignore
Run ComfyUI workflows without the setup
No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.