---
title: "How can a prepaid balance go negative?"
url: https://getlago.com/blog/how-can-a-prepaid-balance-go-negative
description: "Why prepaid balances can go negative, how concurrent requests spend the same credits, and what credit holds change."
authors: ["Anh-Tho Chuong"]
tags: ["Engineering"]
published: 2026-11-27
reading_time_minutes: 3
---

# How can a prepaid balance go negative?

You put $20 into an API account and expect it to stop at $0. OpenAI's prepaid billing docs tell you not to count on it: "Do not rely on the prepaid balance as an instantaneous spending cutoff." Usage processed before access stops shows up as a negative balance, and it comes out of your next purchase. ([source](https://help.openai.com/en/articles/8264644-setting-up-and-managing-prepaid-api-billing))

![OpenAI warning: Do not rely on the prepaid balance as an instantaneous spending cutoff.](https://getlago.com/blog/images/openai-prepaid-cutoff-warning.webp)

*OpenAI Help Center: warning about prepaid spending cutoffs. [Source](https://help.openai.com/en/articles/8264644-setting-up-and-managing-prepaid-api-billing#understand-a-negative-balance). Captured November 27, 2026.*

There are two separate ways to get there, and only one of them is about speed.

### The stale read

The first is delay. Work finishes, the charge takes a while to reach the balance, and the service keeps admitting requests against a number that is already wrong. Shorten the delay and you [shorten the exposure](https://getlago.com/blog/token-fraud-happens-in-the-window-before-billing-catches-up). This is the one everybody thinks of.

### The double spend

Now assume the balance updates the instant a job finishes. Take an account with 10 credits and two jobs that cost 6 each. The service checks the balance before starting a job and deducts on completion.

| Event | Balance | Work in flight |
| --- | --- | --- |
| Job A checks and starts | 10 | 6 |
| Job B checks and starts | 10 | 12 |
| A finishes | 4 | 6 |
| B finishes | −2 | 0 |

Neither read was stale. The service simply committed 12 credits of work against 10. OpenAI describes this exact case for ChatGPT usage credits: a task that "starts while your balance is positive but finishes after concurrent usage depletes it" can leave the balance negative. ([source](https://help.openai.com/en/articles/12642688-using-credits-for-flexible-usage-in-chatgpt-personal-plans))

A faster pipeline doesn't fix this one, because the missing number is credit *promised*, and the balance only tracks credit *consumed*.

### Holds

If the price is known up front, the fix is one statement:

```sql
UPDATE wallets SET balance = balance - 6
WHERE id = $1 AND balance >= 6;
```

Zero rows updated means no. Check and deduct happen together, so two workers can't spend the same credit.

When the price isn't known, you place a hold, the way a fuel pump holds $100 on your card before you've pumped anything. Reserve 6 of the 10 for job A and job B's request for 6 has to wait or fail. If A ends up costing 4, charge 4 and release 2. TigerBeetle's [two-phase transfers](https://docs.tigerbeetle.com/coding/two-phase-transfers/) are this pattern as a primitive: a pending transfer that is later posted, voided or expired.

And, well, that's where the easy part ends. How much do you hold for an agent? A research agent can search, read pages, call a model and retry. Hold the worst case and you refuse tasks that would have fit comfortably. Hold an estimate and you no longer have a hard cap. The workable middle is to authorize in bounded steps: hold enough for the next model call or batch of tool calls, settle, then ask again. Parallel branches draw from the same budget.

### The zombie worker

Holds expire, and they have to, or a crashed worker locks credit forever. But suppose the worker didn't crash. It lost contact with billing and is still running. Its hold times out, the credit goes to someone else, and the same money is promised twice again. An expired hold in the ledger doesn't stop execution anywhere. You either know the worker is dead, or you keep enough back to cover what it might still spend.

### What happens at zero

Letting approved work finish is often the right product call. A small, disclosed overage can be preferable to losing a long job at 95%. In Lago, the *ongoing balance* can go negative because it includes usage that hasn't been invoiced yet. The invoiced credit balance is different: Lago only applies available credits to an invoice, and any remainder stays payable. ([Balance definitions](https://getlago.com/docs/guide/wallet-and-prepaid-credits/overview), [negative ongoing balances](https://getlago.com/docs/guide/alerts/credits-consumption-alerts))

Lago provides [sub-second wallet refresh and wallet alerts](https://getlago.com/blog/how-we-made-usage-and-credit-balances-real-time), reducing the time your application acts on an outdated balance. A hard cap needs more than a fresh balance: before starting each request, the system must account for credits already committed to work in progress and prevent concurrent requests from spending them twice.

If you run an agent platform, the test is cheap. Give two workers the same 10 credits and have each ask for 6. Does the second one wait, fail, trigger a top-up or overdraw? Then run it again with a late usage event, a retry, and a worker that stops answering.
