Levain LabsLevain Labs
ApiBilling

Read Balance

Return the current credit balance, monthly usage, and sandbox runtime.

Return the current credit balance, monthly usage, and sandbox runtime.

Credit balance, usage, and plan-credit figures are shared across all workspaces in the organization — the same pool that funds agent runs. Sandbox minutes are this workspace's own.

GET
/api/v1/billing/balance

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Header Parameters

X-API-Key?string|null

Response Body

application/json

application/json

curl -X GET "https://api.levainlabs.com/api/v1/billing/balance"
{
  "balance_usd_micros": 0,
  "current_month_spend_usd_micros": 0,
  "extra_usage_limit_usd_micros": 0,
  "current_month_extra_usage_usd_micros": 0,
  "included_credits": 0,
  "included_credits_remaining": 0,
  "topup_credits_per_usd": 0,
  "current_month_sandbox_minutes": 0
}