cURL
curl --request GET \ --url https://gomodel.example.com/admin/api/v1/usage/models \ --header 'Authorization: <api-key>'
[ { "input_cost": 123, "input_tokens": 123, "model": "<string>", "output_cost": 123, "output_tokens": 123, "provider": "<string>", "provider_name": "<string>", "total_cost": 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?