Skip to content
Agents tracked: 504 Releases (7d): 602 Agent status: no reported issuesSince last limit reset: Claude 13d · Codex 11d For AI agents: Markdown Updated Nov 24, 2026

OpenRouter

Hundreds of AI models behind one key.

LLM gateways and routersOfficial MCP server

WebsitePricingGitHub

1. Price

“Free 25+ free models Standard 600+ models Business 600+ models Enterprise 600+ models Providers Explore all models → Free 4 free providers Standard 80+ providers”

Free tier: 25+ free models, 50 requests/day. As reported on the official pricing page, checked Nov 1, 2026.

openrouter.ai/pricing

Checked against the maker's official pages, pricing on Nov 1, 2026. Tap a verdict to see its source.How we checkedReport an error

What OpenRouter does

OpenRouter is an online service that lets your app talk to hundreds of AI chat models from many companies through one account and one key. You pay each model's own price from prepaid credits, plus a fee when you buy credits. If one provider is down, it can switch to another automatically.

  • OpenRouter is one of 8 APIs in the LLM gateways and routers category on AgentGid.
  • It is one of 7 that can be started for free.
  • It ships an official MCP server, like 3 others here.
  • Its official SDK is the 3rd most downloaded in the category (2.2M a week).

What people build with it

Swap AI models without rewriting code

Keep code written for OpenAI and point it at OpenRouter, then try Claude, Gemini or open models by changing one name.

A backup model when one fails

List a second model so your chatbot still answers when the first one is down, overloaded or refuses.

Build a prototype for free

Start with models marked free while you test an idea, with a small daily request limit and no bill.

Users pay for their own AI use

Let each user connect their own OpenRouter account to your app, so their usage is billed to them, not to you.

Keep prompts in Europe

On the Business plan, send requests to the EU address so prompts and answers are processed inside the EU.

Pick the cheapest good model Idea

Run the same test questions through several models and keep the cheapest one whose answers are good enough for your app.

OpenRouter popularity

2M
SDK downloads a week
+33.3% on the 4-week average
32
public agent repos use its SDK
272
GitHub stars, OpenRouterTeam/typescript-sdk
SDK downloads per weeknpm @openrouter/sdk, pypi openrouter 2,037,844

SDK downloads from npm and PyPI, weekly. Numbers as of Nov 17, 2026.

Pricing

Free tier

25+ free models, 50 requests/day

Cheapest plan

No monthly plan

Usage price

Provider list price per token (no markup); fee on credit purchases: 5.5% Standard, 8% Business

Plans

Pay-as-you-go credits, no subscription. BYOK: first $25,000 of list-price inference per month without fee, 5% after. Business adds EU/US in-region routing.

What one action costs

ActionPrice
Buying credits, standard plan (fee on the purchase)5.5%
1 input token, openai/gpt-4o-mini on Azure (= $0.15 per 1M tokens)$0.00000015
1 output token, openai/gpt-4o-mini on Azure (= $0.60 per 1M tokens)$0.0000006
Platform fee on the Free plan (free models only)N/A
Price history
  • 1 change in our catalog since Oct 9, 2026, last on Oct 9, 2026.

As reported on the official pricing page, checked Nov 1, 2026. Prices change: confirm before you buy. openrouter.ai/pricing

Limits

Free models, under 10 credits ever bought

20 requests a minute, 50 a day

Free models, at least 10 credits bought

20 requests a minute, 1,000 a day

Paid models

No platform request cap; the provider's own limits pass through

Every key

Optional credit limit per key; keys made during onboarding get a $100 limit and expire after 180 days

From the official docs. openrouter.ai/docs/api_reference/limits.md

Key and access

How it signs in

API key as a Bearer token in the Authorization header; users can also connect their own key through OAuth PKCE

Environment variable
OPENROUTER_API_KEY
Safe in browser code
No, keep it on your server
Card at sign-up

No

Steps only a person can do

  • Sign up, buy credits if you need paid models, and create a key with a credit limit. Put it in .env as OPENROUTER_API_KEY (kept out of git) and read it on the server.
  • In privacy settings, choose whether providers that may train on prompts are allowed, and whether to require zero data retention. No code change; requests that no allowed provider can serve return 503.
  • For EU in-region processing, move the organization to the Business plan. Use https://eu.openrouter.ai/api/v1 as the base address with an EU-eligible model.

Commercial use and your data

OpenRouter is a paid service with some free models. Each model's own terms decide what you may do with its answers, and reselling access to the models is not allowed.

In a paid app
With conditions

Allowed inside your own product, but each model's terms apply to its output, and reselling access to the models is not allowed.

“You are solely responsible for reviewing the Model Terms applicable to each Model before accessing or using that Model and for determining whether the applicable Model Terms allow you and your Authorized Users to access and use the Service, Inputs, and Outputs as you intend.” source

To train your own AI
With conditions

OpenRouter sets no single rule; the terms of each model you use decide whether its output may train other models.

“Your ownership rights in the Output are set forth in the Model Terms for each Model you use.” source

client-work
With conditions

Fine; for commercial use read the DPA, and check each model's terms for your client's use.

“If you are part of and represent an organization in entering into these Terms or use the Service for commercial, for-profit purposes, please read the OpenRouter Data Processing Agreement (" DPA ") relating to our processing of your Personal Data (as defined in the DPA).” source

