Get Global Spend Report
Get Daily Spend per Team, based on specific startTime and endTime. Per team, view usage by each key, model [ { "group-by-day": "2024-05-10", "teams": [ { "team_name": "team-1" "spend": 10, "keys": [ "key": "1213", "usage": { "model-1": { "cost": 12.50, "input_tokens": 1000, "output_tokens": 5000, "requests": 100 }, "audio-modelname1": { "cost": 25.50, "seconds": 25, "requests": 50 }, } } ] ] }
Request
- Base URL: https://apiclaw.biz (the document declares no server; this is the origin it was published from)
- URL: https://apiclaw.biz/global/spend/report
- Auth: API key in header x-litellm-api-key
Query parameters
Time from which to start viewing spend
Time till which to view spend
Group spend by internal team or customer or api_key
View spend for a specific api_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 internal_user_id. Example internal_user_id='1234
View spend for a specific team_id. Example team_id='1234
View spend for a specific customer_id. Example customer_id='1234. Can be used in conjunction with team_id as well.
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.