pydo.models.list()

Generated on 3 Aug 2026 from pydo version v0.40.0

Usage

client.models.list()
Returns JSONRaises HttpResponseError

Serverless inference methods can authenticate with a model access key instead of a DigitalOcean API token:

client = Client(token=os.environ.get("MODEL_ACCESS_KEY"))

Description

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

Request Sample

Show Request Sample
import os
from pydo import Client

client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))

resp = client.models.list()

for model in resp.data:
    print(model.id)

Response Example

Show Response Example
{
  "object": "list",
  "data": [
    {
      "id": "meta-llama/Meta-Llama-3.1-8B-Instruct",
      "created": 1686935002,
      "object": "model",
      "owned_by": "digitalocean"
    }
  ]
}

More Information

See /v1/models in the API reference for additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.