opyebCloudCostCal

The four line items that break the estimate: egress, storage, cache hours, idle GPUs

Every estimate that failed did so on a line item nobody modelled. These four are the usual suspects.

2026-11-28 · OPYEB

The calculator models tokens, GPU hours and requests, which is where 80% of a typical bill sits. The remaining 20% is where budgets break, because it scales differently from the part everyone measured.

1. Transfer

Cloudflare does not charge for egress from Workers, which is a real advantage if your product returns images, audio or large JSON. Vercel includes 1 TB a month and charges $0.15 per GB beyond it; at 2 TB that is $146 a month on top of compute. Hyperscalers bill data transfer out separately and by region, which is why the same architecture can be cheap in Frankfurt and expensive in São Paulo.

Rule: if a response is bigger than 100 KB and the traffic is real, model the transfer line before launch. A video or audio endpoint can outspend its compute in a week.

2. Cache storage, charged by the hour

Prompt caching has a storage price that is easy to miss. Gemini lists context storage at $0.50 per million tokens per hour through 2026. One million tokens held in cache for a month is 730 hours — $365. Reading those tokens from cache costs $0.20 per million, so you would need about 1,800 reads a month to justify holding them.

The arithmetic is brutal and useful: cache the system prompt that a thousand requests a day reuse, do not cache a 90,000-token document that one user opened this morning.

3. Logs and observability

Lambda writes to CloudWatch by default and CloudWatch charges for ingestion and storage; a verbose function logging a 2 KB JSON line per request produces 20 GB a month at 10M requests. Vercel and Cloudflare have their own log retention pricing above the included tier. None of this appears in a token or GB-second estimate.

4. Idle GPU time

This one is not on any invoice — it is on the invoice you did not need to pay. A rented H100 at $4.39 an hour costs $3,205 a month if left running; a team that uses it 500 hours a month pays $2,195 and wastes $1,010. Across eight GPUs that is $8,080 a month of heat.

ItemTypical triggerOrder of magnitude
Transferimages, audio, video$0.15/GB over 1 TB (Vercel)
Cache storagelong prompts held for days$365 per 1M tokens per month (Gemini)
Logsverbose logging at scale20 GB/month at 10M requests
Idle GPUsreserved but unused capacity$1,010 per H100 left on (RunPod)

How to catch them before they catch you

Add four lines to the estimate every time: bytes out per request × requests, cached tokens × hours held, log bytes per request, and GPU hours billed versus GPU hours used. The first two are multiplications; the last two are a dashboard away. None of them require a vendor meeting, and together they explain most of the gap between an estimate and an invoice.

Model the compute, then add these four

Guides →
Rate library About Contact