
Tool OpenRouter
OpenRouter
One API endpoint and key for hundreds of models from many providers, with automatic provider fallback.
What it is
OpenRouter is a gateway that exposes hundreds of AI models from different providers through a single API that follows the OpenAI specification, plus an interface compatible with the Anthropic Messages API. It routes each request to a provider serving the model, falls back to another provider on errors, and lets you steer routing by price, throughput, latency or data policy. Usage is paid from prepaid credits, and some models can be used free within daily request limits.
What it's useful for
Trying or switching between models from different labs without separate accounts, or adding provider failover to an app that already uses the OpenAI SDK.
Key features
- Single endpoint at https://openrouter.ai/api/v1 compatible with OpenAI SDKs; Anthropic Messages-compatible interface at https://openrouter.ai/api
- Chat Completions, Responses and Embeddings endpoints
- Automatic fallback to another provider when one fails
- Provider routing options: order, sort by price/throughput/latency, data-collection and zero-data-retention filters
- Image, PDF, audio and video inputs; image, video and speech generation; speech-to-text
- Free models with daily request limits
How to use it
Before you start
- OpenRouter account and API key
Limitations to know
- Free models are limited to 50 requests per day, or 1,000 per day after buying at least 10 credits
- A 5.5% fee ($0.80 minimum) applies when buying credits (5% for crypto payments)
Alternatives
One Hugging Face token to call open models served by partner providers, with automatic failover and no markup.
MCP servers for this
Hugging Face's hosted MCP server that lets agents search models, datasets, Spaces and papers and call Gradio Spaces.
CreateWithAI Hub's own MCP server: tell your AI what you're building and it finds the tools, MCP servers and skills for the job.
Microsoft's open-source MCP server that puts tools for many Azure services, from Storage to Cosmos DB and Monitor, in one server.
Skills for this
Anthropic skill for generative art in p5.js with seeded randomness and an interactive viewer for exploring parameters.
Hugging Face's Agent Skills for the Hub CLI, datasets, model training, evaluation, Spaces and SageMaker deployment.
Vercel's collection of Agent Skills for React/Next.js performance, UI review, writing style and Vercel deploys.
Related resources
DeepSeek's MIT-licensed open-weight reasoning and chat models, also served through an OpenAI- and Anthropic-compatible API.
Google's web workspace for trying Gemini models and getting a Gemini API key with a free usage tier.
Hugging Face's platform hosting over 3M models, 1M datasets and 2M Spaces in Git-based repos, with a Python client and hf CLI.
Alibaba Cloud's Qwen model family, with many open-weight models and an OpenAI-compatible API.