stability_sdk 0.1.0
stability_sdk: ^0.1.0 copied to clipboard
An implementation of Stability AI SDK in Dart. Stability AI is a solution studio dedicated to innovating ideas.
stability_sdk #
An implementation of Stability AI SDK in Dart.
Prerequisites #
Stability AI requires you to create your own API key to make calls to the API. You can create one here.
Example #
// 1. Setup the API client
final client = StabilityApiClient.init(`<YOUR_API_KEY_HERE>`);
// 2. Create a generation request
final request = RequestBuilder(prompt)
.setHeight(512)
.setWidth(512)
.setEngineType(EngineType.inpainting_v2_0)
.setSampleCount(1)
.build();
// 3. Subscribe to the response
client.generate(request).listen((answer) {
image = answer.artifacts?.first.getImage();
});
Outputs #
Cyberpunk | Cats | Dogs |
---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Features #
-
Text-to-image
-
Image-to-image
-
Inpainting + Masking
-
CLIP guidance
-
Multi-prompting
Connect #
Let's connect on @joshuamdeguzman.