# GPU Cost Controls for ML Teams: Caps, Timers, Prepaid

Published 28 October 2026, updated 7 November 2026. 6 min read. For: Engineering managers, finance leads and procurement owners of an ML team's GPU spend.

## Key facts

- Effective GPU cost controls are enforced by the rental system: a prepaid balance, a spend cap per token, a removal time per machine and a stop button.
- Say an 8x B300 costs $50 an hour: a $500 cap allows one 8-hour rental ($400) and refuses a second.
- Arrakis never lends: a machine whose next hour can't be paid stops, new rentals pause, and adding funds opens rentals again.
- Volumes are the one line that keeps charging: billed per GB-month of data held, charged daily.
- Auto-recharge is a deliberate hole in the wall: turn it on when a production endpoint must not stop, off for a hard monthly ceiling.

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:

1. A machine whose next hour can't be paid, with no auto-recharge to cover it, stops.
2. Rentals pause, and other machines stop when the hour they already paid for ends.
3. 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.

```sh
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](/blog/ai-agent-gpu-budget-spend-cap.html.md).

## 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](/blog/gpu-volumes-persistent-storage.html.md).

When a job runs long, move the time rather than drop it:

```sh
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](/blog/ci-pipeline-rent-gpu.html.md).

## 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.

```sh
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/balance` returns the combined hourly burn of everything running, and the moment it all stops if nobody adds funds.
- **Periods.** `GET /v1/billing/summary?granularity=weekly` (or `monthly`) 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](/blog/ssh-keys-gpu-server.html.md).

## 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](/blog/rent-vs-buy-gpu-2026.html.md).

## Roll-out order for a new team

1. Load a prepaid balance sized to the month.
2. Issue capped, scoped, expiring tokens per pipeline and agent, then revoke any shared keys.
3. Require removal times on every rental; no "never".
4. Point the webhook at the on-call channel.
5. Decide on auto-recharge for the period, on purpose.
6. 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](/blog/ai-startup-gpu-budget.html.md). When a fixed term beats all of this, [reserved vs hourly GPUs](/blog/reserved-vs-hourly-gpus.html.md) has the break-even.

## Put the controls in place today

Create the first capped token on **API & agents** in [the console](/console/), and keep [the billing docs](/docs/billing.html.md) open while you set the rest.

New here? Use code [FIRST25](/console/?code=FIRST25) for $25 off your first deposit of $50 or more, until 31 December 2026.

## Rent the GPUs in this post

- [H100](/gpus/h100.html.md): [the live price](/gpus/h100.html.md) per GPU-hour now; rent in the console (/console/#/gpus?gpu_type=H100) or with the MCP tool rent_gpu.
- [H200](/gpus/h200.html.md): [the live price](/gpus/h200.html.md) per GPU-hour now; rent in the console (/console/#/gpus?gpu_type=H200) or with the MCP tool rent_gpu.
- [B200](/gpus/b200.html.md): [the live price](/gpus/b200.html.md) per GPU-hour now; rent in the console (/console/#/gpus?gpu_type=B200) or with the MCP tool rent_gpu.
- [B300](/gpus/b300.html.md): [the live price](/gpus/b300.html.md) per GPU-hour now; rent in the console (/console/#/gpus?gpu_type=B300) or with the MCP tool rent_gpu.

## Questions

**What are the most effective GPU cost controls?** Controls the rental system enforces before a machine starts: a prepaid balance, a spend cap per API token, a removal time on every machine and a stop button for incidents. Policies people have to remember come second.

**How does a spend cap on a GPU token work?** The cap is the most the token may ever commit to rentals. Each rental counts at its worst case, the hourly price times its removal hours, and the rental that would pass the cap is refused before it starts.

**What happens when the prepaid balance runs out?** A machine whose next hour can't be paid stops, new rentals pause, and other machines stop when the hour they already paid for ends. Adding funds opens rentals again. Volumes keep their data and keep charging.

**Can finance see GPU spend by week or month?** Yes. The billing summary groups ledger activity into weekly or monthly periods, and the balance shows what the running machines cost per hour and when they stop if no funds are added.

## More from the blog

- [AI Agent Spend Limit for GPUs: Know the Worst Case](/blog/ai-agent-gpu-budget-spend-cap.html.md): Set an AI agent spend limit for GPU rentals: a token cap that counts each rental at its worst case, required removal times, and the most an agent can cost.
- [AI Startup GPU Budget: The First Six Months, No Idle Burn](/blog/ai-startup-gpu-budget.html.md): An AI startup GPU budget for the first six months: a prepaid balance as the ceiling, a spend cap per token, removal times, and no GPUs billing while idle.
- [Spot vs On-Demand GPU for Inference: An Enterprise Plan](/blog/enterprise-llm-inference-spot-vs-on-demand.html.md): Spot vs on-demand GPU for inference: serve production endpoints on on-demand, push batch and burst work to spot, and let removal times cap every bill.

Every post: [/blog](/blog.html.md). RSS: [/blog/feed.xml](/blog/feed.xml).
