Get 6% back at Conifer with an ernd card
SectionsModels

Gateway

Models and the catalog

Name a model by its id, read the public catalog and its prices, and know what happens when a provider fails.

A model is named in the model field of a request. Conifer Gateway serves more than 130 models from 25 makers, through 5 providers: Anthropic, DeepInfra, Google, OpenAI and External Provider. This page says how to name a model, how to read the catalog and its prices, and what the gateway does when a provider fails. The public catalog, read below, lists every model with its prices, and so does the console’s Models section.

Name a model

Send a model’s catalog id, such as claude-haiku-5-5. Most models of a maker whose own API is among the catalog’s hosts, today Anthropic, OpenAI and Google, also answer to their maker’s name in front, such as anthropic/claude-haiku-5-5. A name resolves only to a model’s id or one of the aliases the catalog lists for it, exactly as written: a dated snapshot’s id isn’t one.

A name the catalog doesn’t know answers 404 model_not_found, with a message that names it (“No model is called …”), and so does a model no provider serves at the moment (“… isn’t served now”). A restricted key that doesn’t list the model answers 403 forbidden instead. To have the gateway choose the model, send a router’s name: Routing covers them.

Served as named, or refused

A request that names a model is served by that model. The gateway chooses only which of the model’s providers serves it. If none of them can, the request fails, for example with 503 no_provider or 422 no_eligible_model; it never moves to another model. A router’s fallbacks, which do move to another model, are on the routing page.

List the models a key can call

GET /v1/models lists the routers the key may call, then its models. GET /v1/models/{id} reads one model, by id or alias, or one router. Both take a key. The list answers in Anthropic’s shape when the request sends anthropic-version.

terminal
curl https://gateway-api.conifer.build/v1/models \
  -H "Authorization: Bearer $CONIFER_API_KEY"

curl https://gateway-api.conifer.build/v1/models/anthropic/claude-haiku-5-5 \
  -H "Authorization: Bearer $CONIFER_API_KEY"

Read the catalog

The catalog is public: GET /v1/catalog needs no key. It lists every model the gateway serves, its list prices and its providers. It carries an ETag and Cache-Control: public, max-age=60, and answers 304 to a request that sends the tag back in If-None-Match.

terminal
curl https://gateway-api.conifer.build/v1/catalog

At the top level it holds object, prices and ranking, which say what it shows, then providers, models, metrics and sources. The models come in the catalog’s own order, family by family. This is the entry for claude-haiku-5-5 as the catalog has it today, cut to the fields this page explains, its two main prices and its maker’s own host. The whole entry also has group, capabilities, max_output_tokens, released, open_weights and scores, and more on each deployment.

catalog.json
{
  "id": "claude-haiku-5-5",
  "name": "Claude Haiku 5.5",
  "author": "anthropic",
  "aliases": ["anthropic/claude-haiku-5-5"],
  "input": ["text", "image", "pdf"],
  "output": ["text"],
  "context_window": 1000000,
  "prices": [
    {
      "meter": "input_tokens",
      "variant": null,
      "tier": "standard",
      "from_input_tokens": 0,
      "price": 100000000
    },
    {
      "meter": "output_tokens",
      "variant": null,
      "tier": "standard",
      "from_input_tokens": 0,
      "price": 500000000
    }
  ],
  "deployments": [
    {
      "provider": "anthropic",
      "families": ["chat"],
      "policy": {"retention": {"kind": "unstated"}, "trains_on_prompts": true, "regions": []}
    }
  ]
}

How to read a price

A price is in nanodollars per million units of its meter. So 100000000 on input_tokens is $0.10 per million input tokens. Each price also has a variant (such as a cache write’s duration), a tier, and from_input_tokens, the size of request a price starts at, for a model that costs more above a size. Every meter of a request is charged at the model’s list price, whichever provider serves it: Billing says how.

A model’s other fields

FieldWhat it says
aliasesOther names a request may send for the model.
input, outputWhat the model takes in and gives back.
context_windowThe most tokens a request and its answer may hold together.
deploymentsEach provider that serves it, with that provider’s data policy, which the data page explains.
scoresThe model’s scores, each of a metric that metrics lists, at a reasoning effort or as the model’s own: Conifer Intelligence, Conifer’s own index, which the router weighs, and the arenas’ ratings, with the credit their source asks for in sources.

What a model takes in

Models take text, images and PDFs, and give back text, or embeddings for an embedding model. Audio and video input are refused before any provider is called. So is a request that asks for what the model’s entry doesn’t list, such as tools for a model that calls none, or images for one that takes none. A refused request costs nothing.

A file or an image is sent in the request itself. One named by its id at a provider, such as a file_id or a Messages file source, or by its address at Google’s Files API, belongs to the provider account that made it, so it is served only on the workspace’s own key for that provider (Billing); on Conifer’s keys the request answers 400 invalid_request, saying what to send instead.

Providers and failover

Each model runs on one provider or more, 3 at most today. When a provider fails, the gateway moves the request to the model’s next provider and key, by itself:

  • at most 5 attempts in all for a request;
  • up to 2 more rounds after every provider has failed;
  • between them, it waits what a provider’s retry-after asks, up to 60 seconds, or a pause that starts at half a second and doubles to 8.

The model stays the same throughout. A provider that timed out isn’t asked again in the same request where it waited longer than the request has left; the API reference gives each wait. GET /v1/status, which needs no key, shows how each provider has served each model: its uptime, its time to the first token, and its speed.

What isn’t served

The gateway serves Chat Completions, Messages, Responses and embeddings, and OpenAI’s images API, /v1/images/generations and /v1/images/edits, for a model that makes images: none in the catalog does today, so an images request is refused. Audio speech, transcription and translation, rerank, moderation, files and uploads, batches, video, realtime sessions, legacy /v1/completions and the routes that read a stored response, such as GET /v1/responses/{id}, are not served, and answer 404 route_not_found. Embeddings and images don’t stream, and take a model’s name, not a router’s.