Skip to main content
The model object describes one model of the catalog: what it does, how large a request may be, which optional fields it accepts and what each unit costs. Your code reads it to pick a model and check what the model supports before a request.

Where it appears

GET /v1/models returns one model object per model, in its data array. The list needs no key; called with a key, it holds only the models that key may use, as Models explains.

Attributes

string
required
The model’s id: the publisher’s slug, a slash and the model name, such as anthropic/claude-sonnet-5.5. The model field of every response holds this value.
string
required
Always model.
integer
required
When the model entered the catalog, in Unix seconds.
string | null
The publisher’s slug, the part of id before the slash.
string | null
The model’s name for people, such as Claude Sonnet 5.5.
string | null
What the publisher says the model does.
array<string>
required
What kind of model it is. See Kinds. A chat model that can also answer with pictures is chat. Filter on this field.
string | null
The operation the model is chiefly for, as the catalog states it. null when no provider serves that operation right now.
array<object>
required
What the model does, one entry per job that the catalog states and a provider serves right now.
array<object>
required
One row per meter and condition. Empty when the model isn’t on sale. See Pricing rows.
object
required
input_modalities lists what the model accepts: text, image, audio, file. A request with another input type fails with 400 before it reaches a provider. output_modalities lists what it returns.
array<string>
Other names the model answers to. The first is the bare model name. See Use an alias or a dated id.
integer
When the model stops answering, in Unix seconds. After it, requests return 410 model_deprecated.
array<string>
The weight precisions the model’s providers publish they serve it in, such as ["bf16", "fp8"], each once, and in alphabetical order. Absent when no provider publishes one. A request without routing.precision may be served in a precision not listed here.

Kinds

kinds and operations[].kind take one of chat, image, video, speech, transcription, embeddings, moderation and rerank.

Operations and endpoints

Each operation is served by the endpoint names in this table.

Limits

operations[].limits holds the keys of this table that apply to the operation.

Parameters

Each value in operations[].parameters describes one optional request field in a subset of JSON Schema (type, enum, default, minimum, maximum, maxItems, maxLength, items, properties), plus x-support: The values include those NagaAI converts for the provider. A reasoning_effort level the provider lacks goes as its nearest level. A temperature, top_p or penalty outside the provider’s range goes as the nearest value in it. A JSON schema in response_format goes into the prompt. Names come from a fixed list per operation: the fields NagaAI checks when it picks a provider. A name appears when at least one provider of the model accepts it, and the description accepts every value that at least one of them accepts. NagaAI sends a value only to a provider that accepts it; see Differences from OpenAI and Anthropic.

Pricing rows

Each row of pricing has the keys in this table.

Example object

Errors

A request that goes past the model object’s limits fails before it reaches a provider: For any other status, see Errors.

See also

  • Models: list models in code and pick one.
  • The routing object: cap the price per meter and require a precision.
  • Billing: how meters add up to the price of a request.