List available models

Query the selectable model names and backend information of the current workspace for agent calling and workflow model selection. This interface does not return provider credentials.

HTTP
GET $CLOUDSIGMA_API_BASE/workspaces/{workspace_id}/llm/models

Before you call

Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region. Prepare personal access token and target workspace ID that can access the target workspace.

Request parameters

Shell
curl "$CLOUDSIGMA_API_BASE/workspaces/$WORKSPACE_ID/llm/models?type=chat" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID"

$WORKSPACE_ID is the target workspace ID, and $CLOUDSIGMA_API_KEY is the calling credential.

Parameter

Type

Required

Description

workspace_id

string

Yes

The target workspace ID must be consistent with the workspace request header.

Query parameters

Type parameters are used to filter model types. This interface does not test model capabilities, and the models in the list may still be unable to complete the corresponding inference.

Parameter

Type

Required

Description

type

string

No

Model type, default chat. Supports chat, vision, ocr, reasoning, embedding and rerank. This interface returns an empty list for embedding, rerank.

This interface does not use paging parameters.

Successful response

JSON
{
  "code": "OK",
  "msg": "OK",
  "data": {
    "models": [
      {
        "model": "qwen3-coder-plus",
        "backend_id": -900001,
        "backend_name": "Genesis",
        "model_type": "chat"
      }
    ]
  }
}

Field

Type

Description

code

string

OK on success.

msg

string

OK on success.

data

object

Query results.

data.models

array of object

List of currently visible models.

data.models[].model

string

The model name to use when calling.

data.models[].backend_id

integer

Model backend ID.

data.models[].backend_name

string

Model backend name.

data.models[].model_type

string

Model type. Returned if there is a value.

Querying the model configuration list returns the saved agent model configuration and cannot replace this interface. When the model configuration list is empty, there may still be callable models in the current workspace.

Select one to use data.models[].model for params.model calling agent via A2A.

Last updated on