Keeps your data

“OpenRouter does not store your prompts or responses, unless you opt in to one or both of the following, or content is flagged as potential CSAM”

Where data is stored

“On the Business and Enterprise plans, OpenRouter supports in-region routing in the EU and US.”

Errors to handle

401

The key is invalid or disabled, or the OAuth session expired.

Check OPENROUTER_API_KEY; create a new key if it was deleted after a leak.

402

The account or the key has run out of credits, or a spending budget is reached.

Add credits or raise the key limit (the person decides); retry only when a Retry-After header is present.

429

Rate limited, by OpenRouter (free models) or by the provider.

Retry with exponential backoff and honor Retry-After; add fallback models.

502

The chosen model is down or sent an invalid response.

Retry, or list fallback models in the models parameter.

503

No provider meets your routing requirements (for example data-policy or region filters).

Relax provider preferences or pick another model; honor Retry-After.

Use it from an agent

Our agent check

5 of 6: llms.txt yes, OpenAPI no, SDK yes, MCP yes, status page yes, AI assistants allowed yes

Checked Nov 13, 2026.

MCP server

OpenRouter MCP server (remote, OAuth sign-in; for coding help, not for running models in your app)

claude mcp add --transport http openrouter https://mcp.openrouter.ai/mcp claude mcp login openrouter

npm
npm install @openrouter/sdk
PyPI
pip install openrouter

Instructions in its docs to check first

The docs say

“Read github.com/OpenRouterTeam/skills/tree/main/skills/create-agent-tui and follow the instructions to build an agent using OpenRouter.”

A note aimed at agents to fetch and follow outside instructions; ask the person before acting on it.

The docs say

“/plugin install openrouter@openrouter”

Installs a plugin into the coding agent from a marketplace; ask the person first.

Alternatives

OpenRouter This page

Free planFree tierOfficial MCP

Vercel AI Gateway

Pick Vercel AI Gateway when your app already runs on Vercel and you want one bill there for many models at provider list prices.

Free planFree tier

LiteLLM

Pick LiteLLM when you want to run the gateway yourself with your own provider keys, budgets and logging.

Free (open source)Free tier

Cloudflare AI Gateway

Pick Cloudflare AI Gateway when you keep your own provider accounts and want caching, logging and rate limits in front of them.

Free planFree tierOfficial MCP

All llm gateways and routers APIs

Get started

Tell your AI assistant

“Call OpenRouter from my server with the openai package (base_url https://openrouter.ai/api/v1) and OPENROUTER_API_KEY from .env, use one main model plus a fallback in the models list, and handle 402 and 429 errors; never put the key in browser code.”

  1. Create an account and a key with a credit limit, and keep it in an environment variable on your server.

    export OPENROUTER_API_KEY=<your key>

    From openrouter.ai/docs/api_reference/authentication.md

  2. Install the official client, or keep using the OpenAI package with OpenRouter's address.

    npm install @openrouter/sdk

    From openrouter.ai/docs/quickstart.md

  3. Send a first request (example from the quickstart).

    curl https://openrouter.ai/api/v1/responses \
      -H "Content-Type: application/json" \
      -H "Authorization: Bearer $OPENROUTER_API_KEY" \
      -d '{
      "model": "~openai/gpt-sol-latest",
      "input": "What is the meaning of life?"
    }'

    From openrouter.ai/docs/quickstart.md

First request

Request from the quickstart; response is the example from the API reference overview. The older /api/v1/chat/completions shape also works.

curl https://openrouter.ai/api/v1/responses \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -d '{
  "model": "~openai/gpt-sol-latest",
  "input": "What is the meaning of life?"
}'

Mistakes to avoid

Creating a key with no credit limit and using it everywhere.
Set a credit limit (and a reset period) on every key; use separate keys per app.

A leaked key or a runaway agent can spend the whole balance, auto top-ups included.

Adding a paid model after a :free model in the models list and expecting the call to stay free.
List only :free models, or use openrouter/free on its own.

The fallback is billed at the paid model's price.

Treating an HTTP 200 as success without reading the body.
Check the status and error fields in the body (and SSE events when streaming).

Errors that happen after the model started are sent with status 200.

Retrying every 402 in a loop.
Read error.metadata.limit_source; only the in-flight budget case with a Retry-After header should be retried.

A 402 without the header means credits or the key limit are used up.

Using the OpenRouter MCP server as the way your app runs models.
Use the MCP server while coding; call the API from the app.

The docs say the MCP is for build-time help.

Questions

Is there a free plan?

Yes. The free plan gives access to free models with a limit of 50 requests a day; buying at least 10 credits raises it to 1,000.

Is it more expensive than going to each AI company directly?

Model prices are passed through without markup; you pay a fee when you buy credits (5.5% on the standard plan).

Does OpenRouter keep my prompts?

Not by default. It keeps them only if you turn on logging or product use, or when content is flagged as possible child abuse material; request metadata is stored.

Can I use my existing OpenAI code?

Yes; set the base address to https://openrouter.ai/api/v1 and use your OpenRouter key.

Do more keys give me higher limits?

No; limits are counted for the whole account, but different models have different limits.