API reference

List models

View the models your key can use, with limits, capabilities, and pricing.

GET /v1/models returns all models your API key can use. The response is compatible with OpenAI's model list endpoint, and each model also includes a router object describing its token limits, capabilities, pricing, and the list of providers that serve it.

We recommend reading this list at runtime rather than hardcoding model IDs, because the catalog changes as new models are introduced and older ones are retired. For more on picking a model, see Choose a model.

List your models

curl "https://api.router.com/v1/models" \
  -H "Authorization: Bearer $RAMP_ROUTER_API_KEY"

With the OpenAI SDK:

import os
 
from openai import OpenAI
 
client = OpenAI(
    api_key=os.environ["RAMP_ROUTER_API_KEY"],
    base_url="https://api.router.com/v1",
)
 
for model in client.models.list():
    print(model.id)

Note that the list reflects what your key may call, not live provider health. A model can be listed and still fail on a given request if its provider is having trouble, which is one reason to add fallbacks.

Resolve one model

GET /v1/models/{id} returns a single entry from the list, looked up by any name you could send for the model: the entry's id, one of its router.aliases, its router.catalog_id, or a provider-pinned provider:provider-model name. Names may contain slashes, such as accounts/fireworks/models/kimi-k3.

curl "https://api.router.com/v1/models/kimi-k3" \
  -H "Authorization: Bearer $RAMP_ROUTER_API_KEY"

The response is the same object the list returns for that model, in the same view (an X-Gateway-Client header filters the lookup the way it filters the list), plus one extra field, resolved_from. It is a string holding the {id} you sent, and it is present whenever that differs from the entry's router.request_name, such as when you looked up an alias, a provider-pinned name, or a client-specific id. Looking up the request name itself returns the entry without resolved_from.

For example, GET /v1/models/accounts/fireworks/models/kimi-k3 answers the kimi-k3 entry:

{
  "id": "kimi-k3",
  "object": "model",
  "owned_by": "router",
  "router": {
    "request_name": "kimi-k3",
    "catalog_id": "fireworks:accounts/fireworks/models/kimi-k3",
    "aliases": ["accounts/fireworks/models/kimi-k3"],
    "...": "..."
  },
  "resolved_from": "accounts/fireworks/models/kimi-k3"
}

Use it to check each model in a configured chain without downloading and indexing the whole list. A name resolves here exactly when it is one your key can route to, so it follows every rule the list follows: which models are available to you, blocked models and providers, and your company's model policy. Two things to keep in mind when you read the answer:

  • Resolving a provider:provider-model name confirms the model, but sending that name in a request pins that provider, so Router won't serve the request from the entry's other providers. Send the entry's id to let Router choose among them. See Cross-provider routing.
  • An entry with "requires_byok": true resolves, but you can't call it until you add your own provider key, so check that field rather than treating a 200 alone as proof the model is usable.

A name that doesn't exist, and a name your key can't use, both answer 404 with the same body. It doesn't tell the two apart, and it never echoes the name you sent:

{
  "error": {
    "message": "The model does not exist or you do not have access to it.",
    "type": "invalid_request_error",
    "param": null,
    "code": "model_not_found"
  }
}

Example response

Show less

