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
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"
}