Get the balance
GET
/v1/balance Needs an API keyRead your account's balance.
While a call runs, the balance reserves the most it may cost; what is left to start new calls with is available_balance_usd. A call the available balance cannot cover is refused.
Response
Your account's balance. Your account's balance, as decimal strings in USD. Every workspace on the account draws on it.
balance_usdstringEverything the balance holds, including what calls in flight have reserved.
available_balance_usdstringWhat new calls can draw on: the balance minus what calls in flight have reserved.
The request was refused.
The API key is missing, wrong or revoked.
The request is not valid.
Too many requests with this API key.
Retry-After: Seconds until the limit resets.