#77th of 30 in Image and video

stable-diffusion.cpp

C/C++ inference for Stable Diffusion, Flux, Qwen-Image and Wan video models

Stars
7.7k
License
MIT
Last commit
Oct 2026
Last release
Oct 2026
Language
C++
Stars, last 29 weeks+2,174
1 Apr 2026: 5,574 stars8 Apr 2026: 5,627 stars15 Apr 2026: 5,669 stars22 Apr 2026: 5,732 stars29 Apr 2026: 5,795 stars6 May 2026: 5,865 stars13 May 2026: 5,924 stars20 May 2026: 5,987 stars27 May 2026: 6,035 stars3 Jun 2026: 6,090 stars10 Jun 2026: 6,160 stars17 Jun 2026: 6,234 stars24 Jun 2026: 6,290 stars1 Jul 2026: 6,362 stars8 Jul 2026: 6,415 stars15 Jul 2026: 6,474 stars22 Jul 2026: 6,524 stars29 Jul 2026: 6,560 stars5 Aug 2026: 6,615 stars12 Aug 2026: 6,685 stars19 Aug 2026: 6,752 stars26 Aug 2026: 6,814 stars2 Sept 2026: 6,874 stars9 Sept 2026: 6,927 stars16 Sept 2026: 6,975 stars23 Sept 2026: 7,111 stars30 Sept 2026: 7,462 stars7 Oct 2026: 7,544 stars14 Oct 2026: 7,674 stars21 Oct 2026: 7,748 stars

5,574 on 1 Apr 20267,748 on 21 Oct 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

Runs diffusion models for image and video generation in plain C/C++ on top of ggml, the same way llama.cpp does for LLMs. It loads ckpt, safetensors and GGUF weights and runs on CPU, CUDA, Vulkan, Metal, OpenCL or SYCL. The main interface is the sd-cli command-line tool, and the README mentions an embedded web UI.

Who it is for: Developers and self-hosters running diffusion models locally without Python

Ranked among open-source alternatives to Midjourney (#7 of 10).

Strengths

  • Backends: CPU (AVX/AVX2/AVX512), CUDA, Vulkan, Metal, OpenCL and SYCL
  • Covers SD1.x to SDXL, SD3, FLUX, Qwen-Image, Z-Image, plus Wan and LTX video
  • Reads .ckpt, .safetensors and .gguf; convert mode writes .gguf or .safetensors
  • Flash attention, VAE tiling and TAESD cut memory use; bindings for Go, C#, Python, Rust

Weaknesses

  • README warns API and command-line options may change frequently
  • ControlNet support is stated only for SD 1.5
  • Shorter sampler list than stable-diffusion-webui
  • No node-graph UI in the README; separate projects supply GUIs

What it needs

  • GPU optional
  • Docker
  • Models: SD1.x, SD2.x, SDXL, SD3/SD3.5, FLUX.1

Also in Image and video

See all 30
Also in Image and video
RankProjectScore
1MoneyPrinterTurboTurns a topic into a short video with script, footage, voiceover and subtitles133.8k starsMIT76 out of 100
2ComfyUINode-graph editor for running diffusion image, video, audio and 3D workflows141.5k starsGPL-3.075 out of 100
3toonflow-appInfinite-canvas tool for AI short drama and comic video production18.8k starsMIT72 out of 100
#4InvokeAIWeb UI for diffusion image generation with inpainting canvas and node workflows28.8k starsApache-2.068 out of 100
#5infinite-canvasBrowser-based infinite canvas for AI image and video generation7.8k starsMIT66 out of 100