GET /v1/balance
Check the live account balance from your code with the same sk- key: balance in quota and USD, low-balance flag and your alert threshold. Free, no tokens consumed.
Check your live balance from code with the same sk- key you call systemone with — no upstream call, no tokens consumed, no charge. The response also reports whether the balance is below your alert threshold (configured in the console).
curl https://api.easyjev.online/v1/balance \ -H "Authorization: Bearer sk-your-key"
{
"balance_quota": 420000000,
"balance_usd": "0.42",
"low_balance": false,
"alert_threshold_usd": "1.00"
}Field · /v1/balance
| Field | Description |
|---|---|
| balance_quota | Balance in integer quota (1e9 quota = $1) |
| balance_usd | Balance formatted as USD text |
| low_balance | true when balance < your alert threshold (live fact, independent of the email switch) |
| alert_threshold_usd | Your alert threshold formatted as USD text |