muna 0.0.1 copy "muna: ^0.0.1" to clipboard
muna: ^0.0.1 copied to clipboard

Run AI models in Flutter. Register at https://muna.ai.

Muna for Flutter #

Run AI models in Flutter. Register at muna.ai.

Installing Muna #

Add muna to your pubspec.yaml:

dependencies:
  muna: ^0.0.1

Quickstart #

import "package:muna/muna.dart";

// Create the Muna client
final muna = Muna(accessKey: "your_access_key");

// Retrieve the current user
final user = await muna.users.retrieve();
print(user?.username);

// Retrieve a predictor
final predictor = await muna.predictors.retrieve("@owner/predictor-tag");
print(predictor?.name);

// Create a remote prediction
final prediction = await muna.beta.predictions.create(
  "@owner/predictor-tag",
  inputs: { "prompt": "Hello world!" },
);
print(prediction.results);

// Stream a remote prediction
await for (final prediction in muna.beta.predictions.stream(
  "@owner/predictor-tag",
  inputs: { "prompt": "Hello world!" },
)) {
  print(prediction.results);
}

Muna is a product of NatML Inc.

0
likes
0
points
207
downloads

Publisher

verified publishermuna.ai

Weekly Downloads

Run AI models in Flutter. Register at https://muna.ai.

Homepage
Repository (GitHub)
View/report issues

Topics

#ai #machine-learning #inference

Documentation

Documentation

License

unknown (license)

Dependencies

crypto, ffi, flutter, http, yaml, yaml_edit

More

Packages that depend on muna

Packages that implement muna