Get balance
What the key's credit account can spend now, and the key's own limit.
Read it before a batch of calls to size them, or to show your users what's left. Amounts are dollars as exact decimal strings.
spendable_usd is what new calls can reserve right now: the balance less what running calls hold. Compare it with a call's reserve, not with its likely cost. See AI credit.
Authorization: Bearer rf_ai_... or x-api-key.Response
accountobjectThe credit account the key spends: its
id(acc_...) and itstoken, with the token'smint,symbolandname.spendable_usdstringWhat new calls can reserve right now: the balance less what running calls hold.
balance_usdstringThe whole balance.
reserved_usdstringWhat running calls hold.
running_callsintegerCalls running now, at most 8.
key_limitobject | nullThis key's spending limit, if it has one:
limit_usd,reset(daily, weekly or monthly),spent_usd,reserved_usd,remaining_usdandresets_at.
curl https://relayfor.si/api/v1/balance \ -H "Authorization: Bearer $RELAYFOR_ROUTER_KEY"{ "object": "balance", "account": { "id": "acc_arqp1qhbpvjhzifE", "token": { "mint": "MASi45ub7Qe4ZE36UT5G6cU4ud8Fhhe4deS4F3cw9KTA", "symbol": "NOVA", "name": "Nova" } }, "spendable_usd": "18.40211", "balance_usd": "18.42211", "reserved_usd": "0.02", "running_calls": 1, "key_limit": { "limit_usd": "5", "reset": "daily", "spent_usd": "1.2", "reserved_usd": "0.02", "remaining_usd": "3.78", "resets_at": "2026-10-01T00:00:00.000Z" }}