ST

stable-diffusion.cpp

Stable Diffusion inference in plain C/C++

AI Image Generation ★ 7.7k stars Hard setup MIT

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.

SelfHostIndex: 93 · excellent

Markdown
[![SelfHostIndex health score for stable-diffusion.cpp](https://selfhostindex.com/badge/stable-diffusion-cpp.svg)](https://selfhostindex.com/app/stable-diffusion-cpp/)
HTML
<a href="https://selfhostindex.com/app/stable-diffusion-cpp/"><img src="https://selfhostindex.com/badge/stable-diffusion-cpp.svg" alt="SelfHostIndex health score for stable-diffusion.cpp"></a>
reStructuredText
.. image:: https://selfhostindex.com/badge/stable-diffusion-cpp.svg
   :alt: SelfHostIndex health score for stable-diffusion.cpp
   :target: https://selfhostindex.com/app/stable-diffusion-cpp/

The score is recomputed on every nightly rebuild from public repository data — see how it is calculated.

Compare stable-diffusion.cpp

7 head-to-head comparisons.

Similar ai image generation apps