Help Center/ Workspace/ API Reference/ Workspace APIs/ Model Providers/ Listing Remote Models of a Provider
Updated on 2026-07-24 GMT+08:00

Listing Remote Models of a Provider

Function

Lists available models of a third-party platform based on the provider configuration.

Debugging

You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.

  • If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
  • If you are using identity policy-based authorization, the following identity policy-based permissions are required.

    Action

    Access Level

    Resource Type (*: required)

    Condition Key

    Alias

    Dependencies

    workspace:modelProvider:list

    List

    -

    -

    -

    -

URI

POST /v3/ai-agents/model-providers/remote-models/query

Request Parameters

Table 1 Request body parameters

Parameter

Mandatory

Type

Description

id

No

String

Primary key ID of the provider. If this parameter is specified, other empty fields are supplemented from the provider records saved in the database.

provider_type

No

String

Provider type.

provider_id

No

String

Provider ID.

api_key

No

String

API key of the provider (encrypted using SCC).

base_url

No

String

Provider base URL.

custom_config

No

ProviderCustomConfig object

Customized configuration content.

limit

No

Integer

Number of records on each page. The default value is 20, and the maximum value is 100.

offset

No

Integer

Offset, which starts from 0.

Table 2 ProviderCustomConfig

Parameter

Mandatory

Type

Description

model_list_api

No

String

Address of the model list API, which is used to query the provider's remote models.

auth_header

No

String

Name of the authentication request header.

auth_prefix

No

String

Authentication prefix (for example, Bearer).

model_id_field

No

String

Field name of the model ID in the provider model list.

model_name_field

No

String

Field name of the model name in the provider model list.

headers

No

Map<String,String>

Customized HTTP request header, which is added when the provider API is called.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

total

Integer

Total number of remote models.

remote_models

Array of BaseModeInfo objects

Remote model list.

Table 4 BaseModeInfo

Parameter

Type

Description

id

String

Model ID.

name

String

Model name.

input

Array of strings

Input type array.

context_window

Integer

Maximum context window.

max_tokens

Integer

Maximum number of output tokens.

reasoning

Boolean

Whether inference is supported.

cost

ModelCost object

Fee information.

compat

ModelCompat object

Compatibility configuration.

is_builtin

Boolean

Whether the model is a built-in model.

Table 5 ModelCost

Parameter

Type

Description

input

Double

Fee per million input tokens.

output

Double

Fee per million output tokens.

cache_read

Double

Cache reading fee per million tokens.

cache_write

Double

Cache writing fee per million tokens.

Table 6 ModelCompat

Parameter

Type

Description

supports_usage_streaming

Boolean

Whether usage streaming transmission is supported.

supports_developer_role

Boolean

Whether the developer role is supported.

Status code: 400

Table 7 Response body parameters

Parameter

Type

Description

error_code

String

Error code, which is returned upon failure.

error_msg

String

Error message.

Status code: 401

Table 8 Response body parameters

Parameter

Type

Description

error_code

String

Error code, which is returned upon failure.

error_msg

String

Error message.

Status code: 403

Table 9 Response body parameters

Parameter

Type

Description

error_code

String

Error code, which is returned upon failure.

error_msg

String

Error message.

Status code: 500

Table 10 Response body parameters

Parameter

Type

Description

error_code

String

Error code, which is returned upon failure.

error_msg

String

Error message.

Example Requests

None

Example Responses

None

Status Codes

Status Code

Description

200

Operation successful.

400

The request cannot be understood by the server due to malformed syntax.

401

Authorization failed.

403

No permissions.

500

Internal server error.

Error Codes

See Error Codes.