The most powerful multiplatform Stable Diffusion client
Generate stunning AI art locally on Android & Desktop
Mine StableDiffusion is a native, offline-first AI art generation app that brings the power of Stable Diffusion models to your fingertips. Built with modern Kotlin Multiplatform technology and powered by the blazing-fast stable-diffusion.cpp engine, it delivers desktop-class performance on both Android and Desktop platforms.
- π Native Performance - C++ backend with JNI bindings for maximum speed
- π Privacy First - 100% offline, all processing happens on your device
- π¨ Modern UI - Beautiful Compose Multiplatform interface
- π± True Multiplatform - Shared codebase for Android & Desktop
- π§ Model Flexibility - Support for FLUX, SDXL, SD3, and many more
- β‘ Hardware Accelerated - Vulkan 1.2+ (Android/Linux/Windows) & Metal (macOS)
Mine StableDiffusion supports a wide range of state-of-the-art generative models:
- β FLUX.1-dev / FLUX.1-schnell - Next-gen image generation
- β FLUX.2-dev - Latest FLUX iteration
- β SDXL / SDXL-Turbo - High-quality 1024x1024 images
- β SD3 / SD3.5 - Stability AI's latest architecture
- β SD1.x / SD2.x - Classic Stable Diffusion models
- β SD-Turbo - Lightning-fast generation
- π¨ Chroma / Chroma1-Radiance - Vibrant color generation
- πΌοΈ Z-Image - Advanced image synthesis
- π§ Qwen Image - Alibaba's multimodal model
- ποΈ Ovis-Image - Vision-language model
Tip
For model-specific documentation, check the docs folder
Generate stunning images from text descriptions with various models
Input: "A serene mountain landscape at sunset, digital art"
Output: High-quality AI-generated image
- Load your own fine-tuned models
- Support for GGUF format models
- VAE and LoRA customization
- Flexible model switching
- Customizable generation parameters (steps, CFG scale, sampler)
- Multiple aspect ratios
- Seed control for reproducible results
- Batch generation support
| Platform | Status | Requirements |
|---|---|---|
| π€ Android | β Supported | Android 11+ (API 30+) |
| πͺ Windows | β Supported | Windows 10+ with Vulkan 1.2 |
| π§ Linux | β Supported | Vulkan 1.2+ drivers |
| π macOS | β Supported | Metal support required |
| π± iOS | β³ Planned | Coming soon |
Note
iOS support is under development and will be available in future releases
graph TB
A[Compose Multiplatform UI] --> B[Kotlin ViewModels]
B --> C[Koin DI]
C --> D[JNI Bridge]
D --> E[C++ Native Layer]
E --> F[stable-diffusion.cpp]
F --> G[Vulkan/Metal Backend]
- Language: Kotlin Multiplatform
- UI Framework: Compose Multiplatform
- Dependency Injection: Koin v4.1.1
- Navigation: Jetpack Navigation Compose
- Networking: Ktor 3.2.3 + Sandwich 2.1.2
- Image Loading: Coil3 v3.3.0
- Concurrency: Kotlin Coroutines
- Native Engine: stable-diffusion.cpp
- LLM Support: llama.cpp
- Android: Android 11+ device with Vulkan 1.2 support
- Desktop: Windows/Linux/macOS with compatible graphics drivers
- Development: Android Studio Ladybug or later / IntelliJ IDEA
- Visit Releases
- Download the appropriate package for your platform
- Install and launch
# Clone the repository
git clone https://github.com/Onion99/KMP-MineStableDiffusion.git
cd KMP-MineStableDiffusion
# Build for Desktop
./gradlew :composeApp:run
# Build for Android
./gradlew :composeApp:assembleDebug- Launch the app
- Load your Stable Diffusion model (GGUF format)
- Enter your text prompt
- Click generate and watch the magic happen! β¨
- π Changelog - Version history
Contributions are welcome! Whether it's:
- π Bug reports
- π‘ Feature requests
- π Documentation improvements
- π§ Code contributions
Please read our Contributing Guidelines before submitting PRs.
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
Special thanks to:
- leejet/stable-diffusion.cpp - Awesome C++ SD implementation
- ggerganov/llama.cpp - LLM inference framework
- JetBrains Compose Multiplatform - UI framework
- The entire Stable Diffusion community π
If you find this project useful:
- β Star this repository
- π Report bugs and suggest features
- π Fork and contribute
- π’ Share with others
- Issues: GitHub Issues
- Discussions: GitHub Discussions

