Retrieve a model
Retrieve a built-in or custom model by model name. Custom models are only visible to the owning organization.
Path parameters
model_name
Model name. The route supports names containing slashes, such as openai/gpt-4o-mini.
Headers
Authorization
Bearer token. Use Bearer YOUR_API_KEY for API key auth or Bearer <JWT> for dashboard auth.
Response
Model details.
id
Model string ID. Same value as model_name.
model_name
Model name used in API calls.
display_name
Human-readable model name.
base_model_name
Base model inherited from, when configured.
affiliation_category
Whether the model is built in or organization-specific.
Allowed values:
is_called_by_custom_name
Whether requests are sent upstream using this custom model name.
input_cost
Cost per 1M input tokens in USD.
output_cost
Cost per 1M output tokens in USD.
cache_hit_input_cost
Cost per 1M cached input tokens in USD.
cache_creation_input_cost
Cost per 1M cache creation input tokens in USD.
max_context_window
Maximum context window size.
streaming_support
Streaming support. 0 = no, 1 = yes.
Allowed values:
function_call
Function/tool calling support. 0 = no, 1 = yes.
Allowed values:
image_support
Vision input support. 0 = no, 1 = yes.
Allowed values:
source
Source of the model definition.
Allowed values:
model_type
Model type.
Allowed values:
supported_params
Computed parameter support after applying model-specific overrides.
throughput
provider
created_at
updated_at
Errors
401
Unauthorized Error
404
Not Found Error