describe-support-models
Call this API to query the list of model names currently supported by TokenPlan. The returned values can be used directly as the model field in inference requests. This is a pure configuration query and is not tied to any specific master account.
Authentication
This API requires API Key authentication. Log in to the Baidu AI Cloud Console to obtain your API Key:
- If you already have an API Key, click Show in the API Key column and copy it.
- If you have not created an API Key yet, click Create API Key. After it is created, click Show in the API Key column and copy it.
Keep your API Key secure. Do not share it publicly or commit it to code repositories.
Request Parameters
POST /v2/overseas/team/tokenplan?Action=DescribeSupportModels HTTP/1.1
Host: api.baiduqianfan.ai
Authorization: Bearer <API Key>
Content-Type: application/json
{}
Sample Code
curl -X POST 'https://api.baiduqianfan.ai/v2/overseas/team/tokenplan?Action=DescribeSupportModels' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <API Key>' \
-d '{}'
Response
The request ID in UUID format, used for troubleshooting.
The business data object.
Show Sub-properties
Hide Sub-properties
The list of supported model names, which can be used directly as the model field in inference requests. The list changes dynamically as models are launched on the platform; the actual response prevails.
Show Sub-properties
Hide Sub-properties
{
"requestId": "ca8ae258-3da6-4fd4-ba3c-a13e04d4f2cc",
"result": {
"items": [
"glm-5",
"glm-5.1",
"glm-5.2",
"deepseek-v3.2",
"deepseek-v4-flash-0731",
"deepseek-v4-flash",
"deepseek-v4-pro"
]
}
}
Error Codes
If a request fails, the server will return a JSON object with a code field identifying the error.
Common Error Codes for This API
| Error Code | Description |
|---|---|
ParamError |
Failed to parse request parameters. |
Complete Error Code Reference
The table below lists all possible values of the code field returned by TokenPlan APIs. The common error codes of each API are a subset of this list.
| Error Code | HTTP Status Code | Description |
|---|---|---|
ParamError |
400 | Failed to parse or validate request parameters. |
ParamValueError |
400 | Invalid parameter value. |
RateLimitExceeded |
429 | Too many concurrent requests; rate limiting triggered. |
TokenPlanSeatNotFound |
400 | The seat does not exist. |
TokenPlanSeatNoPermission |
400 | No permission to operate on this seat. |
TokenPlanSeatNotAvailable |
400 | The seat is not in an operable state (deactivated, expired, or modified by a concurrent operation). |
TokenPlanSeatMemberMismatch |
400 | The member bound to the seat does not match the request. |
TokenPlanMemberNotFound |
400 | The member does not exist. |
TokenPlanMemberNoPermission |
400 | No permission to operate on this member. |
TokenPlanParamDuplicated |
400 | The request contains duplicate items (e.g., seatId). |
TokenPlanApiKeyRespError |
500 | The API Key service returned an error. |
TokenPlanApiKeyRespNull |
500 | The API Key service returned an empty response. |
TokenPlanApiKeyIsEmpty |
500 | The API Key is an empty string. |
TokenPlanMemberListError |
500 | An error occurred while querying the member list. |
TokenPlanIamQuerySubusersWithContactError |
500 | An error occurred while querying sub-user information from IAM. |
TokenPlanResourceNotFound |
400 | The plan resource does not exist. |
TokenPlanResourceAlreadyExists |
400 | The plan resource already exists and cannot be purchased again. |
TokenPlanResourceNotAvailable |
400 | The plan resource has been unsubscribed or has expired and cannot be operated on. |
TokenPlanSeatPlanMismatch |
400 | The seat's plan type does not match the request. |
TokenPlanSeatPlanNotUpgradable |
400 | The seat's plan type does not support upgrades. |
TokenPlanLogNoAction |
400 | Unsupported log action. |
TokenPlanLogParseTimeError |
500 | An error occurred while parsing the log time. |
TokenPlanLimitAdminError |
500 | The limitServer service encountered an error. |
TokenPlanMysqlMemberError |
500 | An error occurred while querying member data. |
TokenPlanDomainHasActivePlan |
400 | The master account already has an active plan and cannot purchase another one. |
TokenPlanMemberAlreadyBound |
400 | The member is already bound to a seat under the current plan and cannot be bound again. |
TokenPlanSeatResourceMismatch |
400 | Seats bound in the same batch must belong to the same plan. |
TokenPlanChooseAndBindError |
500 | An error occurred while adding a member from an existing sub-user. |
TokenPlanCreateAndBindError |
400 | An error occurred while creating the sub-user or adding the member. |
