Overview
This endpoint returns consumption-only billing aggregates for the selected API key, including total cost, total requests, usage unit breakdowns, and breakdowns by requested model name (model), vendor, scene, accessChannel, cache class, plus a daily cost trend.
Notes
-
Monetary fields are USD-only.
CNYinputs are retired and return400 currency_retired. - Recharge, invoices, and other organization-level financial records are intentionally excluded.
Example
Request / Response
Use the interactive OpenAPI panel above for the exact schema.Response example
Important fields
API key summary using the same fields as list/create/update responses.
Aggregated totals for the selected filters.
Aggregated breakdowns for the selected filters.
Total request count.
Total cost in USD as a JSON number for display.
Exact total cost in USD as a decimal string.
Total prompt tokens.
Total completion tokens.
Total tokens.
Usage quantity grouped by usage unit.
Breakdown by requested public model.
Breakdown by logical public model.
Breakdown by public model vendor.
Breakdown by public request scene.
Breakdown by
platform or byok access channel.Daily cost trend.