leejet/stable-diffusion.cpp

▲ 44 stars today★ 7,545⑂ 853

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

About leejet/stable-diffusion.cpp

leejet/stable-diffusion.cpp is an open-source project on GitHub, mainly written in C++. Diffusion model(SD,Flux,Wan,Qwen Image,Z-Image,...) inference in pure C/C++ It currently holds 7,545 stars and 853 forks with 265 open issues, and was last pushed on 2026-10-06 (repository created 2023-08-13).

Project Overview

Git Homed tracks it on the Image Trending board and on the AI Image Trending list, currently at rank #25 with 44 new stars today.

GitHub Repository Details

Repository leejet/stable-diffusion.cpp · default branch master · size 165183 KB · watchers 78 · source: GitHub REST API and repository README

README

stable-diffusion.cpp

https://github.com/leejet/stable-diffusion.cpp/blob/HEAD/leejet%2Fstable-diffusion.cpp | Trendshift

Diffusion model(SD,Flux,Wan,...) inference in pure C/C++

*Note that this project is under active development. \ API and command-line option may change frequently.*

🔥Important News

Features

Quick Start

Get the sd executable

Download model weights

    curl -L -O https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.safetensors
    

Generate an image with just one command

./bin/sd-cli -m ../models/v1-5-pruned-emaonly.safetensors -p "a lovely cat"

For detailed command-line arguments, check out cli doc.

Performance

If you want to improve performance or reduce VRAM/RAM usage, please refer to performance guide. For runtime and parameter backend placement, see the backend selection guide.

More Guides

Bindings

These projects wrap stable-diffusion.cpp for easier use in other languages/frameworks.

UIs

These projects use stable-diffusion.cpp as a backend for their image generation.

Contributors

Thank you to all the people who have already contributed to stable-diffusion.cpp!

Contributors

GitHub Stars & Activity

7,545Stars
853Forks
265Open issues
C++Language

GitHub Popularity

GitHub stars7,545
Forks853
Open issues265
Primary languageC++
LicenseMIT
Stars gained today44
Created2023-08-13
Last pushed2026-10-06

Trending History

Daily boardrank #25 · ▲ 44 stars

Related GitHub Projects

1

opencv / opencv

C++★ 91,143⑂ 0
→
2
→
3

dusty-nv / jetson-inference

C++★ 9,014⑂ 0
→
4

openMVG / openMVG

C++★ 6,569⑂ 0
→
5

MaaXYZ / MaaFramework

C++★ 4,978⑂ 0
→
6

xlite-dev / lite.ai.toolkit

C++★ 4,440⑂ 0
→
7
→
8

Comfy-Org / ComfyUI

Python★ 136,784⑂ 0
→

More Trending Repositories