OpenRouter

One API for models from every major provider

Models & APIsAPI aggregatorMulti-modelPay as you go
Official site
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

  1. Sign up on the website, add credits and create an API key.
  2. Browse the model list for each model’s pricing, context length and providers.
  3. Try a few models in the web chat to compare results.
  4. Point the OpenAI SDK’s base URL at OpenRouter in your code, add your key and a model name, and call it.
  5. 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

ToolIn one linePricingAccess
Hugging FaceThe largest hub for open models and datasets — the GitHub of AIBrowsing and downloads free; compute and hosting billed by usageBlocked in CN
ModelScopeAlibaba-led open model hub, the smoothest way to get models in ChinaModel downloads free; some free compute and inference quota includedReachable from mainland China
OpenRouterOne API for models from every major providerPay per use; some models are freeReachable from mainland China
SiliconFlowChinese API platform for open models, quick to set up and well pricedPay per use; some smaller models are freeReachable from mainland China
OllamaOpen-source tool that runs open LLMs on your machine with one commandOpen source and freeReachable from mainland China
LM StudioDesktop app to find, download and chat with local LLMs, no terminal neededFree to use; the app itself is not open sourceReachable from mainland China
Google AI StudioGoogle's Gemini playground: try models free and get an API keyFree in the browser; API has a free tier, then pay per useBlocked in CN

Pricing and features change often; check the official site before relying on them.

More in Models & APIs