Balance & usage
GETapi.dizo.ai/v1/billingFree
Balance, this month's spend, cap, refill settings and per-key usage.
Agents should check this before large jobs and stop if spend is near the cap.
Cost: Free. Charged never.
MCP tool:
MCP tool:
dizo_balanceParameters
None.
Example
{
"balance_credits": 48211,
"month": {
"spent_usd": 640,
"cap_usd": 2000,
"credits_used": 51780
},
"auto_refill": {
"enabled": true,
"threshold_credits": 5000,
"amount_usd": 500
},
"keys": [
{
"name": "sdr-agent",
"month_credits_used": 9400,
"month_cap_credits": 20000
}
]
}curl https://api.dizo.ai/v1/billing \ -H "Authorization: Bearer $DIZO_API_KEY"
import os, requests
r = requests.get(
"https://api.dizo.ai/v1/billing",
headers={"Authorization": f"Bearer {os.environ['DIZO_API_KEY']}"},
)
print(r.json(), r.headers["x-dizo-credits-used"])const r = await fetch("https://api.dizo.ai/v1/billing", {
method: "GET",
headers: { Authorization: `Bearer ${process.env.DIZO_API_KEY}` },
});
console.log(await r.json(), r.headers.get("x-dizo-credits-used"));Errors follow the standard error shape. Add "dry_run": true for a free quote and "max_credits" to cap spend. Agents: this page is also at /docs/billing.md.