# OpenRouter

> Canonical: https://skillalmanac.com/glossary/openrouter | Last verified: 2026-11-24 | Index status: not offered to search engines

OpenRouter is a service, published by OpenRouter, that gives access to many AI models from different providers through a single API endpoint. Applications send requests to OpenRouter, which forwards them to the chosen model.

Also called: open router ai, openrouter api, openrouter models, OpenRouter AI.

## In plain language

OpenRouter is a switchboard for AI models. Normally, if you want to use models from several companies, you sign up with each one and write code for each interface. With OpenRouter you write code once, point it at OpenRouter's address, and name the model you want. A developer might use it to try several models on the same task without rewriting the app. The limit is that your requests travel through one more company on the way to the model provider, so its terms and data handling matter alongside the provider's. Costs depend on which model you pick, so read the pricing page and set a budget before you run an agent in a loop, because agents can send many requests.

## Technical definition

OpenRouter exposes a REST API whose request and response schemas, according to its API reference, are very similar to OpenAI's APIs, with a few small differences, and it normalizes the schema across models and providers. Its quickstart states that existing OpenAI SDK code can use it as a drop-in replacement by setting the base URL to https://openrouter.ai/api/v1. Requests can use a Responses-style input field or Chat Completions-style messages. The API reference says parameters a model does not support are ignored. The quickstart also says OpenRouter handles fallbacks automatically. A separate router feature can pick a model for each request within limits you set.

## How it shows up when you use agents

When people run coding agents or build their own agent loops, the model is usually reached over a network API. OpenRouter sits between the agent and several providers. Instead of keeping one account and one client library per provider, you keep one connection and change the model name in the request. Because its API follows OpenAI's request format closely, tools that already speak that format can often be pointed at OpenRouter by changing the base URL, as its quickstart describes.

For an agent, this matters in three places. The model name becomes a setting you can change per task. Each request is still billed by the model you pick, so a long agent session can add up; see [AI pricing model](/glossary/ai-pricing-model) and [token](/glossary/token). And limits on requests still apply; see [rate limit](/glossary/rate-limit).

What breaks when it is misunderstood: people assume that a gateway makes every model behave the same. The API reference says OpenRouter normalizes the schema, and also says unsupported parameters are ignored, so a setting you rely on may have no effect on a given model. Check that the model supports what your agent needs, such as [tool calling](/glossary/tool-calling), before you switch.

Next action: pick one task, run it against two models with the same prompt, and compare results and cost with the [LLM cost estimator](/skills/skill-almanac/llm-cost-estimator) before standardising.

## Common confusions

- **OpenRouter versus a model.** OpenRouter lists models from other providers and forwards requests to them. See [AI model](/glossary/ai-model).
- **OpenRouter versus OpenAI.** The API format is similar by design, but they are different companies and different services.
- **OpenRouter versus running a model locally.** A local model runs on your hardware. OpenRouter is a hosted service your requests travel through. See [self-hosted LLM](/glossary/self-hosted-llm).
- **Myth: one endpoint means one price.** You pay according to the model you choose, so the endpoint does not set the cost.

## Worked examples in this catalogue

### [llm-cost-estimator](https://skillalmanac.com/skills/skill-almanac/llm-cost-estimator)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A monthly LLM cost range built from a usage profile and your own price table, with cache, batch and subscription effects.

Why it exercises the concept: A gateway like OpenRouter makes many models reachable with one code path. This skill is how you estimate what a chosen model would cost with your own prices.

### [local-model-sizing](https://skillalmanac.com/skills/skill-almanac/local-model-sizing)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A check of whether an open-weight language model will run on a given GPU, Mac or PC, with a script that computes memory needs.

Why it exercises the concept: It is the contrast case: running a model on your own hardware instead of calling a hosted one through an API.

### [Self-Hosting an AI Agent: What You Take On](https://skillalmanac.com/learn/self-hosted-ai-agent-considerations)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: What you own when an AI agent runs on your machine: model memory, network exposure, file access and vetting skills.

Why it exercises the concept: It sets out what changes when the model is not behind someone else's API, which helps you weigh a hosted gateway against self-hosting.

## Related terms

- [Large language model (LLM)](https://skillalmanac.com/glossary/large-language-model.md)
- [AI model](https://skillalmanac.com/glossary/ai-model.md)
- [Inference](https://skillalmanac.com/glossary/inference.md)
- [Token](https://skillalmanac.com/glossary/token.md)
- [AI pricing model](https://skillalmanac.com/glossary/ai-pricing-model.md)
- [Rate limit](https://skillalmanac.com/glossary/rate-limit.md)
- [LLM gateway](https://skillalmanac.com/glossary/llm-gateway.md)
- [Model router (LLM routing)](https://skillalmanac.com/glossary/model-router.md)

## Sources

- [Quickstart](https://openrouter.ai/docs/quickstart), OpenRouter (accessed 2026-11-24)
- [API Reference overview](https://openrouter.ai/docs/api-reference/overview), OpenRouter (accessed 2026-11-24)
- [Model routing](https://openrouter.ai/docs/features/model-routing), OpenRouter (accessed 2026-11-24)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-24. [Glossary index](https://skillalmanac.com/glossary.md).
