dart_replicate 1.0.0 copy "dart_replicate: ^1.0.0" to clipboard
dart_replicate: ^1.0.0 copied to clipboard

It is a dart client for Replicate.

Dart-Replicate #

It is a Dart client for Replicate.

Introduction ✨ #

Replicate is an online service that enables users to run machine learning models on the cloud. This software package provides a simple client for their anonymous API, which makes it possible to run advanced models such as Stable Diffusion and Whisper with just a few lines of code 😄🤏.

Features 🚀 #

  1. Anonymous API
  2. Unlimited run

Installation ⬇️ #

dart pub add dart-replicate

Usage #

import 'package:dart-replicate/replicate' as app;

void main(List<String> arguments) async {
  // Define a model name and input data
  final model = 'owner/model:version';
  final inputs = {
    'prompt': 'a red cat, 4k photo',
  };

  final output = await app.Replicate.run(model, inputs);


  print(output);
}

Contributing #

Have a feature you had like to see added? Create a pull request or open an issue.

Happy to connect! 😊 #

We hope you enjoy my projects. If you have any questions or feedback, please don't hesitate to reach out to me.

3
likes
120
pub points
50%
popularity

Publisher

unverified uploader

It is a dart client for Replicate.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

http

More

Packages that depend on dart_replicate