Model List
Query the list of available models on the DeepSeek API, retrieving model identifiers and ownership information.
Through the model list API, you can query all available models on the current DeepSeek platform, retrieving each model's identifier and ownership information. This is useful when you need to dynamically select models, build model selector UIs, or validate model availability.
Basic Usage
Get the list of available models via the model instance's list() method:
The response contains a data array, where each item represents an available model:
Extracting Model Names
Extract all model names from the response for building a model selector:
Validating Model Availability
Check whether a target model is available before creating a model instance:
Custom Configuration
The list() method supports passing custom configuration to override the default API Key, Base URL, or timeout:
API Reference
model.list() Parameters
ListModelsResponse
'list'. 'model'. 
