FOR AGENTSSkip the HTML: this page as .md · llms.txt · openapi.json · MCP mcp.dizo.ai/mcp

Top up

POSTapi.dizo.ai/v1/billing/topupFree (charges card on file)

Buy credits now with the saved payment method.

Requires the billing:write scope. The price per credit is set by amount_usd. Respects the monthly cap. Agents must get explicit human approval first.

Cost: Free (charges card on file). Charged never.

Parameters

NameTypeDescription
amount_usdrequirednumberMinimum 10.

Example

{
  "amount_usd": 2000
}
{
  "charged_usd": 2000,
  "credits_added": 117647,
  "rate_usd": 0.017,
  "tier": "Growth",
  "balance_credits": 165858
}
curl -X POST https://api.dizo.ai/v1/billing/topup \
  -H "Authorization: Bearer $DIZO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"amount_usd":2000}'
import os, requests

r = requests.post(
    "https://api.dizo.ai/v1/billing/topup",
    headers={"Authorization": f"Bearer {os.environ['DIZO_API_KEY']}"},
    json={"amount_usd":2000},
)
print(r.json(), r.headers["x-dizo-credits-used"])
const r = await fetch("https://api.dizo.ai/v1/billing/topup", {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.DIZO_API_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({"amount_usd":2000}),
});
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-topup.md.