The aggregated completions usage details of the specific time bucket.
The aggregated number of input tokens used, including cached and cache-write tokens. This includes text, audio, and image tokens. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
The aggregated number of output tokens used across text, audio, and image outputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
When group_by=api_key_id, this field provides the API key ID of the grouped usage result.
When grouped by api_source, agents_api identifies attributed Agents API activity and unlabeled includes all records without published source attribution, including historical and unknown origins. Unlabeled does not imply direct API usage. Without source grouping, this field is null.
The aggregated number of input tokens written to the cache with a 12-hour retention period.
The aggregated number of input tokens written to the cache with a 30-minute retention period.
The aggregated number of cached input tokens used across text, audio, and image inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
The aggregated number of uncached text input tokens used, excluding cache-write tokens.
The aggregated number of uncached input tokens used across text, audio, and image inputs, excluding cache-write tokens.
When group_by=project_id, this field provides the project ID of the grouped usage result.
The aggregated embeddings usage details of the specific time bucket.
The aggregated moderations usage details of the specific time bucket.
The aggregated images usage details of the specific time bucket.
When group_by=api_key_id, this field provides the API key ID of the grouped usage result.
When group_by=project_id, this field provides the project ID of the grouped usage result.
The aggregated audio speeches usage details of the specific time bucket.
The aggregated audio transcriptions usage details of the specific time bucket.
The aggregated vector stores usage details of the specific time bucket.
The aggregated code interpreter sessions usage details of the specific time bucket.
The aggregated file search calls usage details of the specific time bucket.
The aggregated web search calls usage details of the specific time bucket.
When group_by=api_key_id, this field provides the API key ID of the grouped usage result.
When grouped by api_source, agents_api identifies attributed Agents API activity and unlabeled includes all records without published source attribution, including historical and unknown origins. Unlabeled does not imply direct API usage. Without source grouping, this field is null.
When group_by=context_level, this field provides the search context size of the grouped usage result.
The aggregated costs details of the specific time bucket.
When group_by=api_key_id, this field provides the API Key ID of the grouped costs result.
When grouped by api_source, agents_api identifies attributed Agents API activity and unlabeled includes all records without published source attribution, including historical and unknown origins. Unlabeled does not imply direct API usage. Without source grouping, this field is null.
When group_by=line_item, this field provides the line item of the grouped costs result.
When group_by=project_id, this field provides the project ID of the grouped costs result.
When group_by=line_item, this field provides the quantity of the grouped costs result.