---
title: "Retrieve a model"
method: GET
path: "/api/models/{model_name}/"
tags: ["models"]
---

# Retrieve a model

`GET /api/models/{model_name}/`

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

## Path parameters

- `model_name` string, required

## Headers

- `Authorization` string, required

## Response `200`

Model details.

- ModelsRetrieveCustomModelResponse200
  - `id` string, required — Model string ID. Same value as `model_name`.
  - `model_name` string, required — Model name used in API calls.
  - `display_name` string — Human-readable model name.
  - `base_model_name` string — Base model inherited from, when configured.
  - `affiliation_category` 'respan' | 'custom' — Whether the model is built in or organization-specific.
  - `is_called_by_custom_name` boolean — Whether requests are sent upstream using this custom model name.
  - `input_cost` number, double — Cost per 1M input tokens in USD.
  - `output_cost` number, double — Cost per 1M output tokens in USD.
  - `cache_hit_input_cost` number, double — Cost per 1M cached input tokens in USD.
  - `cache_creation_input_cost` number, double — Cost per 1M cache creation input tokens in USD.
  - `max_context_window` integer — Maximum context window size.
  - `streaming_support` '0' | '1' — Streaming support. `0` = no, `1` = yes.
  - `function_call` '0' | '1' — Function/tool calling support. `0` = no, `1` = yes.
  - `image_support` '0' | '1' — Vision input support. `0` = no, `1` = yes.
  - `source` 'db' | 'hardcoded' — Source of the model definition.
  - `model_type` 'chat' | 'embedding' | 'audio' — Model type.
  - `supported_params` object — Computed parameter support after applying model-specific overrides.
  - `throughput` ApiModelsModelNameGetResponsesContentApplicationJsonSchemaThroughput
    - `average_tps` number, double, nullable — Average output tokens per second over the recent global window.
    - `average_ttft` number, double, nullable — Average time to first token in seconds over the recent global window.
    - `average_latency` number, double, nullable — Average request latency in seconds over the recent global window.
    - `number_of_requests` integer, nullable — Request count over the recent global window.
  - `provider` ApiModelsModelNameGetResponsesContentApplicationJsonSchemaProvider
    - `id` string, required — Provider string ID. Same value as `provider_id`.
    - `provider_id` string, required — Unique provider identifier within your organization.
    - `provider_name` string, required — Human-readable provider name.
    - `extra_kwargs` object — Provider configuration such as `base_url` and timeout values. Secret values are not returned here.
    - `created_at` string, date-time, nullable
    - `updated_at` string, date-time, nullable
  - `created_at` string, date-time, nullable
  - `updated_at` string, date-time, nullable
  - `is_officially_supported` boolean, required — Whether the model's bare slug is in Respan's first-party supported catalog.

## Other responses

- `401` — Unauthorized - Missing or invalid authentication
- `404` — Not Found

---

[API](https://skmtc.net/keywordsai/apis/api-reference.md) · [All operations](https://skmtc.net/keywordsai/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/keywordsai/api-reference/revisions/4e064cf81dae/schema)
