[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-83863":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":9,"totalLinesOfCode":9,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":9,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":9,"rankLanguage":9,"license":9,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":21,"topics":23,"createdAt":9,"pushedAt":9,"updatedAt":43,"readmeContent":44,"aiSummary":9,"trendingCount":16,"starSnapshotCount":16,"syncStatus":45,"lastSyncTime":46,"discoverSource":47},83863,"stable-diffusion.cpp","leejet\u002Fstable-diffusion.cpp","leejet","Diffusion model(SD,Flux,Wan,Qwen Image,Z-Image,...) inference in pure C\u002FC++",null,"https:\u002F\u002Fgithub.com\u002Fleejet\u002Fstable-diffusion.cpp","C++",6222,653,72,385,0,35,39,105,39.45,false,"main",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42],"ai","cplusplus","diffusion","ggml","image-generation","latent-diffusion","stable-diffusion","text2image","txt2img","image2image","img2img","flux","flux-dev","videogeneration","wan","qwen-image","z-image","z-image-turbo","ltx-video","2026-06-12 02:04:35","\u003Cp align=\"center\">\n  \u003Cimg src=\".\u002Fassets\u002Flogo.png\" width=\"360x\">\n\u003C\u002Fp>\n\n# stable-diffusion.cpp\n\n\u003Cdiv align=\"center\">\n\u003Ca href=\"https:\u002F\u002Ftrendshift.io\u002Frepositories\u002F9714\" target=\"_blank\">\u003Cimg src=\"https:\u002F\u002Ftrendshift.io\u002Fapi\u002Fbadge\u002Frepositories\u002F9714\" alt=\"leejet%2Fstable-diffusion.cpp | Trendshift\" style=\"width: 250px; height: 55px;\" width=\"250\" height=\"55\"\u002F>\u003C\u002Fa>\n\u003C\u002Fdiv>\n\nDiffusion model(SD,Flux,Wan,...) inference in pure C\u002FC++\n\n***Note that this project is under active development. \\\nAPI and command-line option may change frequently.***\n\n## 🔥Important News\n\n* **2026\u002F06\u002F04** 🚀 stable-diffusion.cpp now supports **Ideogram4**\n* **2026\u002F05\u002F31** 🚀 stable-diffusion.cpp now supports **PiD**\n* **2026\u002F05\u002F27** 🚀 stable-diffusion.cpp now supports **Lens**\n* **2026\u002F05\u002F17** 🚀 stable-diffusion.cpp now supports **LTX-2.3**\n* **2026\u002F04\u002F11** 🚀 stable-diffusion.cpp now uses a brand-new embedded web UI.  \n* **2026\u002F01\u002F18** 🚀 stable-diffusion.cpp now supports **FLUX.2-klein**  \n* **2025\u002F12\u002F01** 🚀 stable-diffusion.cpp now supports **Z-Image**  \n* **2025\u002F11\u002F30** 🚀 stable-diffusion.cpp now supports **FLUX.2-dev**  \n* **2025\u002F10\u002F13** 🚀 stable-diffusion.cpp now supports **Qwen-Image-Edit \u002F Qwen-Image-Edit 2509**  \n* **2025\u002F10\u002F12** 🚀 stable-diffusion.cpp now supports **Qwen-Image**  \n* **2025\u002F09\u002F14** 🚀 stable-diffusion.cpp now supports **Wan2.1 Vace**  \n* **2025\u002F09\u002F06** 🚀 stable-diffusion.cpp now supports **Wan2.1 \u002F Wan2.2**  \n\n## Features\n\n- Plain C\u002FC++ implementation based on [ggml](https:\u002F\u002Fgithub.com\u002Fggml-org\u002Fggml), working in the same way as [llama.cpp](https:\u002F\u002Fgithub.com\u002Fggml-org\u002Fllama.cpp)\n- Super lightweight and without external dependencies\n- Supported models\n  - Image Models\n    - SD1.x, SD2.x, [SD-Turbo](https:\u002F\u002Fhuggingface.co\u002Fstabilityai\u002Fsd-turbo)\n    - SDXL, [SDXL-Turbo](https:\u002F\u002Fhuggingface.co\u002Fstabilityai\u002Fsdxl-turbo)\n    - [Some SD1.x and SDXL distilled models](.\u002Fdocs\u002Fdistilled_sd.md)\n    - [SD3\u002FSD3.5](.\u002Fdocs\u002Fsd3.md)\n    - [FLUX.1-dev\u002FFLUX.1-schnell](.\u002Fdocs\u002Fflux.md)\n    - [FLUX.2-dev\u002FFLUX.2-klein](.\u002Fdocs\u002Fflux2.md)\n    - [Lens](.\u002Fdocs\u002Flens.md)\n    - [Chroma](.\u002Fdocs\u002Fchroma.md)\n    - [Chroma1-Radiance](.\u002Fdocs\u002Fchroma_radiance.md)\n    - [Qwen Image](.\u002Fdocs\u002Fqwen_image.md)\n    - [PiD](.\u002Fdocs\u002Fpid.md)\n    - [LongCat Image](.\u002Fdocs\u002Flongcat_image.md)\n    - [Z-Image](.\u002Fdocs\u002Fz_image.md)\n    - [Ovis-Image](.\u002Fdocs\u002Fovis_image.md)\n    - [Anima](.\u002Fdocs\u002Fanima.md)\n    - [ERNIE-Image](.\u002Fdocs\u002Fernie_image.md)\n    - [HiDream-O1-Image](.\u002Fdocs\u002Fhidream_o1_image.md)\n    - [Ideogram4](.\u002Fdocs\u002Fideogram4.md)\n  - Image Edit Models\n    - [FLUX.1-Kontext-dev](.\u002Fdocs\u002Fkontext.md)\n    - [Qwen Image Edit series](.\u002Fdocs\u002Fqwen_image_edit.md)\n    - [LongCat Image Edit](.\u002Fdocs\u002Flongcat_image.md)\n  - Video Models\n    - [Wan2.1\u002FWan2.2](.\u002Fdocs\u002Fwan.md)\n    - [LTX-2.3](.\u002Fdocs\u002Fltx2.md)\n  - [PhotoMaker](https:\u002F\u002Fgithub.com\u002FTencentARC\u002FPhotoMaker) support.\n  - Control Net support with SD 1.5\n  - LoRA support, same as [stable-diffusion-webui](https:\u002F\u002Fgithub.com\u002FAUTOMATIC1111\u002Fstable-diffusion-webui\u002Fwiki\u002FFeatures#lora)\n  - Latent Consistency Models support (LCM\u002FLCM-LoRA)\n  - Faster and memory efficient latent decoding with [TAESD](https:\u002F\u002Fgithub.com\u002Fmadebyollin\u002Ftaesd)\n  - Upscale images generated with [ESRGAN](https:\u002F\u002Fgithub.com\u002Fxinntao\u002FReal-ESRGAN)\n- Supported backends\n  - CPU (AVX, AVX2 and AVX512 support for x86 architectures)\n  - CUDA\n  - Vulkan\n  - Metal\n  - OpenCL\n  - SYCL\n- Supported weight formats\n  - Pytorch checkpoint (`.ckpt` or `.pth` or `.pt`)\n  - Safetensors (`.safetensors`)\n  - GGUF (`.gguf`)\n- Convert mode supports converting model weights to `.gguf` or `.safetensors`\n- Supported platforms\n    - Linux\n    - Mac OS\n    - Windows\n    - Android (via Termux, [Local Diffusion](https:\u002F\u002Fgithub.com\u002Frmatif\u002FLocal-Diffusion))\n- Flash Attention for memory usage optimization\n- Negative prompt\n- [stable-diffusion-webui](https:\u002F\u002Fgithub.com\u002FAUTOMATIC1111\u002Fstable-diffusion-webui) style tokenizer (not all the features, only token weighting for now)\n- VAE tiling processing for reduce memory usage\n- Sampling method\n    - `Euler A`\n    - `Euler`\n    - `Heun`\n    - `DPM2`\n    - `DPM++ 2M`\n    - [`DPM++ 2M v2`](https:\u002F\u002Fgithub.com\u002FAUTOMATIC1111\u002Fstable-diffusion-webui\u002Fdiscussions\u002F8457)\n    - `DPM++ 2S a`\n    - `ER-SDE`\n    - [`LCM`](https:\u002F\u002Fgithub.com\u002FAUTOMATIC1111\u002Fstable-diffusion-webui\u002Fissues\u002F13952)\n- Cross-platform reproducibility\n    - `--rng cuda`, default, consistent with the `stable-diffusion-webui GPU RNG`\n    - `--rng cpu`, consistent with the `comfyui RNG`\n- Embedds generation parameters into png output as webui-compatible text string\n\n## Quick Start\n\n### Get the sd executable\n\n- Download pre-built binaries from the [releases page](https:\u002F\u002Fgithub.com\u002Fleejet\u002Fstable-diffusion.cpp\u002Freleases)\n- Or build from source by following the [build guide](.\u002Fdocs\u002Fbuild.md)\n\n### Download model weights\n\n- download weights(.ckpt or .safetensors or .gguf). For example\n    - Stable Diffusion v1.5 from https:\u002F\u002Fhuggingface.co\u002Fstable-diffusion-v1-5\u002Fstable-diffusion-v1-5 \n\n    ```sh\n    curl -L -O https:\u002F\u002Fhuggingface.co\u002Frunwayml\u002Fstable-diffusion-v1-5\u002Fresolve\u002Fmain\u002Fv1-5-pruned-emaonly.safetensors\n    ```\n\n### Generate an image with just one command\n\n```sh\n.\u002Fbin\u002Fsd-cli -m ..\u002Fmodels\u002Fv1-5-pruned-emaonly.safetensors -p \"a lovely cat\"\n```\n\n***For detailed command-line arguments, check out [cli doc](.\u002Fexamples\u002Fcli\u002FREADME.md).***\n\n## Performance\n\nIf you want to improve performance or reduce VRAM\u002FRAM usage, please refer to [performance guide](.\u002Fdocs\u002Fperformance.md).\nFor runtime and parameter backend placement, see the [backend selection guide](.\u002Fdocs\u002Fbackend.md).\n\n## More Guides\n\n- [Backend selection](.\u002Fdocs\u002Fbackend.md)\n- [SD1.x\u002FSD2.x\u002FSDXL](.\u002Fdocs\u002Fsd.md)\n- [SD3\u002FSD3.5](.\u002Fdocs\u002Fsd3.md)\n- [FLUX.1-dev\u002FFLUX.1-schnell](.\u002Fdocs\u002Fflux.md)\n- [FLUX.2-dev\u002FFLUX.2-klein](.\u002Fdocs\u002Fflux2.md)\n- [FLUX.1-Kontext-dev](.\u002Fdocs\u002Fkontext.md)\n- [Chroma](.\u002Fdocs\u002Fchroma.md)\n- [🔥Qwen Image](.\u002Fdocs\u002Fqwen_image.md)\n- [🔥Qwen Image Edit series](.\u002Fdocs\u002Fqwen_image_edit.md)\n- [🔥Wan2.1\u002FWan2.2](.\u002Fdocs\u002Fwan.md)\n- [🔥LTX-2.3](.\u002Fdocs\u002Fltx2.md)\n- [🔥Z-Image](.\u002Fdocs\u002Fz_image.md)\n- [Ovis-Image](.\u002Fdocs\u002Fovis_image.md)\n- [Anima](.\u002Fdocs\u002Fanima.md)\n- [ERNIE-Image](.\u002Fdocs\u002Fernie_image.md)\n- [HiDream-O1-Image](.\u002Fdocs\u002Fhidream_o1_image.md)\n- [Lens](.\u002Fdocs\u002Flens.md)\n- [LongCat Image \u002F LongCat Image Edit](.\u002Fdocs\u002Flongcat_image.md)\n- [LoRA](.\u002Fdocs\u002Flora.md)\n- [LCM\u002FLCM-LoRA](.\u002Fdocs\u002Flcm.md)\n- [Using PhotoMaker to personalize image generation](.\u002Fdocs\u002Fphoto_maker.md)\n- [Using ESRGAN to upscale results](.\u002Fdocs\u002Fesrgan.md)\n- [Using TAESD to faster decoding](.\u002Fdocs\u002Ftaesd.md)\n- [Docker](.\u002Fdocs\u002Fdocker.md)\n- [Quantization and GGUF](.\u002Fdocs\u002Fquantization_and_gguf.md)\n- [Inference acceleration via caching](.\u002Fdocs\u002Fcaching.md)\n\n## Bindings\n\nThese projects wrap `stable-diffusion.cpp` for easier use in other languages\u002Fframeworks.\n\n* Golang (non-cgo): [seasonjs\u002Fstable-diffusion](https:\u002F\u002Fgithub.com\u002Fseasonjs\u002Fstable-diffusion)\n* Golang (cgo): [Binozo\u002FGoStableDiffusion](https:\u002F\u002Fgithub.com\u002FBinozo\u002FGoStableDiffusion)\n* Golang (non-cgo): [l8bloom\u002Fgosd](https:\u002F\u002Fgithub.com\u002Fl8bloom\u002Fgosd)\n* C#: [DarthAffe\u002FStableDiffusion.NET](https:\u002F\u002Fgithub.com\u002FDarthAffe\u002FStableDiffusion.NET)\n* Python: [william-murray1204\u002Fstable-diffusion-cpp-python](https:\u002F\u002Fgithub.com\u002Fwilliam-murray1204\u002Fstable-diffusion-cpp-python)\n* Rust: [newfla\u002Fdiffusion-rs](https:\u002F\u002Fgithub.com\u002Fnewfla\u002Fdiffusion-rs)\n* Flutter\u002FDart: [rmatif\u002FLocal-Diffusion](https:\u002F\u002Fgithub.com\u002Frmatif\u002FLocal-Diffusion)\n\n## UIs\n\nThese projects use `stable-diffusion.cpp` as a backend for their image generation.\n\n- [Jellybox](https:\u002F\u002Fjellybox.com)\n- [Stable Diffusion GUI](https:\u002F\u002Fgithub.com\u002Ffszontagh\u002Fsd.cpp.gui.wx)\n- [Stable Diffusion CLI-GUI](https:\u002F\u002Fgithub.com\u002Fpiallai\u002Fstable-diffusion.cpp)\n- [Local Diffusion](https:\u002F\u002Fgithub.com\u002Frmatif\u002FLocal-Diffusion)\n- [sd.cpp-webui](https:\u002F\u002Fgithub.com\u002Fdaniandtheweb\u002Fsd.cpp-webui)\n- [LocalAI](https:\u002F\u002Fgithub.com\u002Fmudler\u002FLocalAI)\n- [Neural-Pixel](https:\u002F\u002Fgithub.com\u002FLuiz-Alcantara\u002FNeural-Pixel)\n- [KoboldCpp](https:\u002F\u002Fgithub.com\u002FLostRuins\u002Fkoboldcpp)\n\n## Contributors\n\nThank you to all the people who have already contributed to stable-diffusion.cpp!\n\n[![Contributors](https:\u002F\u002Fcontrib.rocks\u002Fimage?repo=leejet\u002Fstable-diffusion.cpp)](https:\u002F\u002Fgithub.com\u002Fleejet\u002Fstable-diffusion.cpp\u002Fgraphs\u002Fcontributors)\n\n## Star History\n\n[![Star History Chart](https:\u002F\u002Fapi.star-history.com\u002Fsvg?repos=leejet\u002Fstable-diffusion.cpp&type=Date)](https:\u002F\u002Fstar-history.com\u002F#leejet\u002Fstable-diffusion.cpp&Date)\n\n## References\n\n- [ggml](https:\u002F\u002Fgithub.com\u002Fggml-org\u002Fggml)\n- [diffusers](https:\u002F\u002Fgithub.com\u002Fhuggingface\u002Fdiffusers)\n- [stable-diffusion](https:\u002F\u002Fgithub.com\u002FCompVis\u002Fstable-diffusion)\n- [sd3-ref](https:\u002F\u002Fgithub.com\u002FStability-AI\u002Fsd3-ref)\n- [stable-diffusion-stability-ai](https:\u002F\u002Fgithub.com\u002FStability-AI\u002Fstablediffusion)\n- [stable-diffusion-webui](https:\u002F\u002Fgithub.com\u002FAUTOMATIC1111\u002Fstable-diffusion-webui)\n- [ComfyUI](https:\u002F\u002Fgithub.com\u002Fcomfyanonymous\u002FComfyUI)\n- [k-diffusion](https:\u002F\u002Fgithub.com\u002Fcrowsonkb\u002Fk-diffusion)\n- [latent-consistency-model](https:\u002F\u002Fgithub.com\u002Fluosiallen\u002Flatent-consistency-model)\n- [generative-models](https:\u002F\u002Fgithub.com\u002FStability-AI\u002Fgenerative-models\u002F)\n- [PhotoMaker](https:\u002F\u002Fgithub.com\u002FTencentARC\u002FPhotoMaker)\n- [Wan2.1](https:\u002F\u002Fgithub.com\u002FWan-Video\u002FWan2.1)\n- [Wan2.2](https:\u002F\u002Fgithub.com\u002FWan-Video\u002FWan2.2)\n",2,"2026-06-11 04:11:41","trending"]