DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to use Stable Diffusion CPP: what you can do with it

What is Stable Diffusion CPP? stable-diffusion.cpp runs diffusion models for images and video in pure C/C++ on top of ggml, the same way llama.cpp runs language models. It supports SD 1.x, SDXL, SD3, FLUX, Qwen Image, Z-Image, Wan and LTX video and many more, with CPU, CUDA, Vulkan, Metal, OpenCL and SYCL backends, GGUF weights, LoRA, ControlNet and ESRGAN upscaling.

How do I use it? Download a pre-built sd binary from the releases page, or build it from source with the build guide; then download weights, for example curl -L -O https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.safetensors; generate an image: ./bin/sd-cli -m ../models/v1-5-pruned-emaonly.safetensors -p "a lovely cat". Full steps below.

Trended earlier

View repo on GitHub

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer

3 use cases

Quick start with Stable Diffusion CPP

  1. Check you have what it needs: The sd executable from the releases page, or a build from source following the build guide; Model weights in .ckpt, .safetensors or .gguf format; Linux, macOS or Windows; Android works through Termux.
  2. Open leejet/stable-diffusion.cpp on GitHub and read the README and license.
  3. Download a pre-built sd binary from the releases page, or build it from source with the build guide
  4. Download weights, for example curl -L -O https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.safetensors
  5. Generate an image: ./bin/sd-cli -m ../models/v1-5-pruned-emaonly.safetensors -p "a lovely cat"
  6. Check the cli doc for options such as negative prompt, sampling method and seed

These steps come from our top use case, Generate images locally with a single command, which also has a copy-paste agent prompt.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for leejet/stable-diffusion.cpp

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Best AI repos for Content

About this repo

Requirements

  • The sd executable from the releases page, or a build from source following the build guide
  • Model weights in .ckpt, .safetensors or .gguf format
  • Linux, macOS or Windows; Android works through Termux
  • Enough RAM or VRAM for the model; the performance guide covers reducing it

Add this badge to your README

Maintain Stable Diffusion CPP? Show readers where to find these use cases. Use cases on Deduped

Markdown

[![Use cases on Deduped](https://dedupedai.com/badge/leejet/stable-diffusion.cpp.svg)](https://dedupedai.com/use-cases/leejet-stable-diffusion-cpp/?utm_source=github&utm_medium=badge&utm_campaign=leejet-stable-diffusion.cpp)

HTML

<a href="https://dedupedai.com/use-cases/leejet-stable-diffusion-cpp/?utm_source=github&amp;utm_medium=badge&amp;utm_campaign=leejet-stable-diffusion.cpp"><img src="https://dedupedai.com/badge/leejet/stable-diffusion.cpp.svg" alt="Use cases on Deduped" height="20"></a>

A static image, no tracking script. About the badge

Questions about Stable Diffusion CPP

What is Stable Diffusion CPP?

stable-diffusion.cpp runs diffusion models for images and video in pure C/C++ on top of ggml, the same way llama.cpp runs language models. It supports SD 1.x, SDXL, SD3, FLUX, Qwen Image, Z-Image, Wan and LTX video and many more, with CPU, CUDA, Vulkan, Metal, OpenCL and SYCL backends, GGUF weights, LoRA, ControlNet and ESRGAN upscaling. It is an open-source project on GitHub: https://github.com/leejet/stable-diffusion.cpp.

How do I use Stable Diffusion CPP?

Download a pre-built sd binary from the releases page, or build it from source with the build guide; then download weights, for example curl -L -O https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.safetensors; generate an image: ./bin/sd-cli -m ../models/v1-5-pruned-emaonly.safetensors -p "a lovely cat". The use cases on this page give the full steps and a copy-paste agent prompt for each job.

Who is Stable Diffusion CPP for?

Developers and tinkerers who want local image and video generation without a Python stack or a heavy web UI.

What can I do with Stable Diffusion CPP?

3 use cases so far, for example: Generate images locally with a single command; Run FLUX or Qwen Image on modest hardware with GGUF; Add local image generation to your own app. Each has steps and a copy-paste agent prompt.

What do I need to run Stable Diffusion CPP?

The sd executable from the releases page, or a build from source following the build guide; Model weights in .ckpt, .safetensors or .gguf format; Linux, macOS or Windows; Android works through Termux; Enough RAM or VRAM for the model; the performance guide covers reducing it.

What are alternatives to Stable Diffusion CPP?

Other hot AI repos in Content: Voice Studio, Impeccable, Taste Skill, Kokoro, Chatterbox.

Is Stable Diffusion CPP safe to run?

Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.