limit 查询参数控制返回的条目数。
接口
GET/v1/billing/usage
认证:Authorization: Bearer $ARIA_PIN_KEY
查询参数
integer
default:"50"
返回的最大记录数。必须在 1 到 500 之间。
响应
array
计费记录列表,按创建时间排序,最新的在前。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
获取翻页的计费记录,显示每个任务的 GPU 秒数、令牌数与费用。
limit 查询参数控制返回的条目数。
/v1/billing/usage
认证:Authorization: Bearer $ARIA_PIN_KEY
curl "http://<pin-host>:8001/v1/billing/usage?limit=10" \
-H "Authorization: Bearer $ARIA_PIN_KEY"
{
"items": [
{
"billing_id": "bl_abc123",
"job_id": "job_xyz789",
"kind": "training",
"gpu_seconds": 7200.0,
"tokens": 12000000,
"cost": 4.25,
"created_at": "2025-06-01T12:00:00Z"
}
]
}
Was this page helpful?