What OpenRouter is
OpenRouter is a gateway for AI models, not a model. Instead of opening an account with OpenAI, another with Anthropic and a third with Google, you open one OpenRouter account, add credits and call any of their models through one address. Its GitHub page calls it the unified interface for LLMs, with more than 400 models and automatic fallbacks across more than 90 providers.
The request looks like an OpenAI request. OpenRouter's documentation says its schema is close to OpenAI's and that it supports both the Responses API and Chat Completions, so the OpenAI SDK works if you change the base URL and the key. Wikipedia says the company was founded in 2023 in New York City.
What OpenRouter is good for
- Trying many models with one key: change the model name in the request and the same code talks to a different model.
- Learning on free models:
:freemodel versions and theopenrouter/freerouter cost no credits, within daily caps. - Fallbacks: if a provider is down or rate-limited, OpenRouter tries the next provider, and a
modelslist lets you name backup models. - Comparing providers: each model page shows latency and throughput for every provider that serves it, and the
:nitroand:floorsuffixes sort by speed or by price. - More than text: the models list can be filtered for image, video, speech, transcription and embedding models.
- Coding tools: OpenRouter's docs have guides for using it with Claude Code, Codex CLI and Cursor.
When to use OpenRouter, and when to pick another tool
| Your job | Use OpenRouter? | Or try |
|---|---|---|
| Compare several models from one account and one key | Yes. This is its main job | Each maker's own API, as in the OpenAI API quickstart |
| Call a model through the OpenAI SDK with a different base URL | Yes, as its documentation describes | The maker's own endpoint |
| A feature that only one maker's API offers | Check the model page first, since support varies by model and provider | The maker's own API |
| Keep prompts on your own computer | No. Requests go to a hosted provider | Ollama or LM Studio |
| Chat with an assistant and no code | It has a chat room, but assistants are built for this | ChatGPT, Claude or Gemini |
| Download open model files | No, it routes requests and does not hand out files | Hugging Face |
| Build a workflow around an AI step | No, not by itself. It supplies the model, not the steps | n8n, Zapier or Make |
How to use OpenRouter, step by step
These steps are for OpenRouter's website. Pages move when the site updates, so they name the parts that stay put: the models list, credits, keys and activity.
- Create an account on OpenRouter's website. Its FAQ says you add credits to pay for paid models, and that an account with no credits can still call free models within the free caps.
- Open the models page and browse. Each model has its own page with its providers, its context length and what it supports, such as images or tool calls. Filter for free models to start.
- For paid models, add credits on the Credits page. The FAQ says each request cost is taken from your credit balance, and prices are per million tokens.
- Open the keys page and create an API key. Give it a name and set a credit limit, since the documentation recommends a limit on every key.
- Store the key in an environment variable named
OPENROUTER_API_KEY. Never paste it into code you commit or share. - Send a first request with the example below. It uses
openrouter/free, so OpenRouter picks a free model for you. - Read the reply. Its
modelfield names the model that answered. To use a particular model next time, change only the model name. - Open the Activity page to see your usage and cost for each request, and check your key limit before you run a long job.
Open the Models page and set the Prompt pricing slider in the left column to FREE. The list narrows to free models, a good place to start.

To use paid models, open Credits and press Add Credits. Free models need no credits.

Open Keys and press Create API Key. Type a name, then fill in Credit limit (optional) so a runaway loop stops at that amount.

After your first request, open Activity in the left menu. It lists each request with its model, tokens and cost.

