Overview
This endpoint returns key-level usage details without exposing provider-specific execution details.Query Parameters
If both
startDate and endDate are present, startDate must be earlier than or equal to endDate.
Notes
-
Monetary fields are USD-only.
CNYinputs are retired and return400 currency_retired. - The response is paginated.
- The response includes public billing and reporting fields only.
-
Each usage item can include
billing_transaction_idafter the underlying request reaches settled billing state. Use it together withrequest_idfor request-level reconciliation. - Provider execution details are intentionally hidden from public management responses.
Example
Request / Response
Use the interactive OpenAPI panel above for the exact schema and response fields.Response example
Important fields
object
API key summary using the same fields as list/create/update responses.
array
Paginated usage rows.
object
Pagination metadata with
page, limit, total, and totalPages.object
Aggregated totals for the selected filters.
object
Aggregated breakdowns for the selected filters.
string | null
Public request identifier for support and reconciliation.
string | null
Settled billing transaction id when available.
string
Requested public model name.
string
Logical public model used for reporting.
string | null
Public model vendor.
string | null
Public request scene.
string
Billing usage unit, such as
per_token.number
Usage quantity as a JSON number for display.
string
Exact usage quantity as a decimal string.
number
Prompt token count.
number
Completion token count.
number
Total token count.
number
Cache read token count.
number
Total cache write token count.
number
Five-minute cache write token count.
number
One-hour cache write token count.
number
Cost in USD as a JSON number for display.
string
Exact cost in USD as a decimal string.
string
ISO usage row timestamp.
number
Total request count.
number
Total cost in USD as a JSON number for display.
string
Exact total cost in USD as a decimal string.
number
Total prompt tokens.
number
Total completion tokens.
number
Total tokens.
array
Usage quantity grouped by usage unit.
array
Breakdown by requested public model.
array
Breakdown by logical public model.
array
Breakdown by public model vendor.
array
Breakdown by public request scene.
array
Daily cost trend.