OpenRouter models: IDs, variants, routers and the models API
How OpenRouter model IDs work: author/slug, the :free, :nitro, :floor and :exacto suffixes, the models API's price and context fields, routers, picking one for an agent.
An OpenRouter model ID is author/slug, such as qwen/qwen3-coder, sometimes with a suffix like :free or :nitro. Browse them at openrouter.ai/models, or list them with GET https://openrouter.ai/api/v1/models, which gives each model’s context length, price in US dollars per token, and the request parameters it supports. For an agent, pick a model whose supported_parameters include tools and whose context length fits your work, or let a router choose: openrouter/auto-code is the one OpenRouter tunes for coding agents.
How a model ID is built
Every model is named by its maker and its own slug: openai/gpt-4o, qwen/qwen3-coder. That string is what goes in the model field of a request, and it is also the model’s page on the site: openrouter.ai/qwen/qwen3-coder. Three other forms appear:
- A suffix after a colon, such as
:freeor:floor, which picks a variant or changes how a provider is chosen (next section). - A tilde alias, such as
~anthropic/claude-sonnet-latest, which follows a family to its newest model. The tilde is part of the ID; leaving it off is one of the causes in “is not a valid model ID”. - A router, such as
openrouter/auto, which is not a model at all but picks one per request.
Each model also has a canonical_slug, a dated name that OpenRouter says never changes: qwen/qwen3-coder is qwen/qwen3-coder-480b-a35b-07-25. Old names still resolve when you look a model up, so anthropic/claude-3-5-sonnet comes back as anthropic/claude-3.5-sonnet. Copy the id the lookup returns into your config.
The suffixes, as of November 2026
OpenRouter’s variants page sorts suffixes into two kinds. A catalog variant is a separate entry with its own price and providers, and exists only for models that list it. A routing variant works on any model ID and changes only which provider serves the request.
| Suffix | Kind | What it does |
|---|---|---|
:free | Catalog | The free version, with its own rate limits and providers |
:batch | Catalog | The batch-priced version, served through the Batch API |
:nitro | Routing | Sorts providers by throughput; may use a priority tier, billed at its rate |
:floor | Routing | Sorts providers by price; may use a flex tier, billed at its rate |
:exacto | Routing | Sorts providers by signals tuned for tool-calling reliability |
:thinking | Deprecated | Use the reasoning parameter instead |
:extended | Deprecated | No model offers it |
:online | Deprecated | Use the openrouter:web_search server tool instead |
An ID takes at most one catalog variant and any number of routing variants; if several sorting ones appear, the last one wins. A :free on a model that has no free entry does not fall back to the paid one, it fails. Because :nitro and :floor can reach priority and flex tiers, what you are charged can differ from the price the catalog lists. The free entries and their daily caps are covered in OpenRouter free models.
Listing models from the API
The models endpoint returns the catalog as JSON. Its API reference lists a bearer API key in the Authorization header and a 401 “Missing Authentication header” without one, while the examples in OpenRouter’s models guide send no key; without a key, the list came back in late November 2026 in a different shape (display_name, max_input_tokens), without prices. So send the key, from an environment variable rather than typed into the command, where it would land in your shell history. read -s takes it without echoing it to the screen:
read -rs OPENROUTER_API_KEY && export OPENROUTER_API_KEYCopiedcurl -s "https://openrouter.ai/api/v1/models?supported_parameters=tools&context=200000&sort=pricing-low-to-high" \
-H "Authorization: Bearer $OPENROUTER_API_KEY" \
| jq -r '.data[] | "\(.id) ctx=\(.context_length) in=$\(.pricing.prompt|tonumber*1e8|round/100)/M out=$\(.pricing.completion|tonumber*1e8|round/100)/M"'CopiedThat lists text models that accept tool definitions and hold at least 200,000 tokens of context, cheapest first, with prices turned into dollars per million tokens. Without filters the list holds text-output models only; output_modalities=all adds the models with other kinds of output. Other documented filters include q (search by name or slug), max_price (input price in dollars per million), providers, model_authors and zdr=true for zero-data-retention endpoints. Sort values include pricing-low-to-high, context-high-to-low, throughput-high-to-low, top-weekly and newest.
One model at a time, the lookup is /api/v1/model/<author>/<slug>, which returns 404 for an ID that does not exist:
curl -s https://openrouter.ai/api/v1/model/qwen/qwen3-coder \
-H "Authorization: Bearer $OPENROUTER_API_KEY" \
| jq '.data | {id, context_length, pricing, top_provider, supported_parameters, expiration_date}'CopiedWhat the fields mean
| Field | What it tells you |
|---|---|
id | The string to put in your agent’s config |
context_length | The context window in tokens |
pricing.prompt, pricing.completion | US dollars per input and output token, as strings; "0" is free |
pricing.input_cache_read, input_cache_write | Per-token price of cached input, where the model has it |
pricing.overrides | Conditional prices, such as a higher rate past a prompt length |
top_provider.max_completion_tokens | The output ceiling; input shares the window, so it is not guaranteed |
supported_parameters | What a request may use: tools, tool_choice, reasoning, structured_outputs and others |
expiration_date | The model’s deprecation date; null if it is not deprecated |
Read on November 27, 2026, qwen/qwen3-coder had a context of 262,144 tokens, an output ceiling of 65,536, and prices of "0.0000003" and "0.000001", which is $0.30 per million input tokens and $1.00 per million output tokens. Prices change; read them on the day. What OpenRouter itself adds on top of these, and how spend is reported, is in OpenRouter pricing and fees.
One model, several providers
The model entry shows one price and one context length, but most models are served by several providers that differ in both. The endpoints list shows them:
curl -s https://openrouter.ai/api/v1/models/qwen/qwen3-coder/endpoints \
-H "Authorization: Bearer $OPENROUTER_API_KEY" \
| jq '.data.endpoints[] | {tag, quantization, context_length, max_completion_tokens, pricing: {prompt: .pricing.prompt, completion: .pricing.completion}, tools: (.supported_parameters | any(. == "tools"))}'CopiedOn November 27, 2026 that showed DeepInfra (deepinfra/turbo, fp4, 262,144 context, $0.30 and $1.00 per million) and Venice (venice/fp8, fp8, 256,000 context, $0.35 and $1.50 per million). So the same ID can be answered at a different quantization, window and price depending on which provider takes the request. The tag is the provider slug the routing settings below take, and the copy button next to each provider on the model’s page gives the same string. When an agent is refused with “No endpoints found that support tool use”, this list is where to look: the no-endpoints guide walks through it.
Choosing the provider
By default, OpenRouter’s provider routing compares what a good response would cost at each provider and spreads requests among those close to the best, retrying on another if one fails. On every request that includes tools, it also runs Auto Exacto, which reorders providers by tool-calling success, throughput and benchmark data. Sorting by price turns that off.
A request that can carry a provider object takes these fields, among others:
| Field | Default | Effect |
|---|---|---|
order | none | Provider slugs to try first, in order |
allow_fallbacks | true | Whether other providers may be used when those fail |
only, ignore | none | Providers allowed, or skipped, for this request |
require_parameters | false | Use only providers that support every parameter sent |
data_collection | "allow" | "deny" excludes providers that may store data |
zdr | none | Zero-data-retention endpoints only |
sort | none | "price", "throughput" or "latency" |
max_price | none | Most you will pay, in dollars per million tokens |
{
"model": "qwen/qwen3-coder",
"messages": [{"role": "user", "content": "..."}],
"provider": {
"order": ["deepinfra/turbo"],
"allow_fallbacks": false,
"data_collection": "deny"
}
}CopiedWith allow_fallbacks set to false, the request fails if that provider fails rather than moving on. The data settings are explained in OpenRouter privacy and data retention.
Most agents send a model string and nothing else, so there is nowhere to put this object. Two routes still reach the routing from a model string alone. The routing suffixes work on any ID: qwen/qwen3-coder:floor is the cheapest provider first, :nitro the fastest. And some settings live on the account: allowed and ignored providers in your privacy settings apply to every request (a request’s own only list narrows within the allowed ones, and its ignore list is added to the ignored ones), and price can be made the default provider sort.
The routers
A router takes the place of a model ID and picks the model per request. OpenRouter’s routers page lists these as of November 2026:
| ID | For |
|---|---|
openrouter/auto | Mixed traffic, apps and general agents |
openrouter/auto-code | Coding agents and harnesses, tuned for pass rate, speed and cost per solved task |
openrouter/free | A random free model per request |
openrouter/pareto-code | A coding model chosen by benchmark score tier |
openrouter/fusion | Deep research, with several models deliberating on one answer |
nvidia/switchyard | Switching among a small set of models you choose |
typesafe/jev-router | TypeSafe’s Jev decision model picks the model and effort |
The Auto Router and Auto Code choose a model and a reasoning effort for each turn and add no fee: you pay the chosen model’s rate. Both prefer changing the reasoning effort to switching models, since a new model has to rebuild the prompt cache. The response’s model field names the model that answered. To limit what they may pick, the request sends an auto-router plugin with allowed_models (wildcards such as anthropic/*), excluded_models or a cost_tier; an agent that cannot send that can use the same settings saved on the workspace’s Routing page. If the limits leave no model, the request fails with a 404. Auto Code’s page says to set openrouter/auto-code “wherever your harness takes a model string”.
Choosing a model for an agent
The catalog settles the mechanical questions; how well a model handles your tasks is something to try on your own work. In order:
- Tool calling. A coding agent works by calling tools, so the model needs
toolsinsupported_parameters, and so does at least one of its providers. The tool-calling docs give the site filter openrouter.ai/models?supported_parameters=tools; the API takes the same parameter. - Context. An agent fills the window with files, command output and its own history. Check
context_lengthon the providers you will actually get, since they can differ from the model entry. - Price per task, not per token. Every tool call and its result is another request carrying the conversation so far, so an agent sends far more input than it gets back. Weigh the input price, and the cache read price where a model lists one, more than the output price suggests.
- Staying power. A set
expiration_datemeans the model is on its way out. A tilde alias moves with new releases; a plain ID stays put.
Where the ID goes in each agent
Agents disagree on whether to put their own prefix in front. Codex and Hermes take the OpenRouter ID as it is; OpenCode and OpenClaw want openrouter/ first, so qwen/qwen3-coder becomes openrouter/qwen/qwen3-coder, and in OpenClaw a router doubles it, as in openrouter/openrouter/fusion. Claude Code is set up with Claude IDs such as ~anthropic/claude-sonnet-latest, since other models are unsupported there by both Anthropic and OpenRouter. The table of where each agent reads the model is in the invalid model ID guide, and the full provider setup for Claude Code, Codex and OpenCode, key and endpoint included, is in using OpenRouter with Codex, OpenCode and Claude Code. All of them need a key first: the OpenRouter API key guide covers making one and capping its spend.