---
title: "What is OpenRouter? How its routing, pricing, and data controls work"
description: "What is OpenRouter? A hosted API for hundreds of LLMs. How it picks providers, falls back on errors, bills credits and BYOK, and handles your prompt data."
summary: "OpenRouter puts hundreds of language models behind one OpenAI-compatible API, one key, and one credit balance, and picks a provider for each request. This explainer covers its routing, fallbacks, plans and fees, BYOK, free-model limits, and data controls, from OpenRouter's own docs."
type: "explainer"
canonical_url: "https://theaiengineering.com/articles/what-is-openrouter"
markdown_url: "https://theaiengineering.com/articles/what-is-openrouter.md"
topic: "AI gateways and LLM routing"
author: "The AI Engineering Editors"
publisher: "The AI Engineering"
published: "2026-11-24"
updated: "2026-11-24"
keywords: ["what is openrouter","openrouter pricing","openrouter byok","openrouter free models","is openrouter safe","openrouter vs direct api"]
citation: "The AI Engineering Editors. \"What is OpenRouter? How its routing, pricing, and data controls work.\" The AI Engineering, updated Nov 24, 2026. https://theaiengineering.com/articles/what-is-openrouter"
---

# What is OpenRouter? How its routing, pricing, and data controls work

## TL;DR

- The short answer to what is OpenRouter: a hosted API with one OpenAI-compatible endpoint, one key, and one prepaid credit balance for hundreds of models, which picks the provider that serves each request.
- OpenRouter routes by default on effective price, throughput, time to first token, rate-limit and error rates, and tool-call quality, and a provider object in the request body overrides that choice.
- Provider fallback to another host of the same model is on by default, while model fallback to a different model needs a models list, and billing follows the model that answered.
- As of November 2026, OpenRouter passes provider prices through without markup and charges 5.5% on Standard or 8% on Business when you buy credits, and BYOK carries no fee up to $25,000 of list-price inference a month.
- OpenRouter stores no prompts or completions by default, but its default provider setting allows providers that may store or train on data, so sensitive traffic needs data_collection set to deny or Zero Data Retention.

