Data & AI Infrastructure

OpenRouter

Reach models from many providers through one API key and one billing account.

Rating
No verified aggregate rating
Pricing
Free
No platform fee
Standard
5.5% fee on credit purchases
Business
8% fee on credit purchases
Enterprise
Custom
Best for
Developers comparing models from several providers behind one API key.

Video tutorial

How to Use OpenRouter API (Step-by-Step) · Third-party tutorial by Md Al Mamun · Watch on YouTube ↗

This video was not made by OpenRouter. Features and prices may have changed since it was published, so rely on the pricing section of this page, checked December 4, 2026.

What is OpenRouter?

OpenRouter sits between your application and model providers. You call one API at https://openrouter.ai/api/v1 with one key, name the model you want, and it routes the request to a provider that serves it. The pricing page lists 700+ models from 100+ providers on paid plans and 25+ free models on the Free plan. The quickstart says it handles fallbacks automatically and picks the most cost-effective option for each request, but it does not describe how those choices are made or configured.

Model names come from the catalog or from GET /api/v1/models. Some names are “latest” aliases, such as ~anthropic/claude-sonnet-latest, which resolve to the newest model in a family. That is convenient, but the answers can change when the alias moves, so use a specific model name for any test you want to repeat.

Set up and test a real workflow

Create an API key, then call GET /api/v1/models to confirm the key works and to find the exact model name you want. Send a POST to /api/v1/responses with a model and an input string, with your key in an Authorization: Bearer header. The quickstart's examples use that endpoint. Check that the status in the response is “completed” and read the text from the message items in the output array. Check the docs for the endpoint your client library expects before connecting an existing SDK.

What to look for in the result

Send the same one-line question to two different model names and write down the status, the text and how long each took. Then send a request with a model name that does not exist, so you see the error your code will have to handle. Accept the setup once you can repeat the call, read the output field and handle that error without guessing.

Common problems and how to fix them
ProblemWhat to checkWhat to change
Free model requests stop workingFree models allow 20 requests per minute and 50 per day, rising to 1,000 per day after $10 of credits. Failed attempts count toward the cap, and a negative balance blocks free modelsSpace out test calls, count retries, and add credits if you need the higher daily limit
Costs look higher than the model priceStandard charges a 5.5% fee on credit purchases and Business 8%. Fees are not charged per requestAdd the fee to your cost estimate before buying credits

Try it: Compare two models on the same short task

Use two model names and one small task, so the only thing that changes is the model.

Sample brief
Summarise this in one sentence, then give the new day on its own line: “The meeting moved from Tuesday to Thursday because the room was double-booked.”
  1. Pick two model names from the catalog, and use a free one if you want to avoid spending credits.
  2. Send the same request to both and record the answer, the status and the time taken.
  3. Check your credit balance before and after, then repeat once to see how much the answers vary.

What a usable result looks like

Both models return a usable answer, and you can see what each call cost you.

Example results for the sample brief
CheckWhat you might seeWhat to do next
FormatOne sentence, then the day on its own lineTighten the instruction if either model ignores the layout
AccuracyThe new day is ThursdayTreat a wrong day as a failed test, whatever the style
CostFree model leaves the balance alone; paid model changes itNote the difference per call before scaling up

What to save from the trial

The two model names, your prompt, and a note on which you would use for this task.

Another scenario

Repeat the test with a name that ends in “latest” and again a week later, to see whether the answer shifts.

Use cases and what to check

Use caseHow to try itWhat to check
Comparing modelsSend one prompt to several model namesCompare answer quality and response time
Keeping an app running when a provider has troubleRely on the automatic fallback described in the quickstartCheck how failed attempts show up. The pricing page says failed or fallback attempts are not billed for model tokens
Controlling data handlingUse data-policy routing on Standard and above, or zero-data-retention routing, which is on every planConfirm the setting is applied to your account or request

Which plan should you try?

PlanPriceWhat it includes
FreeNo platform fee25+ free models, 4 free providers, 5 workspaces. Free model limits apply.
Standard5.5% fee on credit purchases700+ models, 100+ providers, 5 workspaces. Bring your own key: the first $25,000 of list-price inference a month has no OpenRouter fee, then 5%.
Business8% fee on credit purchases1,000 workspaces, plus EU and US in-region routing.
EnterpriseCustomInvoicing, SSO/SAML, contractual SLAs and managed policy enforcement.

Fees are never charged per request. Failed or fallback attempts are not billed for model tokens.

Provider pricing and access ↗ · Checked

Limits to check

Free models have low daily limits, and failed attempts count toward them. The fee is taken when you buy credits, so the real cost is the model price plus the fee. The quickstart does not explain how routing and fallback choices are made, so test the behaviour you depend on. Data handling depends on the plan: data-policy routing and admin controls start at Standard, managed policy enforcement is Enterprise only, zero-data-retention routing is on every plan, and in-region routing starts at Business.

When to choose it

OpenRouter is useful when you want to try several providers' models without managing a separate account for each. If you want to host or run models in a specific place, compare these:

  • Together AI · Call hosted inference endpoints for selected models and compare serverless and dedicated capacity.
  • Replicate · Run hosted machine-learning models and custom deployments through an API.
  • Hugging Face · Discover, evaluate, share, and host model, dataset, and application repositories.

Common questions

Do I pay per request?
The pricing page says fees are never charged per request. The fee is a percentage added when you buy credits, and model usage is billed for tokens.
Can I use my own provider keys?
Yes on Standard and Business. The first $25,000 of list-price inference a month carries no OpenRouter fee, and a 5% fee applies above that. Enterprise terms are custom.
What happens when a request fails?
On free models a failed attempt still counts toward the daily cap. On paid use, failed or fallback attempts are not billed for model tokens.

Sources and further reading