OpenRouter
OpenRouter aggregates models from multiple providers behind a single API key. Useful as a fallback provider or when you want access to models not directly supported by ModelReins.
export MODELREINS_PROVIDER=openrouterexport OPENROUTER_API_KEY=sk-or-...Configuration
Section titled “Configuration”{ "provider": "openrouter", "openrouter": { "apiKey": "${OPENROUTER_API_KEY}", "model": "anthropic/claude-3-haiku", "maxTokens": 4096 }}When to use OpenRouter
Section titled “When to use OpenRouter”- As a fallback when your primary provider hits rate limits
- To access models not directly integrated (Cohere, Perplexity, etc.)
- For automatic provider failover in production
- To compare models from different providers without managing multiple API keys