Request Parameters
The name of the association property to group costs by (e.g., “user_id”, “session_id”).
The start time in ISO 8601 format (e.g., “2025-04-15T00:00:00Z”).
The end time in ISO 8601 format (e.g., “2025-04-28T23:00:00Z”).
List of environments to include in the calculation. Separated by comma.
NEW Filter costs by specific token types. Separate multiple types with commas.Supported token types:
input_tokens
orprompt_tokens
(automatically normalized toprompt_tokens
)output_tokens
orcompletion_tokens
(automatically normalized tocompletion_tokens
)cache_read_input_tokens
cache_creation_input_tokens
- Other token types as they appear in your data
total_tokens
cannot be used as a filter.Examples:selected_token_types=input_tokens,output_tokens
selected_token_types=prompt_tokens,cache_read_input_tokens
selected_token_types=completion_tokens
Response
The name of the property that was queried.
A list of property values and their associated costs.
The total cost across all property values.
"No_Association"
as property_name if no spans have the requested association properties"No_Value"
as a value for spans that don’t have a value for the specified property"Unknown_Value"
for spans where the property exists but has an empty value