Skip to main content
Want a complete working app? Clone our Flutter Starter Example to get started immediately with a full-featured demo app.

Complete Example

Here’s a complete example to get you started with on-device text generation:

Step-by-Step Breakdown

1. Initialize the SDK

Initialize once at app startup. Development mode requires no API key.

2. Register Backend Modules

Register the backends you need. Each backend is a separate package.

3. Register Models

Register models with their download URLs. Models are downloaded on-demand.

4. Download & Load Models

5. Generate Text

Environment Options

Starter Example Repository

For a complete working application with all features demonstrated, clone our starter example:
The Flutter Starter Example includes:
  • AI Chat with streaming responses
  • Speech-to-Text transcription
  • Text-to-Speech synthesis
  • Voice Assistant pipeline
  • Model download and management UI

Next Steps

LLM Chat

Simple text generation

Streaming

Real-time token streaming

Speech-to-Text

Audio transcription

Text-to-Speech

Voice synthesis