Back to directory

stable-diffusion.cpp

A pure C/C++ implementation, based on ggml, for running diffusion image, image-editing and video generation models such as Stable Diffusion, Flux, Wan and Qwen Image on the CPU or GPU with no external dependencies.

stable-diffusion.cpp

stable-diffusion.cpp is a plain C/C++ implementation for running diffusion model inference, built on ggml in the same way as llama.cpp, and is super lightweight with no external dependencies. It supports a wide range of image models (including the SD1.x, SD2.x, SDXL, SD3/3.5, FLUX, Qwen Image and Z-Image families), image-editing models, and video models such as Wan2.1/2.2, MiniMax-H3 and LTX.

Supported techniques include PhotoMaker, IP-Adapter, ControlNet with SD 1.5, ADetailer, LoRA (as in the stable-diffusion-webui project), and Latent Consistency Models, alongside memory-efficiency features for faster generation. A brand-new embedded web UI is included for interacting with the models without a separate frontend.

The project is under active development, so its API and command-line options may change frequently, and it regularly adds support for newly released diffusion models shortly after they appear.

More in Inference

See all 770
  • OpenDecision

    deepanwadhwa.github.io

    An open-source Python package that answers typed questions about application state or documents using a local natural-language-inference model, returning structured choice, score, yes/no or evidence-relation values instead of free text.

  • Lifeboat

    iterate.ai

    A local inference server that puts an OpenAI- and Anthropic-compatible API in front of open-weight language models running on hardware you control, from a laptop to a GPU cluster.

  • Claude S40

    github.com

    An unofficial Claude chat client for 2007-era Nokia Series 40 phones, built as a Java ME app plus a small Go relay server, with web search, reading mode and saved chats.