Installation
Environment Setup
Quick Start
OpenRouter model names follow the patternopenrouter/<provider>/<model>:
Popular Model Names
| Model | model_name |
|---|---|
| Claude 3.5 Sonnet | "openrouter/anthropic/claude-3.5-sonnet" |
| Claude Opus 4.8 | "openrouter/anthropic/claude-opus-4-8" |
| GPT-4.1 | "openrouter/openai/gpt-4.1" |
| GPT-5.4 | "openrouter/openai/gpt-5.4" |
| Gemini 2.5 Pro | "openrouter/google/gemini-2.5-pro" |
| Llama 3.3 70B | "openrouter/meta-llama/llama-3.3-70b-instruct" |
| Qwen 2.5 72B | "openrouter/qwen/qwen-2.5-72b-instruct" |
| DeepSeek R1 | "openrouter/deepseek/deepseek-r1" |
| Mistral Large | "openrouter/mistralai/mistral-large" |
Tool Use
Tools work on OpenRouter for any underlying model that supports function calling:Streaming
A/B Testing Models
Because every model is available through the same key, OpenRouter is ideal for running side-by-side comparisons:Provider Routing
OpenRouter automatically routes between provider hosts for the same model. You can pin to a specific provider or let OpenRouter pick the cheapest/fastest:Production Defaults
Next Steps
- Building Agents with Anthropic — direct Anthropic integration
- Building Agents with OpenAI — direct OpenAI integration
- Model Providers Overview