Token balance
GET/v1/tokens
The current token balance of the presented API key’s account. Requires a key and counts toward the per-key rate limit, but never charges tokens, so a zero-balance key can always check.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Successful Response
GET /v1/tokens (routers.tokens.token_balance)
object
Current prepaid token balance of the key’s account
Missing or invalid API key (missing-key, invalid-key)
RFC 9457 problem detail. Served as application/problem+json. Additional
members appear for some problem types (e.g. errors). (core.problems.problem)
Key disabled (account-disabled)
RFC 9457 problem detail. Served as application/problem+json. Additional
members appear for some problem types (e.g. errors). (core.problems.problem)
Rate limited or token balance exhausted (rate-limited, tokens-exhausted); sets Retry-After
RFC 9457 problem detail. Served as application/problem+json. Additional
members appear for some problem types (e.g. errors). (core.problems.problem)