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 ๐ŸŽฎ Setting
Android Demo Desktop Demo Desktop Demo

๐ŸŽฒ Supported Models

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

๐Ÿ”ฅ Popular Models

๐ŸŒˆ Specialized Models

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