Skip to main content
Returns the plan and spendable credit of the account behind the key. Use it to decide whether to start a task, or to explain a task that stopped for lack of credits.

Request

Response

A free account:

Gotchas

  • The call never fails because Billing is down. Check credits for null before reading credits.usd.
  • Credit is what a task can spend now. A free account’s daily grant refills it; the portal shows when.
  • The Billing lookup has a five-second timeout, so this call can take a moment. Do not put it inside the poll loop.