Skip to content

🎨 Multiplatform AI image generation app powered by Stable Diffusion β€’ Built with Kotlin Multiplatform & Compose β€’ Supports SDXL, FLUX, SD3 & more β€’ Native performance via C++/JNI β€’ Android & Desktop ready

License

Notifications You must be signed in to change notification settings

Onion99/KMP-MineStableDiffusion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Mine StableDiffusion logo

Mine StableDiffusion 🎨

The most powerful multiplatform Stable Diffusion client
Generate stunning AI art locally on Android & Desktop

Kotlin Platforms Release GitHub stars

Compose Multiplatform Koin Vulkan Metal

App preview

✨ What is Mine StableDiffusion?

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.

🎯 Why Choose This App?

  • πŸš€ 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)

πŸ“Έ Screenshots

πŸ€– Android πŸ’» Desktop
Android Demo Desktop Demo

🎲 Supported Models

Mine StableDiffusion supports a wide range of state-of-the-art generative models:

πŸ”₯ Popular 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

🌈 Specialized Models

  • 🎨 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


🌟 Key Features

Text-to-Image Generation

Generate stunning images from text descriptions with various models

Input: "A serene mountain landscape at sunset, digital art"
Output: High-quality AI-generated image

Custom Model Support

  • Load your own fine-tuned models
  • Support for GGUF format models
  • VAE and LoRA customization
  • Flexible model switching

Advanced Controls

  • Customizable generation parameters (steps, CFG scale, sampler)
  • Multiple aspect ratios
  • Seed control for reproducible results
  • Batch generation support

πŸ“± Platform 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


πŸ—οΈ Architecture & Tech Stack

Core Technologies

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]
Loading

Technology Stack

  • 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

πŸš€ Getting Started

Prerequisites

  • 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

Installation

Option 1: Download Pre-built Release

  1. Visit Releases
  2. Download the appropriate package for your platform
  3. Install and launch

Option 2: Build from Source

# 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

First Run

  1. Launch the app
  2. Load your Stable Diffusion model (GGUF format)
  3. Enter your text prompt
  4. Click generate and watch the magic happen! ✨

πŸ“š Documentation


🀝 Contributing

Contributions are welcome! Whether it's:

  • πŸ› Bug reports
  • πŸ’‘ Feature requests
  • πŸ“ Documentation improvements
  • πŸ”§ Code contributions

Please read our Contributing Guidelines before submitting PRs.


πŸ“„ License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.


πŸ™ Acknowledgments

Special thanks to:


πŸ’™ Support This Project

If you find this project useful:

  • ⭐ Star this repository
  • πŸ› Report bugs and suggest features
  • πŸ”€ Fork and contribute
  • πŸ“’ Share with others

πŸ“¬ Contact


About

🎨 Multiplatform AI image generation app powered by Stable Diffusion β€’ Built with Kotlin Multiplatform & Compose β€’ Supports SDXL, FLUX, SD3 & more β€’ Native performance via C++/JNI β€’ Android & Desktop ready

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published