Skip to main content

Billing

Workspace-level credit reporting. Unlike the rest of the API, these operations are not scoped to a project — they report the whole workspace's prepaid credits: the same balance the run, generation, and assistant gates spend against.

OperationWhat it does
get_creditsThe current credit balance: spendable total, this month's plan allowance and what's left of it, and the never-expiring purchased balance.
list_billing_historyCredit additions — credit-pack purchases + plan/admin grants — newest first.
list_credit_usageCredit consumption — a per-area rollup for the cycle plus recent usage debits.