Provider Types
Airi organizes providers by task category:- Chat Providers: LLM providers for conversation and reasoning
- Speech Providers: Text-to-speech (TTS) services
- Transcription Providers: Speech-to-text (STT) and audio recognition
- Embed Providers: Text embedding for semantic search
Available Chat Providers
Cloud Providers
OpenAI
OpenAI
Provider ID: Supported Models: GPT-4o, GPT-4 Turbo, GPT-3.5 Turbo, and moreFeatures:
openaiOfficial OpenAI API with GPT models.Configuration:- Function calling / tool use
- Vision capabilities (GPT-4o)
- Streaming responses
- Context windows up to 128k tokens
Anthropic (Claude)
Anthropic (Claude)
Provider ID: Supported Models: Claude 3.5 Sonnet, Claude 3 Opus, Claude 3 HaikuFeatures:
anthropicAnthropic’s Claude models with extended context and reasoning.Configuration:- 200k+ token context window
- Tool use
- Vision capabilities
- JSON mode
Google Generative AI (Gemini)
Google Generative AI (Gemini)
Provider ID: Supported Models: Gemini 2.0, Gemini 1.5 Pro, Gemini 1.5 FlashFeatures:
google-generative-aiGoogle’s Gemini models via Generative AI API.Configuration:- Multi-modal inputs (text, images, audio, video)
- Large context windows (1M+ tokens for Pro)
- Function calling
- Real-time responses
Groq
Groq
Provider ID: Supported Models: Llama 3.3, Mixtral 8x7B, Gemma 2Features:
groqUltra-fast inference with Groq’s LPU architecture.Configuration:- Extremely fast token generation (500+ tokens/sec)
- OpenAI-compatible API
- Tool use support
DeepSeek
DeepSeek
Provider ID: Supported Models: DeepSeek V3, DeepSeek CoderFeatures:
deepseekDeepSeek’s cost-effective models with strong reasoning.Configuration:- Cost-effective pricing
- Strong coding capabilities
- Extended context
Router & Aggregator Providers
OpenRouter
OpenRouter
Provider ID: Features:
openrouter-aiAccess 100+ models through a unified API with automatic failover.Configuration:- Access to 100+ models from different providers
- Automatic model fallback
- Per-model pricing
- Usage credits system
CometAPI
CometAPI
Provider ID:
comet-apiMulti-model aggregator with simplified billing.Configuration:Local & Self-Hosted Providers
Ollama
Ollama
Provider ID: Setup:
ollamaRun open-source models locally.Configuration:- Install Ollama from https://ollama.ai
- Pull models:
ollama pull llama3.2 - Configure base URL in Airi
llama3.2:latest- Meta’s Llama 3.2qwen2.5:latest- Alibaba’s Qwenphi3:latest- Microsoft Phi-3deepseek-coder:latest- DeepSeek for coding
OpenAI Compatible
OpenAI Compatible
Provider ID: Compatible Services:
openai-compatibleConnect to any OpenAI-compatible API (LM Studio, vLLM, LocalAI, etc.).Configuration:- LM Studio
- vLLM
- LocalAI
- Text Generation WebUI
- FastChat
- Ollama (with OpenAI endpoint)
Regional & Specialized Providers
Moonshot AI
Provider ID:
moonshot-aiChinese provider with Kimi models.MiniMax
Provider ID:
minimaxChinese multimodal AI provider.302.AI
Provider ID:
302-aiMulti-model aggregator focused on Chinese market.ModelScope
Provider ID:
modelscopeAlibaba’s model hub platform.Speech Synthesis Providers
Commercial TTS Services
ElevenLabs
ElevenLabs
Provider ID: Supported Models:
elevenlabsHigh-quality neural TTS with voice cloning.Configuration:eleven_multilingual_v2- 29 languageseleven_turbo_v2_5- Fastest, low latencyeleven_monolingual_v1- English only, highest quality
- Custom voice cloning
- Multiple languages
- Adjustable voice settings
- Pre-made voice library
stability: 0.0-1.0 (lower = more expressive, higher = more consistent)similarityBoost: 0.0-1.0 (how much to boost voice similarity)
OpenAI TTS
OpenAI TTS
Provider ID: Supported Models:
openai-audio-speechOpenAI’s text-to-speech models.Configuration:tts-1- Standard quality, fasttts-1-hd- High definition audiogpt-4o-mini-tts- Latest model with 13 voices
Microsoft Azure Speech
Microsoft Azure Speech
Provider ID: Features:
microsoft-speechAzure Cognitive Services TTS.Configuration:- 400+ voices in 140+ languages
- Neural TTS
- SSML support
- Custom voice training
Deepgram TTS
Deepgram TTS
Provider ID: Supported Models:
deepgram-ttsReal-time TTS optimized for conversational AI.Configuration:aura-2- Latest generationaura-1- First generation
Open-Source & Local TTS
Browser (Local)
Browser (Local)
Provider ID: Features:
browser-local-audio-speechIn-browser TTS using WebGPU (no API key required).Requirements:- Modern browser with WebGPU support
- At least 8GB RAM
- GPU recommended
- No internet required
- Privacy-first (all processing local)
- No API costs
Index-TTS (Bilibili)
Index-TTS (Bilibili)
Provider ID: Setup:
index-tts-vllmOpen-source Chinese/English TTS.Configuration:App (Local) - Desktop Only
App (Local) - Desktop Only
Provider ID:
app-local-audio-speechNative desktop TTS using Hugging Face Candle.Features:- CUDA/Metal acceleration
- No internet required
- Optimized for desktop
Transcription Providers
OpenAI Whisper
OpenAI Whisper
Provider ID: Supported Models:
openai-audio-transcriptionOpenAI’s Whisper transcription models.Configuration:whisper-1- Original Whisper V2gpt-4o-transcribe- Latest, higher qualitygpt-4o-mini-transcribe- Faster, cost-effectivegpt-4o-transcribe-diarize- With speaker diarization
Web Speech API
Web Speech API
Provider ID: Features:
browser-web-speech-apiBrowser-native speech recognition (Chrome, Edge, Safari).Requirements:- Supported browser (not available in Electron/Tamagotchi)
- Internet connection (uses browser’s API)
- No API key required
- Real-time streaming
- No cost
- Automatic punctuation
Aliyun NLS
Aliyun NLS
Provider ID: Features:
aliyun-nls-transcriptionAlibaba Cloud real-time speech recognition.Configuration:- WebSocket streaming
- Real-time transcription
- Chinese language optimized
Browser/App Local Transcription
Browser/App Local Transcription
Provider IDs:
browser-local-audio-transcription- WebGPU in browserapp-local-audio-transcription- Native on desktop
- WebGPU support or GPU
- Sufficient RAM (4GB+)
Provider Configuration Guide
Adding a Provider
Providers can be added through:-
Settings UI (Recommended):
- Navigate to Settings → Providers
- Click “Add Provider”
- Select provider type and task
- Fill in credentials
- Validate and save
- Programmatic (Advanced):
Configuration Schema
Each provider uses Zod schema validation. Common fields:packages/stage-ui/src/libs/providers/providers/.
Validation
Providers are validated before use:- Config Validation: Checks required fields and format
- Connectivity Validation: Tests API connection
- Model List Validation: Verifies model availability
- Chat Completions Validation: Tests actual inference
Rate Limits & Quotas
Local providers have no rate limits.Advanced Configuration
Custom Headers
Add custom headers for proxy or authentication:Proxy Configuration
For providers behind a proxy:Multiple Provider Instances
You can add multiple instances of the same provider with different configs:Provider Capabilities
Different providers support different features:| Provider | Function Calling | Vision | Streaming | Max Context |
|---|---|---|---|---|
| OpenAI GPT-4o | ✅ | ✅ | ✅ | 128k |
| Anthropic Claude 3.5 | ✅ | ✅ | ✅ | 200k |
| Google Gemini 1.5 Pro | ✅ | ✅ | ✅ | 1M |
| Groq Llama 3.3 | ✅ | ❌ | ✅ | 8k |
| Ollama (local) | ✅* | ✅* | ✅ | Varies |
Troubleshooting
Provider Not Available
Some providers are platform-specific:app-*providers: Desktop (Tamagotchi) onlybrowser-*providers: Web onlyweb-speech-api: Browser only (not in Electron)
Connection Failed
- Check your internet connection
- Verify API key is correct
- Ensure base URL has trailing slash
/ - Check firewall/proxy settings
- Verify the provider service is operational
Invalid API Key
- Check for extra spaces or newlines
- Verify key hasn’t expired
- Ensure key has proper permissions
- Try regenerating the key from provider dashboard
Rate Limit Errors
- Wait before retrying
- Upgrade to paid tier
- Use local/self-hosted alternative
- Distribute load across multiple providers
Model Not Found
- Refresh model list in settings
- Verify model is available in your region
- Check if model requires special access
- Try using a different model
Code Reference
Provider system implementation:- Provider definitions:
packages/stage-ui/src/libs/providers/providers/ - Provider store:
packages/stage-ui/src/stores/providers.ts - Provider catalog:
packages/stage-ui/src/stores/provider-catalog.ts - Provider types:
packages/stage-ui/src/libs/providers/types.ts
Related Resources
Voice Synthesis
Configure TTS providers and voices
Character Settings
Link models to character cards
Memory System
Configure conversation memory
