查询成本规则。
调试
您可以在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"
}
]
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。