Skip to main content
The summary endpoint gives you a real-time snapshot of your AI spend for the current calendar month. You get the total spend in USD, how much of your configured monthly budget you’ve consumed, and a per-model breakdown so you can see exactly which models are driving your costs. Endpoint
GET https://tokonomics.ca/analytics/summary

Authentication

This endpoint requires a valid Bearer token in the Authorization header.
Authorization: Bearer mk_your_key

Response Fields

current_month_spend
number
Your total AI spend for the current calendar month in USD. Example: 127.45
monthly_budget
number
The monthly budget cap configured for your account in USD. Requests are blocked with a 429 once this limit is reached. Example: 500.00
budget_used_percent
number
The percentage of your monthly budget already consumed. Calculated as (current_month_spend / monthly_budget) * 100. Example: 25.49
by_model
array
A breakdown of spend and request count per model for the current month.

Example

curl "https://tokonomics.ca/analytics/summary" \
  -H "Authorization: Bearer mk_your_key"