Query grouped usage cost subtotals for an account.
Authorizations
Body
Request for grouped usage cost subtotals over a time range.
Dimensions to group by. At most three dimensions may be combined, of which at most two may be non-time. A three-dimension breakdown is served only for an unfiltered ACCOUNT query over at most 32 days. HOUR and DAY are mutually exclusive. SESSION is intentionally filter-only to prevent high-cardinality enumeration.
SERVERLESS_INFERENCE queries group by HOUR, DAY, MODEL, MODEL_TIER, USER, API_KEY and SERVICE_TIER. TRAINING queries group by DAY, JOB_ID, JOB_TYPE, OFFERING and TRAINING_SESSION, at most two of them besides OFFERING, over up to 100 days. TRAINING results are not paginated and hold at most 10,100 rows.
- SERVICE_TIER: Groups costs by the requested service tier as recorded on the usage. Use MODEL_TIER to group by the serving capability tier used to price model usage.
- JOB_ID: Training dimensions, valid only for TRAINING queries.
DIMENSION_UNSPECIFIED, HOUR, MODEL, USER, API_KEY, DAY, MODEL_TIER, SERVICE_TIER, JOB_ID, JOB_TYPE, OFFERING, TRAINING_SESSION 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