leejet

    leejet/stable-diffusion.cpp

    Diffusion model(SD,Flux,Wan,Qwen Image,Z-Image,...) inference in pure C/C++

    7.9K stars
    938 forks
    80 GitHub watchers
    Updated Nov 6, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    5 releases in the last 90 days, the latest today, with 127 contributors on GitHub.

    The biggest single-day gain in the last year, +93 stars on Sep 25, coincided with release master-913-b167b94.

    Use Cases & Benefits

    • Implements diffusion model inference for various image and video models in pure C/C++ without external dependencies.
    • Offers a lightweight, cross-platform solution with broad model and backend support including CPU, CUDA, Vulkan, Metal, and OpenCL.
    • Use for integrating efficient, dependency-free stable diffusion image generation into embedded or resource-constrained systems.
    • Use for experimenting with multiple diffusion models like SD, Flux, Qwen Image, and Wan for research or custom AI art pipelines.
    • Use for building cross-platform AI-powered image and video generation tools with support for advanced features like LoRA and Control Net.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    MIT

    Permissive: commercial use, modification and redistribution are allowed with attribution.

    Community files

    • README: present
    • Contributing guide: present

    Watch-outs

    No watch-outs from GStars' checks.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    Diffusion model(SD,Flux,Wan,...) inference in pure C/C++

    Note that this project is under active development.
    API and command-line option may change frequently.

    Excerpt from the leejet/stable-diffusion.cpp README on GitHub (MIT license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Sep 25: +93

    +1,146 stars over 82 days across 8 snapshot days; best day +93 on Sep 25.

    Forks

    938+199

    Open issues

    271+15

    Compared with peers in AI

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 8, by 7-day star growth

    leejet/stable-diffusion.cpp compared with AI repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    D4Vinci/Scrapling101.1K+6.3K756 days ago
    thedotmack/claude-mem115.8K+4.7K75today
    heygen-com/hyperframes82.3K+4.0K75today
    harry0703/MoneyPrinterTurbo142.0K+3.8K753 days ago
    github/spec-kit149.2K+2.6K75today
    leejet/stable-diffusion.cpp7.9K—40today
    Category median115.8K+4.0K75—

    Discover Repositories

    Search across tracked repositories by name or description