client.models.get_all

Retrieve all models

client.models.get_all()

Returns a list of all deployed models. The list includes each model’s model_id, versions, and latest_version.

Parameters

None.

Returns

List[Model]: A list of Model instances with model_id, latest_version and versions attributes populated.

[
  {
    "model_id": "string",
    "latest_version": "string",
    "versions": ["string"]
  }
]

Examples

>>> models = client.models.get_all()
>>> len(models)
100
>>> models[0].model_id
'2a3d66c038'
>>> models[0].latest_version
'0.0.1'
>>> models[0].versions
['0.0.1']

Did this page help you?