AI-made illustrations of OpenRouter's screens, drawn on 6 November 2026 to match these steps. They are not screenshots, so the real app may look different: follow what you see.
The tutorials at the top of this page show these steps on screen. OpenRouter changes its pages now and then, so if a name differs, follow the one you see.
An example to try
Run this in a Mac or Linux shell or in Git Bash, with your key in OPENROUTER_API_KEY. It is the free router example from OpenRouter's documentation with a new question.
curl https://openrouter.ai/api/v1/responses \
-H "Authorization: Bearer $OPENROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openrouter/free",
"input": "Explain in two sentences what an API gateway does."
}'- The reply is JSON. Its
modelfield names the free model OpenRouter picked, and it can differ from one request to the next. - Free requests are capped per minute and per day, so a second call a moment later can be refused.
- To use Python's
openaipackage instead, setbase_urltohttps://openrouter.ai/api/v1andapi_keyto your OpenRouter key, as OpenRouter's documentation shows. - To use another model, replace
openrouter/freewith a model name copied from its page.
Tips for better results
- Learn on
openrouter/freefirst. Move to a named model when you know what the task needs. - Set a credit limit on every key. A leaked key or a runaway loop then stops at the limit instead of draining your balance.
- To keep a request free, put only
:freemodels in amodelslist. A fallback to a paid model is billed at that model's own price. - Use the
:nitrosuffix when speed matters and:floorwhen price matters. Both change how providers are sorted. - Read a model's page before you build on it. Tool calls, images and structured output are not supported by every model.
- For sensitive text, open your privacy settings and restrict routing to providers whose data policy you accept.
Limits and costs
- OpenRouter's FAQ and limits page, read on 6 November 2026, give free models 20 requests a minute. The daily cap is 50 requests if you have bought fewer than 10 credits in all, and 1,000 if you have bought at least 10.
- OpenRouter says it passes through the providers' prices with no markup on inference, and it charges a fee when you buy credits. Check the fee on its FAQ before you add a large balance.
- A free model may be rate-limited or unavailable at any time, and free versions can have different limits from the paid model.
- OpenRouter does not store your prompts and replies unless you opt in to logging or content is flagged for abuse review. The provider that runs your request keeps its own data policy, and some providers may train on prompts, so check each one.
- Third-party tools may need a specific provider. Its Claude Code guide says the setup is only guaranteed to work with Anthropic's own provider.
Learn more about OpenRouter
- 1OpenAI API tutorial: the Responses API in Python and JavaScriptAn OpenAI API tutorial for developers: get a key, install the SDK, call the Responses API in Python and JavaScript, stream it and keep conversation state.
- 2Which AI model should I use for my task?Which AI model should I use? Pick the assistant by your task and where your files live, then a fast or deep-thinking model, and test two on your own work.
Frequently asked questions
Is OpenRouter free?
Partly. An account with no credits can call free models within the free caps, which its docs give as 50 requests a day, or 1,000 once you have bought at least 10 credits. Paid models take credits, and OpenRouter charges a fee when you buy them.
What does OpenRouter do?
It sits between your code and the companies that run AI models. You send one request to OpenRouter, it picks a provider that serves the model you named, and it handles billing and fallbacks. Its GitHub page lists more than 400 models and more than 90 providers.
Does OpenRouter work with the OpenAI SDK?
Yes. OpenRouter's documentation says any SDK that supports OpenAI also supports it, and its GitHub page says to change the base URL and the key. The request shapes it accepts are the Responses API and Chat Completions.
Does OpenRouter see my prompts?
Requests pass through it, but its privacy page says it does not store prompts or replies unless you opt in to logging or content is flagged for abuse review. It does store metadata such as token counts and latency. The model provider has its own policy.
Who makes OpenRouter?
OpenRouter is a company based in New York City. Wikipedia says it was founded in 2023 by Alex Atallah and Louis Vichy.
Can I use OpenRouter with Claude Code or Cursor?
Its documentation has guides for Claude Code, Codex CLI and Cursor. The Claude Code guide warns that the setup is only guaranteed to work with Anthropic's own provider, so follow the guide's provider advice.
Sources
- GitHub: OpenRouterTeam docs, Quickstart https://github.com/OpenRouterTeam/docs/blob/main/quickstart.mdx
- GitHub: OpenRouterTeam docs, FAQ https://github.com/OpenRouterTeam/docs/blob/main/faq.mdx
- GitHub: OpenRouterTeam docs, API reference overview https://github.com/OpenRouterTeam/docs/blob/main/api_reference/overview.mdx
- GitHub: OpenRouterTeam docs, Authentication https://github.com/OpenRouterTeam/docs/blob/main/api_reference/authentication.mdx
- GitHub: OpenRouterTeam docs, Limits https://github.com/OpenRouterTeam/docs/blob/main/api_reference/limits.mdx
- GitHub: OpenRouterTeam docs, Free Models Router https://github.com/OpenRouterTeam/docs/blob/main/guides/routing/routers/free-router.mdx
- GitHub: OpenRouterTeam docs, Model fallbacks https://github.com/OpenRouterTeam/docs/blob/main/guides/routing/model-fallbacks.mdx
- GitHub: OpenRouterTeam docs, Data collection https://github.com/OpenRouterTeam/docs/blob/main/guides/privacy/data-collection.mdx
- GitHub: OpenRouterTeam docs, Claude Code guide https://github.com/OpenRouterTeam/docs/blob/main/cookbook/coding-agents/claude-code-integration.mdx
- GitHub: OpenRouterTeam organization profile https://github.com/OpenRouterTeam/.github/blob/main/profile/README.md
- Wikipedia: OpenRouter https://en.wikipedia.org/wiki/OpenRouter
- codebasics on YouTube: What is OpenRouter https://www.youtube.com/watch?v=fjd2hm6-qtM
- The Coding Koala on YouTube: How to Use AI Models API for Free https://www.youtube.com/watch?v=VvJvJ0uXiVQ
- Coding Fab on YouTube: OpenRouter Explained https://www.youtube.com/watch?v=5XMkwyQnyQs
- MMX on YouTube: How to Use OpenRouter (Tutorial for Beginners) https://www.youtube.com/watch?v=iZM2DcOhaaY




