CumulusDocs
Open Studio
On this page

List available models

List models available to the environment, optionally filtered by task.

Operation ID: models.list.

Request

GET /api/v1/models

  • TypeScript SDK: client.models.list (path arguments use path).
  • MCP tool: sdk_client_call with operationId: "models.list" (path arguments use input.path). Legacy alias: models_list. Connect to your authenticated /mcp endpoint with an API key for the same environment.
  • Minimum API key role: viewer.
  • Idempotency: No idempotency header required.

Read resource IDs from earlier responses and use a key for the same environment.

Request example

Set each path variable to an ID returned by an earlier API request.

Set CUMULUS_BASE_URL to your workspace API URL and CUMULUS_API_KEY to a key for that environment. Example values are synthetic.

cURL

curl
curl --fail-with-body -sS "${CUMULUS_BASE_URL%/}/api/v1/models" \
  -H "Authorization: Bearer $CUMULUS_API_KEY"

TypeScript

typescript
import { Cumulus } from "@cumulus/sdk";

const baseUrl = process.env.CUMULUS_BASE_URL;
const apiKey = process.env.CUMULUS_API_KEY;
if (!baseUrl || !apiKey) throw new Error("Set CUMULUS_BASE_URL and CUMULUS_API_KEY");
const client = new Cumulus({ baseUrl, apiKey });

const response = await client.models.list({});

Input schema

Path, query and header parameters

task

query parameter · Optional.

Type: "chat" · "embedding" · "voice" · "stt" · "tts".

JSON request body

This operation has no JSON request body.

Complete OpenAPI schema
OpenAPI JSON
{
  "parameters": [
    {
      "name": "task",
      "in": "query",
      "required": false,
      "schema": {
        "type": "string",
        "enum": [
          "chat",
          "embedding",
          "voice",
          "stt",
          "tts"
        ]
      }
    }
  ],
  "requestBody": null
}

Responses

HTTP 200

List the tenant's model catalog, optionally for one task

application/json

FieldType or valuesRequiredDescription and limits
itemsarray of objectRequired—
items[].model_idstringRequiredminLength: 1. pattern: \S.
items[].providerstringRequiredminLength: 1. pattern: \S.
items[].tier"frontier" · "cumulus-served" · "customer-gpu"Required—
items[].route_kind"frontier" · "flam" · "oss"Required—
items[].context_windowintegerRequiredAt least 0. At most 9007199254740991.
items[].input_cost_per_1knumber or nullRequiredAt least 0.
items[].output_cost_per_1knumber or nullRequiredAt least 0.
items[].availability"ready" · "not-configured" · "unavailable"Required—
items[].capabilitiesarray of "text" · "vision" · "tool_calling" · "structured_output" · "embedding" · "audio" · "reasoning" · "voice" · "stt" · "tts" · "transcription" · "speech_synthesis" · "streaming"Required—
items[].tool_callingbooleanRequired—
items[].task"chat" · "embedding" · "voice" · "stt" · "tts"Required—
items[].embedding_diminteger or nullRequiredGreater than 0. At most 9007199254740991.
items[].deployment_backendstringRequiredminLength: 1.
items[].health_statestring or nullRequiredminLength: 1.
items[].supports_streamingboolean or nullRequired—
items[].supports_parallel_tool_callsboolean or nullRequired—
items[].data_policyobjectRequired—
items[].data_policy.*any JSON valueOptionalAdditional keys are allowed.
items[].regionsarray of stringRequired—
items[].eval_scoresobjectRequired—
items[].eval_scores.*numberOptionalAdditional keys are allowed.
items[].latency_ms_p50number or nullRequiredAt least 0.
items[].latency_ms_p95number or nullRequiredAt least 0.

Error responses

HTTPDescription
4XXTyped error (ApiError)
5XXTyped error (ApiError)

Errors use the shared error envelope. Inspect error.code, retryable, outcome and details before retrying.

Complete OpenAPI schema
OpenAPI JSON
{
  "200": {
    "description": "List the tenant's model catalog, optionally for one task",
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/ModelsListResponse200"
        }
      }
    }
  },
  "4XX": {
    "description": "Typed error (ApiError)",
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/ApiError"
        }
      }
    }
  },
  "5XX": {
    "description": "Typed error (ApiError)",
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/ApiError"
        }
      }
    }
  }
}

