latestOpenAPI 3.1.02026-08-14141637.4 KB

7d245a8d7a75

Usage

Get usage summary

Returns totals (tokens/cost/carbon/energy/offset) plus a daily chart for the requested date range, optionally scoped to a project. Supply startDate + endDate (YYYY-MM-DD, together, max 366 days) for a custom period; they take precedence over range.

get/api/v1/usage/summary

Query parameters

range'7d' | '30d' | '90d' | '365d'
startDatestring
endDatestring
projectIdstring uuid

Response

Usage summary

successtrue required