OpenRouter is a hosted API that puts hundreds of language models behind one [OpenAI-compatible](https://theaiengineering.com/glossary/openai-compatible-api) endpoint, one API key, and one prepaid credit balance. You choose a model by its ID, and OpenRouter chooses which provider runs the request, retries elsewhere when a provider fails, and deducts the cost from your credits. This explainer covers what OpenRouter is and how its routing, fallbacks, pricing, bring-your-own-key option, and data controls work, from OpenRouter's own documentation as of November 2026. It belongs to the [AI gateways and LLM routing](https://theaiengineering.com/topics/ai-gateways) hub.

## What is OpenRouter?

OpenRouter is a hosted model aggregator that gives developers one API, one account, and one bill for hundreds of models, and picks a provider to serve each request. Its [pricing page](https://openrouter.ai/pricing) lists 600+ models from 80+ providers on paid plans as of November 2026, and 25+ free models from 4 providers on the free plan.

Most of OpenRouter's behavior follows from the difference between a model and a provider. A model, such as `meta-llama/llama-3.3-70b-instruct`, is what you ask for; a provider is a company that runs it on its own hardware. An [open-weights model](https://theaiengineering.com/glossary/open-weights-model) is often served by several [inference providers](https://theaiengineering.com/platforms/inference-providers) at different prices, speeds, and [quantization](https://theaiengineering.com/glossary/quantization) levels, and OpenRouter treats each deployment as an endpoint it can route to.

In gateway terms, OpenRouter supplies the unified API, provider routing, and failover parts of an [AI gateway](https://theaiengineering.com/glossary/ai-gateway) as a managed service, so every prompt passes through its servers. The explainer on [what an AI gateway is](https://theaiengineering.com/articles/what-is-an-ai-gateway) covers the self-hosted side of that comparison.

## How an OpenRouter request works

An OpenRouter request makes one hop from your application to OpenRouter, one or more attempts at provider endpoints, and one deduction from your credit balance. Between those steps, OpenRouter checks the key's credits and limits, filters and ranks the endpoints that serve the requested model, sends the request to the top choice, and normalizes whatever comes back.

**Figure 1: OpenRouter ranks every endpoint that serves the requested model, sends the request to the top one, and retries the next on a provider error.**

An app sends one request to OpenRouter, which checks the key, ranks three provider endpoints for the model, sends to the first, falls back to the second on error, and excludes the third.

Components:

- **Your app**: OpenRouter key + model ID
- **OpenRouter**: key, credits, budgets, guardrails filter and rank endpoints normalize response, deduct cost
- **Provider A**: ranked first
- **Provider B**: next on error
- **Provider C**: over your max_price

Connections:

- Your app → OpenRouter: one endpoint
- OpenRouter → Provider A: first try
- OpenRouter → Provider B: fallback

1. The application sends a request to `https://openrouter.ai/api/v1` with an OpenRouter key and a model ID, or an ordered list of model IDs.
2. OpenRouter checks the key's credit balance, any per-key credit cap, and the workspace's budgets and guardrails.
3. It filters the model's endpoints by the request's constraints, such as data policy, required parameters, and price cap, and ranks the rest.
4. It sends the request to one endpoint and, if that provider returns an error, retries another endpoint for the same model.
5. It returns one response schema, with a `model` field naming the model that answered and a `usage` block with token counts.
6. It deducts the cost. Under [Zero Completion Insurance](https://openrouter.ai/docs/guides/features/zero-completion-insurance), a response that errors, or has no output tokens and no finish reason, is not billed for model tokens.

Passing the response `id` to `GET /api/v1/generation` returns token counts and cost after the request completes.

## The OpenRouter API and model catalog

The OpenRouter API is [wire-compatible with OpenAI's REST API and SDKs](https://openrouter.ai/docs/guides/features/compatibility), so switching usually means changing three settings: the base URL, the API key, and the model ID. OpenRouter serves the Responses API, Chat Completions, and an Anthropic Messages endpoint at `/api/v1/messages`, and it normalizes request and response schemas across models and providers.

```python
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://openrouter.ai/api/v1",
    api_key=os.environ["OPENROUTER_API_KEY"],
)
resp = client.chat.completions.create(
    model="meta-llama/llama-3.3-70b-instruct",
    messages=[{"role": "user", "content": "Classify this ticket: refund request"}],
)
print(resp.model, resp.usage)
```

Model IDs take an `author/slug` form. The [models API](https://openrouter.ai/docs/guides/overview/models) (`GET /api/v1/models`) returns each model's `context_length`, its [context window](https://theaiengineering.com/glossary/context-window) in tokens, its `pricing` in USD per token, its `supported_parameters`, and an `expiration_date` set when an endpoint is scheduled for deprecation. A `canonical_slug` never changes, and aliases resolve to the current ID.

The catalog changes under a running application: a model whose price changes is served at the new rate, and a deprecated model returns a 404 error. Read prices from the models API at runtime, and give long-lived features a fallback model.

### Model variants

A suffix on a model ID changes how OpenRouter handles the request. The [model variants page](https://openrouter.ai/docs/guides/routing/model-variants/overview) lists these as of November 2026:

| Suffix | What it does | Status |
|---|---|---|
| `:free` | Free-tier version of the model with its own endpoints and rate limits | Active |
| `:nitro` | Sorts providers by throughput and admits priority service tier endpoints | Active |
| `:floor` | Sorts providers by price and admits flex service tier endpoints | Active |
| `:exacto` | Sorts providers by quality signals tuned for [tool-calling](https://theaiengineering.com/glossary/tool-calling) reliability | Active |
| `:batch` | Batch-priced version of the model, served by the Batch API | Active |
| `:thinking`, `:online`, `:extended` | Use the `reasoning` parameter and the `openrouter:web_search` server tool instead; no model offers `:extended` | Deprecated |

Suffixes can be combined, as in `:free:nitro`.

### Letting OpenRouter pick the model

Setting the model to `openrouter/auto` hands model choice to the [Auto Router](https://openrouter.ai/docs/guides/routing/routers/auto-router). A fast decision model rates the request, and the routing policy weighs that rating against live prices, cache status, and benchmark results to pick a model and reasoning effort. The router adds no fee, and an `allowed_models` list restricts it to approved models. A router that switches models also changes outputs, so pipelines with evaluation baselines usually pin a model; the guide to [LLM routing](https://theaiengineering.com/articles/llm-routing) covers that trade-off.

## How OpenRouter routes between providers

By default, OpenRouter sends each request to the provider endpoint expected to give a good response at the lowest real cost, measured from recent production traffic. Providers near the best share most traffic, picked at random by weight, and a provider with far more errors or 429s than its peers gets none until it recovers.

The [provider routing docs](https://openrouter.ai/docs/guides/routing/provider-selection) list the inputs to that score:

- Effective price, reflecting the provider's real cache hit rate and its mix of input and output tokens
- Throughput, in output tokens per second
- [Time to first token](https://theaiengineering.com/glossary/time-to-first-token)
- How often the provider returns 429 errors because it is out of capacity
- How often requests fail because of the provider
- Whether the provider's tool calls come back well formed

Follow-up requests in a conversation stay on the same provider while its [prompt cache](https://theaiengineering.com/glossary/prompt-caching) is warm. Default routing is bypassed when a request sets `sort` or `order`, uses `:nitro` or `:floor`, or runs on your own provider key.

### The provider object

A `provider` object in the request body overrides default routing for that request:

| Field | Default | What it does |
|---|---|---|
| `sort` | None | `"price"`, `"throughput"`, or `"latency"`; tries providers in that order |
| `order` | None | Provider slugs to try first, such as `["anthropic", "openai"]` |
| `allow_fallbacks` | `true` | `false` stops OpenRouter from using backup providers |
| `only`, `ignore` | None | Provider slugs to allow or skip |
| `require_parameters` | `false` | `true` uses only providers that support every parameter sent |
| `data_collection` | `"allow"` | `"deny"` skips providers that may store data |
| `zdr` | None | `true` restricts the request to Zero Data Retention endpoints |
| `quantizations` | None | Filters by precision, such as `["fp8", "bf16"]` |
| `max_price` | None | Highest price accepted, per million prompt and completion tokens |

This request asks for [structured output](https://theaiengineering.com/glossary/structured-outputs) only from endpoints that support it, retain no data, run at FP8 or BF16, and cost at most $0.50 and $1.50 per million prompt and completion tokens:

```json
{
  "model": "qwen/qwen3-next-80b-a3b-instruct",
  "messages": [{ "role": "user", "content": "Return the invoice total as JSON." }],
  "response_format": { "type": "json_object" },
  "provider": {
    "require_parameters": true,
    "zdr": true,
    "quantizations": ["fp8", "bf16"],
    "max_price": { "prompt": 0.5, "completion": 1.5 }
  }
}
```

`max_price` is a hard filter: if no endpoint is under the cap, the request does not run. Performance preferences such as `preferred_max_latency` only make matching providers preferred.

## Provider and model fallbacks on OpenRouter

OpenRouter has two fallback layers. Provider fallback retries the same model at another provider and is on by default. Model fallback moves to a different model from a `models` list you supply, and by default any error can trigger it, including context-length validation errors, moderation flags, rate limits, and downtime.

With `order` set, OpenRouter tries the listed providers one at a time, then other providers unless `allow_fallbacks` is `false`. With fallbacks disabled and no `order`, only the top-ranked endpoint serves the request. [Model fallback](https://openrouter.ai/docs/guides/routing/model-fallbacks) works down the `models` array in priority order and returns the last model's error if every model fails.

**Figure 2: Provider fallback retries the same model at another host; model fallback moves down the models list once every host of the first model fails.**

OpenRouter tries model A at two providers that both fail, falls back to model B, which answers, and bills the request at model B's price.

Steps:

1. Your app → OpenRouter: models: [A, B]
2. OpenRouter → Model A hosts: model A, provider 1
3. Model A hosts → OpenRouter: 429 out of capacity
4. OpenRouter → Model A hosts: retry at provider 2
5. Model A hosts → OpenRouter: 503 error
6. OpenRouter → Model B host: fall back to model B
7. Model B host → OpenRouter: completion
8. OpenRouter → Your app: model: B, billed at B

Billing follows the model that served the request. A `:free` model that falls back to a paid model is billed at the paid rate, so a request stays free only when every entry in `models` is a `:free` variant. Provider fallback cannot help when every host of a model is down or a prompt exceeds the model's context window; a second model from another lab covers both. The glossary entry on [model failover](https://theaiengineering.com/glossary/model-failover) compares how other gateways implement the pattern.

## OpenRouter pricing: plans, fees, and credits

OpenRouter bills inference at the providers' list prices with no markup and charges a fee when you buy credits: 5.5% on the Standard plan, with a $0.80 minimum, and 8% on the Business plan, as of November 2026. Its [FAQ](https://openrouter.ai/docs/faq) puts the fee on crypto payments at 5%. Each request then deducts its cost from the prepaid balance.

| Plan | Fee on credit purchases | Models | Rate limits | Notable features |
|---|---|---|---|---|
| Free | None | 25+ free models from 4 providers | 50 requests per day | Community support |
| Standard | 5.5% | 600+ from 80+ providers | Passed through from providers | Budgets, data policy routing, email support |
| Business | 8% | 600+ from 80+ providers | Passed through from providers | EU and US in-region routing, Workload Identity Federation, up to 1,000 workspaces |
| Enterprise | Discounts by contract | 600+ from 80+ providers | Higher allowances available | SAML SSO, SCIM, contractual SLAs, invoicing |

The fee scales with spend: on $10,000 of credit purchases a month, 5.5% is $550 and 8% is $800. Before a large top-up, note that OpenRouter reserves the right to expire unused credits one year after purchase, and unused credits can be refunded only within 24 hours of the transaction; platform fees and crypto payments are not refundable.

Each API key can carry its own credit cap, and workspace guardrails add budgets that reset daily, weekly, or monthly, plus model and provider allowlists. The lower limit wins. These controls cover part of what [virtual keys](https://theaiengineering.com/glossary/virtual-key) do in a self-hosted gateway, scoped to OpenRouter traffic.

## OpenRouter free models and rate limits

OpenRouter's free models are `:free` variants capped at 20 requests per minute and 50 requests per day for accounts that have bought less than $10 of credits in total, and 1,000 requests per day once they have bought at least $10. Those caps make free models suitable for testing and prototypes, not for serving production traffic.

Paid models have no OpenRouter request quota beyond DDoS protection. According to OpenRouter's [limits documentation](https://openrouter.ai/docs/api_reference/limits), [rate limits](https://theaiengineering.com/glossary/rate-limiting) on paid models come from the upstream providers, fallback routing retries other providers when one returns a 429, and extra keys or accounts do not raise limits because capacity is governed globally. A negative credit balance can produce 402 errors even on free models, and `GET /api/v1/key` reports the remaining credit limit and the free-model daily counter.

## OpenRouter BYOK: using your own provider keys

Bring your own key (BYOK) lets you add your own provider API keys to OpenRouter, so the provider bills you for inference while OpenRouter still routes the requests. On Standard and Business, the first $25,000 of list-price inference each month carries no OpenRouter fee; above that, OpenRouter deducts 5% of the equivalent OpenRouter price from your credits.

The [BYOK docs](https://openrouter.ai/docs/guides/overview/auth/byok) define a fixed order: prioritized keys first, then OpenRouter's shared endpoints, then fallback keys. The default matters for compliance. If every one of your keys hits a rate limit or fails, OpenRouter falls back to its shared capacity and spends your credits. Setting a prioritized key to never use shared capacity for any model on that provider keeps traffic on your own account.

When a request sets `order`, each named provider's BYOK key is tried before that provider's shared capacity. BYOK traffic follows the same Zero Data Retention rules as credit-funded traffic unless you declare ZDR on a key under your own provider agreement.

## Is OpenRouter safe? Data handling and residency

OpenRouter does not store prompts or completions by default; it stores request metadata such as token counts and latency. The larger variable is the provider. The default `data_collection` setting allows providers that store data non-transiently and may train on it, so teams sending customer data should deny those providers or require Zero Data Retention.

Two opt-in settings, both off by default, change OpenRouter's own storage, according to its [data collection page](https://openrouter.ai/docs/guides/privacy/data-collection). Private logging shows prompts and completions in your logs, and a separate setting lets OpenRouter use them to improve its product in exchange for a 1% discount on model usage.

Zero Data Retention (ZDR) routes only to endpoints with no routine storage of prompts or responses after processing. It can be enforced in privacy settings, in a guardrail, or per request with `"zdr": true`, and the request flag cannot remove an account-wide rule. The [ZDR page](https://openrouter.ai/docs/guides/features/zdr) adds these caveats:

- Safety Retention endpoints, where data may be kept only to prevent abuse, stay eligible on self-serve accounts unless you choose "ZDR only".
- Since October 18, 2026, Google has required Safety Retention for Google models on Vertex, so "ZDR only" excludes most Google models.
- ZDR covers provider routing for inference, not plugins and server tools such as web search.
- OpenRouter announced in-flight CSAM screening of all inference requests, ZDR traffic included, from October 27, 2026.

Workspace [guardrails](https://theaiengineering.com/glossary/guardrails) add content controls: regex-based [prompt injection](https://theaiengineering.com/glossary/prompt-injection) detection, redaction of sensitive information, and custom regex filters.

[In-region routing](https://openrouter.ai/docs/guides/features/in-region-routing), on Business and Enterprise, keeps prompt and completion processing in Europe through `eu.openrouter.ai` or in the US through `us.openrouter.ai`, and a request fails rather than leave the region. Account data, billing records, security logs, and abuse-monitoring metadata may still be processed in the US, and the Batch API runs only on the global endpoint.

## OpenRouter vs direct API access

OpenRouter suits teams that want many models behind one integration and accept a hosted service in the request path. Calling a provider directly suits teams that spend heavily with one or two labs, depend on provider-specific features that a normalized API may not expose, or cannot let a third party process prompts.

| Consideration | Through OpenRouter | Direct to the provider |
|---|---|---|
| Integration | One API, key, and bill for 600+ models | One SDK, account, and invoice per lab |
| Inference price | List price plus 5.5% or 8% on credit purchases, or the BYOK fee above $25,000 a month | List price or a negotiated contract |
| Availability | Automatic provider fallback, optional model fallback | Your own retries and failover |
| Rate limits | Passed through from providers; free models capped daily | Your account's own tier |
| Data path | Prompts pass through OpenRouter, then the provider | Prompts go only to the provider |

OpenRouter tends to fit when you compare or switch models often, call open-weights models that several hosts serve, want one prepaid balance with per-key caps, or prototype within the free-model caps. It tends to be the wrong fit when:

- A security review rules out another company processing prompts in transit.
- You need data residency on the Standard plan, since in-region routing starts at Business.
- The credit fee at your volume costs more than the integration work it saves.
- You need per-team keys and logs inside your own network. A self-hosted gateway covers that, and some, such as [LiteLLM](https://docs.litellm.ai/docs/providers/openrouter), can use OpenRouter as one upstream provider.

That covers what OpenRouter is and how it bills. For the wider category, the [AI gateways directory](https://theaiengineering.com/platforms/ai-gateways) lists hosted and self-hosted options by deployment model, and the comparison of [LiteLLM alternatives](https://theaiengineering.com/articles/litellm-alternatives) puts OpenRouter next to gateways you run yourself.

## Frequently asked questions

### What is OpenRouter used for?

OpenRouter is used to reach many language models through one API without opening an account with each lab. Developers use it to compare and switch models by changing a model ID, to call open-weights models that several inference providers host with failover between them, and to prototype on free models. Apps can also use its OAuth PKCE flow so end users bring their own OpenRouter key and pay for their own inference.

### Is OpenRouter free?

OpenRouter has a free plan with 25+ free models from 4 providers, but paid models cost money. The free :free variants are capped at 20 requests per minute and 50 requests per day, rising to 1,000 requests per day once an account has bought at least $10 of credits. If a free model falls back to a paid model, the request is billed at the paid model's rate.

### Is OpenRouter cheaper than using the API directly?

Usually not for heavy use of one provider. OpenRouter charges each model at the provider's list price with no markup, but adds a fee on credit purchases: 5.5% on Standard with a $0.80 minimum, or 8% on Business, as of November 2026. Direct contracts avoid that fee. The fee buys one integration, automatic provider fallback, and price-aware routing across the hosts of open-weights models.

### Is OpenRouter safe to use?

OpenRouter's own defaults are conservative, but its provider defaults are not. By default it stores request metadata such as token counts and latency, not prompts or completions. The default data_collection setting, however, allows providers that store data and may train on it. Setting data_collection to deny, or enforcing Zero Data Retention in privacy settings or per request, restricts routing to stricter endpoints.

### Does OpenRouter work with the OpenAI SDK?

Yes. OpenRouter is wire-compatible with OpenAI's REST API and its official Python and TypeScript SDKs. Point the client's base URL at https://openrouter.ai/api/v1, pass an OpenRouter API key, and use OpenRouter model IDs such as openai/gpt-4o-mini. Tool calling works when the underlying model supports it, and OpenRouter-only fields such as provider or models go in the request body, through extra_body in the Python SDK.

### What types of models does OpenRouter support?

OpenRouter's catalog is mostly text-generation models, which its models API returns by default, but it also lists image and video generation, text-to-speech, transcription, embedding, and rerank models. Passing the output_modalities parameter to GET /api/v1/models lists them. Many text models also accept images, PDFs, audio, or video as input, which each model's input_modalities field shows.

## Terms in this guide

- [AI gateway](https://theaiengineering.com/glossary/ai-gateway): An AI gateway is a proxy layer between applications and model providers that exposes one API for many models and centralizes routing, failover, access control, cost tracking, caching, and logging.
- [OpenAI-compatible API](https://theaiengineering.com/glossary/openai-compatible-api): An OpenAI-compatible API is an HTTP API that accepts OpenAI's request and response formats, so code written for OpenAI's SDKs can call another server by changing the base URL, API key, and model name.
- [Open-weights model](https://theaiengineering.com/glossary/open-weights-model): An open-weights model is an AI model whose trained parameters are published for download, so anyone can run, fine-tune, or quantize it on their own hardware under the terms of its license.
- [Quantization](https://theaiengineering.com/glossary/quantization): Quantization is a model compression technique that represents a neural network's weights, and sometimes its activations or KV cache, with fewer bits, such as 8-bit or 4-bit integers instead of 16-bit floats.
- [Context window](https://theaiengineering.com/glossary/context-window): A context window is the maximum number of tokens a language model can take into account in a single request, including the system prompt, conversation history, tool results, and the generated output.
- [Tool calling](https://theaiengineering.com/glossary/tool-calling): Tool calling is an LLM capability in which the model, given a list of tool definitions, outputs a structured request naming a tool and its arguments, which the application executes and returns.
- [Time to first token](https://theaiengineering.com/glossary/time-to-first-token): Time to first token (TTFT) is the elapsed time from submitting a request to an LLM until the first token of the response arrives, covering request queuing, network transit, and prompt prefill.
- [Prompt caching](https://theaiengineering.com/glossary/prompt-caching): Prompt caching is an LLM API and inference-server feature that stores the computed attention state for a repeated prompt prefix, so later requests sharing that prefix skip reprocessing it.
- [Structured outputs](https://theaiengineering.com/glossary/structured-outputs): Structured outputs is an LLM API feature that constrains generation so the model's response always conforms to a developer-supplied JSON Schema, producing output that code can parse without retries.
- [Model failover](https://theaiengineering.com/glossary/model-failover): Model failover is the automatic rerouting of an LLM request to a backup model, deployment, or provider when the primary target returns an error, times out, or hits a rate limit.
- [Rate limiting](https://theaiengineering.com/glossary/rate-limiting): Rate limiting is the enforcement of a maximum number of requests or tokens a client may send to an API within a time window, with excess requests rejected, usually with HTTP 429.
- [Virtual key](https://theaiengineering.com/glossary/virtual-key): A virtual key is an API key issued by an AI gateway that maps a caller to its allowed models, budget, and rate limits, while the gateway keeps the real provider credentials.
- [Guardrails](https://theaiengineering.com/glossary/guardrails): Guardrails are programmatic checks placed around a large language model that validate, filter, or block inputs, outputs, and tool calls so an AI application stays within its safety, security, and policy limits.
- [Prompt injection](https://theaiengineering.com/glossary/prompt-injection): Prompt injection is an attack in which text supplied to a large language model, typed by a user or hidden in content the model reads, alters the application's intended behavior or output.

## Related guides

- [What is an AI gateway? How it works and when you need one](https://theaiengineering.com/articles/what-is-an-ai-gateway): An AI gateway is a proxy between your apps and model providers. Learn how it works, its core features, AI gateway vs API gateway, and open source options.
- [LLM routing: strategies, fallbacks, and learned routers](https://theaiengineering.com/articles/llm-routing): LLM routing guide: rule-based and cost-aware strategies, fallbacks, load balancing, semantic and learned routers like RouteLLM, router evals, and pitfalls.
- [LiteLLM alternatives: 9 open-source and managed AI gateways compared](https://theaiengineering.com/articles/litellm-alternatives): LiteLLM alternatives compared: Bifrost, Agent Router, agentgateway, Kong, APISIX, Portkey, Cloudflare, Vercel, and OpenRouter, plus how to migrate off LiteLLM.
- [API management platforms compared: Azure, Apigee, AWS, Kong, and more](https://theaiengineering.com/articles/api-management-platforms): API management platforms compared: Azure, Apigee, Amazon API Gateway, Kong, MuleSoft, Tyk, and Gravitee on deployment, gateway, AI features, and pricing.

Part of the [AI gateways and LLM routing](https://theaiengineering.com/topics/ai-gateways) topic hub.

## Cite this guide

The AI Engineering Editors. "What is OpenRouter? How its routing, pricing, and data controls work." The AI Engineering, updated Nov 24, 2026. https://theaiengineering.com/articles/what-is-openrouter

- Title: What is OpenRouter? How its routing, pricing, and data controls work
- Author: The AI Engineering Editors
- Publisher: The AI Engineering
- Published: 2026-11-24
- Updated: 2026-11-24
- URL: https://theaiengineering.com/articles/what-is-openrouter
- Markdown: https://theaiengineering.com/articles/what-is-openrouter.md

To cite one section, link to its anchor:

- [What is OpenRouter?](https://theaiengineering.com/articles/what-is-openrouter#what-is-openrouter)
- [How an OpenRouter request works](https://theaiengineering.com/articles/what-is-openrouter#how-an-openrouter-request-works)
- [The OpenRouter API and model catalog](https://theaiengineering.com/articles/what-is-openrouter#the-openrouter-api-and-model-catalog)
- [How OpenRouter routes between providers](https://theaiengineering.com/articles/what-is-openrouter#how-openrouter-routes-between-providers)
- [Provider and model fallbacks on OpenRouter](https://theaiengineering.com/articles/what-is-openrouter#provider-and-model-fallbacks-on-openrouter)
- [OpenRouter pricing: plans, fees, and credits](https://theaiengineering.com/articles/what-is-openrouter#openrouter-pricing-plans-fees-and-credits)
- [OpenRouter free models and rate limits](https://theaiengineering.com/articles/what-is-openrouter#openrouter-free-models-and-rate-limits)
- [OpenRouter BYOK: using your own provider keys](https://theaiengineering.com/articles/what-is-openrouter#openrouter-byok-using-your-own-provider-keys)
- [Is OpenRouter safe? Data handling and residency](https://theaiengineering.com/articles/what-is-openrouter#is-openrouter-safe-data-handling-and-residency)
- [OpenRouter vs direct API access](https://theaiengineering.com/articles/what-is-openrouter#openrouter-vs-direct-api-access)
- [Frequently asked questions](https://theaiengineering.com/articles/what-is-openrouter#faq)
