How a minimum charge changes the cost of short runs
- Answer
- A minimum charge bills every run as at least a fixed length, so any run shorter than the minimum costs the same as the minimum. With a 60-second minimum, an 8-second run is billed 7.5 times what it used, while runs longer than the minimum are not affected at all.
- Editor: AISandboxPricing editors
- First published:
- Revised:
A minimum charge bills every run as at least a fixed length. Runs shorter than the minimum all cost the same as the minimum; runs longer than it are billed normally. It matters most to workloads made of many short runs: single tests, short browser sessions, code snippets an agent executes.
How is a run billed when there is a minimum?
A run with a minimum is billed for the larger of its own length and the minimum, rounded up to the billing increment:
billed seconds = round_up_to_increment( max(run seconds, minimum) )
cost = billed seconds x hourly price / 3600
An hour is 3,600 seconds (NIST, "Units outside the SI", read 2026-11-26).
What does a 60-second minimum do to short runs?
A 60-second minimum multiplies the cost of short runs by 60 divided by their length. These are worked examples of the arithmetic, with per-second billing after the minimum.
Table: Billed seconds under an example 60-second minimum, metered per second after it
| Run length | Billed | Billed-to-used ratio |
|---|---|---|
| 2 s | 60 s | 30 |
| 8 s | 60 s | 7.5 |
| 30 s | 60 s | 2 |
| 59 s | 60 s | 1.02 |
| 90 s | 90 s | 1 |
| 600 s | 600 s | 1 |
What does it mean for a batch of small runs?
For a batch of small runs, the minimum can be most of the bill. A worked example at an example hourly price of 0.12 USD: 50,000 runs a day, each 8 seconds, each in its own environment.
Table: 50,000 runs of 8 seconds, with and without an example 60-second minimum
| Billing | Billed seconds | Sum | Daily cost |
|---|---|---|---|
| Per second, no minimum | 400,000 | 400,000 x 0.12 / 3600 | 13.33 USD |
| 60-second minimum | 3,000,000 | 3,000,000 x 0.12 / 3600 | 100.00 USD |
| 60-second minimum, 50 runs batched per environment | 1,000 batches x 400 s | 400,000 x 0.12 / 3600 | 13.33 USD |
Batching restores the per-second cost here because each batch of 50 runs lasts 400 seconds, longer than the minimum. It assumes the runs can safely share an environment; when your isolation rules need one environment per run, the minimum is part of the price of that isolation.
How do I find the minimum in a price list?
Find the minimum by looking for the words "minimum", "first minute", "per session" or "per start" next to the rate, and by asking how a run of a few seconds is billed. A good test during a trial: run ten environments that each live for about 5 seconds, then read the billed usage for them. If they show 60 seconds each, there is a minimum, whether or not it was written down.
Check three related charges too:
- A charge per start, fixed per environment, which acts like a minimum.
- A minimum per month, a floor on the whole bill rather than on each run.
- An idle timeout, which decides when a forgotten environment stops being billed.
How do minimums and increments combine?
Minimums and increments combine: the minimum lifts short runs to a floor, and the increment rounds everything above it. A 61-second run with a 60-second minimum and per-minute billing is billed 120 seconds; with per-second billing after the minimum, 61 seconds. For the increment on its own, see per-second vs per-hour billing.
What we read for this article
- NIST, Units outside the SI, read 2026-11-26
Common questions
What is a minimum charge per run?
A rule that bills each run, session or environment as at least a set length, such as one minute, however short it really was. After the minimum, billing usually continues in the normal increment.
How do I calculate the cost with a minimum charge?
Billed seconds are the larger of the run's seconds and the minimum, then rounded up to the billing increment. Multiply by the hourly price and divide by 3,600.
Does a minimum charge matter for long runs?
No. Once a run is longer than the minimum, the minimum adds nothing. It only changes the cost of runs shorter than it.
How do I avoid paying minimums on many tiny runs?
Put several small runs into one environment, so the minimum is paid once for the batch instead of once per run.