Read your account's lifetime DA totals — deposited and spent.
Read your account's lifetime totals in Algerian Dinars: everything credited to your wallet and everything spent on usage. For the current spendable balance, use the X-Balance-Available response header returned with every inference call.
Authenticate with your API key: Authorization: Bearer $OPENDUNES_API_KEY.
| Field | Type | Description |
|---|---|---|
total_credits | number | Total DA ever credited to the wallet (deposits, refunds) |
total_usage | number | Total DA ever spent on requests |
Both values are Algerian Dinars. The remaining balance is total_credits - total_usage.