{
  "object": "list",
  "data": [
    {
      "id": "gpt-6-luna",
      "object": "model",
      "created": 1790035200,
      "owned_by": "openai",
      "display_name": "GPT-6 Luna",
      "context_length": 1050000,
      "context_window": 1050000,
      "router": {
        "schema_version": 1,
        "request_name": "gpt-6-luna",
        "catalog_id": "openai:gpt-6-luna",
        "provider_model": "gpt-6-luna",
        "display_name": "GPT-6 Luna",
        "provider_display_name": "OpenAI",
        "status": "active",
        "surfaces": [
          "responses",
          "messages"
        ],
        "listing": {
          "order": 3,
          "featured": false,
          "snapshot": false
        },
        "limits": {
          "context_window": 1050000,
          "max_input_tokens": null,
          "max_output_tokens": 128000
        },
        "capabilities": {
          "modalities": {
            "input": [
              "file",
              "image",
              "text"
            ],
            "output": [
              "text"
            ]
          },
          "tools": {
            "supported": true,
            "parallel": null
          },
          "structured_outputs": true,
          "temperature": false,
          "prompt_caching": true,
          "reasoning": {
            "supported": true,
            "efforts": [
              {
                "value": "none",
                "description": "Answers without reasoning first"
              },
              {
                "value": "low",
                "description": "Fast responses with lighter reasoning"
              },
              {
                "value": "medium",
                "description": "Balances speed and reasoning depth"
              },
              {
                "value": "high",
                "description": "Greater reasoning depth"
              },
              {
                "value": "xhigh",
                "description": "Reasons longer than high"
              },
              {
                "value": "max",
                "description": "Reasons as long as the model allows"
              }
            ],
            "default_effort": "medium",
            "per_turn_effort": false,
            "summary": {
              "output_supported": true,
              "request_parameter_supported": true,
              "values": [
                "auto",
                "concise",
                "detailed"
              ],
              "default": "auto"
            },
            "continuation": {
              "request_include": [
                "reasoning.encrypted_content"
              ],
              "required": true
            }
          },
          "verbosity": {
            "supported": true,
            "values": [
              "low",
              "medium",
              "high"
            ],
            "default": "medium"
          }
        },
        "pricing": {
          "input": "0.1",
          "output": "0.5",
          "cache_read_input": "0.01",
          "cache_write_input": "0.125",
          "cache_write_input_5m": "0",
          "cache_write_input_1h": "0",
          "long_context": {
            "input": "0.2",
            "output": "0.75",
            "cache_read_input": "0.02",
            "cache_write_input": "0.25",
            "cache_write_input_5m": "0",
            "cache_write_input_1h": "0"
          },
          "long_context_token_threshold": 272000
        },
        "providers": [
          {
            "provider": "openai",
            "provider_display_name": "OpenAI",
            "catalog_id": "openai:gpt-6-luna",
            "provider_model": "gpt-6-luna",
            "pricing": {
              "input": "0.1",
              "output": "0.5",
              "cache_read_input": "0.01",
              "cache_write_input": "0.125",
              "cache_write_input_5m": "0",
              "cache_write_input_1h": "0",
              "long_context": {
                "input": "0.2",
                "output": "0.75",
                "cache_read_input": "0.02",
                "cache_write_input": "0.25",
                "cache_write_input_5m": "0",
                "cache_write_input_1h": "0"
              },
              "long_context_token_threshold": 272000
            },
            "limits": {
              "context_window": 1050000,
              "max_input_tokens": null,
              "max_output_tokens": 128000
            }
          }
        ]
      }
    }
  ]
}

Model fields

Each entry in data describes a single model:

Field
Type
Description
id
string
The ID to send as model in your requests
object
string
Always model
created
integer
The model's release date as a Unix timestamp, or 0 when it isn't known
owned_by
string
The provider that owns the model, such as openai, or router for provider-agnostic models and your own aliases
display_name
string
A human-readable name, such as GPT-6 Luna
context_length
integer
The model's context window in tokens. Omitted when unknown
context_window
integer
The same value as context_length, for clients that read this name instead
router
object
Router's description of the model. See The router object
router_alias
object
Present only on aliases. See Aliases

Note that owned_by describes the model, not the provider that serves a particular request. To see which provider answered, read the X-Router-Provider response header when you make a request for the given model.

The router object

The router object includes metadata about the model, including supported surfaces, modalities, model limits, and pricing. Click a field below to see its nested fields.

Field
Type
Description
schema_version
integer
The version of this object's format. Currently 1
request_name
string
The name Router routes this entry under; the same as id
catalog_id
string
The concrete model behind this entry, as provider:provider-model
provider_model
string
The provider's own name for the model
display_name
string
A human-readable name for the model
provider_display_name
string
The providers that can serve the model, separated by commas when there are several
aliases
string array
Other names that call the same model, such as provider-pinned names. Omitted when there are none
description
string
A short description of the model. Omitted when there is none
status
string
active, or deprecated for a model that will be retired in the future
surfaces
string array
The endpoints this model answers on
listing
object
Presentation hints for model pickers
limits
object
Token limits
capabilities
object
What the model can accept and do
pricing
object
Base token rates. Omitted when pricing isn't known
service_tiers
object array
Opt-in service tiers with their own pricing. Omitted when the model has none
providers
object array
Each provider that can serve this model for your key. Each entry's audited_zdr says whether that provider qualifies for a request that sets audited_zdr
requires_byok
boolean
true when you need to add your own provider key before calling the model. Omitted otherwise

