Summarize usage for minds

Returns what a set of minds in the bearer key's project has been charged over a time window, aggregated from the platform's own usage ledger. Use it to cap a run by spend instead of estimating from response tokens and a price table. Every charge attributed to a mind counts, including the mind's own adaptation work recorded under your requests. Minds outside the key's project, unknown IDs, and duplicates are left out of `minds` and `total` rather than rejected. A mind with no usage in the window is returned as a zero row.

GET/v1/usage/summary

Authorization

bearerAuth
AuthorizationBearer <token>

A project-scoped API key. Store it only on a trusted backend.

In: header

Query Parameters

mind_id*array<>

Public mind ID. Repeat the parameter for each mind, up to 50 per request.

Items1 <= items <= 50
since?string

Inclusive start of the window as an ISO-8601 instant with an explicit offset. Defaults to 30 days before until.

Formatdate-time
until?string

Exclusive end of the window as an ISO-8601 instant with an explicit offset. Defaults to now. The window may cover at most 90 days.

Formatdate-time

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/usage/summary?mind_id=mind_example&mind_id=mind_fork_example&since=2026-09-01T00%3A00%3A00Z&until=2026-09-02T00%3A00%3A00Z"
{  "currency": "USD",  "since": "2026-09-01T00:00:00.000Z",  "until": "2026-09-02T00:00:00.000Z",  "total": {    "customer_charge_usd": "0.300070000",    "input_tokens": 108,    "output_tokens": 24,    "cache_read_tokens": 30,    "cache_write_tokens": 40,    "requests": 2  },  "minds": [    {      "mind_id": "mind_example",      "customer_charge_usd": "0.300070000",      "input_tokens": 108,      "output_tokens": 24,      "cache_read_tokens": 30,      "cache_write_tokens": 40,      "requests": 2    },    {      "mind_id": "mind_fork_example",      "customer_charge_usd": "0.000000000",      "input_tokens": 0,      "output_tokens": 0,      "cache_read_tokens": 0,      "cache_write_tokens": 0,      "requests": 0    }  ]}
{  "type": "error",  "error": {    "type": "string",    "message": "string"  },  "request_id": "string"}
{  "type": "error",  "error": {    "type": "string",    "message": "string"  },  "request_id": "string"}
{  "type": "error",  "error": {    "type": "string",    "message": "string"  },  "request_id": "string"}