For the complete documentation index, see llms.txt. This page is also available as Markdown.

Models

List Models

get

List all available models, one entry per model however many providers serve it.

Each id is the model's catalog id (deepseek/deepseek-v4.1-flash), which a request sends as model to let the gateway choose the provider: it tries the model's offerings best first and falls back down the list. An entry's price, token limits and capabilities are those of the offering tried first, at the caller's own rate. A value nobody knows is omitted rather than sent as null.

Aliases and routing policies are listed beside the models. An instance:model selector still pins a request to one provider, and GET /api/v1/catalog/models/{model_id} lists the offerings of a model.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Query parameters
providerstring · nullableOptional

Only the models this provider instance serves, described as served there.

workspace_idstring · uuid · nullableOptional

For a signed-in caller, only the models a request billed to this workspace may call.

Responses
200

Successful Response

application/json

OpenAI-compatible model list response.

objectstringOptionalDefault: list
get/api/v1/models
GET /api/v1/models HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
  "data": [
    {
      "architecture": {
        "input_modalities": [
          "text"
        ],
        "output_modalities": [
          "text"
        ]
      },
      "context_window": 1,
      "created": 1,
      "deployment_managed": false,
      "id": "text",
      "max_output_tokens": 1,
      "name": "text",
      "object": "model",
      "owned_by": "text",
      "pricing": {
        "cache_read_price_per_million": 1,
        "cache_write_price_per_million": 1,
        "input_price_per_million": 1,
        "output_price_per_million": 1,
        "pricing_tiers": [
          {
            "cache_read_price_per_million": 1,
            "cache_write_price_per_million": 1,
            "input_price_per_million": 1,
            "min_input_tokens": 1,
            "output_price_per_million": 1
          }
        ],
        "rates": {
          "ANY_ADDITIONAL_PROPERTY": "anything"
        },
        "unit": "token"
      },
      "pricing_source": "none",
      "supported_parameters": [
        "text"
      ],
      "type": "chat"
    }
  ],
  "object": "list"
}

List Discoverable Models

get

List every model the configured provider credentials can reach.

Operator-facing counterpart to GET /api/v1/models, which serves a curated catalog to API callers. This reports each provider separately and keeps its error, so a provider with a bad key is distinguishable from one with no models. It is operator-gated because a provider error message describes the gateway's own configuration.

Covers the configured provider instances and every hosted provider switched on, whatever organization it is restricted to. A hosted provider that a configured instance of the same name shadows is not listed.

Answers from the discovery cache, which a background refresher keeps warm, so the call does not wait on a slow or unreachable provider. Each provider carries the checked_at its result was produced at; a null one has not been dialed yet. Pass refresh=true to force a live re-dial of every provider.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Query parameters
refreshbooleanOptional

Re-dial every provider instead of answering from the discovery cache.

Default: false
Responses
200

Successful Response

application/json

Per-provider discovery results for operator model selection.

get/api/v1/models/discoverable
GET /api/v1/models/discoverable HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
  "providers": [
    {
      "checked_at": "text",
      "discovery_unsupported": false,
      "error": "text",
      "models": [
        {
          "id": "text",
          "key": "text"
        }
      ],
      "ok": true,
      "provider": "text"
    }
  ]
}

List Model Metadata

get

Per-model metadata for the dashboard's detail view, from models.dev.

Covers every model models.dev lists under a configured provider, keyed by the instance:model selector the dashboard uses. Until models.dev has been fetched, and always when models_dev_metadata is off, it comes from the catalog bundled with the gateway. available is false only when no catalog could be read; the response is then empty. Operator-gated: it describes the gateway's configured providers.

Answers from the cached catalog, kept warm by a background refresher, so the dashboard never waits on the models.dev fetch timeout.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Responses
200

Successful Response

application/json

models.dev metadata keyed by provider:model.

availablebooleanRequired

False when no models.dev catalog could be read, not even the one bundled with the gateway.

sourcestringOptionalDefault: models.dev
get/api/v1/models/metadata
GET /api/v1/models/metadata HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
200

Successful Response

{
  "available": true,
  "models": {
    "ANY_ADDITIONAL_PROPERTY": {
      "attachment": false,
      "context_window": 1,
      "cost_input": 1,
      "cost_output": 1,
      "deprecated": false,
      "description": "text",
      "family": "text",
      "input_modalities": [
        "text"
      ],
      "knowledge_cutoff": "text",
      "last_updated": "text",
      "max_output_tokens": 1,
      "name": "text",
      "open_weights": false,
      "output_modalities": [
        "text"
      ],
      "reasoning": false,
      "release_date": "text",
      "structured_output": false,
      "temperature": false,
      "tool_call": false,
      "type": "chat"
    }
  },
  "source": "models.dev"
}

Get Model

get

Get details for a specific model, by catalog id, alias or instance:model selector.

A value the gateway does not know is omitted rather than sent as null.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Path parameters
model_idstringRequired
Responses
200

Successful Response

application/json

OpenAI-compatible model object.

context_windowinteger · nullableOptional
createdintegerRequired
deployment_managedbooleanOptionalDefault: false
idstringRequired
max_output_tokensinteger · nullableOptional
namestring · nullableOptional
objectstringOptionalDefault: model
owned_bystringRequired
pricing_sourcestringOptionalDefault: none
supported_parametersstring[] · nullableOptional
typestring · enum · nullableOptionalPossible values:
get/api/v1/models/{model_id}
GET /api/v1/models/{model_id} HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
  "architecture": {
    "input_modalities": [
      "text"
    ],
    "output_modalities": [
      "text"
    ]
  },
  "context_window": 1,
  "created": 1,
  "deployment_managed": false,
  "id": "text",
  "max_output_tokens": 1,
  "name": "text",
  "object": "model",
  "owned_by": "text",
  "pricing": {
    "cache_read_price_per_million": 1,
    "cache_write_price_per_million": 1,
    "input_price_per_million": 1,
    "output_price_per_million": 1,
    "pricing_tiers": [
      {
        "cache_read_price_per_million": 1,
        "cache_write_price_per_million": 1,
        "input_price_per_million": 1,
        "min_input_tokens": 1,
        "output_price_per_million": 1
      }
    ],
    "rates": {
      "ANY_ADDITIONAL_PROPERTY": "anything"
    },
    "unit": "token"
  },
  "pricing_source": "none",
  "supported_parameters": [
    "text"
  ],
  "type": "chat"
}

Last updated

Was this helpful?