The desktop app bundles stable-diffusion.cpp — a high-performance C++ inference engine — so you can generate images entirely on your own machine without an internet connection or API key. On Apple Silicon Macs the engine uses Metal for GPU acceleration. On Linux and Windows it supports CUDA, Vulkan, and ROCm. CPU inference is also available on all platforms, though noticeably slower. Nothing is installed system-wide. The engine binary, model weights, and temporary files all live in a single app-data directory that the app manages for you.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/anil-matcha/open-generative-ai/llms.txt
Use this file to discover all available pages before exploring further.
Available Models
| Model | Type | Size | Notes |
|---|---|---|---|
| Z-Image Turbo ⚡ | Diffusion Transformer | 2.5 GB + 2.7 GB aux | 8-step turbo. Heavy on memory. |
| Z-Image Base ⚡ | Diffusion Transformer | 3.5 GB + 2.7 GB aux | 50-step high-quality. Heavy on memory. |
| Dreamshaper 8 | SD 1.5 | 2.1 GB | 20-step versatile. Lightest tested option on Mac. |
| Realistic Vision v5.1 | SD 1.5 | 2.1 GB | 25-step photorealistic. |
| Anything v5 | SD 1.5 | 2.1 GB | 20-step anime/illustration. |
| SDXL Base 1.0 | SDXL | 6.9 GB | 30-step high-res. |
Z-Image auxiliary files — both Z-Image models share two files that are downloaded once and reused:
- Qwen3-4B Text Encoder — 2.4 GB
- FLUX VAE — 335 MB
How to Use
Install the sd.cpp inference engine
Click the Install button next to the sd.cpp engine entry. The binary is auto-downloaded into the app data directory — no manual steps required.
Download a model
Select a model from the list and click Download. For either Z-Image model, the auxiliary files (Qwen3-4B + FLUX VAE) are downloaded at the same time if they are not already present on disk.
Switch to local mode in Image Studio
Open Image Studio and click the ⚡ Local toggle next to the model selector. The selector will show only the models you have downloaded locally.
Storage Location
By default, sd.cpp stores the engine binary, model weights, and temporary downloads inside Electron’s app data directory:| Platform | Default path |
|---|---|
| macOS | ~/Library/Application Support/open-generative-ai/local-ai |
| Windows | %APPDATA%\open-generative-ai\local-ai |
| Linux | ~/.config/open-generative-ai/local-ai |
OPEN_GENERATIVE_AI_LOCAL_AI_DIR environment variable before launching the app. The app will create bin/, models/, and tmp/ inside that directory. Settings → Local Models always shows the resolved model folder path.
Verifying the sd.cpp Installation
If you want to confirm sd.cpp is installed correctly and Metal is active without going through the UI, you can drivesd-cli directly from the command line. This is the same binary the app uses internally.
VRAM value should equal the model size — that confirms Metal is backing the allocation. The run produces a coherent 512×512 PNG at /tmp/sd15-test.png.
Troubleshooting
VRAM shows 0.00 MB instead of the model size
If the output line showsVRAM 0.00MB and a large RAM figure, the dylib is running in CPU-only mode. Check whether the Metal framework is linked into the shared library:
grep returns no output, Metal support is missing from the downloaded binary. Go to Settings → Local Models, uninstall the engine, and reinstall it — the app will download a fresh copy with Metal linked.
Z-Image hangs on an 8 GB M-series Mac
Z-Image Turbo and Z-Image Base together require approximately 7.4 GB of weights plus a 2.4 GB compute buffer. On a base 8 GB M-series Mac the combined memory pressure causes the system to hang. Use Dreamshaper 8, Realistic Vision v5.1, or Anything v5 (all SD 1.5, 2.1 GB each) on machines with 8 GB RAM.SD 1.5 running at ~10 s/step instead of ~1–2 s/step
On an M2 Mac, SD 1.5 with Metal should complete each diffusion step in roughly 1–2 seconds. If you are seeing ~10 s/step, the engine has fallen back to CPU. Run theotool check above to confirm Metal is linked, then reinstall the engine from Settings → Local Models.