Skip to content

mu-fazil-vk/dart-replicate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.