LLM Providers
OpenRouter Plugin
Multi-provider LLM access through OpenRouter
Features
- Multiple providers - Access 50+ models from various providers
- Automatic failover - Route to available providers
- Cost optimization - Choose models by price/performance
- Single API key - One key for all providers
Installation
Configuration
Environment Variables
Character Configuration
Supported Operations
Operation | Support | Notes |
---|---|---|
TEXT_GENERATION | ✅ | All available models |
EMBEDDING | ❌ | Use fallback plugin |
OBJECT_GENERATION | ✅ | Model dependent |
Important: Embedding Fallback
OpenRouter doesn’t provide embedding endpoints, so include a fallback:
Model Configuration
The plugin uses model tiers:
- SMALL_MODEL: Fast, cost-effective responses
- LARGE_MODEL: Complex reasoning, best quality
- IMAGE_MODEL: Multimodal capabilities
OpenRouter provides access to 50+ models from various providers. You can use:
Premium Models
- Any Anthropic Claude model (Opus, Sonnet, Haiku)
- Any OpenAI GPT model (GPT-4o, GPT-4, GPT-3.5)
- Google Gemini models (Pro, Flash, etc.)
- Cohere Command models
Open Models
- Meta Llama models (3.1, 3.2, 3.3)
- Mistral/Mixtral models
- Many models with
:free
suffix for testing
Pricing Strategy
OpenRouter charges a small markup (usually ~10%) on top of provider prices:
- Pay-per-token - No monthly fees
- Price transparency - See costs per model
- Credits system - Pre-pay for usage
Advanced Features
Model Routing
Provider Preferences
Prefer certain providers: