Arrakis / Blog / Costs, startups and teams
GPU Cost Controls for ML Teams: Caps, Timers, Prepaid
GPU cost controls work when the system that rents the GPU enforces them, not a policy page people skim once. Arrakis puts them in the API: a prepaid balance, a spend cap on every token, removal times that end machines on schedule, optional auto-recharge and a stop button. Together they fix the worst case before a machine starts.
This is the reference: what each control stops, how to set it, and the order to roll them out.
The control map
| Control | What it stops | Where it lives |
|---|---|---|
| Prepaid balance | Spending past what you added | Billing, Add funds |
| Spend cap per token | One pipeline or agent eating everyone's budget | spend_limit_usd on the token |
| Longest rental per token | A two-hour job turning into a week-long rental | max_rental_hours on the token |
| Scopes | A dashboard key that can rent, or a script that can touch billing | read, rent, manage, billing |
| Expiry | A contractor's key outliving the contract | expires_at on the token |
| Removal time per machine | Forgotten machines billing forever | termination_hours, then schedule-removal |
| Auto-recharge | Production stopping because nobody topped up | Billing, or PUT /v1/billing/auto-recharge |
| Stop everything | An incident while it's still happening | Instances or Billing, or POST /v1/billing/stop |
The rules live in the API, so they hold the same way for the console, MCP agents, scripts and plain HTTP.
Layer 1: the balance is the outer wall
Arrakis never lends. A rental pays its first hour when the machine starts and each later hour as it begins, at the price locked when it was rented. Before each hour the balance is checked:
- A machine whose next hour can't be paid, with no auto-recharge to cover it, stops.
- Rentals pause, and other machines stop when the hour they already paid for ends.
- Adding funds opens rentals again by themselves.
The one line that keeps charging is storage. Volumes are never stopped and keep paying daily for the data they hold, so delete the ones nobody needs.
Layer 2: caps per token
Every script, CI job and agent gets its own token. The cap is the most that token may ever commit, and each rental counts at its worst case: hourly price times removal hours.
A worked example, with an 8x B300 at a hypothetical $50 an hour: a token capped at $500 can rent that machine for 8 hours, a worst case of $400. A second 8-hour rental would bring its commitments to $800, so it's refused before it starts. Because the cap counts everything the token ever commits, give tokens an expiry and issue fresh ones each budget period.
curl -X POST https://arrakis.goodailabs.com/v1/tokens \
-H "Authorization: Bearer $ARRAKIS_TOKEN" -H "Content-Type: application/json" \
-d '{"name": "eval-pipeline-dec", "scopes": ["read", "rent"], "spend_limit_usd": 500,
"max_rental_hours": 12, "expires_at": "2027-01-01T00:00:00Z"}'Tokens are shown once and stored only as hashes; revoke one and it stops working at once. A capped token can't rent without a removal time, and a token can't create one with more power than its own. For agents in particular, see AI agent spend caps.
Layer 3: a removal time on every machine
A removal time is when a machine removes itself. Billing stops with it, and nothing is charged after it. Capped tokens must set one. People renting in the console choose one in the rent sheet, and "never" should be a setting nobody on the team picks.
Removal times stick when nobody needs a machine alive to protect its disk. Put team datasets and checkpoints on volumes, and a machine can end on schedule with nothing lost. Storage is easy to forecast: it is billed per GB-month of data held, measured once a day and charged daily, and an empty volume costs nothing. Reads are included up to what a volume holds each month; reads well beyond that may be charged per GB, with notice first. The pattern: persistent storage for cloud GPUs.
When a job runs long, move the time rather than drop it:
curl -X POST https://arrakis.goodailabs.com/v1/instances/<id>/schedule-removal \
-H "Authorization: Bearer $ARRAKIS_TOKEN" -H "Content-Type: application/json" \
-d '{"removal_scheduled_at": "2026-11-27T18:00:00Z"}'For CI the same idea applies, with idempotency keys so a retried pipeline never rents twice: GPU runners for CI.
Layer 4: auto-recharge, on purpose
Auto-recharge is a deliberate hole in the wall. A saved card tops the balance up when it falls under your threshold, or earlier, once the balance would last less than 3 hours of your machines and volumes, so a card problem leaves time to fix it. A declined top-up turns auto-recharge off and says why.
curl -X PUT https://arrakis.goodailabs.com/v1/billing/auto-recharge \
-H "Authorization: Bearer $ARRAKIS_TOKEN" -H "Content-Type: application/json" \
-d '{"enabled": true, "threshold_usd": 200, "amount_usd": 1000}'Turn it on when a production endpoint must not stop. Leave it off when the goal is a hard monthly ceiling. Those are two different intentions; pick one per period and write it down where finance can see it.
Layer 5: the stop button
Stop everything stops every machine now and pauses rentals until you resume them. Use it for an agent that won't stop, or a bill you didn't expect. It deletes the machines' disks, so anything worth keeping should already be on a volume or in your own storage. Volumes are kept.
See it before finance asks
- Events. Set a webhook under Notifications and each machine event (ready, ended and why, a host's notice) arrives signed with
Arrakis-Signature. - Balance.
GET /v1/billing/balancereturns the combined hourly burn of everything running, and the moment it all stops if nobody adds funds. - Periods.
GET /v1/billing/summary?granularity=weekly(ormonthly) groups ledger activity for the books.
Offboarding without loose ends
Cost control has an access twin. When someone leaves, revoke their tokens, then take their SSH key off the machines they could reach. Replace a saved key and it's swapped on running machines, or take a key off a running machine by its fingerprint. Their old laptop can't start or reach anything after that. The steps are in SSH keys for GPU servers.
A purchase order skips every layer
Everything above works on rented hours. A hardware purchase spends the money on day one, and none of these controls apply to it: idle owned hardware still costs. New 8-GPU B300 nodes were appraised at $400,000 to $520,000 in October 2026 (amcompute.com). At a hypothetical $50 an hour for an 8x B300, $400,000 covers 8,000 hours, about 11 months round the clock. Price that against the GPU-hours your team really used before anyone signs: rent vs buy GPUs in 2026.
Roll-out order for a new team
- Load a prepaid balance sized to the month.
- Issue capped, scoped, expiring tokens per pipeline and agent, then revoke any shared keys.
- Require removal times on every rental; no "never".
- Point the webhook at the on-call channel.
- Decide on auto-recharge for the period, on purpose.
- Review the weekly summary for a month, then tighten the caps.
The same controls shape a startup's first six months in the AI startup GPU budget. When a fixed term beats all of this, reserved vs hourly GPUs has the break-even.
Put the controls in place today
Create the first capped token on API & agents in the console, and keep the billing docs open while you set the rest.
New here? Use code FIRST25 for $25 off your first deposit of $50 or more, until 31 December 2026.
Rent the GPUs in this post
- H100the live price /GPU-hourRent
- H200the live price /GPU-hourRent
- B200the live price /GPU-hourRent
- B300the live price /GPU-hourRent
New here? Use code FIRST25 for $25 off your first deposit of $50 or more, until 31 December 2026.
Lowest price now, per GPU-hour. Billed per started hour; stop any time.