Skip to main content
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 用量中出现。

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

响应

410 - application/json

Sunset on 2026-09-16. The error message names GET /api/v1/billing/usage-history and the parameters to rename.

error
string
必填

A description of the error