Get AI usage
GET/api/v1/usage
AI spend and token consumption, broken down by model and by endpoint.
account:readRead your profile, usage, activity log, and connected email accounts.
Notes
Costs are what this app recorded per call, not a figure fetched from the provider.
Parameters
| Name | In | Type | Default | Description |
|---|---|---|---|---|
range |
query | string | 1m |
Window to report on. One of: 7d, 1m, 3m, all. |
Example
curl "https://resources.ashwanth.dev/api/v1/usage" \
-H "Authorization: Bearer $LEADMAGNET_API_KEY"
Try it
API key
Held in this page only, never saved or sent anywhere but this API. If you are signed in, you can leave it blank.
Parameters
rangeRequest
GET /api/v1/usage