- 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.For SambaStack, developers should check with their system administrator for the correct URL.
All available models
The examples below describe how to request details for all available models.Endpoint
Example response
The example below demonstrates the response 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., DeepSeek-R1). Refer to the SambaCloud models list.
Example response
The example below demonstrates the response for a specific model.Response fields
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. |