Model list
The model list endpoint provides information about the currently available models. There are two ways to retrieve model details.
- Request details of all available models.
- Request details about a specific model.
Base URL
The base URL is the same when requesting details for all available models or a specific model.
All available models
The examples below describe how to request details for all available models.
Endpoint
Example response
The example below demonstrates the reponse for all available models.
In our example, we only list three models.
Response fields
The table below describes the response fields along with their types and descriptions when requesting details for all available models.
Field | Type | Description |
---|---|---|
data | Array | List of available models. |
id | String | The model ID. |
object | String | Type of object (always “model”). |
owned_by | String | The owner of the model. |
context_length | Integer | Maximum supported context length in tokens. |
max_completion_tokens | Integer | Maximum tokens that can be generated per request. |
pricing.completion | String | Price per completion token. |
pricing.prompt | String | Price per prompt token. |
Specific model
The examples below describe how to request details for a specific model.
Endpoint
Path parameter
Parameter: model_id
The official ID name of the model to query (e.g., Qwen2.5-Coder-32B-Instruct). Refer to the Supported models list.
Example response
The example below demonstrates the reponse for a specific models.
Response feilds
The table below describes the response fields along with their types and descriptions when requesting details for a specific model.
Field | Type | Description |
---|---|---|
id | String | The model ID. |
object | String | Type of object (always “model”). |
owned_by | String | The owner of the model. |
context_length | Integer | Maximum supported context length in tokens. |
max_completion_tokens | Integer | Maximum tokens that can be generated per request. |
pricing.completion | String | Price per completion token. |
pricing.prompt | String | Price per prompt token. |