Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Start date for the time range (inclusive). If not provided, defaults to the first day of the current month.
End date for the time range (exclusive). If not provided, defaults to the last day of the current month.
Time granularity for grouping (minute, hour, day, month, year)
minute
, hour
, day
, month
, year
Fields from event_metadata to include and sum
["completion_tokens", "total_tokens"]
Fields from tags to group by
["model", "project.name"]
Successful Response
The response is of type GetUsageResultItem · object[]
.