API reference · Account
The account's own usage per model, for pricing it on every model
GET/api/account/my-usageSigned in session
The signed in account's answered requests over the last 30 days, per model, with their tokens and what they were billed, counted as the savings read counts them (no cache hits, probes or requests on the caller's own provider key). /pricing prices these tokens on every listed model at today's billed card.
Answer 200
The usage per model; an empty list when there is none.
| Field | Type | What it is |
|---|---|---|
| days | integer | |
| since | integer | |
| models | array of object | |
| models[] | string | |
| models[] | integer | |
| models[] | integer | |
| models[] | integer | |
| models[] | integer | What those requests were billed, micro USD. |
Errors
- 401OpenAI shaped error.
- 429OpenAI shaped error.
Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.