cURL
curl --request GET \ --url https://api.qclawrouter.com/v1/dashboard/billing/usage \ --header 'Authorization: Bearer <token>'
{ "object": "list", "total_usage": 2.35, "daily_costs": [ { "timestamp": 123, "line_items": [ { "name": "<string>", "cost": 123 } ] } ] }
查询指定日期范围内的 API 用量
使用您的 API Key 作为 Bearer Token。在控制台创建令牌获取。
开始日期(格式:YYYY-MM-DD)
"2025-01-01"
结束日期(格式:YYYY-MM-DD)
"2025-01-31"
查询成功
"list"
总消费(美元,需除以 100)
2.35
Show child attributes