Several capability fields are true, false, or null. A null means that Router doesn't know whether the model supports the feature, so treat it with caution rather than assuming either answer.

surfaces

The endpoints a model answers on. A request to an endpoint the model doesn't list will fail, so filter on this field when you build a model picker for a specific endpoint.

Most models list responses and messages. Decision models list decisions. Only Jev explicitly supports systemone.

listing
  • order (integer): The entry's zero-based position in this response. It describes your current list, not a stable property of the model.
  • featured (boolean): Whether we highlight the model as a recommended choice.
  • snapshot (boolean): Whether the ID pins a dated version of the model, such as gpt-5-nano-2025-08-07, rather than following the latest version.
limits

Each limit is a number of tokens, or null when the model doesn't state it.

  • context_window (integer or null): The total tokens the model can handle in one request, input and output combined.
  • max_input_tokens (integer or null): The most input tokens the model accepts, when it has a separate input limit.
  • max_output_tokens (integer or null): The most tokens the model can generate in one response.

When several providers serve a model, each limit is the smallest across them, because Router may serve your request from any of them. Each entry in providers carries that provider's own limits.

capabilities
  • modalities (object): The content types the model accepts and produces.
    • input (string array): Input types, such as text, image, or file.
    • output (string array): Output types, such as text.
  • tools (object): Tool calling support.
    • supported (boolean or null): Whether the model can call tools.
    • parallel (boolean or null): Whether it can call several tools in one turn.
  • structured_outputs (boolean or null): Whether the model supports JSON Schema output.
  • temperature (boolean or null): Whether the model accepts a temperature setting.
  • prompt_caching (boolean or null): Whether the provider caches prompts for this model. See Prompt caching.
  • reasoning (object): Reasoning controls. See below.
  • verbosity (object): Output verbosity controls.
    • supported (boolean or null): Whether the model accepts a verbosity setting.
    • values (string array): The accepted values, such as low, medium, and high.
    • default (string): The value used when you don't send one. Omitted when there is no default.
capabilities.reasoning
  • supported (boolean or null): Whether the model reasons before answering.
  • efforts (object array): The reasoning efforts the model accepts. Each has:
    • value (string): The value to send as the reasoning effort, such as medium.
    • description (string): A short explanation of the effort.
  • default_effort (string): The effort used when you don't send one. Omitted when there is no default.
  • per_turn_effort (boolean): Whether the model accepts a change of reasoning effort partway through a conversation. When false, Router applies the most recent change to the whole request instead, so the request still succeeds.
  • summary (object): Reasoning summaries.
    • output_supported (boolean or null): Whether the model can return a summary of its reasoning.
    • request_parameter_supported (boolean or null): Whether you can choose the summary style in your request.
    • values (string array): The accepted summary styles, such as auto, concise, and detailed.
    • default (string): The style used when you don't choose one. Omitted when there is no default.
  • continuation (object): What a multi-turn conversation needs to carry reasoning forward.
    • request_include (string array): Values to add to the request's include list, such as reasoning.encrypted_content, so the response returns reasoning you can send back on the next turn.
    • required (boolean or null): Whether the model needs that reasoning sent back to continue the conversation well.
pricing

Rates are list prices in USD per million tokens. Router sends them as decimal strings, such as "0.125", so that no precision is lost. Note that these are base rates: the actual cost you will pay for a request depends on prompt cache usage, active promotional discounts, regional processing surcharges, service tier pricing multipliers, and any strategies applied by Router. To see what a request actually cost, check the Logs.

  • input (string): Uncached input tokens.
  • output (string): Output tokens.
  • cache_read_input (string): Input tokens read from the provider's prompt cache.
  • cache_write_input (string): Input tokens written to the prompt cache.
  • cache_write_input_5m (string): Input tokens written to a prompt cache that lasts 5 minutes, for providers that price cache writes by duration.
  • cache_write_input_1h (string): Input tokens written to a prompt cache that lasts 1 hour, for providers that price cache writes by duration.
  • supercache_read_input and supercache_write_input (string): Rates for an additional cache tier. Present only for models whose provider offers one.
  • long_context (object): Rates that apply to the whole request once its input exceeds long_context_token_threshold tokens. It has the same rate fields as above. Omitted when the model has no long-context pricing.
  • long_context_token_threshold (integer): The input-token count above which long_context rates apply.

