Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Wiro AI for Flutter

БесплатноБез исполняемых скриптовНе проверен

Build Flutter and Dart apps on the official Wiro AI SDK (the wiro package on pub.dev) to generate images, video, speech, music and LLM output with typed or…

wiroaiот wiroai164 установки в других каталогах

Об этом скилле

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.

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:

final client = WiroClient.proxied(
  proxyUri: Uri.parse('https://your-backend.example.com/wiro'),
  headers: {'Authorization': 'Bearer $sessionToken'},
);
  • The device sends no Wiro auth headers. Your proxy must accept the same REST paths as the Wiro API, attach x-api-key (plus the signature headers when the project needs them) and forward the request to https://api.wiro.ai/v1. Use headers to authenticate your own users against the proxy.
  • Task WebSocket streams still connect straight to Wiro, because they use per-task tokens instead of API credentials.

On a server, in a CLI, or for local development only, pass the credentials directly:

final client = WiroClient(
  apiKey: 'YOUR_API_KEY',
  apiSecret: 'YOUR_API_SECRET', // signature projects only; omit for API key auth
);
  • The credentials must match the authentication type chosen for the Wiro project. Create a project and key at https://wiro.ai/panel/project/new.
  • In scripts, read WIRO_API_KEY and WIRO_API_SECRET from Platform.environment, as the example scripts do. Never print, log or commit them. The SDK's own logs never contain keys, secrets, headers or request bodies.
  • Reuse one client and call client.close() when you are done.

Run a model

Popular models have typed requests. Required parameters and select options are checked at compile time, value ranges by assertions in debug builds:

final result = await client.subscribeRequest(
  Wiro.flux2Pro(
    prompt: 'A cinematic mountain lake at sunrise',
    width: 1024,
    height: 1024,
    outputFormat: WiroFlux2ProOutputFormat.png,
  ),
);

switch (result) {
  case WiroTaskSuccess(:final task):
    print(task.outputs.first.url);
  case WiroTaskFailure(:final reason):
    print('Failed: ${reason.name}');
}

Typed factories (type Wiro. in the IDE): images flux2Pro, gptImage2, nanoBananaPro, seedreamV4, grokImagineImage; video runwayGen45, seedance20, klingV3, veo31, hailuo23Fast, grokImagineVideo; music lyria3.

Any other catalog model runs through Wiro.model with a parameter map. Validate the map against the model's schema first, so mistakes fail locally before a paid run:

const slug = 'black-forest-labs/flux-2-pro';
final schema = await client.getModelSchema(WiroModelId.parse(slug));
final parameters = <String, Object?>{'prompt': 'A cinematic mountain lake at sunrise'};
schema.validate(parameters); // throws WiroSchemaValidationException
final result = await client.subscribeRequest(Wiro.model(slug, parameters: parameters));
  • Find models with client.searchModels(search: '...') or client.explore(), or browse https://wiro.ai/models. The slug is the owner/model shown on the model's page, and schema.parameters lists the input ids.
  • LLMs have no typed request, so run them with Wiro.model. task.debugOutput holds the merged reply text. The text output (output.isText) carries content, and output.raw keeps the fields the SDK does not parse. For live text, track over WebSocket: each LLM progress event is a full snapshot (fields in progress.raw), so replace what you show instead of appending. See https://wiro.ai/docs/llm-chat-streaming.
  • subscribeRequest (or subscribe with a WiroModelId) starts the run and tracks it to the end. Polling is the default; trackingMode: WiroTaskTrackingMode.webSocket gives live events. onUpdate receives each WiroTaskUpdate (update.status, update.statusValue).
  • `client.subscribe
Полный SKILL.md на ClawHub

Установить Wiro AI for Flutter в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл Wiro AI for Flutter?

Build Flutter and Dart apps on the official Wiro AI SDK (the wiro package on pub.dev) to generate images, video, speech, music and LLM output with typed or generic model requests, file inputs, task tracking and typed results. Use when the user wants AI generation in a Flutter or Dart app through Wiro, or mentions package:wiro, Wiro or a Wiro API key in Dart code.

Как установить скилл Wiro AI for Flutter?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Wiro AI for Flutter запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Wiro AI for Flutter с