LibreAI / Image / stable-diffusion.cpp
// image · leejet/stable-diffusion.cpp

stable-diffusion.cpp

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

★ 7.5k stars⑂ 849 forksMITupdated 2026-09
▦ visual — this project's README ships no embeddable screenshot,
so here's a placeholder. The guide below is complete regardless.
// project facts

Project facts

stable-diffusion.cpp is an open-source image project by leejet (leejet/stable-diffusion.cpp on GitHub). It has 7,514 GitHub stars and 849 forks, is released under the MIT license, and was last updated on GitHub on 27 September 2026.

GitHub stars
7,514
Forks
849
License
MIT
Last updated on GitHub
27 September 2026
Category
Image
Listing
Full install guide
Official site
GitHub repo
// how it works

How it works

  1. Choose the right tool

    Generation studio, upscaler, background remover, or photo library — match the tool to the task.

  2. Install it your way

    Desktop apps, Docker images, and portable builds cover most platforms; pick the simplest for your OS.

  3. Add models if needed

    Generation tools need checkpoint files; utilities like upscalers usually bundle everything.

  4. Create or organize

    Generate, enhance, or import — then export, share, or keep building your library.

// features

Why people love it

Batch processing

Run whole folders through upscalers and converters unattended.

Extensible ecosystems

Extensions, scripts, and community presets extend the popular studios far beyond stock.

Smart photo libraries

Self-hosted managers with AI tagging, face recognition, and deduplication.

Purpose-built utilities

Single-job tools (upscale, de-background, restore) that do one thing excellently.

Model freedom

Bring any compatible open checkpoint; you are never locked to one vendor's style.

Runs locally

Your images stay on your machine — important for client work and privacy.

Advertisement
// run it

Run it yourself

  1. Step 1 — Clone the repo

    Download the source and move into the project folder.

    git clone https://github.com/leejet/stable-diffusion.cpp.git
    cd stable-diffusion.cpp
  2. Step 2 — Check the README

    Every project documents its own setup; start with install requirements.

    cat README.md | head -60
  3. Step 3 — Run it

    Follow the project's launch command — Docker, pip, npm, or a binary release.

    # see README for the exact launch command
// use cases

What you can build

Advertisement
// faq

Questions, answered

Who maintains stable-diffusion.cpp?

It is an open-source project at leejet/stable-diffusion.cpp with 849 forks. Check the repo's contributors and recent commits to see how active maintenance is.

Is stable-diffusion.cpp free for commercial use?

MIT licensed — use it commercially, no strings attached.

Are they free for commercial work?

Mostly yes under MIT/Apache/GPL — but verify each license, especially for client deliverables.

Do I need a powerful GPU?

Generation benefits hugely from one; upscalers and photo managers are far lighter.

Which should I start with?

For generation: a polished studio interface. For enhancement: a dedicated upscaler. For libraries: a photo manager.

// keep exploring

Similar tools

Image

Stable-Diffusion

FLUX, Stable Diffusion, SDXL, SD3, LoRA, Fine Tuning, DreamBooth, Training, Automatic1111, Forge WebUI, SwarmUI, DeepFake, TTS, Animation, Text To Video, Tut…

★ 2.8k starsGPL-3.0
View guide →
Image

easydiffusion

An easy 1-click way to create beautiful artwork on your PC using AI, with no tech knowledge. Provides a browser UI for generating images from text prompts an…

★ 10.5k starsUnknown
View guide →
Image

flux

Black Forest Labs' official inference repo for the FLUX.1 image generation models

★ 26.0k starsApache-2.0
View guide →
Image

mmagic

MMagic — OpenMMLab's generative-AI toolbox: diffusion, text-to-image, restoration and a model zoo.

★ 7.5k starsApache-2.0
View guide →
Image

dgenerate

Scriptable command-line image and animation generator for Stable Diffusion

★ 44 starsBSD-3-Clause
View guide →
// alternatives

Alternatives in Image

The most-starred other Image projects in the LibreAI catalogue — the realistic shortlist if stable-diffusion.cpp is not the right fit.

Get stable-diffusion.cpp

Free and open — grab the source, star the repo, and start creating.