Get costs details for the organization.
Query parameters
Start time (Unix seconds) of the query time range, inclusive.
End time (Unix seconds) of the query time range, exclusive.
Width of each time bucket in response. Currently only 1d is supported, default to 1d.
Return only costs for these projects.
Return only costs for these API keys.
Return only costs for these exact line item names. Each value must match the complete line_item value, for example gpt-4o, input_tokens.
Group the costs by the specified fields. Support fields include project_id, line_item, api_key_id and any combination of them.
A limit on the number of buckets to be returned. Limit can range between 1 and 180, and the default is 7.
A cursor for use in pagination. Corresponding to the next_page field from the previous response.
Response
Costs data retrieved successfully.