查詢成本規則。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
請求文法
POST HTTP/1.1
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| PageNumber |
integer |
否 |
頁碼。 |
1 |
| PageSize |
integer |
否 |
每頁記錄數,取值範圍如下:
預設值為 30。 |
30 |
| GwClusterId |
string |
是 |
網關執行個體 ID。 |
pg-xxxxxxxx |
| ModelName |
string |
否 |
模型名稱(如 gpt-4、qwen-turbo) |
qwen3-max |
| ModelServiceId |
string |
否 |
模型服務 ID。 |
ms-xxxxxx |
| RegionId |
string |
否 |
地區 ID。 |
cn-beijing |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
24A1990B-4F6E-482B-B8CB-75C612****** |
| TotalRecordCount |
integer |
總記錄數 |
1 |
| PageRecordCount |
integer |
本頁記錄數。 |
30 |
| PageNumber |
integer |
頁碼 |
1 |
| PageSize |
integer |
每頁記錄數,取值範圍為 30、50、100,預設值為 30。 |
30 |
| Items |
array<object> |
成本規則列表 |
|
|
object |
成本規則對象 |
||
| InputCostPointsPerMillion |
string |
輸入百萬 token 成本點(預設 0) |
0 |
| OutputCostPointsPerMillion |
string |
輸出百萬 token 成本點(預設 0) |
0 |
| CacheCostPointsPerMillion |
string |
Cache 百萬 token 成本點(預設 0 |
0 |
| Model |
string |
模型名稱 |
gpt-4 |
| ModelServiceId |
string |
模型服務 ID |
ms-xxxxxxxxx |
| CostRuleId |
string |
成本規則 ID |
924d450014e64e88ac6e8486f8e990** |
| GwClusterId |
string |
網關執行個體 ID。 |
pg-xxxxxxxxxx |
| GmtCreated |
string |
建立時間 |
2026-01-04T16:09:29+08:00 |
| GmtModified |
string |
更新時間 |
2024-10-16 16:46:20 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "24A1990B-4F6E-482B-B8CB-75C612******",
"TotalRecordCount": 1,
"PageRecordCount": 30,
"PageNumber": 1,
"PageSize": 30,
"Items": [
{
"InputCostPointsPerMillion": "0",
"OutputCostPointsPerMillion": "0",
"CacheCostPointsPerMillion": "0",
"Model": "gpt-4",
"ModelServiceId": "ms-xxxxxxxxx",
"CostRuleId": "924d450014e64e88ac6e8486f8e990**",
"GwClusterId": "pg-xxxxxxxxxx",
"GmtCreated": "2026-01-04T16:09:29+08:00",
"GmtModified": "2024-10-16 16:46:20\n"
}
]
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。