qai_hub.get_models

get_models(offset=0, limit=50)

Returns a list of models.

Parameters:
  • offset (int) – Offset the query to get even older models.

  • limit (int) – Maximum numbers of models to return.

  • project (str | Project | None) – Optional project to filter by, specified as either a Project instance or a project ID. If unspecified, returns models across all projects.

Returns:

model_list – List of models.

Return type:

list[Model]

Examples

Fetch Model objects for your five most recent models:

import qai_hub as hub
client = hub.Client()

models = client.get_models(limit=5)