OpenRouter
One API for models from every major provider
- Pricing
- Pay per use; some models are free
- Access
- Reachable from mainland China
Last updated
What is OpenRouter?
OpenRouter is an API aggregator for large language models. It puts OpenAI, Anthropic, Google and many open-model hosting providers behind a single OpenAI-compatible API: one account, one key and one balance, and switching between hundreds of models is a matter of changing the model name.
It solves a real chore for developers. Comparing models normally means signing up, topping up and adapting to a different SDK for each provider; with OpenRouter you change one parameter. The same open model is often served by several providers, and it picks among them automatically and can fall back to another when one goes down, which helps reliability. There are also some free models, handy for prototypes and practice.
The cost is an extra layer in the middle. The platform charges a fee on credit purchases, latency can be slightly higher than going direct, and your requests pass through OpenRouter to a downstream provider whose data policy depends on who is serving them. For serious production work, many teams switch to the official API once they have settled on a model.
Key features
- Unified API: OpenAI-compatible format, so existing code only needs a new base URL and model name.
- Huge model catalogue: mainstream closed models and a large number of open ones, with new models added quickly.
- Provider routing: when several providers serve a model it chooses automatically and can fall back if one fails.
- Free models: some models can be called for free with rate limits, which is fine for testing.
- Web chat: talk to models on the website, or have several answer the same question side by side.
- Usage and rankings: a dashboard shows the cost of each call, and the platform publishes usage rankings for models.
How to use
- Sign up on the website, add credits and create an API key.
- Browse the model list for each model’s pricing, context length and providers.
- Try a few models in the web chat to compare results.
- Point the OpenAI SDK’s base URL at OpenRouter in your code, add your key and a model name, and call it.
- Check the usage dashboard regularly to keep costs in check, and set routing preferences if needed.
Best for
- Model selection: test many models with one codebase and find the best value quickly.
- Personal projects and prototypes: skip signing up and paying on several platforms.
- Backup routes: switch quickly to another model or provider when your main one has problems.
- Models that are hard to buy directly: pay for and manage several providers in one place.
Strengths and limitations
Strengths
- One key covers a huge range of models, so switching costs almost nothing.
- OpenAI-compatible and simple to integrate; most ecosystem tools support it.
- Free models let individual developers experiment cheaply.
Limitations
- An extra hop: a fee on credit purchases and possibly slightly higher latency than going direct.
- Data is handled by different downstream providers, so privacy terms must be checked one by one.
- Free models are tightly rate-limited and unstable at peak times; not for production.
- Payment relies mainly on international methods, which is inconvenient for users in mainland China.
OpenRouter vs. similar tools
| Tool | In one line | Pricing | Access |
|---|---|---|---|
| Hugging Face | The largest hub for open models and datasets — the GitHub of AI | Browsing and downloads free; compute and hosting billed by usage | Blocked in CN |
| ModelScope | Alibaba-led open model hub, the smoothest way to get models in China | Model downloads free; some free compute and inference quota included | Reachable from mainland China |
| OpenRouter | One API for models from every major provider | Pay per use; some models are free | Reachable from mainland China |
| SiliconFlow | Chinese API platform for open models, quick to set up and well priced | Pay per use; some smaller models are free | Reachable from mainland China |
| Ollama | Open-source tool that runs open LLMs on your machine with one command | Open source and free | Reachable from mainland China |
| LM Studio | Desktop app to find, download and chat with local LLMs, no terminal needed | Free to use; the app itself is not open source | Reachable from mainland China |
| Google AI Studio | Google's Gemini playground: try models free and get an API key | Free in the browser; API has a free tier, then pay per use | Blocked in CN |
Pricing and features change often; check the official site before relying on them.