Retrieve a model

Retrieve a built-in or custom model by model name. Custom models are only visible to the owning organization.

Authentication

AuthorizationBearer

Use your Respan API key for Respan API authentication. Enter only the Respan API key value; clients send Authorization: Bearer <RESPAN_API_KEY>. For /api/responses, provider credentials such as Perplexity, OpenAI, or Azure OpenAI go in Settings -> Providers or respan_params.credential_override in the request body, not in this authentication field.

OR
AuthorizationBearer

Use a dashboard JWT only for dashboard-authenticated endpoints. Respan API-key endpoints use the respanApiKey auth field instead.

Path parameters

model_namestringRequired

Model name. The route supports names containing slashes, such as openai/gpt-4o-mini.

Response

Model details.
idstring

Model string ID. Same value as model_name.

model_namestring
Model name used in API calls.
is_officially_supportedbooleanRead-only

Whether the model’s bare slug is in Respan’s first-party supported catalog.

display_namestringOptional

Human-readable model name.

base_model_namestringOptional
Base model inherited from, when configured.
affiliation_categoryenumOptional

Whether the model is built in or organization-specific.

is_called_by_custom_namebooleanOptional
Whether requests are sent upstream using this custom model name.
input_costdoubleOptional
Cost per 1M input tokens in USD.
output_costdoubleOptional
Cost per 1M output tokens in USD.
cache_hit_input_costdoubleOptional
Cost per 1M cached input tokens in USD.
cache_creation_input_costdoubleOptional
Cost per 1M cache creation input tokens in USD.
max_context_windowintegerOptional
Maximum context window size.
streaming_supportenumOptional

Streaming support. 0 = no, 1 = yes.

function_callenumOptional

Function/tool calling support. 0 = no, 1 = yes.

image_supportenumOptional

Vision input support. 0 = no, 1 = yes.

sourceenumOptional
Source of the model definition.
model_typeenumOptional
Model type.
supported_paramsmap from strings to anyOptional

Computed parameter support after applying model-specific overrides.

throughputobject or nullOptional
providerobjectOptional
created_atdatetime or nullOptional
updated_atdatetime or nullOptional

Errors

401
Unauthorized Error
404
Not Found Error