stable-diffusion.cpp
by leejet
A command-line program that runs image and video generation AI models on your own computer, written in plain C/C++ with no heavy dependencies. It turns text prompts or existing pictures into new images and short videos without needing a cloud service.
- Stars
- 7.8k
- Licence
- MIT
- Runs on
- Your computer
- Setup
- Moderate
- Language
- C++
- Age
- 1172 days
What you can do with it
- Generate images from a text prompt using models such as Stable Diffusion, FLUX, Qwen Image and Z-Image
- Edit or restyle existing images, and upscale results with ESRGAN
- Create short videos with supported models such as Wan and LTX
Make money with it
A freelancer could offer custom product imagery or illustrated assets to small businesses, generated locally with no per-image fees.
An idea, not financial advice. Check the licence before charging for anything built on it.
Ways a business could use it
- Produce product mock-ups, social media graphics and blog images in-house without paying per-image subscription fees
- Generate ad concepts and short video clips for clients while keeping prompts and files private on your own hardware
Can you use it commercially?
Free to use, change and sell, including in paid products. Keep the copyright notice.
Not legal advice. Read the project's licence file before building a product on it.
Getting it running
Download a pre-built binary from the releases page (or build from source), then download model weights separately and run the sd-cli command.
Follow the official instructions in the project README.
Things to check
- Under active development; command-line options and API may change often
- Each model has its own licence, which may restrict commercial use
- Command-line only, with an embedded web UI; large models need plenty of RAM or VRAM and run slowly on CPU alone
Who's talking about it
- FindARepo: 30 Best AI Image Generator GitHub Repos (October 2026) — Open-Source & Local Featured in a roundup
Checked 28 Oct 2026. Summary drafted by AI from the project's README.