GLM-5.2 is live — Z.AI's flagship with a 1M-token lossless contextfrom $0.900 per 1M tokens
rreAPI Docs

Balance

GET /api/v1/balance reference — the current credit balance for the authenticated key.

GET /api/v1/balance returns the current credit balance for the credentials making the request. Use it to show remaining credits in your own dashboard, or to check a key has funds before submitting work.

Reading this endpoint does not consume credits.

GET /api/v1/balance

Request

GET /api/v1/balance
Authorization: Bearer rk_live_xxx

No body and no query parameters.

Response

200 OK:

{
  "balance": 12500
}

Response fields

FieldTypeDescription
balanceintegerCurrent credit balance. Integer credits, 1 credit = $0.001.

Errors

HTTPcodeWhen
4011000110005Auth missing / malformed / invalid / revoked
42950001Per-user rate limit exceeded — retry after Retry-After seconds
50060099Unexpected server error

Full list: Errors.

Table of Contents