{
 "schema_version": 1,
 "generated": "2026-10-31",
 "id": "leejet-stable-diffusion-cpp--generate-images-locally-with-one-command",
 "repo": "leejet/stable-diffusion.cpp",
 "repo_url": "https://github.com/leejet/stable-diffusion.cpp",
 "repo_slug": "leejet-stable-diffusion-cpp",
 "title": "Generate images locally with a single command",
 "page_title": "How to generate images locally with a single command with Stable Diffusion CPP",
 "summary": "Download the sd binary and a model, then make images from a text prompt with no Python setup.",
 "who": "A developer or artist who wants local image generation without installing a Python environment or a web UI.",
 "problem": "Most local image generators need a big Python install and a GPU setup that breaks easily.",
 "outcome": "A PNG generated on your own machine, with the generation settings embedded in the file.",
 "steps": [
  "Download a pre-built sd binary from the releases page, or build it from source with the build guide",
  "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\"`",
  "Check the cli doc for options such as negative prompt, sampling method and seed",
  "Open the output PNG; the generation parameters are embedded as webui-compatible text"
 ],
 "agent_prompt": "Download the latest leejet/stable-diffusion.cpp release for my OS, fetch Stable Diffusion v1.5 weights and generate 4 images of <prompt> with sd-cli, each with a different seed. Save them to <folder> and list the exact commands you ran.",
 "agents": [
  "claude-code",
  "codex",
  "cursor"
 ],
 "difficulty": "Beginner",
 "time": "20 minutes",
 "basis": "readme",
 "caveat": "The README warns that the API and command-line options change frequently, so check the cli doc for your release.",
 "category": "Content",
 "tags": [
  "Content"
 ],
 "lang": "c++",
 "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"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/leejet-stable-diffusion-cpp/generate-images-locally-with-one-command/",
 "md": "https://dedupedai.com/use-cases/leejet-stable-diffusion-cpp/generate-images-locally-with-one-command/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/leejet-stable-diffusion-cpp--generate-images-locally-with-one-command.json",
 "api_version": "v1"
}
