Credits

Get usage statistics

Changed on

Returns 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 URL
    https://api.talonic.com
  • Auth
    HTTP 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