Diffusion model(SD,Flux,Wan,Qwen Image,Z-Image,...) inference in pure C/C++
⚡ Executive Summary & Quick Facts
Authoritative Sourcestable-diffusion.cpp is stable-diffusion.cpp is an open-source project written in C++: Diffusion model(SD,Flux,Wan,Qwen Image,Z-Image,...) inference in pure C/C++..
| Repository | leejet/stable-diffusion.cpp ↗ |
|---|---|
| Primary Category | ai |
| Language & Stack | C++ |
| Software License | MIT |
| Community Traction | ★ 7.8K stars · ⑂ 895 forks · #1,797 globally |
| Maintenance | ● Active (Last commit: Oct 25, 2026) · 259 open issues |
| Target Audience | Developers and engineering teams building with C++, seeking reliable, tested, and actively maintained tooling for production workloads. |
Star History
Add Live Star History & Verified Badges to README.md
Keep your repository README looking professional and dynamic. As our continuous crawler records new stars, these official SVG badges update in real time with zero maintenance.
Renders your high-resolution star trajectory chart right inside your GitHub README or project docs.
[](https://githubrepo.cloud/repo/leejet/stable-diffusion.cpp?utm_source=readme_chart)
Compact Shields-style badges for your README header. Shows real-time stars and global ranking.
[](https://githubrepo.cloud/repo/leejet/stable-diffusion.cpp?utm_source=readme_badge) [](https://githubrepo.cloud/repo/leejet/stable-diffusion.cpp?utm_source=readme_badge) [](https://githubrepo.cloud/repo/leejet/stable-diffusion.cpp?utm_source=readme_badge)
Momentum
+195
STARS · LAST 30 DAYS
7
PER DAY
#130
MOST-STARRED C++
| Window | 7 days | 30 days | 90 days |
|---|---|---|---|
| Stars gained | +49 | +195 | +630 |
| Per day | 7 | 7 | 7 |
| Forks gained | +4 | +18 | +45 |
stable-diffusion.cpp gained 195 stars in the last 30 days, about 7 a day, and now has 7.8K. It is about 3 years old and has averaged roughly 2.6K stars a year. It ranks #130 among C++ repositories and #1,797 across all languages on GitHubRepo.
Trending Record
2
DAYS ON TRENDING
#6384
BEST RANK
Oct 26, 2026
FIRST APPEARANCE
Active
STATUS TODAY
stable-diffusion.cpp has maintained a continuous presence across global trending indexes, peaking at #6384. Below is the 30-day activity profile:
💡 Overview
stable-diffusion.cpp is an open-source project written in C++: Diffusion model(SD,Flux,Wan,Qwen Image,Z-Image,...) inference in pure C/C++.
Engineered for speed, consistency, and developer ease, it solves common hurdles in ai, cplusplus, diffusion. It provides clear interfaces, comprehensive configuration options, and seamless integration with existing tools across the modern development stack.
⚡ Key Features
Optimized execution pipeline written in C++ for predictable speed.
Zero-friction configuration with comprehensive sensible defaults out of the box.
Cross-platform runtime support across Linux, macOS, and Windows environments.
Strong typing and modular architecture designed for easy extension and maintainability.
Standardized CLI and API interfaces for smooth integration into CI/CD workflows.
Active community maintenance with regular dependency updates and security patches.
📥 Installation
$ git clone https://github.com/leejet/stable-diffusion.cpp.git
cd stable-diffusion.cpp
⚙ System Requirements
Platforms
- • macOS
- • Linux
- • Windows
Runtime & Dependencies
C++20 compliant compiler (GCC 11+, Clang 13+, MSVC)
Architecture
x86_64, ARM64 (Apple Silicon & Graviton)
🧠 How It Works
stable-diffusion.cpp coordinates its core functionality through a modular C++ pipeline. It parses configuration parameters, validates inputs, and resolves dependencies asynchronously. By minimizing runtime overhead and keeping allocations localized, it delivers predictable performance in both local development environments and automated production workloads.
🎯 Production Use Cases
Autonomous AI Agents
Orchestrate intelligent workflows and tool-calling routines with stable-diffusion.cpp.
Model Inference & Prompting
Integrate fast, local or cloud-hosted generative AI models directly into production code.
Context Memory & RAG
Augment language models with dynamic vector retrieval and structured project memory.
Developer Productivity
Automate repetitive engineering tasks, code generation, and test creation using AI agents.
🚀 Getting Started
Install stable-diffusion.cpp using your package manager: `git clone https://github.com/leejet/stable-diffusion.cpp.git`
Initialize your project workspace or configuration file for stable-diffusion.cpp.
Import stable-diffusion.cpp into your codebase or invoke it directly from your terminal.
Execute your test suite or run `stable-diffusion.cpp --help` to verify successful setup.
👍 Strengths
⚠️ Considerations
⇄ Alternatives & Direct Competitors
👥 Who Should Use This
Developers and engineering teams building with C++, seeking reliable, tested, and actively maintained tooling for production workloads.
🏆 Nearby in the Rankings
leejet/stable-diffusion.cpp is currently ranked #1,797 by stars across every repository tracked on GitHubRepo. These are adjacent projects:
| Rank | Repository | Language | Stars | Action |
|---|---|---|---|---|
| #1,792 | facebook/litho | Kotlin | ★ 7.8K | Compare ↗ |
| #1,793 | logancyang/obsidian-copilot | TypeScript | ★ 7.8K | Compare ↗ |
| #1,794 | yaklang/yakit | TypeScript | ★ 7.8K | Compare ↗ |
| #1,795 | d4rken-org/sdmaid-se | Kotlin | ★ 7.8K | Compare ↗ |
| #1,796 | raycast/extensions | TypeScript | ★ 7.8K | Compare ↗ |
| #1,797 | leejet/stable-diffusion.cpp This Project | C++ | ★ 7.8K | |
| #1,798 | zsviczian/obsidian-excalidraw-plugin | TypeScript | ★ 7.8K | Compare ↗ |
| #1,799 | Dolibarr/dolibarr | PHP | ★ 7.8K | Compare ↗ |
| #1,800 | Laravel-Lang/lang | PHP | ★ 7.8K | Compare ↗ |
| #1,800 | tabulator-tables/tabulator | JavaScript | ★ 7.8K | Compare ↗ |
| #1,802 | predis/predis | PHP | ★ 7.8K | Compare ↗ |
Frequently Asked Questions
What does stable-diffusion.cpp do? +
Diffusion model(SD,Flux,Wan,Qwen Image,Z-Image,...) inference in pure C/C++
What language is stable-diffusion.cpp written in? +
The primary language is C++. Topics include: ai, cplusplus, diffusion, flux, flux-dev.
Is stable-diffusion.cpp actively maintained? +
Yes, the last recorded push was on Oct 25, 2026 with 259 open issues being tracked.
How many stars does stable-diffusion.cpp have? +
stable-diffusion.cpp has 7,790 stars and 895 forks on GitHub.
How does stable-diffusion.cpp rank among GitHub repositories? +
With 7,790 stars, leejet/stable-diffusion.cpp is ranked #1,797 globally across all repositories tracked on GitHubRepo and #130 among C++ projects.
What license is stable-diffusion.cpp distributed under? +
The repository reports a MIT license. Always verify the repository LICENSE file for legal terms.