• Picks
  • Discover
  • Alternatives
  • About

© 2026 Willet

  • Newsletter
  • About
  • FAQ
  • Terms
  • Privacy & Cookies
Join the Discord (opens in a new tab)
leejet avatar

stable-diffusion.cpp

C/C++ inference engine for diffusion image and video models

  • AI models and runtimes
  • AI media
View on GitHub

What it is

A ggml-based runtime, in the style of llama.cpp, that runs diffusion models such as Stable Diffusion, SDXL, FLUX, Qwen Image, Z-Image, Wan and LTX video without Python dependencies. It does text-to-image, image editing, and video generation, with LoRA, ControlNet, upscaling, and GGUF quantization, on CPU, CUDA, Vulkan, Metal, OpenCL and SYCL. Developers embed it as a library or use the sd-cli command and the bundled web UI to generate images on their own hardware.

Images

Facts

Stars
7,742 GitHub stars.
7,742

Forks
884
Commits
980
Contributors
118
Language
C++
License
MIT
Last commit
Oct 20, 2026
On GitHub since
August 2023
First release
August 2023
Platforms
macOS, Windows, Linux, CLI, library
Self-hostable
No
Alternative to
Midjourney
Author
leejet
Tags
  • video-generation
  • image-generation
  • local-ai
  • model-optimization
  • gpu-computing

Last synced from GitHub on Oct 20, 2026

The 10 best overlooked open-source projects, every Monday.

Share and more

Comments

No comments yet. Start the conversation.

Similar projects

  • NVIDIA Research Projects avatar

    Sana

    Linear diffusion transformer models for fast image and video generation

    9.4k
  • Comfy Org avatar

    ComfyUI

    Node-graph interface and engine for running diffusion models locally

    140k
  • AUTOMATIC1111 avatar

    Stable Diffusion web UI

    Browser interface for generating and editing images with Stable Diffusion

    165k

What people are saying

Updated Oct 21, 2026
  • Hacker NewsStable Diffusion in C/C++Aug 19, 2023 · 303 points · 115 comments (opens Hacker News in a new tab)
  • Hacker NewsStable Diffusion in pure C/C++Aug 16, 2023 · 3 points · 0 comments (opens Hacker News in a new tab)
  • Hacker NewsStable-Diffusion.cppAug 16, 2023 · 2 points · 1 comment (opens Hacker News in a new tab)
  • Bluesky“Running Stable-Diffusion-cpp on RISC-V. On my SpacemiT K1 octa-core RISC-V CPU, it takes more than an hour to generate an image with SD1.5 with 20 iterations.”Dec 29, 2025 · 2 likes · 0 replies (opens Bluesky in a new tab)
  • Bluesky“9. Stable-diffusion.cpp Enables Pure C++ Inference LINK 10. LiquidAI Accelerates VLMs with LFM2.5-VL-DSpark LINK”Sep 25, 2026 · 0 likes · 0 replies (opens Bluesky in a new tab)
  • Bluesky“Stable Diffusion in pure C/C++”Aug 19, 2023 · 0 likes · 0 replies (opens Bluesky in a new tab)
  • Bluesky“Stable Diffusion in pure C/C++ (github.com) Main Link | HN Post”Aug 19, 2023 · 0 likes · 0 replies (opens Bluesky in a new tab)