Stable Diffusion Library Stable Diffusion Is Library for generated text to Image
Copyright (c) 2024 GLOBAL CORPORATION - GENERAL DEVELOPER
- Documentation
- Youtube
- Telegram Support Group
- Contact Developer (check social media or readme profile github)
- 📱️ Cross Platform support (Device, Edge Severless functions)
- 📜️ Standarization Style Code
- ⌨️ Cli (Terminal for help you use this library or create project)
- 🔥️ Api (If you developer bot / userbot you can use this library without interact cli just add library and use 🚀️)
- 🧩️ Customizable Extension (if you want add extension so you can more speed up on development)
- ✨️ Pretty Information (user friendly for newbie)
-
This library 100% use on every my create project (App, Server, Bot, Userbot)
-
This library 100% support all models from stable-diffusion.cpp (depending on your device specs, if high then it can be up to turbo, but if low, just choose tiny/small)
- 10-02-2025 Starting Release Stable With core Features
- Dart
dart pub add stable_diffusion_library
- Flutter
flutter pub add stable_diffusion_library_flutter
Example Quickstart script minimal for insight you or make you use this library because very simple
import 'dart:io';
import 'package:stable_diffusion_library/stable_diffusion_library.dart';
void main(List<String> args) async {
print("start");
File modelFile = File(
"../../../../../big-data/stable-diffusion/model.ckpt",
);
final StableDiffusionLibrary stableDiffusionLibrary = StableDiffusionLibrary(
sharedLibraryPath: "../stable_diffusion_library_flutter/linux/libstable_diffusion_library.so",
);
await stableDiffusionLibrary.ensureInitialized();
await stableDiffusionLibrary.initialized();
await stableDiffusionLibrary.textToImage(
modelPath: modelFile.path,
prompt: "Cat",
negativePrompt: "",
);
await stableDiffusionLibrary.dispose();
exit(0);
}
- stable-diffusion.cpp ffi bridge main script so that this program can run
Copyright (c) 2024 GLOBAL CORPORATION - GENERAL DEVELOPER
Minimal simple application example of Stable Diffusion Youtube Video
Mobile | Desktop |
---|---|
![]() |
![]() |