Command Palette

Search for a command to run...

Models

What a model id is made of, what the catalogue publishes for each one, and how to check an id is callable before you build against it.

Anatomy of an id

A model is addressed by one string of the form `<provider>/<model>`: the provider slug before the first slash, the model name after it. That string is the value of the `model` field in the request body — never part of the URL — and it is exactly what the catalogue and `GET /v1/models` return, character for character.

Send the whole id, slash included. The API resolves it against the catalogue before anything is forwarded, then calls the provider with the model name that provider knows. An id that is not in the catalogue is refused with `400 model_not_found`, even when the provider itself would recognise the bare name.

The slug in front of the slash also tells you which upstream serves the model — the tier it is published on. Two models with the same bare name on different tiers are different catalogue entries with their own prices, and mixing them up is a pricing mistake before it is a routing one.

Where ids come from

Two places, one source: the Models page on this site, and `GET /v1/models` on the API host. Neither is a copy of the other — both read the same catalogue. Do not build against an id from a provider's own documentation or an old blog post: an id the catalogue does not carry cannot be routed or priced, so it cannot be called, however valid it looks upstream.

What GET /v1/models returns

An OpenAI-shaped list of the models your key may call: the ones that are published and priced. It is answered from the catalogue rather than proxied from a provider, so it never lists something a request would then refuse.

cURL
curl https://api.idroutebase.com/v1/models \  -H "Authorization: Bearer $IDROUTEBASE_API_KEY"
Response
{  "object": "list",  "data": [    {      "id": "<provider>/<model-id>",      "object": "model",      "created": 1760000000,      "owned_by": "<tier>"    }  ]}

`owned_by` is the tier the model is published on, not the upstream provider's name; the provider is already the first half of the id. The list carries no prices and no limits — a client that needs to show a price or a context window reads the catalogue page for that model.

What the catalogue adds to a model

  • the context window and the maximum output the model will return;
  • input and output modalities — text, image, audio — so a client can refuse a request before sending it;
  • supported parameters, named the way the SDK names them: tools, reasoning, structured outputs, JSON mode, streaming;
  • four rates per million tokens, with cache read and write shown only where the model has them;
  • availability, and observed time to first token over the last seven days with the number of observations behind it.

A missing value is drawn as an absence, not as zero. An empty cache column means the model has no cache price; it does not mean cached tokens are free. An unmeasured latency means nothing was measured, not that the model was instant.

Availability

Every entry carries one state, and the state is about routing rather than marketing. Two of them you will see regularly; the other two exist for when an upstream is in trouble.

StateMeaningWhat a request does
availablePublished, priced, and callable now.Accepted.
previewListed but not quotable yet — usually no published price.Refused: 400 model_unpriced.
degradedPublished, but the upstream is reporting trouble.Forwarded; expect slow calls or a provider error.
offlineGone from the gateway.Refused: 400 model_not_found, unless an admin publishes it by hand.

The catalogue is refreshed every five minutes. A model that leaves the catalogue leaves `/v1/models` at the same time, so a `4xx` for an id that worked yesterday is a catalogue change, not a broken client — check the Models page before you debug the request.