OpenRouter
OpenRouter as a meta-provider, giving access to models from many providers through a single API key.
Configuration
1export OPENROUTER_API_KEY=sk-or-...Endpoint
Base URL: https://openrouter.ai/api/v1
OpenRouter uses the OpenAI-compatible format. No conversion needed.
Smart Aliases
RelayPlane's smart routing aliases (rp:best, rp:fast, rp:cheap, rp:balanced) route through OpenRouter by default:
| Alias | OpenRouter Model |
|---|---|
rp:best | anthropic/claude-sonnet-4-5 |
rp:fast | anthropic/claude-3-5-haiku |
rp:cheap | google/gemini-2.0-flash-001 |
rp:balanced | anthropic/claude-3-5-haiku |
Direct Model Access
You can access any OpenRouter model using the openrouter/ prefix:
1curl http://localhost:4100/v1/chat/completions \2 -H "Content-Type: application/json" \3 -d '{4 "model": "openrouter/google/gemini-2.5-pro",5 "messages": [{"role": "user", "content": "Hello"}]6 }'The openrouter/ prefix is stripped before sending to OpenRouter.
Why OpenRouter? With a single OpenRouter API key, you can access models from Anthropic, Google, Meta, Mistral, and dozens more — no separate keys needed for each provider.