# 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.

```text
GET $CLOUDSIGMA_API_BASE/workspaces/{workspace_id}/llm/models
```

<span id="调用前准备"></span>

## Before you call


Configure the [CloudSigma regional endpoint and authentication](https://omnifabric.cloudsigma.com/docs/developer/endpoints-and-authentication.html.md) before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region.
Prepare [personal access token](https://omnifabric.cloudsigma.com/docs/guides/billing/credentials.html.md#personal-access-token) and [target workspace ID](https://omnifabric.cloudsigma.com/docs/guides/ai-studio/resource-center/workspace.html.md#复制工作区-id) that can access the target workspace.

<span id="request-example"></span>
<span id="call-example"></span>
<span id="请求示例"></span>

<span id="path-parameters"></span>
<span id="path-parameter"></span>
<span id="路径参数"></span>

<span id="请求参数"></span>

## Request parameters
:::::::{div} mo-api-tabs
::::::{tab-set}
:::::{tab-item} Input example

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

:::::
:::::{tab-item} Parameter reference

`$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. |

<span id="查询参数"></span>

### 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.

:::::
::::::
:::::::


<span id="成功响应"></span>

<span id="success-response"></span>

## Successful response

:::::::{div} mo-api-tabs mo-api-response-tabs
::::::{tab-set}
:::::{tab-item} Response example

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

:::::
:::::{tab-item} Field reference

| 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](https://omnifabric.cloudsigma.com/docs/reference/api/ai-studio/agents/model-configurations/list-model-configurations.html.md) 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](https://omnifabric.cloudsigma.com/docs/reference/api/ai-studio/agents/agent-invocation/call-agent-from-agent.html.md) via A2A.

:::::
::::::
:::::::
