cURL
curl --request GET \ --url https://gomodel.example.com/admin/api/v1/usage/summary \ --header 'Authorization: <api-key>'
{ "total_cost": 123, "total_input_cost": 123, "total_input_tokens": 123, "total_output_cost": 123, "total_output_tokens": 123, "total_requests": 123, "total_tokens": 123 }
Number of days (default 30)
Start date (YYYY-MM-DD)
End date (YYYY-MM-DD)
Filter by tracked user path subtree
Cache mode filter: uncached, cached, all (default uncached)
OK
Was this page helpful?