wiro-flutterlisted
Install: claude install-skill wiroai/Dart-QuickStart
# Wiro AI SDK for Dart and Flutter
`wiro` is the official Dart package for the Wiro AI model API. It runs any of the 1,000+ models in the Wiro catalog from Flutter apps, Dart servers and command-line tools. Every run creates a task on Wiro. The SDK starts it, follows it by polling or over a WebSocket, and returns a typed result with the outputs.
## Money rules
- Before any paid run (example scripts and test runs too), tell the user the model, the settings and the expected cost. Prices: https://wiro.ai/product/pricing. After the run, `task.totalCost` is the billed cost.
- Ask first before large or open-ended jobs: many outputs, long videos, loops, batches.
- After a timeout or a dropped connection, never resubmit the same run blindly. The task may still be running, and a resubmit bills a second job. Look the task up first (see "Long jobs and recovery").
- Cancel or kill a task only when the user asks.
## Install
Needs Dart 3.8.0 or newer, and Flutter 3.32.8 or newer in a Flutter app. The core is pure Dart and runs on the Dart VM, Android, iOS, web, macOS, Windows and Linux. Import `package:wiro/wiro.dart`.
```bash
flutter pub add wiro # Flutter app
dart pub add wiro # Dart server or CLI
```
## Create a client
Never ship long-lived Wiro credentials in a mobile binary, or in a web or desktop build. That includes `--dart-define` values, which can be extracted from a distributed app. In production, use the proxied client so the credentials stay on your backend:
```