查詢模型服務列表
調試
您可以在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
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。