stability_ai

Creator: coderz1093

Last updated:

0 purchases

stability_ai Image
stability_ai Images

Languages

Categories

Add to Cart

Description:

stability ai

A simple gRPC client for StabilityAI. Most of the heavy lifting is done by auto generated code from Stability-AI's Protocol Buffer Definitions.
Features #
It can access the following APIs:

Generation - Text-To-Image generation.
Dashboard
Engines
Project

Getting started #
To install this package, run:
dart pub add stability_ai
copied to clipboard
Usage #
import 'package:stability_ai/stability_ai.dart';

// initialize client with API Key.
// get it from https://beta.dreamstudio.ai/membership and navigate to API Key.
var client = StabilityAIClient(apiKey);

// This is the text-to-image generation service
var generationService = client.generation;

// create a text prompt request. Let's generate some cats!
var req = Request(prompt: [Prompt(text: "lol cats")]);

// send the request. The response is a stream.
var rsp = client.generation.generate(req);

// we just print out all response answers.
rsp.listen((answer) {
print(answer);
});
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.