#47 · Primary category: Inference & Local Deploy

stable-diffusion.cpp

ai cplusplus diffusion flux flux-dev ggml image-generation image2image img2img latent-diffusion ltx-video qwen-image stable-diffusion text2image txt2img videogeneration wan z-image z-image-turbo

Diffusion model(SD,Flux,Wan,Qwen Image,Z-Image,...) inference in pure C/C++

Project last updated:08/27/26

GitHub Stars

6.9K

Forks

761

Contributors

98

License

MIT

Why we included this project

stable-diffusion.cpp brings the llama.cpp approach to image and video generation: a pure C/C++ implementation on ggml with no Python runtime and no external dependencies beyond the weights themselves. It runs Stable Diffusion, FLUX, Qwen Image, Wan, and LTX checkpoints, and new models tend to land here quickly, sometimes with day-one support. That makes it a strong fit for on-device or embedded generation, and for anyone who wants to run open diffusion models from a single native binary on CPU or GPU (CUDA, Vulkan, Metal, OpenCL, SYCL). A CLI and an embedded web UI cover straightforward text-to-image and image-editing workflows, and a small server mode can expose generation over HTTP for integration into other tools. Because most checkpoints convert to GGUF and quantized weights are supported, it is also a practical route when memory or VRAM is tight.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category