Daily Usage
Get per-day credit usage breakdown for the specified period (default last 30 days) with call counts and token totals per day.
GET
/v1/credits/usage/dailyResponse
Response fields
[].datestringCalendar date (YYYY-MM-DD).
[].callsintegerNumber of API calls on this date.
[].input_tokensintegerTotal input tokens on this date.
[].output_tokensintegerTotal output tokens on this date.
[].cost_usdnumberEstimated cost in USD on this date.
Response
[
{
"date": "2024-09-14",
"calls": 87,
"input_tokens": 373410,
"output_tokens": 53244,
"cost_usd": 1.92
},
{
"date": "2024-09-15",
"calls": 143,
"input_tokens": 614010,
"output_tokens": 87516,
"cost_usd": 3.16
}
]Errors
Error responses
401unauthorizedMissing or invalid API key.
429rate_limitedToo many requests. Retry after the period indicated in the Retry-After header.