8fbaab4fc7c5
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 }, } } ] ] }
Query parameters
Time from which to start viewing spend
Time from which to start viewing spend
Time till which to view spend
Time till which to view spend
Group spend by internal team or customer or api_key
Group spend by internal team or customer or api_key
View spend for a specific api_key. Example api_key='sk-1234
View spend for a specific api_key. Example api_key='sk-1234
View spend for a specific internal_user_id. Example internal_user_id='1234
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 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.
View spend for a specific customer_id. Example customer_id='1234. Can be used in conjunction with team_id as well.
Response
Successful Response