API reference

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.

Fields of the 200 answer
FieldTypeWhat it is
daysinteger
sinceinteger
modelsarray of object
models[].modelstring
models[].requestsinteger
models[].promptTokensinteger
models[].completionTokensinteger
models[].costMicrosintegerWhat 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.

Antimatter