Usage
Get per-model breakdown
Changed onReturns per-model token/cost/carbon/energy rollups (with percentage share of total tokens) 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/breakdown
Request
- Base URLhttps://api.crbonfree.com
- Auth
- HTTP bearer
- or API key in header X-API-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
range'7d' | '30d' | '90d' | '365d'
startDatestring
endDatestring
projectIdstring uuid
Response
Per-model breakdown
Changes
- info
added the required property
//to the response with the status
- info
- breaking
the response property
//became nullable for the status - info
response property
data/items/offsetCostUsddeprecated
- breaking