Billing & usage
Read your balance and usage, download invoices and manage spend limits. These endpoints require a key whose owner has the OWNER, ADMIN or BILLING role. See Billing model for how charges accrue.
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /billing/balance | Current prepaid balance |
| GET | /billing/usage | Usage line items |
| GET | /billing/invoices | List invoices and receipts |
| GET | /billing/invoices/{invoiceId} | Retrieve an invoice |
| GET | /billing/spend-limit | Read the monthly spend limit |
| PUT | /billing/spend-limit | Set the monthly spend limit |
Get balance
/billing/balanceReturns the organization's prepaid balance, updated every minute as resources run.
Request
curl https://api.apipods.com/v1/billing/balance \
-H "Authorization: Bearer $APIPODS_API_KEY"Response
{
"object": "balance",
"balance": 412.37,
"currency": "USD",
"autoTopUp": {
"enabled": true,
"threshold": 100,
"amount": 500
},
"updatedAt": "2026-11-18T15:41:00Z"
}Get usage
/billing/usageReturns usage line items for a date range (UTC, inclusive, at most 93 days). Amounts are in USD before tax.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
startDaterequired | query | string | YYYY-MM-DD. |
endDaterequired | query | string | YYYY-MM-DD. |
groupBy | query | enum | day (default), resource or gpuType. |
resourceType | query | enum | pod, endpoint or network_volume. |
Request
curl https://api.apipods.com/v1/billing/usage?startDate=2026-11-01&endDate=2026-11-18&groupBy=resource \
-H "Authorization: Bearer $APIPODS_API_KEY"Response
{
"object": "usage",
"startDate": "2026-11-01",
"endDate": "2026-11-18",
"groupBy": "resource",
"currency": "USD",
"total": 120.76,
"data": [
{
"resourceId": "pod_8f2k1x9q",
"resourceType": "pod",
"gpuTypeId": "NVIDIA_H100_80GB_SXM",
"description": "GPU time",
"quantity": 30010,
"unit": "gpu_seconds",
"amount": 73.19
},
{
"resourceId": "ep_4n8wq2zt",
"resourceType": "endpoint",
"gpuTypeId": null,
"description": "Serverless worker time",
"quantity": 31840,
"unit": "gpu_seconds",
"amount": 41.27
},
{
"resourceId": "vol_c7d2h4ke",
"resourceType": "network_volume",
"gpuTypeId": null,
"description": "Network volume, standard",
"quantity": 45,
"unit": "gb_months",
"amount": 6.3
}
]
}List invoices
/billing/invoicesReturns invoices for top-ups (type TOP_UP) and monthly usage statements (type STATEMENT), newest first.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
status | query | enum | PAID, OPEN or VOID. |
limit | query | integer | 1 to 100, default 20. |
cursor | query | string | Pagination cursor. |
Request
curl https://api.apipods.com/v1/billing/invoices \
-H "Authorization: Bearer $APIPODS_API_KEY"Response
{
"object": "list",
"data": [
{
"id": "inv_7k2m9x4q",
"object": "invoice",
"number": "AP-2026-004812",
"status": "PAID",
"type": "TOP_UP",
"subtotal": 500,
"tax": 0,
"total": 500,
"currency": "USD",
"taxNote": "Reverse charge: VAT to be accounted for by the recipient (Art. 196 Directive 2006/112/EC)",
"periodStart": "2026-11-01T00:00:00Z",
"periodEnd": "2026-11-01T00:00:00Z",
"pdfUrl": "https://console.apipods.com/invoices/inv_7k2m9x4q.pdf",
"createdAt": "2026-11-01T09:42:17Z"
}
],
"hasMore": false,
"nextCursor": null
}Retrieve an invoice
/billing/invoices/{invoiceId}Returns one invoice. pdfUrl is a link to the PDF that requires a console session or the API key as bearer token.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
invoiceIdrequired | path | string | The invoice ID. |
Request
curl https://api.apipods.com/v1/billing/invoices/inv_7k2m9x4q \
-H "Authorization: Bearer $APIPODS_API_KEY"Response
{
"id": "inv_7k2m9x4q",
"object": "invoice",
"number": "AP-2026-004812",
"status": "PAID",
"type": "TOP_UP",
"subtotal": 500,
"tax": 0,
"total": 500,
"currency": "USD",
"taxNote": "Reverse charge: VAT to be accounted for by the recipient (Art. 196 Directive 2006/112/EC)",
"periodStart": "2026-11-01T00:00:00Z",
"periodEnd": "2026-11-01T00:00:00Z",
"pdfUrl": "https://console.apipods.com/invoices/inv_7k2m9x4q.pdf",
"createdAt": "2026-11-01T09:42:17Z"
}Get spend limit
/billing/spend-limitReturns the monthly spend limit, the low-balance alert threshold and spend so far this calendar month (UTC).
Request
curl https://api.apipods.com/v1/billing/spend-limit \
-H "Authorization: Bearer $APIPODS_API_KEY"Response
{
"object": "spend_limit",
"monthlyLimit": 2000,
"lowBalanceThreshold": 50,
"currentMonthSpend": 873.41,
"currency": "USD"
}Set spend limit
/billing/spend-limitSets the monthly limit. When currentMonthSpend reaches it, new pods and workers are blocked (402 spend_limit_reached), running pods are stopped and endpoints scale to zero. Storage is kept. A billing.spend_limit_reached event is sent.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
monthlyLimitrequired | body | number | null | USD per calendar month, or null for no limit. |
lowBalanceThreshold | body | number | Send billing.balance_low and an email below this balance. |
Request
curl -X PUT https://api.apipods.com/v1/billing/spend-limit \
-H "Authorization: Bearer $APIPODS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"monthlyLimit": 2500,
"lowBalanceThreshold": 100
}'Response
{
"object": "spend_limit",
"monthlyLimit": 2500,
"lowBalanceThreshold": 100,
"currentMonthSpend": 873.41,
"currency": "USD"
}| Status | When |
|---|---|
403 | insufficient_role: only OWNER, ADMIN and BILLING can change limits. |