账单
账单使用 API(Beta)
deprecated
SUNSET as of 2026-09-16: this endpoint no longer returns usage data and answers every request with a 410. Use GET /api/v1/billing/usage-history instead, which returns the same ledger entries with cursor pagination: replace page and limit with pageSize plus the nextCursor from each response, and startDate and endDate with startTimestamp and endTimestamp.
GET
/api/v1/billing/usage
导出用户的用量数据。响应字段说明如下:
- timestamp:账单使用条目的创建时间戳
- sku:与账单使用条目关联的产品
- pricePerUnitUsd:以美元计的单价
- unit:消耗的单位数量
- amount:账单使用条目的总收费金额
- currency:账单使用条目所收取的货币
- notes:关于账单使用条目的备注
- inferenceDetails.requestId:与推理关联的请求 ID
- inferenceDetails.inferenceExecutionTime:推理执行所用时间(毫秒)
- inferenceDetails.promptTokens:prompt 中请求的 token 数量。仅在 LLM 用量中出现。
- inferenceDetails.completionTokens:completion 中使用的 token 数量。仅在 LLM 用量中出现。