OpenRouter
ModelOne API for hundreds of models across many providers
- Price
- Free tier, then paid
- Access
- API key
About
OpenRouter is one OpenAI-compatible API in front of hundreds of models from many providers. It is for developers who want to switch models or add fallbacks without new integrations. Token prices follow each model, plus a platform fee on credit purchases.
What you can do with it
- Call models from OpenAI, Anthropic, Google and more with one API key
- Route requests with automatic fallbacks when a provider fails
- Use the OpenAI SDK with OpenRouter as a drop-in replacement
Get started
- Create an OpenRouter account and an API key
- Buy credits, or pick a model with the :free variant
Example
curl https://openrouter.ai/api/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $OPENROUTER_API_KEY" \
-d '{
"model": "openai/gpt-6-sol",
"messages": [{"role": "user", "content": "What is the meaning of life?"}]
}'Details
- Hosting
- Hosted service
- Available in
- Worldwide
- Official SDKs
- JavaScript/TypeScript, Python, Go
- MCP server
- Remote
- Works with
- OpenAI, Anthropic, Gemini