A rate of "0" means that Router doesn't charge for that kind of token on this model, either because the provider doesn't offer it, or because the provider does not charge for it.

service_tiers

Some models offer an opt-in service tier, such as faster processing at a premium price. Each entry describes one tier you can request by sending its id as service_tier:

  • id (string): The value to send as service_tier, such as ultrafast.
  • name (string): A human-readable name for the tier.
  • description (string): What the tier offers.
  • pricing (object): The tier's rates, with the same fields as pricing. Tier rates may be written as fractions, such as "3/40". Omitted when the tier's rates aren't known.

Note that router.pricing always describes standard processing. Don't use it to estimate the cost of a tier. For Flex and other tiers you choose through a model ID, see Service tiers.

providers

Each provider that can serve the model for your key:

  • provider (string): The provider's ID, such as fireworks.
  • provider_display_name (string): A human-readable provider name.
  • catalog_id (string): The complete provider-pinned name. Copy this value into your request's model field or use it as an entry in models to select that provider.
  • provider_model (string): This provider's name for the model. It can use a shorter spelling than the model portion of catalog_id, such as a Bedrock name without its geographic prefix. Copy catalog_id rather than reconstructing it from provider and provider_model.
  • pricing (object): This provider's rates, with the same fields as pricing. Omitted when unknown.
  • limits (object): This provider's token limits, with the same fields as limits. Use these when you pin the provider. Omitted when unknown.

Open-weight models such as kimi-k3 often list several providers. Requesting the model by its listed id lets Router serve it from any of them. See Cross-provider routing.

For example, a Baseten entry can include these fields:

{
  "provider": "baseten",
  "catalog_id": "baseten:deepseek-ai/DeepSeek-V4.1-Flash",
  "provider_model": "deepseek-ai/DeepSeek-V4.1-Flash"
}

Send "model": "baseten:deepseek-ai/DeepSeek-V4.1-Flash" to select that provider. The catalog_id already includes the provider prefix; don't add it again. A model entry's id (data[].id in the response) is the name you use to select the model in Router. Its router.providers[].provider_model is the provider's own name for that model, which can differ. To select a specific provider, copy its catalog_id.

Aliases

Your own model aliases, including benchmark aliases, appear in the list alongside concrete models, with "owned_by": "router". Because an alias can route to several models, its entry looks a little different:

  • The router object carries the alias's limits, but no pricing, and its capabilities are left empty. Each request can route to a model with different rates and features, so check the entries of the models it routes to instead.
  • A router_alias object lists the models the alias routes between.

An alias can also fix the reasoning effort for every request, such as the ramp-opus-5-5-high names the ramp CLI creates for Cursor. Router uses that effort in place of any effort you send, with two exceptions:

  • A Claude thinking budget you set yourself, which Router sends as written.
  • A POST /v1/messages request to a Claude model that only takes a thinking budget, such as Claude Haiku 4.5. Router sends that request's thinking settings as you wrote them, even without a budget, so the alias's effort doesn't apply. For instance, "thinking": {"type": "disabled"} stays disabled.

The alias's entry lists only that one effort in router.capabilities.reasoning, and router_alias names it in reasoning_effort. Coding agents with their own effort picker don't see these aliases in their model list, but you can still request them by name.

router_alias
  • schema_version (integer): The version of this object's format. Currently 1.
  • name (string): The alias name, which you send as model.
  • limits (object): The smallest of each limit across every candidate, so a request fits whichever model it routes to. A limit is null when any candidate doesn't state it.
  • candidates (object array): The models the alias currently routes between, in the order Router tries them. Each has:
    • model (string): The candidate's model ID.
    • provider (string): The candidate's provider.
    • provider_model (string): The provider's name for the model.
    • limits (object): The candidate's own limits.
  • reasoning_effort (string): The reasoning effort the alias uses for every request, in place of any you send. Omitted when the alias doesn't fix one.

Note that an alias is left out of the list if Router can't currently resolve any of its models for your key, or if its token limits can't be determined.