# OpenRouter

> One key that reaches hundreds of AI models.

**Field:** Artificial Intelligence  
**Category:** Models & Providers  
**Also known as:** Open Router, OpenRouter API

## Think of it like

It is like one key that opens a hundred doors.

## Definition

OpenRouter is a service that gives you one API and one key to reach hundreds of models from many providers. You send a request in one format and name the model you want. OpenRouter passes it on to a provider that serves that model. It bills you per token, in one place. It can also switch to another provider when one is down. It is a kind of LLM gateway, run for you as a service.

## Example

Emma wants to test five models on the same task. With OpenRouter she changes only the model name in her code, not five sets of keys and formats.

## Why it matters

It makes trying and switching models cheap, so you are not tied to one provider.

## Common mistake

Forgetting that your data passes through one more firm. Check what it keeps and logs before you send it anything private.

## Three principles

- **One key.** Many models.
- **Passes it on.** To a provider.
- **Switch freely.** Change one name.

## Related terms

- [LLM Gateway](https://learn.benibix.com/term/development/llm-gateway)
- [LLM API](https://learn.benibix.com/term/development/llm-api)
- [Model Fallback](https://learn.benibix.com/term/development/model-fallback)
- [Token Pricing](https://learn.benibix.com/term/development/token-pricing)
- [Inference Provider](https://learn.benibix.com/term/ai/inference-provider)
- [LiteLLM](https://learn.benibix.com/term/development/litellm)

## Told apart from

- [LiteLLM vs OpenRouter](https://learn.benibix.com/compare/litellm-vs-openrouter): People think LiteLLM and OpenRouter are the same, since both let one app reach many models. LiteLLM is free code you run yourself. You give it your own key for each provider. OpenRouter is a service that someone else runs. You use one OpenRouter key, and it bills you for every model in one place.
- [OpenRouter vs Inference Provider](https://learn.benibix.com/compare/openrouter-vs-inference-provider): People think OpenRouter runs AI models, like an inference provider. It does not. An inference provider owns the chips that run a model and sells the answers. OpenRouter passes your request to one of those providers. It gives you one key and one bill for hundreds of models, and it switches provider if one fails.

## Taught in

- [OpenRouter and Model APIs](https://learn.benibix.com/learn/ai-models-providers/openrouter-and-model-apis): AI Models and Providers, 13/13

![An app sends every request to OpenRouter with one key. OpenRouter passes it on to one of many model providers.](https://learn.benibix.com/diagrams/pv-openrouter.svg)

---

Source: https://learn.benibix.com/term/ai/openrouter
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
