GET /v3/manage/billing/ returns the credits your organization has left, with its billing mode and its auto-refill settings. Use it to show the balance in your own tools, or to raise an alert before requests start being refused.
Authentication
The endpoint takes a management key (mgmt-eden-…) that holds the manage:read scope, the same key that reads usage. An inference key (sk-eden-…) is refused.
The key only ever sees the billing of its own organization. The endpoint is read-only: it never buys credits or changes a setting.
Read the balance
Response
Response fields
auto_refill
Credits are counted in US dollars:
balance, threshold, amount and monthly_limit are all dollar amounts, whatever currency says.
How the balance is computed
balance is the number the dashboard shows:
- Charges that are not settled yet are included. A request you just made lowers the balance within seconds, before the charge is written to your account.
- Holds on requests still running are not included. While a request is in progress, Eden AI reserves an estimate of its cost. That estimate is not a charge, so it does not lower
balance. The real cost is counted when the request ends.
Alert on a low balance
Requests are refused when the balance reaches-credit_overdraft_limit. Compare against that floor rather than against zero, and check that auto-refill is still working:
Python
Rate limit
A management key can make 60 requests per minute, counted together with its calls to the usage endpoints. Above that the API answers429. The balance is cheap to read, but polling it once a minute is more than enough for an alert.