Skip to main content
GET
/
v1
/
account
/
billing
Get Billing Info
curl --request GET \
  --url https://api.modal.beeble.ai/v1/account/billing \
  --header 'x-api-key: <api-key>'
{
  "billing_period_start": 123,
  "billing_period_end": 123,
  "hard_limit": 123,
  "prepaid_balance": 123,
  "current_period_usage": 123,
  "meters": [
    {
      "id": "<string>",
      "label": "<string>",
      "unit": "<string>",
      "total_usage": 123
    }
  ]
}

Authorizations

x-api-key
string
header
required

Response

200 - application/json

Successful Response

Billing data from Stripe.

billing_period_start
integer | null

Billing period start (unix ts)

billing_period_end
integer | null

Billing period end (unix ts)

hard_limit
integer | null

Hard usage limit in dollars

prepaid_balance
number | null

Prepaid balance in dollars (for prepaid accounts)

current_period_usage
number | null

Total usage cost in current period in dollars (for postpaid accounts)

meters
MeterUsage · object[]

Per-meter usage breakdown