Credits
Get usage statistics
Changed onReturns aggregated API usage stats grouped by operation type and model over the given period. For organizations without the "Cost control endpoints" approval, model and total_cost_usd are omitted, rows are grouped by operation type only and ordered by call_count, and the response carries "cost_fields": "redacted". The same gate as GET /v1/usage.
get/v1/credits/usage
Request
- Base URLhttps://api.talonic.com
- AuthHTTP bearer
Query parameters
days, integer
Reporting window in days.
Response
Aggregated usage stats.
object required
stats, object[] required
period_days, integer required
cost_fields, 'redacted'
Present only when model and cost fields are redacted.
Example response
{
"period_days": 30
}Changes
- info
added the optional property
cost_fieldsto the response with the status
- info