A beginner-friendly Windows package to run Z-Image Turbo (GGUF) locally with a simple Gradio Web UI.
Target users:
- Low-VRAM NVIDIA GPUs (including 4GB)
- Anyone who wants free local image generation without complex tools
- One-click installer:
start_zimage.bat - Creates an isolated Python
venvautomatically - Downloads required model weights (GGUF) automatically
- Minimal, safe UI (Prompt -> Image)
- Safety-first: does not auto-download executables (
.exe)
- Download / clone this repo.
- Put
sd.exeinsd_bin\(see instructions below). - Double-click
start_zimage.bat. - Open the UI:
- Windows 10/11 (64-bit)
- Python 3.10+
- Microsoft Visual C++ Redistributable 2015-2022 (x64)
- NVIDIA GPU users (optional)
- Latest NVIDIA driver recommended
Double-click:
start_zimage.bat
The installer will:
- Create a Python virtual environment (
venv\) - Ask you to choose a VRAM tier (4GB / 6-8GB / 10GB+)
- Download the required weights
- Launch the Gradio UI at http://127.0.0.1:9000
Keep the terminal window open while it downloads models.
This project will never download executable (.exe) files automatically.
sd.exe (or sd-cli.exe) is the Windows binary for stable-diffusion.cpp (the inference backend). You download it yourself so you can choose which release/build you trust.
Note: Recent releases use sd-cli.exe instead of sd.exe. The installer and UI will automatically detect which one you have.
Download a Windows build from the stable-diffusion.cpp Releases page.
Recommended assets (names include a commit/hash):
- NVIDIA (recommended):
sd-...-bin-win-cuda12-x64.zip - CPU only:
sd-...-bin-win-x64.zip
Inside the ZIP, you'll find the executable. Recent releases use sd-cli.exe (recommended), while older releases use sd.exe. Either will work with this project.
Install steps:
- Extract the ZIP.
- Copy the executable to one of:
sd_bin\sd-cli.exe(recommended)sd_bin\sd.exe(legacy)
- Copy any
*.dllfiles from the ZIP into the same folder:sd_bin\
Important:
- Some releases provide DLLs as a separate asset. If your ZIP contains only
sd.exe, download the matching DLL package for the same release and copy all DLLs next tosd.exe. - If upgrading from an older release: Make sure to also update the DLL files. Use the DLLs that came with your downloaded executable (e.g.,
stable-diffusion.dll). Mixing old DLLs with a new executable (or vice versa) will cause errors.
Automatic (safe, non-executable downloads):
- Z-Image Turbo GGUF (diffusion model)
- Qwen GGUF (LLM/text encoder)
Manual:
sd.exe(+ DLLs)- VAE:
models\vae\ae.safetensors- This file may require a Hugging Face login, so the installer asks you to download it manually.
Manual download sources:
- Z-Image Turbo GGUF:
- VAE (
ae.safetensors): - Qwen GGUF:
If generation fails or the executable crashes:
- Make sure you copied all DLLs that came with your executable. Use the DLLs from the same ZIP/release as your executable.
- Important: If you upgraded from an older release, make sure to also update the DLL files. Mixing old DLLs with a new executable will cause errors.
- Install Microsoft Visual C++ Redistributable 2015-2022 (x64).
- If the CUDA build fails, try the CPU build to confirm everything else works.
- Common crash code:
3221225781(0xC0000135) typically means a missing DLL/runtime dependency.
If model downloads fail in the installer but the same URL works in your browser:
- Your network (proxy/firewall/antivirus) may block programmatic downloads from Hugging Face/CDN.
- The installer prefers
curl.exe(resume + retries + progress bar). If that is unavailable, it falls back toInvoke-WebRequest. - If it still fails, use the manual download links above and place the files into the indicated
models\...folders.
This project is a Windows-friendly wrapper around the excellent stable-diffusion.cpp backend:
Z-Image weights and related resources are hosted on Hugging Face by their respective authors.