Referenced schemas

Expand the complete OpenAPI definitions for integrations that generate their own clients.

Complete OpenAPI schema
OpenAPI JSON
{
  "components": {
    "schemas": {
      "ModelsListResponse200": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "model_id": {
                  "type": "string",
                  "minLength": 1,
                  "pattern": "\\S"
                },
                "provider": {
                  "type": "string",
                  "minLength": 1,
                  "pattern": "\\S"
                },
                "tier": {
                  "type": "string",
                  "enum": [
                    "frontier",
                    "cumulus-served",
                    "customer-gpu"
                  ]
                },
                "route_kind": {
                  "type": "string",
                  "enum": [
                    "frontier",
                    "flam",
                    "oss"
                  ]
                },
                "context_window": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "input_cost_per_1k": {
                  "nullable": true,
                  "type": "number",
                  "minimum": 0
                },
                "output_cost_per_1k": {
                  "nullable": true,
                  "type": "number",
                  "minimum": 0
                },
                "availability": {
                  "type": "string",
                  "enum": [
                    "ready",
                    "not-configured",
                    "unavailable"
                  ]
                },
                "capabilities": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "text",
                      "vision",
                      "tool_calling",
                      "structured_output",
                      "embedding",
                      "audio",
                      "reasoning",
                      "voice",
                      "stt",
                      "tts",
                      "transcription",
                      "speech_synthesis",
                      "streaming"
                    ]
                  }
                },
                "tool_calling": {
                  "type": "boolean"
                },
                "task": {
                  "type": "string",
                  "enum": [
                    "chat",
                    "embedding",
                    "voice",
                    "stt",
                    "tts"
                  ]
                },
                "embedding_dim": {
                  "nullable": true,
                  "type": "integer",
                  "minimum": 0,
                  "exclusiveMinimum": true,
                  "maximum": 9007199254740991
                },
                "deployment_backend": {
                  "type": "string",
                  "minLength": 1
                },
                "health_state": {
                  "nullable": true,
                  "type": "string",
                  "minLength": 1
                },
                "supports_streaming": {
                  "nullable": true,
                  "type": "boolean"
                },
                "supports_parallel_tool_calls": {
                  "nullable": true,
                  "type": "boolean"
                },
                "data_policy": {
                  "type": "object",
                  "additionalProperties": {
                    "$ref": "#/components/schemas/ModelPolicyValue"
                  }
                },
                "regions": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "eval_scores": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "number"
                  }
                },
                "latency_ms_p50": {
                  "nullable": true,
                  "type": "number",
                  "minimum": 0
                },
                "latency_ms_p95": {
                  "nullable": true,
                  "type": "number",
                  "minimum": 0
                }
              },
              "required": [
                "model_id",
                "provider",
                "tier",
                "route_kind",
                "context_window",
                "input_cost_per_1k",
                "output_cost_per_1k",
                "availability",
                "capabilities",
                "tool_calling",
                "task",
                "embedding_dim",
                "deployment_backend",
                "health_state",
                "supports_streaming",
                "supports_parallel_tool_calls",
                "data_policy",
                "regions",
                "eval_scores",
                "latency_ms_p50",
                "latency_ms_p95"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "items"
        ],
        "additionalProperties": false
      },
      "ModelPolicyValue": {
        "nullable": true,
        "description": "A model data-policy value: any JSON value."
      },
      "ApiError": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "unauthenticated",
                  "forbidden",
                  "not_found",
                  "conflict",
                  "invalid_request",
                  "idempotency_conflict",
                  "policy_denied",
                  "capability_unavailable",
                  "provider_unavailable",
                  "knowledge_unavailable",
                  "publication_invalid",
                  "run_not_active",
                  "rate_limited",
                  "outcome_unknown",
                  "internal"
                ]
              },
              "message": {
                "type": "string"
              },
              "retryable": {
                "type": "boolean"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "none",
                  "unknown"
                ]
              },
              "details": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "code",
              "message",
              "retryable",
              "outcome"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": false
      }
    }
  }
}

Errors and recovery

See API error handling and Troubleshooting.

Content version a4337124Customer SDKMarkdown source
List available models · Cumulus developer docs