Read the spend of a window and of the window before it
GET/api/me/usage
Returns the totals of a window: the cost in spent_usd, paid_usd, plan_usd and list_usd, the calls in requests, the tokens, the attempts, the answered calls, the retries, and cost_not_known, which is how many calls carry no cost and no price. paid_usd is the part of the bill that the project paid, plan_usd is the part that its plans covered at the list price, and list_usd is their sum. previous holds the cost, the calls, the tokens and cost_not_known of the window of the same length that ends where this one starts, so a reader states the change between the two. from and to name the times that the figures cover. The answer also holds by_model, by_tier, by_key, by_source, by_key_source and series, which split the same window.
Request
Responses
- 200
- 401
The totals of the window, the same figures of the window before it, and the splits of the window.
The session of the person or the virtual key is missing, or it is not valid.