Skip to content
  • Auto
  • Light
  • Dark

List

List Available Models
get/v2/gen-ai/models

To list all models, send a GET request to /v2/gen-ai/models.

Query ParametersExpand Collapse
page: optional number

Page number.

per_page: optional number

Items per page.

public_only: optional boolean

Only include models that are publicly available.

usecases: optional array of "MODEL_USECASE_UNKNOWN" or "MODEL_USECASE_AGENT" or "MODEL_USECASE_FINETUNED" or 4 more

Include only models defined for the listed usecases.

  • MODEL_USECASE_UNKNOWN: The use case of the model is unknown
  • MODEL_USECASE_AGENT: The model maybe used in an agent
  • MODEL_USECASE_FINETUNED: The model maybe used for fine tuning
  • MODEL_USECASE_KNOWLEDGEBASE: The model maybe used for knowledge bases (embedding models)
  • MODEL_USECASE_GUARDRAIL: The model maybe used for guardrails
  • MODEL_USECASE_REASONING: The model usecase for reasoning
  • MODEL_USECASE_SERVERLESS: The model usecase for serverless inference
Accepts one of the following:
"MODEL_USECASE_UNKNOWN"
"MODEL_USECASE_AGENT"
"MODEL_USECASE_FINETUNED"
"MODEL_USECASE_KNOWLEDGEBASE"
"MODEL_USECASE_GUARDRAIL"
"MODEL_USECASE_REASONING"
"MODEL_USECASE_SERVERLESS"
ReturnsExpand Collapse
meta: optional APIMeta { page, pages, total }

Meta information about the data set

page: optional number

The current page

formatint64
pages: optional number

Total number of pages

formatint64
total: optional number

Total amount of items over all pages

formatint64
models: optional array of APIModel { id, agreement, created_at, 8 more }

The models

id: optional string

Human-readable model identifier

agreement: optional APIAgreement { description, name, url, uuid }

Agreement Description

description: optional string
name: optional string
url: optional string
uuid: optional string
created_at: optional string

Creation date / time

formatdate-time
is_foundational: optional boolean

True if it is a foundational model provided by do

name: optional string

Display name of the model

parent_uuid: optional string

Unique id of the model, this model is based on

updated_at: optional string

Last modified

formatdate-time
upload_complete: optional boolean

Model has been fully uploaded

url: optional string

Download url

uuid: optional string

Unique id

version: optional APIModelVersion { major, minor, patch }

Version Information about a Model

major: optional number

Major version number

formatint64
minor: optional number

Minor version number

formatint64
patch: optional number

Patch version number

formatint64
List Available Models
curl https://api.digitalocean.com/v2/gen-ai/models \
    -H "Authorization: Bearer $DIGITALOCEAN_ACCESS_TOKEN"
{
  "links": {
    "pages": {
      "first": "example string",
      "last": "example string",
      "next": "example string",
      "previous": "example string"
    }
  },
  "meta": {
    "page": 123,
    "pages": 123,
    "total": 123
  },
  "models": [
    {
      "id": "llama3.3-70b-instruct",
      "agreement": {
        "description": "example string",
        "name": "example name",
        "url": "example string",
        "uuid": "123e4567-e89b-12d3-a456-426614174000"
      },
      "created_at": "2021-01-01T00:00:00Z",
      "is_foundational": true,
      "name": "Llama 3.3 Instruct (70B)",
      "parent_uuid": "\"12345678-1234-1234-1234-123456789012\"",
      "updated_at": "2021-01-01T00:00:00Z",
      "upload_complete": true,
      "url": "https://example.com/model.zip",
      "uuid": "\"12345678-1234-1234-1234-123456789012\"",
      "version": {
        "major": 123,
        "minor": 123,
        "patch": 123
      }
    }
  ]
}
Returns Examples
{
  "links": {
    "pages": {
      "first": "example string",
      "last": "example string",
      "next": "example string",
      "previous": "example string"
    }
  },
  "meta": {
    "page": 123,
    "pages": 123,
    "total": 123
  },
  "models": [
    {
      "id": "llama3.3-70b-instruct",
      "agreement": {
        "description": "example string",
        "name": "example name",
        "url": "example string",
        "uuid": "123e4567-e89b-12d3-a456-426614174000"
      },
      "created_at": "2021-01-01T00:00:00Z",
      "is_foundational": true,
      "name": "Llama 3.3 Instruct (70B)",
      "parent_uuid": "\"12345678-1234-1234-1234-123456789012\"",
      "updated_at": "2021-01-01T00:00:00Z",
      "upload_complete": true,
      "url": "https://example.com/model.zip",
      "uuid": "\"12345678-1234-1234-1234-123456789012\"",
      "version": {
        "major": 123,
        "minor": 123,
        "patch": 123
      }
    }
  ]
}