Skip to content
  • Auto
  • Light
  • Dark

List

Lists the currently available models, and provides basic information about each one such as the owner and availability.
models.list() -> datalistobjectliteralModelListResponse
get/models

Lists the currently available models, and provides basic information about each one such as the owner and availability.

Returns
ModelListResponseclass
Hide ParametersShow Parameters
datalist
List[Data]
Hide ParametersShow Parameters
idstr

The model identifier, which can be referenced in the API endpoints.

createdint

The Unix timestamp (in seconds) when the model was created.

objectliteral
Literal["model"]

The object type, which is always "model".

Hide ParametersShow Parameters
"model"
owned_bystr

The organization that owns the model.

objectliteral
Literal["list"]
Hide ParametersShow Parameters
"list"
from do_gradientai import GradientAI

client = GradientAI(
    api_key="My API Key",
)
models = client.models.list()
print(models.data)
200 Example
{
  "data": [
    {
      "id": "id",
      "created": 0,
      "object": "model",
      "owned_by": "owned_by"
    }
  ],
  "object": "list"
}