Skip to navigation

Get Model

Get one model by its provider/model id.

Needs view_routing or manage_routing.

Authentication

AuthorizationBearer

A management key (mgmt_...), sent as Authorization: Bearer <key>. Reading /v1/routing-policies also accepts the organization’s gateway API keys; writing there needs a management key.

Path parameters

model_idstringRequired

The model’s provider/model id.

Response

The model
context_windowinteger
Maximum input context, in tokens.
display_namestring

The model’s name, like Claude Sonnet 4.6.

expiration_datedate or null
The day the model is retired. null when no date is set.
idstringRead-only

The canonical provider/model id.

input_cost_per_milliondouble

List price per million input tokens (USD).

input_modalitieslist of strings

What the model accepts, like text, image.

max_output_tokensinteger
Maximum output, in tokens.
output_cost_per_milliondouble

List price per million output tokens (USD).

output_modalitieslist of strings
What the model returns.
providerstring

The model’s creator, like openai.

replacement_modelstring or null
The model to move to once this one is retired.
statusenum

deprecated models are retired on expiration_date; move to replacement_model.

Allowed values:

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error