Query grouped usage cost subtotals for an account.
Returns rated dollar subtotals for usage over a time range, grouped by up to two of: HOUR, DAY, MODEL, USER, or API_KEY. Unlike GET /billingUsage (metered quantities) and GET /billing/summary (line items by billing category), this endpoint returns rated costs broken down by caller-supplied dimensions, with pagination and an account-wide subtotal. Requires account administrator access for ACCOUNT scope; SELF scope returns costs for the authenticated principal only.
Authorizations
Body
Request for grouped usage cost subtotals over a time range.
Response
A successful response.
Whether the result may omit usage without a user ID. INCOMPLETE means the query filters by user, so historical unattributed usage may be excluded. The amount excluded is unknown.
ATTRIBUTION_COMPLETENESS_UNSPECIFIED, COMPLETE, INCOMPLETE, UNKNOWN