Use the public cost routes to attribute Sandbox compute to the API key that created each Sandbox.
These routes require usage:read and are available through direct HTTP, SDK 0.4.0, and the CLI.
A workspace-limited key cannot read these account-wide reports, even with
usage:read; use an Every workspace key.
In the BoxCompute app, open Computers and select a computer to see its Cost so far and the account’s Credit left. Use the routes below for the breakdown by creating API key and charged run.
In Malaysia, the app can show an approximate ringgit amount beside Subscribe. Checkout still charges US dollars; the ringgit estimate is not a fixed exchange rate or a ringgit-denominated plan. Some debit cards require overseas payments to be enabled before checkout.
Plans and monthly credit
Pricing lists the current offers. Starter includes $40 of compute credit each month: $15.99 a month on founding terms while places are offered, or $16.99 a month on regular terms. Founding members keep their terms while subscribed. Places can close when filled or at the offer’s deadline; check Usage & billing for the offer available to you. Pro is $49 a month with $60 of monthly compute credit and all Starter features, plus Claude Opus 5.5, which regular Starter does not include. Yearly Pro is $490; regular yearly Starter is $169 where offered. Founding Starter is monthly only. A yearly payment still provides credit one month at a time, not a year’s credit up front. Unused plan credit is replaced at the next monthly renewal; purchased credit does not expire.
Compute spends credit due to expire soonest first: granted credit that lapses before the next monthly plan-credit replacement, then plan credit, then other granted credit, and finally purchased credit. Usage & billing marks an earlier-expiring grant spent first. Extra AI usage is different: it always uses purchased credit only.
Use Usage & billing to see the plans and upgrades offered to your account. An upgrade can charge a prorated difference immediately; follow any payment confirmation before relying on the new plan. Moving from founding Starter to Pro gives up founding terms permanently. For downgrades or cancellation, use Manage billing; downgrades take effect at the end of the billing period.
Starter monthly compute cap
For founding members on Starter, each computer is charged for at most 100 hours per UTC calendar month; its remaining compute that month is free. At current rates, the monthly compute maximum is $5 for Small, $15 for Large, $40 for XL and $80 for XXL. Founding members keep the cap for as long as they stay subscribed. Regular Starter, monthly or yearly, is charged for every hour; Pro computers are charged for at most 200 hours a month on the same terms. This is per computer, not an account-wide allowance, and excludes the Starter subscription and model usage. Purchased credit or organization membership alone does not enable the cap. A run’s charge belongs to the month in which it ends.
The cap is priced at the computer’s current size. After a resize, the month’s charges so far count toward the new size’s cap: 80 of Large’s 100 hours ($12) are 15 of XXL’s after moving to XXL, and a computer that has spent more than Large’s $15 is free for the rest of the month once it is back on Large. Change size shows the month’s hours at each size and what the meter would read on each one.
The computer’s page shows progress toward the cap, and its hours at each size
once it has run at more than one. Cost reports and wallet
deductions use the capped charge, so amountMicros can be less than the listed
rate multiplied by billable time, or zero. Credit checks still apply: a VM
in a personal workspace stops at zero available credit even after reaching its
cap. An organization VM continues running and charges its creator’s wallet,
which can go negative; membership alone does not grant the monthly cap.
If BoxCompute covers the organization’s VM charges, its runs are recorded at
$0 without a wallet debit, and the VM page shows Covered by the organization.
That coverage does not include personal VMs or AI usage.
See organization VM billing.
To keep a computer running between tasks, eligible accounts can use the app’s
Always on schedule.
Affiliate referrals and Starter offers
Subscribers can open Menu → Referrals in the app to get their own link; accounts enrolled as affiliates have it too. Add your phone number first for payout contact and DuitNow; you can edit it in Settings → Account. The page shows your link, commission rate and term, sign-up counts, pending and owed commission, and recorded payouts, not the identities of people who signed up. Commission on qualifying plan payments stays pending for 30 days; refunds and disputes can reduce it. Commission is not compute credit.
Subscriber links default to 20% for 12 months from each referred account’s first payment, with payouts from $10 owed. Check your page for your terms. You can change your referral code once, only before anyone has signed up through it. Cancelling your plan keeps the page and existing referrals’ remaining earning term. How to post has examples and your link: disclose the referral, avoid spam and unsupported claims, and do not refer yourself.
If Get Starter free is offered there, checkout shows your free period. It includes Starter’s monthly credit and features; it is not an offer to every account. The offer is only for accounts that have never had a plan; current and former subscribers are not eligible. After a limited free period, normal paid renewal applies: add a payment method in billing to continue, or the renewal can fail and the plan lapse. Cancelling and subscribing again does not restart the free period.
Check credit and wallet history
GET /api/v2/billing and GET /api/v2/billing/transactions require usage:read, remain readable
at zero credit, and never start or resume compute. They return only the authenticated account’s data.
All monetary amounts are integer micro-USD: 1,000,000 micros is USD 1.
curl --fail-with-body -sS 'https://api.boxcompute.ai/api/v2/billing' \
-H "Authorization: Bearer $BOXCOMPUTE_API_KEY"An illustrative response with no running compute:
{
"billing": {
"currency": "usd",
"accountStatus": "active",
"balance": {
"cashMicros": 5000000,
"promoMicros": 2000000,
"planMicros": 0,
"totalMicros": 7000000,
"availableMicros": 7000000,
"reservedMicros": 0,
"expiringPromo": { "micros": 2000000, "expiresAt": 1791676800000 }
},
"settledUsage": { "aiMicros": 0, "sandboxMicros": 3000000, "totalMicros": 3000000 },
"activeEstimate": {
"status": "not_applicable",
"asOf": null,
"runtimeSeconds": 0,
"billableSeconds": 0,
"amountMicros": 0
},
"modelBillingMode": "observe"
}
}totalMicros is the wallet balance; availableMicros is spendable credit after reservations and
running compute. If live estimates fail, activeEstimate.status is unavailable and
availableMicros is null—unknown, not zero. settledUsage is all-time verified AI and compute
wallet deductions, not a date-window report, reservations, or running estimates. In observe
model billing mode, recorded AI costs do not debit the wallet. expiringPromo is nullable;
its expiresAt, like transaction timestamps, is Unix milliseconds.
Read one newest-first wallet page:
curl --fail-with-body -sS --get 'https://api.boxcompute.ai/api/v2/billing/transactions' \
-H "Authorization: Bearer $BOXCOMPUTE_API_KEY" \
--data-urlencode 'bucket=promo' \
--data-urlencode 'limit=20'The response is { "currency": "usd", "transactions": [...], "nextCursor": string | null }.
Each entry contains id, kind, bucket, signed amountMicros, description, createdAt,
and nullable expiresAt. Positive amounts add credit; negative amounts subtract it. Entries are
bucket-level, so one charge can have multiple entries. Pass nextCursor as before with the same
filters until it is null. limit is 1–200 (default 50). Optional filters are inclusive from
and exclusive to RFC 3339 timestamps, kind, and bucket (cash, promo, or plan).
SDK 0.4.0 unwraps the summary, but returns the transaction page directly:
const billing = await boxcompute.billing.get();
const page = await boxcompute.billing.transactions({
bucket: "promo",
limit: 20,
});
console.log(billing.balance.availableMicros);
console.log(page.nextCursor);billing = boxcompute.billing.get()
page = boxcompute.billing.transactions(
bucket="promo", limit=20,
)
print(billing.balance.available_micros)
print(page.next_cursor)These snippets use the authenticated client from the SDK quickstart; Python’s
date-start filter is from_. CLI 0.10.0 provides bxc credits, bxc billing transactions, and
bxc usage; see CLI commands.
Get an account report
Request the default 30-day window:
curl 'https://api.boxcompute.ai/api/v2/costs/sandboxes' \
-H 'Authorization: Bearer bc_live_REDACTED'Set an inclusive from and exclusive to with RFC 3339 timestamps when you need another period.
A window can span at most 400 days:
curl --get 'https://api.boxcompute.ai/api/v2/costs/sandboxes' \
-H 'Authorization: Bearer bc_live_REDACTED' \
--data-urlencode 'from=2026-09-01T00:00:00Z' \
--data-urlencode 'to=2026-10-01T00:00:00Z'The response groups the same costs by creating API key and by Sandbox:
{
"costs": {
"from": 1788220800000,
"to": 1790812800000,
"currency": "usd",
"estimates": "available",
"totals": {
"runs": 3,
"billableSeconds": 420,
"settledMicros": 7000,
"estimatedMicros": 500
},
"apiKeys": [
{
"apiKey": {
"id": "key_REDACTED",
"name": "Batch jobs",
"hint": "ab12",
"revoked": false
},
"sandboxes": 1,
"runs": 3,
"billableSeconds": 420,
"settledMicros": 7000,
"estimatedMicros": 500
}
],
"sandboxes": [
{
"id": "sbx_REDACTED",
"sandboxId": "sbx_REDACTED",
"name": "Data import",
"deleted": false,
"vmSandbox": true,
"size": "small",
"createdByApiKeyId": "key_REDACTED",
"createdAt": 1788220800000,
"deletedAt": null,
"firstStartedAt": 1788307200000,
"lastEndedAt": 1788912000000,
"runs": 3,
"billableSeconds": 420,
"settledMicros": 7000,
"estimatedMicros": 500
}
],
"unattributed": {
"runs": 0,
"billableSeconds": 0,
"settledMicros": 0,
"estimatedMicros": 0
}
}
}Amounts are integer millionths of the stated currency: 1,000,000 micros is USD 1. Settled
amounts are exact ledger charges for runs that ended in the window. estimatedMicros covers work
still running and is replaced by its settled charge after that run ends. estimates is
available, not_applicable, or unavailable; an unavailable estimate does not make settled
amounts approximate.
Billing is per second with a 60-second minimum for each run. A report includes active and deleted
Sandboxes. Its sandboxes rows identify the original customer-facing sandboxId, creation key,
runtime type and size, timestamps, run count, billable seconds, and settled and estimated amounts.
unattributed contains charges whose surviving records cannot identify a Sandbox.
Filter by one creating key with apiKeyId=key_REDACTED. Use apiKeyId=none for Sandboxes created
without an API key, such as from the dashboard or another account-owned product surface. Revoked
keys remain identifiable in historical results.
Inspect charged runs
Get every retained charged run plus any running estimate for an active Sandbox:
curl 'https://api.boxcompute.ai/api/v2/sandboxes/sbx_REDACTED/costs' \
-H 'Authorization: Bearer bc_live_REDACTED'For a deleted Sandbox, use the dsb_… deletion-record ID returned by
GET /api/v2/deleted-sandboxes:
API_BASE='https://api.boxcompute.ai/api/v2'
curl "$API_BASE/deleted-sandboxes/dsb_REDACTED/costs" \
-H 'Authorization: Bearer bc_live_REDACTED'The { "costs": ... } detail includes Sandbox and creating-key metadata, currency, estimate
status, settled runs, current running estimates, and truncated. Each settled run reports
startedAt, endedAt, runtimeSeconds, billableSeconds, rateMicrosPerMinute, and
amountMicros. At most 1,000 settled runs are returned; truncated: true means additional runs
were omitted. Deleted-Sandbox detail has no running estimate.
Cost lookups are limited to the authenticated account. An unknown or cross-account active or
deleted Sandbox returns 404.