Skip to content
Skip to content
Models

List Models

List the models this API key can call, each with the model id to send in a request plus its capabilities, context window and posted price fields. Clients that build a model list from the gateway call it — for example, Claude Code when gateway model discovery is turned on (CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY=1, per Claude Code's env-vars and gateway-protocol docs, Claude Code 2.1.330, checked 2026-11-21). The extra models array repeats the same catalog in the field layout of Codex CLI's model catalog. Responses carry an ETag — send it back as If-None-Match and an unchanged catalog answers 304 Not Modified with no body. Model IDs are case-sensitive; copy them from the response or from the model catalog.

Full reference for every endpoint: Markdown · OpenAPI 3.1 JSON

GET
/v1/models
AuthorizationBearer <token>

Authenticate with your API Key. Get your API Key in the Router One console; the format is sk-xxx.

In: header

Header Parameters

If-None-Match?string

The ETag from a previous response. A match returns 304 Not Modified.

Response Body

application/json

application/json

curl -X GET "https://api.router.one/v1/models"
{
  "object": "list",
  "data": [
    {
      "id": "anthropic/claude-sonnet-5",
      "object": "model",
      "capabilities": [
        "chat",
        "streaming",
        "tool_calling",
        "vision"
      ],
      "max_tokens": 1048576,
      "category": "text",
      "pricing_mode": "token"
    }
  ]
}
Empty
{
  "error": {
    "message": "invalid api key",
    "type": "authentication_error",
    "code": "AUTH_INVALID_API_KEY",
    "request_id": "290dd478f91d8aec68f7535e871376eb"
  }
}