查询模型服务列表
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
POST HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| GwClusterId |
string |
是 |
网关实例 ID。 |
pg-xxxxxxxxxx |
| Name |
string |
否 |
模型服务名称 |
testName |
| ModelServiceIds |
string |
否 |
模型服务 ID。 |
ms-xxx,ms-xxxx |
| ModelCategory |
string |
否 |
模型类别 |
text |
| Protocol |
string |
否 |
协议类型,枚举值:
|
openai |
| Status |
string |
否 |
状态 |
Enable |
| PageSize |
integer |
否 |
页码数 |
30 |
| PageNumber |
integer |
否 |
页码 |
1 |
| RegionId |
string |
否 |
地域 ID。 |
cn-beijing |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
24A1990B-4F6E-482B-B8CB-75C612****** |
| TotalRecordCount |
integer |
总的记录数量 |
2 |
| PageNumber |
integer |
当前页码 |
1 |
| PageRecordCount |
integer |
本页记录数。 |
30 |
| Items |
array<object> |
模型服务列表 |
|
|
object |
模型服务对象 |
||
| ModelServiceId |
string |
模型服务 ID。 |
ms-xxxxxx |
| Name |
string |
模型服务名称 |
test |
| ModelCategory |
string |
类别 |
text |
| Protocol |
string |
协议类型,枚举值:
|
openai |
| Status |
string |
状态 |
Enable |
| BaseUrl |
string |
上游服务地址 |
https://xxxxxx |
| GmtCreated |
string |
模型创建日期 |
2026-03-31T14:40:48Z |
| InputCostPointsPerMillion |
string |
输入点数 |
10 |
| OutputCostPointsPerMillion |
string |
输出点数 |
10 |
| RequestCostPoints |
string |
请求数 |
10 |
| ApiKey |
string |
模型服务的 API 密钥 |
xxxx |
| Vendor |
string |
模型服务商 |
bailian |
| PageSize |
integer |
每页记录数,取值范围如下:
默认值为 30。 |
30 |
示例
正常返回示例
JSON格式
{
"RequestId": "24A1990B-4F6E-482B-B8CB-75C612******",
"TotalRecordCount": 2,
"PageNumber": 1,
"PageRecordCount": 30,
"Items": [
{
"ModelServiceId": "ms-xxxxxx",
"Name": "test",
"ModelCategory": "text",
"Protocol": "openai",
"Status": "Enable",
"BaseUrl": "https://xxxxxx",
"GmtCreated": "2026-03-31T14:40:48Z",
"InputCostPointsPerMillion": "10",
"OutputCostPointsPerMillion": "10",
"RequestCostPoints": "10",
"ApiKey": "xxxx",
"Vendor": "bailian"
}
],
"PageSize": 30
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。