stable-diffusion.cpp
Stable Diffusion inference in plain C/C++
stable-diffusion.cpp is a lightweight C/C++ implementation of Stable Diffusion inference. It runs image generation efficiently on CPUs and GPUs without heavy Python dependencies.
Key features
- Pure C/C++ inference
- Low memory usage
- Quantization support
- No Python required
Strengths
- Released under the MIT license
- Mature project with 7.7k GitHub stars
- Written in C++
Is stable-diffusion.cpp secure?
No known vulnerabilities affect stable-diffusion.cpp's latest release (master-964-1d0a58a). OSV.dev lists 4 past advisories for the project; none of them applies to this release. No known vulnerabilities is not proof of security: it means none have been publicly catalogued.
- Most recent fixed advisory CVE-2026-47747, published 2026-06-16 (120 days ago), fixed in master-584-0a7ae07
Source: OSV.dev, checked 2026-10-14. How this is measured.
stable-diffusion.cpp replaces
Health badge
Maintain stable-diffusion.cpp? Add its health score to your README. The badge links back to this page.
Compare stable-diffusion.cpp
7 head-to-head comparisons.
Similar ai image generation apps
Stable Diffusion WebUI
AI Image GenerationPopular Gradio web UI for Stable Diffusion
Replaces Midjourney, DALL-E
ComfyUI
AI Image GenerationNode-based interface for Stable Diffusion image generation
Replaces Midjourney, DALL-E
Fooocus
AI Image GenerationSimplified Stable Diffusion image generation with minimal setup
Replaces Midjourney
LocalAI
AI Image GenerationDrop-in OpenAI-compatible API for local inference
Replaces OpenAI API, ElevenLabs
Chatbox
AI Image GenerationDesktop and web client for many AI models
Replaces ChatGPT
InvokeAI
AI Image GenerationProfessional creative engine for Stable Diffusion
Replaces Midjourney, Adobe Firefly