Overview
OpenRouter provides access to 200+ AI models from multiple providers through a single, unified OpenAI-compatible API. This makes it an excellent choice for teams that want to experiment with different models without managing multiple provider credentials.OpenRouter uses the same API format as OpenAI, so switching between OpenAI and OpenRouter models requires minimal configuration changes.
Supported Capabilities
| Capability | Supported |
|---|---|
| LLM (Chat Completion) | Yes |
| Embedding | No |
| Image Generation | No |
| Reranking | No |
Configuration
Get an API Key
Sign up at openrouter.ai and generate an API key from the dashboard.
Configure in Nadoo AI
Navigate to Workspace Settings > AI Model Providers and add OpenRouter:
| Field | Value |
|---|---|
| Provider | OpenRouter |
| API Key | sk-or-... (your OpenRouter API key) |
| Site URL | (optional) Your site URL for request attribution |
| Site Name | (optional) Your site name for OpenRouter dashboard |
Environment Variables
If configuring via environment variables:How It Works
The OpenRouter provider uses the OpenAI-compatible API format, connecting tohttps://openrouter.ai/api/v1:
temperature, max_tokens, top_p, stop, stream, tools, and more.
Model Selection
OpenRouter provides access to models across many providers. The model ID format isprovider/model-name:
- Popular Models
- Cost-Effective
| Model ID | Provider | Context |
|---|---|---|
openai/gpt-4o | OpenAI | 128K |
anthropic/claude-3.5-sonnet | Anthropic | 200K |
google/gemini-pro-1.5 | 1M | |
meta-llama/llama-3.1-70b-instruct | Meta | 128K |
mistralai/mistral-large | Mistral | 128K |
Request Attribution
TheHTTP-Referer and X-Title headers are sent with every request to OpenRouter. These are used for:
- Attribution in the OpenRouter dashboard (so you can track usage by site)
- Ranking on the OpenRouter leaderboard
- Some model providers offer discounts for attributed requests
Use Cases
Model Comparison
Test the same workflow against GPT-4o, Claude, and Gemini to find the best model for your use case — without configuring three separate providers.
Fallback Routing
OpenRouter automatically falls back to alternative providers if the primary is unavailable, improving reliability for production deployments.