Get Key Spend Report
Get spend for the calling api_key over a date range, with a per-model breakdown.
Same row shape as /global/spend/report?api_key=..., but callable by any key: non-admin callers are always scoped to their own api_key, while proxy admins may pass ?api_key= to view any key.
Query parameters
Time from which to start viewing spend (YYYY-MM-DD)
Time from which to start viewing spend (YYYY-MM-DD)
Time till which to view spend (YYYY-MM-DD)
Time till which to view spend (YYYY-MM-DD)
View spend for a specific api_key. Proxy admin only; other callers are scoped to their own key. Pass the key's sha256 hash so the raw key stays out of URLs and access logs. Example api_key='d5345c0ecc68ae6295c69f91926b2bd379e25481a40c34b5884d157a9f65d8fa'
View spend for a specific api_key. Proxy admin only; other callers are scoped to their own key. Pass the key's sha256 hash so the raw key stays out of URLs and access logs. Example api_key='d5345c0ecc68ae6295c69f91926b2bd379e25481a40c34b5884d157a9f65d8fa'
Response
Successful Response