# AISandboxPricing.com > What tests, browser sessions and agent evals cost to run: calculators per run, per browser-hour and per 1,000 runs, with billing increments and model tokens. --- # Agent eval suite cost calculator URL: https://www.aisandboxpricing.com/entries/agent-eval-suite-cost-calculator/ Author: AISandboxPricing editors Published: 2026-11-26 Updated: 2026-11-26 Data as of: 2026-11-26 Data files: https://www.aisandboxpricing.com/data/agent-eval-suite-cost-calculator.csv (CSV), https://www.aisandboxpricing.com/data/agent-eval-suite-cost-calculator.json (JSON) An agent eval suite costs tasks times repetitions times the cost of one task run (compute plus model tokens plus any model grading), raised by the share of runs you must rerun. These grids work it out at example costs you replace with your own. Table: Example suite sizes from published agent benchmarks | Benchmark | Tasks (tasks) | Environment | Paper | Source | Checked | |---|---:|---|---|---|---| | OSWorld | 369 | Real desktop computer environment with web and desktop apps | [arxiv.org/abs/2404.07972](https://arxiv.org/abs/2404.07972) | [arxiv.org/abs/2404.07972](https://arxiv.org/abs/2404.07972) | 2026-11-26 | | AndroidWorld | 116 | Android environment with 20 real-world apps | [arxiv.org/abs/2405.14573](https://arxiv.org/abs/2405.14573) | [arxiv.org/abs/2405.14573](https://arxiv.org/abs/2405.14573) | 2026-11-26 | | WorkArena | 33 | Remote-hosted enterprise software in a browser | [arxiv.org/abs/2403.07718](https://arxiv.org/abs/2403.07718) | [arxiv.org/abs/2403.07718](https://arxiv.org/abs/2403.07718) | 2026-11-26 | Table: Task runs in one pass of a suite, from its tasks and the repetitions per task (Task runs, runs) | Tasks / Repetitions per task | 1 | 3 | 5 | 8 | 10 | |---|---:|---:|---:|---:|---:| | 33 | 33 | 99 | 165 | 264 | 330 | | 116 | 116 | 348 | 580 | 928 | 1,160 | | 369 | 369 | 1,107 | 1,845 | 2,952 | 3,690 | | 500 | 500 | 1,500 | 2,500 | 4,000 | 5,000 | | 1,000 | 1,000 | 3,000 | 5,000 | 8,000 | 10,000 | | 2,000 | 2,000 | 6,000 | 10,000 | 16,000 | 20,000 | Formula: `tasks * reps`. Table: Suite cost from task runs and the cost of one task run (compute plus model plus grading) (Suite cost, USD) | Task runs / Cost per task run (USD) | 0.01 | 0.05 | 0.1 | 0.25 | 0.5 | 1 | |---|---:|---:|---:|---:|---:|---:| | 100 | 1.00 | 5.00 | 10.00 | 25.00 | 50.00 | 100.00 | | 500 | 5.00 | 25.00 | 50.00 | 125.00 | 250.00 | 500.00 | | 1,000 | 10.00 | 50.00 | 100.00 | 250.00 | 500.00 | 1,000.00 | | 2,500 | 25.00 | 125.00 | 250.00 | 625.00 | 1,250.00 | 2,500.00 | | 5,000 | 50.00 | 250.00 | 500.00 | 1,250.00 | 2,500.00 | 5,000.00 | | 10,000 | 100.00 | 500.00 | 1,000.00 | 2,500.00 | 5,000.00 | 10,000.00 | | 50,000 | 500.00 | 2,500.00 | 5,000.00 | 12,500.00 | 25,000.00 | 50,000.00 | Formula: `runs * per_run`. Table: Example, a suite the size of OSWorld, by repetitions and cost per task run (Suite cost, USD) | Repetitions per task / Cost per task run (USD) | 0.05 | 0.1 | 0.3 | 0.5 | 1 | |---|---:|---:|---:|---:|---:| | 1 | 18.45 | 36.90 | 110.70 | 184.50 | 369.00 | | 2 | 36.90 | 73.80 | 221.40 | 369.00 | 738.00 | | 3 | 55.35 | 110.70 | 332.10 | 553.50 | 1,107.00 | | 5 | 92.25 | 184.50 | 553.50 | 922.50 | 1,845.00 | | 8 | 147.60 | 295.20 | 885.60 | 1,476.00 | 2,952.00 | Formula: `tasks * reps * per_run`, where tasks = 369 tasks (OSWorld, Tasks). Table: Suite cost once task runs lost to environment failures are run again (Suite cost with reruns, USD) | Suite cost, no reruns (USD) / Task runs rerun (%) | 0 | 2 | 5 | 10 | 20 | |---|---:|---:|---:|---:|---:| | 10 | 10.00 | 10.20 | 10.50 | 11.00 | 12.00 | | 50 | 50.00 | 51.00 | 52.50 | 55.00 | 60.00 | | 100 | 100.00 | 102.00 | 105.00 | 110.00 | 120.00 | | 250 | 250.00 | 255.00 | 262.50 | 275.00 | 300.00 | | 500 | 500.00 | 510.00 | 525.00 | 550.00 | 600.00 | | 1,000 | 1,000.00 | 1,020.00 | 1,050.00 | 1,100.00 | 1,200.00 | Formula: `base * (1 + rerun / 100)`. ## Method Each task count was read from the abstract of the benchmark's own paper on the checked date. Costs per task run, repetitions and rerun shares in the grids are example inputs. ## How is the cost of an eval suite worked out? The cost of an eval suite is worked out from four inputs: tasks, repetitions per task, the cost of one task run, and the share of task runs you must run again. ``` task runs = tasks x repetitions suite cost = task runs x cost per task run with reruns = suite cost x (1 + rerun share) cost per task run = compute + model tokens + grading ``` The first grid gives task runs, the second the suite cost, the third an example at the size of OSWorld, and the fourth adds reruns. Every cost in the grids is an example. ## Where do the task counts come from? The task counts in the table come from each benchmark's own paper: OSWorld's authors "create a benchmark of 369 computer tasks", AndroidWorld "provides reward signals for 116 programmatic tasks across 20 real-world Android apps", and WorkArena is "a remote-hosted benchmark of 33 tasks" (arXiv abstracts, read 2026-11-26). They are here as realistic suite sizes. Your own suite's count is the one to use, and some benchmarks generate many instances from each task, so check how your harness counts them. ## How do I find the cost of one task run? Find the cost of one task run by adding three parts, each measured on a sample of real runs. 1. **Compute.** The environment's hourly price times the task's billed seconds, divided by 3,600. At Promigence's published per-second rates of 0.0504 USD per vCPU-hour and 0.0162 USD per GiB-hour (read 2026-11-26), a task that holds 4 vCPUs and 16 GiB for 10 minutes uses 0.4608 x 10 / 60 = 0.0768 USD of compute. At the other named providers' published rates, read the same day, the same task uses 0.0768 USD at Daytona's and E2B's, 0.0807 USD at Google Cloud's Agent Platform rates, 0.0867 USD at AWS AgentCore's with the CPU in use throughout, and 0.1113 USD at Modal's with 2 cores and 16 GiB requested. Check that the size is offered before using a rate. Promigence's FAQ lists 4 vCPU and 16 GB as its medium size, at $0.46 an hour (read 2026-11-26). AWS's Code Interpreter session is 2 vCPU and 8 GB, Daytona's default per-sandbox limit is 4 vCPU and 8 GB, and E2B's Hobby plan stops at 8 GiB. The [cost per test run calculator](https://www.aisandboxpricing.com/entries/cost-per-test-run-calculator/) lists the rates side by side and has the grids. 2. **Model tokens.** Input and output tokens per task run, times your model's published rates. The [compute vs model token calculator](https://www.aisandboxpricing.com/entries/compute-vs-model-token-cost-of-a-browser-agent-run/) shows how. 3. **Grading.** Zero for tasks checked by a script; the judge's tokens when a model grades the result. Use the median of at least a few dozen task runs, and note the slowest ones: long-running tasks usually spend the most tokens too. ## What does a worked example look like? A worked example with example costs: a suite of 369 tasks, each run 3 times, at 0.30 USD per task run (0.01 USD of compute and 0.29 USD of model tokens, both examples). Table: Worked example of an eval suite's cost, with example inputs | Step | Sum | Result | |---|---|---| | Task runs | 369 x 3 | 1,107 | | Suite cost | 1,107 x 0.30 USD | 332.10 USD | | 10% of runs rerun after environment failures | 332.10 x 1.10 | 365.31 USD | Running the same suite 8 times instead of 3, for a reliability metric, multiplies the first two lines by 8 / 3: about 885.60 USD before reruns. ## How do I cap a suite's compute before it runs? Cap it by pricing every task run at its time limit before the suite starts, and not starting it when that total is over budget. For the worked example's 1,107 task runs, each held to 15 minutes on 4 vCPU and 16 GiB at the 0.4608 USD an hour worked out above, the ceiling is 1,107 x 0.4608 x 0.25 = 127.53 USD of compute (example inputs); model tokens come on top. 1. **Promigence** prices a run before it starts: its agent evals page shows an eval suite "quoted before it runs" with `promigence run quote`, and its FAQ says the quote assumes "every sandbox ran for its whole timeout" and that a run quoted over its `--cap` is refused before anything starts (read 2026-11-26). 2. **The other named providers** document account or sandbox controls: AWS cost budgets that "receive alerts when costs approach or exceed your defined threshold", a Daytona wall-clock TTL that "sets a hard upper bound on how long a sandbox may exist", E2B spending limits on the Limits page of its console, a Google Cloud spend cap budget on a project "If supported for your service", and a Modal Workspace budget that limits monthly spend (all read 2026-11-26). 3. **By hand, with any provider,** multiply the task runs by the hourly price and the time limit, and enforce that limit in your harness so the ceiling holds. ## Why do repetitions multiply the bill? Repetitions multiply the bill because each repetition is a full task run, with its own compute and tokens. They are often worth it: tau-bench's authors "propose a new metric (pass^k) to evaluate the reliability of agent behavior over multiple trials" (tau-bench, arXiv abstract, read 2026-11-26), and such a metric needs k runs of every task. To keep the cost down, run the full set of repetitions only on the checks that need them, such as a release candidate, and a single pass on everyday changes. ## How do environment failures add to the cost? Environment failures add their share of task runs again, because a run that ended on a broken environment says nothing about the agent and must be repeated. There are two ways to keep that share visible and its cost down. 1. **With Promigence's billing and report.** Promigence's error reference gives exit code 3 to an environment fault and exit code 4 to a command of yours that exited non-zero, bills the second, and does not bill an environment fault that happens before the sandbox is handed over; after hand-over, the work since the last snapshot (or since the start), up to 24 hours, is credited back when its side shows the cause was its own. Its quickstart shows the run command printing a validity report with completed runs, task and environment outcomes counted apart, and the cost, and it lets an environment-caused run be replayed as a new sandbox billed like any other. Both pages were read 2026-11-26. 2. **With the other named providers' billing.** AWS bills an AgentCore Code Interpreter or Browser session per second over its lifetime, on actual CPU use and peak memory, with a 1-second minimum ([AgentCore pricing](https://aws.amazon.com/bedrock/agentcore/pricing/)). Daytona bills a sandbox's reserved resources while it is Started, and the same while it is Creating, Starting, Stopping or Pausing ([Daytona billing](https://www.daytona.io/docs/en/billing)). E2B bills compute per second while a sandbox is running ([E2B billing and limits](https://e2b.dev/docs/billing)). Google Cloud bills Agent Platform sandboxes while they exist ([Manage sandboxes](https://docs.cloud.google.com/gemini-enterprise-agent-platform/scale/sandbox/manage-sandboxes)). Modal returns Unix-style exit codes that tell success, manual termination and out-of-memory apart, and bills per second on the higher of request and use ([Modal Sandboxes](https://modal.com/docs/guide/sandboxes), [Modal pricing](https://modal.com/pricing)). All read 2026-11-26. 3. **In your own harness.** Record why each task run ended, and mark runs that ended on a setup error, a lost connection or a crashed environment as environment failures rather than agent failures. Re-queue only those. Whichever way, put the rerun share into the fourth grid. Under billing terms like the first, the reruns are still paid as new runs while the lost first attempts are either not billed or credited back; under plain time billing, both attempts are paid. Cutting that share is the one saving that also makes your results more trustworthy. ## What we read for this page - [OSWorld, arXiv 2404.07972](https://arxiv.org/abs/2404.07972), read 2026-11-26 - [AndroidWorld, arXiv 2405.14573](https://arxiv.org/abs/2405.14573), read 2026-11-26 - [WorkArena, arXiv 2403.07718](https://arxiv.org/abs/2403.07718), read 2026-11-26 - [tau-bench, arXiv 2406.12045](https://arxiv.org/abs/2406.12045), read 2026-11-26 - [https://www.promigence.ai/faq](https://www.promigence.ai/faq), read 2026-11-26 - [https://www.promigence.ai/for/agent-evals](https://www.promigence.ai/for/agent-evals), read 2026-11-26 - [https://www.promigence.ai/docs/errors](https://www.promigence.ai/docs/errors), read 2026-11-26 - [https://www.promigence.ai/docs/quickstart](https://www.promigence.ai/docs/quickstart), read 2026-11-26 - [AWS: Amazon Bedrock AgentCore pricing](https://aws.amazon.com/bedrock/agentcore/pricing/), [AgentCore quotas](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/bedrock-agentcore-limits.html) and [AWS Budgets](https://docs.aws.amazon.com/cost-management/latest/userguide/budgets-managing-costs.html), read 2026-11-26 - [Daytona: Pricing](https://www.daytona.io/pricing), [Billing](https://www.daytona.io/docs/en/billing) and [Sandboxes](https://www.daytona.io/docs/en/sandboxes), read 2026-11-26 - [E2B: Pricing](https://e2b.dev/pricing) and [Billing and limits](https://e2b.dev/docs/billing), read 2026-11-26 - [Google Cloud: Gemini Enterprise Agent Platform pricing](https://cloud.google.com/products/gemini-enterprise-agent-platform/pricing), [Manage sandboxes](https://docs.cloud.google.com/gemini-enterprise-agent-platform/scale/sandbox/manage-sandboxes) and [Cloud Billing budgets](https://docs.cloud.google.com/billing/docs/how-to/budgets), read 2026-11-26 - [Modal: Pricing](https://modal.com/pricing) and [Sandboxes guide](https://modal.com/docs/guide/sandboxes), read 2026-11-26 ## FAQ ### How much does it cost to run an agent eval suite? Multiply the number of tasks by the repetitions per task and by the cost of one task run, then add the reruns. A 369-task suite run 3 times at an example 0.30 USD per task run costs 332.10 USD before reruns. ### What goes into the cost of one task run? The compute the environment uses while the task runs, the model tokens the agent spends, and the tokens of a model judge if one grades the result. For most agent tasks the model tokens are the largest part. ### Why run each task more than once? Agents are not deterministic, so one attempt per task can mislead. Some benchmarks build repetition into the metric itself, such as tau-bench's pass^k, which measures reliability over multiple trials. ### Should environment failures be counted in the cost? Yes. A task run that ended because the environment broke, not because the agent failed, has to be run again. Under plain time billing you pay for both attempts; some providers do not bill the first, so read their terms. --- # Browser-hour cost calculator URL: https://www.aisandboxpricing.com/entries/browser-hour-cost-calculator/ Author: AISandboxPricing editors Published: 2026-11-26 Updated: 2026-11-26 Data as of: 2026-11-26 Data files: https://www.aisandboxpricing.com/data/browser-hour-cost-calculator.csv (CSV), https://www.aisandboxpricing.com/data/browser-hour-cost-calculator.json (JSON) A browser-hour is one browser open for one hour. When you pay for environments, the cost per browser-hour is the environment's hourly price divided by the browsers it runs at once; these grids convert that to the cost of a session and of a month, at example prices you replace with yours. Table: Units of time used to convert session minutes to browser-hours | Unit | Symbol | Length (s) | Source | Checked | |---|---|---:|---|---| | One minute | min | 60 | [physics.nist.gov/cuu/Units/outside.html](https://physics.nist.gov/cuu/Units/outside.html) | 2026-11-26 | | One hour | h | 3,600 | [physics.nist.gov/cuu/Units/outside.html](https://physics.nist.gov/cuu/Units/outside.html) | 2026-11-26 | Table: Cost per browser-hour when several browsers share one environment (Cost per browser-hour, USD) | Environment hourly price (USD) / Browsers open at once | 1 | 2 | 4 | 8 | 16 | |---|---:|---:|---:|---:|---:| | 0.06 | 0.0600 | 0.0300 | 0.0150 | 0.0075 | 0.0037 | | 0.12 | 0.1200 | 0.0600 | 0.0300 | 0.0150 | 0.0075 | | 0.24 | 0.2400 | 0.1200 | 0.0600 | 0.0300 | 0.0150 | | 0.48 | 0.4800 | 0.2400 | 0.1200 | 0.0600 | 0.0300 | | 0.96 | 0.9600 | 0.4800 | 0.2400 | 0.1200 | 0.0600 | | 1.92 | 1.9200 | 0.9600 | 0.4800 | 0.2400 | 0.1200 | Formula: `hourly / browsers`. Table: Cost of one browser session from its length and a price per browser-hour (Cost per session, USD) | Session length (min) / Price per browser-hour (USD) | 0.03 | 0.06 | 0.12 | 0.24 | 0.48 | |---|---:|---:|---:|---:|---:| | 1 | 0.0005 | 0.0010 | 0.0020 | 0.0040 | 0.0080 | | 2 | 0.0010 | 0.0020 | 0.0040 | 0.0080 | 0.0160 | | 5 | 0.0025 | 0.0050 | 0.0100 | 0.0200 | 0.0400 | | 10 | 0.0050 | 0.0100 | 0.0200 | 0.0400 | 0.0800 | | 15 | 0.0075 | 0.0150 | 0.0300 | 0.0600 | 0.1200 | | 30 | 0.0150 | 0.0300 | 0.0600 | 0.1200 | 0.2400 | | 60 | 0.0300 | 0.0600 | 0.1200 | 0.2400 | 0.4800 | Formula: `minutes * sec_per_min * price / sec_per_hour`, where sec\_per\_min = 60 s (One minute, Length); sec\_per\_hour = 3,600 s (One hour, Length). Table: Monthly cost from browser-hours used and a price per browser-hour (Monthly cost, USD) | Browser-hours a month / Price per browser-hour (USD) | 0.03 | 0.06 | 0.12 | 0.24 | 0.48 | |---|---:|---:|---:|---:|---:| | 100 | 3.00 | 6.00 | 12.00 | 24.00 | 48.00 | | 500 | 15.00 | 30.00 | 60.00 | 120.00 | 240.00 | | 1,000 | 30.00 | 60.00 | 120.00 | 240.00 | 480.00 | | 2,500 | 75.00 | 150.00 | 300.00 | 600.00 | 1,200.00 | | 5,000 | 150.00 | 300.00 | 600.00 | 1,200.00 | 2,400.00 | | 10,000 | 300.00 | 600.00 | 1,200.00 | 2,400.00 | 4,800.00 | | 25,000 | 750.00 | 1,500.00 | 3,000.00 | 6,000.00 | 12,000.00 | Formula: `hours * price`. ## Method The units were read from NIST's table of units outside the SI accepted for use with it, on the checked date. Hourly prices, browsers per environment and prices per browser-hour in the grids are example inputs. ## What is a browser-hour? A browser-hour is one browser open for one hour, however the time is split: one browser for 60 minutes, or 60 browsers for one minute each. It is the natural unit for browser tests and browser agents, because their cost grows with how long browsers stay open. You meet it in two ways: 1. **You pay per environment** (by vCPU and memory, or a fixed size per hour) and run browsers inside it. Your cost per browser-hour depends on how many browsers you fit. 2. **You pay per browser session**, metered by the minute or second. The price per browser-hour is written down, and your job is to count the hours. ## How do I calculate the cost per browser-hour of my own environments? Divide the environment's hourly price by the number of browsers it runs at once. The first grid does this for example hourly prices. Worked example, at example rates of 0.04 USD per vCPU-hour and 0.01 USD per GiB-hour: a 4 vCPU, 8 GiB environment costs 4 x 0.04 + 8 x 0.01 = 0.24 USD an hour. Running 4 browsers in it, the cost is 0.24 / 4 = 0.06 USD per browser-hour. At 5,000 browser-hours a month, that is 300 USD (third grid). The [cost per test run calculator](https://www.aisandboxpricing.com/entries/cost-per-test-run-calculator/) shows how to get an hourly price from your own rates. ## How do I find how many browsers fit in one environment? Find it by running your own suite at rising parallelism and watching the wall time and memory. In Playwright Test, each worker process "starts its own browser", and the worker count is set with `--workers` (Playwright, "Parallelism", read 2026-11-26). 1. Run the same suite in the same environment at 1, 2, 4 and 8 workers: ``` for w in 1 2 4 8; do start=$(date +%s) npx playwright test --workers "$w" > /dev/null echo "workers=$w seconds=$(( $(date +%s) - start ))" done ``` 2. While it runs, read free memory from `/proc/meminfo` (the `MemAvailable` field) on Linux: `grep MemAvailable /proc/meminfo`. 3. Pick the highest worker count where the wall time still falls and memory does not run out. More browsers per environment lowers the cost per browser-hour, but only while each test keeps its speed. If doubling the workers makes every test twice as slow, the browser-hours double too and nothing is saved. ## How do I convert session minutes to a cost? Multiply the session's minutes by 60, then by the price per browser-hour, then divide by 3,600 (a minute is 60 seconds and an hour 3,600; NIST, read 2026-11-26). The second grid does this. A 10-minute session at an example 0.12 USD per browser-hour costs 0.02 USD. If sessions are billed in whole minutes or have a minimum length, round each session up first, as explained in [per-second vs per-hour billing](https://www.aisandboxpricing.com/entries/per-second-vs-per-hour-billing/). ## What makes browser-hours higher than expected? Browser-hours run higher than expected for four common reasons. 1. **Browsers left open while nothing happens,** such as an agent waiting on its model or a test waiting on a slow page. See [what idle time costs](https://www.aisandboxpricing.com/entries/idle-time-cost-of-agent-environments/). 2. **Sessions that are never closed** because a script crashed before cleanup. Set a maximum session length. 3. **Retries,** which open the browser again. 4. **Too many browsers per environment,** which slows each one down and stretches every session. ## What we read for this page - [NIST, Units outside the SI](https://physics.nist.gov/cuu/Units/outside.html), read 2026-11-26 - [Playwright, Parallelism](https://playwright.dev/docs/test-parallel), read 2026-11-26 - [proc_meminfo(5), Linux manual page](https://man7.org/linux/man-pages/man5/proc_meminfo.5.html), read 2026-11-26 ## FAQ ### What is a browser-hour? One browser kept open for one hour. Ten browsers open for six minutes each also make one browser-hour. ### How do I get the cost per browser-hour from an environment price? Divide the environment's hourly price by the number of browsers it runs at the same time. A 0.24 USD an hour environment running 4 browsers costs 0.06 USD per browser-hour. ### How many browsers can one environment run? Measure it. Run your suite with 1, 2, 4 and 8 parallel workers and stop raising the count when the total time stops falling or memory runs short. The right number depends on your pages, not on a rule of thumb. ### How many browser-hours does a test suite use? Add up how long each browser is open. For a suite with parallel workers, that is roughly the number of workers times the suite's wall time. --- # How to budget a month of QA test runs URL: https://www.aisandboxpricing.com/entries/budget-a-month-of-qa-runs/ Author: AISandboxPricing editors Published: 2026-11-26 Updated: 2026-11-26 To budget a month of QA runs, list each kind of run, work out the cost of one from its hourly price and billed seconds, multiply by how often it runs, add retries and keep 20 to 30 percent headroom. The worked example comes to 106.42 USD, budgeted at 135 USD. A monthly QA budget is the sum, over each kind of run, of the cost of one run times how often it runs, plus retries and headroom. The work is mostly counting: how many runs of each kind, how long each keeps its environment open, and at what size. ## Step 1: What kinds of runs do I need to count? Count every kind of run that starts an environment, because each has its own size, length and frequency. A typical list: 1. **Pull request suites,** run on every push to a branch under review. 2. **Main branch suites,** run after each merge. 3. **Scheduled regressions,** the full suite once a night or once a week. 4. **Agent evals,** if the product includes an agent, at a set frequency. 5. **Manual and exploratory runs** by developers and QA staff. ## Step 2: How do I work out the cost of one run of each kind? Work out the cost of one run as the environment's hourly price times its billed seconds, divided by 3,600, the seconds in an hour (NIST, read 2026-11-26). Use the environment's whole open time, setup and teardown included. The [cost per test run calculator](https://www.aisandboxpricing.com/entries/cost-per-test-run-calculator/) has the grids; for many runs of the same kind, the [cost per 1,000 runs calculator](https://www.aisandboxpricing.com/entries/cost-per-1000-runs-calculator/) is quicker. ## Step 3: How often does each kind run in a month? Take the count from last month's CI history if you have it, not from a guess. Pull request suites follow the number of pushes, which follows working days; scheduled runs follow the calendar. If you only have a week of history, multiply by the days each kind of run happens in the month ahead. ## Step 4: What does a worked example look like? A worked example, with example rates of 0.04 USD per vCPU-hour and 0.01 USD per GiB-hour, so an 8 vCPU, 16 GiB environment costs 0.48 USD an hour: - Pull request suite: 60 runs a working day, 22 working days, each run 360 seconds of tests plus 60 seconds of setup in one 8 vCPU, 16 GiB environment, 5% of runs repeated. - Nightly regression: 4 such environments for 30 minutes each, 30 nights. Table: Worked example of a monthly QA budget, at example rates | Kind of run | Sum | Monthly cost | |---|---|---| | Pull request suite, one run | 420 x 0.48 / 3600 | 0.056 USD | | Pull request suites, a month | 0.056 x 60 x 22 x 1.05 | 77.62 USD | | Nightly regression, one night | 4 x 0.5 x 0.48 | 0.96 USD | | Nightly regressions, a month | 0.96 x 30 | 28.80 USD | | Estimate | 77.62 + 28.80 | 106.42 USD | | Budget with 25% headroom | 106.42 x 1.25, rounded up | 135 USD | Change any input and the rest follows. Doubling the pushes doubles the largest line, which is why the pull request suite is the first place to look for savings here. ## Step 5: How much headroom should I add? Add enough headroom to cover the gap between your estimate and real usage. Without history, 20 to 30 percent is a reasonable start: it covers more pushes than planned, reruns after a broken dependency and a new test file or two. After two or three months, set it from the real gap between estimate and bill. ## Step 6: How do I keep to the budget? Keep to the budget by watching it weekly and setting limits before it is spent. 1. **Alerts** at 50, 80 and 100 percent of the month's budget. 2. **A hard limit** if your provider offers one, set above the budget so it only stops runaway spending. 3. **A per-run cap** on environment lifetime, so one stuck run cannot use a day of compute. 4. **A weekly check** of cost by kind of run, so a change in one kind shows up early. Most overruns come from a few causes: environments that were never closed, retries left on for a suite that started failing, and a new scheduled job nobody added to the budget. [What idle time costs](https://www.aisandboxpricing.com/entries/idle-time-cost-of-agent-environments/) covers the first. ## What we read for this article - [NIST, Units outside the SI](https://physics.nist.gov/cuu/Units/outside.html), read 2026-11-26 ## FAQ ### How do I estimate a monthly testing budget? Multiply the cost of one run of each kind by how many times it runs in a month, add the share of runs that are retried, then add headroom for growth and for runs you did not plan. ### How much headroom should a QA compute budget have? Enough to cover the gap between your estimate and last month's real usage. Without history, 20 to 30 percent is a common starting point; tighten it once you have two or three months of actual bills. ### Should I count working days or calendar days? Count the days each kind of run actually happens. Pull request suites follow working days; scheduled nightly runs usually run every day of the month. ### How do I stop a test budget from being exceeded? Set alerts at a share of the budget, such as 50, 80 and 100 percent, and a hard spending limit if your provider offers one. Review the largest kind of run first when an alert fires. --- # Compute vs model token cost of a browser agent run, a calculator URL: https://www.aisandboxpricing.com/entries/compute-vs-model-token-cost-of-a-browser-agent-run/ Author: AISandboxPricing editors Published: 2026-11-26 Updated: 2026-11-26 Data as of: 2026-11-26 Data files: https://www.aisandboxpricing.com/data/compute-vs-model-token-cost-of-a-browser-agent-run.csv (CSV), https://www.aisandboxpricing.com/data/compute-vs-model-token-cost-of-a-browser-agent-run.json (JSON) A browser agent run costs its compute (hourly price times hours open) plus its model tokens (input and output tokens times their rates per million). These grids work out both and the share each takes, at example rates you replace with your model's price. Table: SI prefixes used to convert token counts and per-million rates | Prefix | Symbol | Factor (times) | Source | Checked | |---|---|---:|---|---| | kilo | k | 1,000 | [physics.nist.gov/cuu/Units/prefixes.html](https://physics.nist.gov/cuu/Units/prefixes.html) | 2026-11-26 | | mega | M | 1,000,000 | [physics.nist.gov/cuu/Units/prefixes.html](https://physics.nist.gov/cuu/Units/prefixes.html) | 2026-11-26 | Table: Model cost of one run's input tokens, from tokens per run and a rate per million input tokens (Input token cost per run, USD) | Input tokens per run, thousands (k) / Rate per million input tokens (USD) | 0.25 | 0.5 | 1 | 2 | 5 | 10 | |---|---:|---:|---:|---:|---:|---:| | 25 | 0.0063 | 0.0125 | 0.0250 | 0.0500 | 0.1250 | 0.2500 | | 50 | 0.0125 | 0.0250 | 0.0500 | 0.1000 | 0.2500 | 0.5000 | | 100 | 0.0250 | 0.0500 | 0.1000 | 0.2000 | 0.5000 | 1.0000 | | 250 | 0.0625 | 0.1250 | 0.2500 | 0.5000 | 1.2500 | 2.5000 | | 500 | 0.1250 | 0.2500 | 0.5000 | 1.0000 | 2.5000 | 5.0000 | | 1,000 | 0.2500 | 0.5000 | 1.0000 | 2.0000 | 5.0000 | 10.0000 | | 2,000 | 0.5000 | 1.0000 | 2.0000 | 4.0000 | 10.0000 | 20.0000 | Formula: `k_input * kilo * rate / mega`, where kilo = 1,000 times (kilo, Factor); mega = 1,000,000 times (mega, Factor). Table: Model cost of one run's output tokens, from tokens per run and a rate per million output tokens (Output token cost per run, USD) | Output tokens per run, thousands (k) / Rate per million output tokens (USD) | 1 | 2 | 5 | 10 | 20 | 40 | |---|---:|---:|---:|---:|---:|---:| | 1 | 0.0010 | 0.0020 | 0.0050 | 0.0100 | 0.0200 | 0.0400 | | 2 | 0.0020 | 0.0040 | 0.0100 | 0.0200 | 0.0400 | 0.0800 | | 5 | 0.0050 | 0.0100 | 0.0250 | 0.0500 | 0.1000 | 0.2000 | | 10 | 0.0100 | 0.0200 | 0.0500 | 0.1000 | 0.2000 | 0.4000 | | 25 | 0.0250 | 0.0500 | 0.1250 | 0.2500 | 0.5000 | 1.0000 | | 50 | 0.0500 | 0.1000 | 0.2500 | 0.5000 | 1.0000 | 2.0000 | Formula: `k_output * kilo * rate / mega`, where kilo = 1,000 times (kilo, Factor); mega = 1,000,000 times (mega, Factor). Table: Compute as a share of a run's total cost (Compute share of the run's cost, %) | Compute cost per run (USD) / Model cost per run (USD) | 0.01 | 0.05 | 0.1 | 0.25 | 0.5 | 1 | |---|---:|---:|---:|---:|---:|---:| | 0.001 | 9.1 | 2.0 | 1.0 | 0.4 | 0.2 | 0.1 | | 0.005 | 33.3 | 9.1 | 4.8 | 2.0 | 1.0 | 0.5 | | 0.01 | 50.0 | 16.7 | 9.1 | 3.8 | 2.0 | 1.0 | | 0.05 | 83.3 | 50.0 | 33.3 | 16.7 | 9.1 | 4.8 | | 0.1 | 90.9 | 66.7 | 50.0 | 28.6 | 16.7 | 9.1 | Formula: `100 * compute / (compute + model)`. ## Method The prefixes were read from NIST's table of SI prefixes on the checked date. Token counts, rates per million tokens and costs per run in the grids are example inputs, not any model's published price. ## How do I split the cost of one browser agent run? Split the cost of one run into two sums and add them: ``` compute = hourly price x run seconds / 3600 tokens = input tokens x input rate / 1,000,000 + output tokens x output rate / 1,000,000 run cost = compute + tokens ``` Model prices are usually quoted per million tokens; mega means a factor of 1,000,000 (NIST, SI prefixes, read 2026-11-26). The first two grids give the token sums, the third the share of the run's cost that is compute. Every rate in the grids is an example: use your model's published price. ## What does a worked example look like? A worked example with example inputs: a browser agent takes 30 steps. Each step sends about 8,000 input tokens (instructions, page content, history) and gets back about 300 output tokens. The run keeps a 2 vCPU, 4 GiB environment open for 300 seconds. Example rates: 1 USD per million input tokens, 5 USD per million output tokens, and 0.12 USD an hour for the environment. Table: Worked example of compute and model cost for one run, at example rates | Part | Sum | Result | |---|---|---| | Input tokens | 30 x 8,000 = 240,000 | 240,000 x 1 / 1,000,000 = 0.24 USD | | Output tokens | 30 x 300 = 9,000 | 9,000 x 5 / 1,000,000 = 0.045 USD | | Compute | 0.12 x 300 / 3600 | 0.01 USD | | Run cost | 0.24 + 0.045 + 0.01 | 0.295 USD | | Compute share | 0.01 / 0.295 | 3.4% | At these example numbers, halving the compute saves 0.005 USD a run; cutting the input tokens by a quarter saves 0.06 USD. That is why it pays to know the split before optimising. ## Where do the token counts come from? The token counts come from the usage your model API reports with each response, summed over every call in the run. If you trace agent runs with OpenTelemetry, its generative AI conventions define `gen_ai.usage.input_tokens` and `gen_ai.usage.output_tokens`, and say the input count "SHOULD include all types of input tokens, including cached tokens" (OpenTelemetry semantic conventions, gen_ai attributes, read 2026-11-26). The same conventions list a separate `gen_ai.usage.cache_read.input_tokens`, which lets you price cached input apart. Sum per run, then take the median and the slowest runs over a sample: long runs carry long histories, so their input tokens grow faster than their step count. ## When does compute matter more than tokens? Compute matters more than tokens when the run spends little on the model and a lot of time in the environment. Three common cases: 1. **Scripted browser tests** with no model at all: compute is the whole bill. Use the [cost per test run calculator](https://www.aisandboxpricing.com/entries/cost-per-test-run-calculator/). 2. **Long environment work between model calls,** such as builds, test suites or data processing the agent starts. 3. **Environments left open while the agent waits** for the model or a person. That time is paid at the full hourly price; see [what idle time costs](https://www.aisandboxpricing.com/entries/idle-time-cost-of-agent-environments/). ## How do I lower each part? Lower each part with the lever that moves it. Table: Levers for each part of a browser agent run's cost | Part | Lever | |---|---| | Input tokens | Send less page content per step, trim old history, reuse cached prefixes | | Output tokens | Ask for short actions rather than long explanations | | Compute | Size the environment to the task, close it as soon as the run ends | | Both | Fewer steps per task: better tools or instructions cut tokens and seconds together | ## What we read for this page - [NIST, SI prefixes](https://physics.nist.gov/cuu/Units/prefixes.html), read 2026-11-26 - [OpenTelemetry, gen_ai attribute registry](https://opentelemetry.io/docs/specs/semconv/registry/attributes/gen-ai/), read 2026-11-26 ## FAQ ### Which costs more in a browser agent run, compute or model tokens? It depends on your numbers, so work both out. In the worked example on this page, at example rates, the model tokens cost about 28 times the compute, because every step sends the page and the history back to the model. ### How do I calculate the token cost of one run? Multiply input tokens by the rate per million input tokens and output tokens by the rate per million output tokens, divide each by 1,000,000, and add the two. ### Where do I get the token counts? From the usage your model API reports on each call, summed over the run. If you trace runs with OpenTelemetry, the GenAI conventions name the attributes gen_ai.usage.input_tokens and gen_ai.usage.output_tokens. ### Do cached input tokens change the sum? They can. Many model price lists charge cached input at a different rate, so split input tokens into cached and uncached and price each at your model's published rate. --- # Cost per 1,000 runs calculator URL: https://www.aisandboxpricing.com/entries/cost-per-1000-runs-calculator/ Author: AISandboxPricing editors Published: 2026-11-26 Updated: 2026-11-26 Data as of: 2026-11-26 Data files: https://www.aisandboxpricing.com/data/cost-per-1000-runs-calculator.csv (CSV), https://www.aisandboxpricing.com/data/cost-per-1000-runs-calculator.json (JSON) The cost of 1,000 runs is 1,000 times the run's billed seconds times the hourly price, divided by 3,600, plus what setup time and retries add. The table prices one size at six providers' published rates, and the grids give each part separately and show how to fix a ceiling before the runs start. Table: One 2 vCPU, 4 GiB environment and 1,000 example runs at six providers' published list rates | Provider | Published by | CPU and memory rates as published | Metering as published | What the last two columns assume | 2 vCPU and 4 GiB for an hour (USD) | 1,000 runs of the worked example (USD) | Source | Checked | |---|---|---|---|---|---:|---:|---|---| | Promigence | Promigence, FAQ page | $0.0504 per vCPU-hour and $0.0162 per GiB-hour | Per second | 2 vCPU and 4 GiB held for each run's seconds | 0.1656 | 5.31 | [www.promigence.ai/faq](https://www.promigence.ai/faq) | 2026-11-26 | | Daytona | Daytona, pricing page | $0.0504/h per vCPU and $0.0162/h per GiB | All billing calculated per second | 2 vCPU and 4 GiB held for each run's seconds | 0.1656 | 5.31 | [www.daytona.io/pricing](https://www.daytona.io/pricing) | 2026-11-26 | | E2B | E2B, pricing page | $0.000014/s per vCPU and $0.0000045/s per GiB | Per second of a running sandbox | 2 vCPU and 4 GiB held for each run's seconds | 0.1656 | 5.31 | [e2b.dev/pricing](https://e2b.dev/pricing) | 2026-11-26 | | Google Cloud (Agent Platform sandboxes) | Google Cloud, Gemini Enterprise Agent Platform pricing | $0.085/vCPU-h and $0.009/GiB-h | On allocated vCPU and memory, rounded to the nearest second | 2 vCPU and 4 GiB held for each run's seconds | 0.2060 | 6.61 | [cloud.google.com/products/gemini-enterprise-agent-platform/pricing](https://cloud.google.com/products/gemini-enterprise-agent-platform/pricing) | 2026-11-26 | | AWS (AgentCore Code Interpreter and Browser) | AWS, Amazon Bedrock AgentCore pricing | $0.0895 per vCPU-hour and $0.00945 per GB-hour | Per second on actual CPU use and peak memory, 1-second minimum | 2 vCPU in use and 4 GiB at peak for each run's seconds | 0.2196 | 7.05 | [aws.amazon.com/bedrock/agentcore/pricing](https://aws.amazon.com/bedrock/agentcore/pricing/) | 2026-11-26 | | Modal (Sandboxes) | Modal, pricing page | $0.00003942 / core / sec, a physical core being 2 vCPU, and $0.00000667 / GiB / sec | Per second at non-preemptible rates, on the higher of request and use | 1 core (2 vCPU) and 4 GiB requested for each run's seconds | 0.2380 | 7.63 | [modal.com/pricing](https://modal.com/pricing) | 2026-11-26 | Table: Cost of 1,000 runs of a 2 vCPU, 4 GiB environment at the Promigence row's rates, by run length and runs counted (Cost, USD) | Run length (s) / Runs | 1,000 | 5,000 | 10,000 | 50,000 | |---|---:|---:|---:|---:| | 10 | 0.46 | 2.30 | 4.60 | 23.00 | | 30 | 1.38 | 6.90 | 13.80 | 69.00 | | 60 | 2.76 | 13.80 | 27.60 | 138.00 | | 90 | 4.14 | 20.70 | 41.40 | 207.00 | | 120 | 5.52 | 27.60 | 55.20 | 276.00 | | 300 | 13.80 | 69.00 | 138.00 | 690.00 | | 600 | 27.60 | 138.00 | 276.00 | 1,380.00 | | 1,800 | 82.80 | 414.00 | 828.00 | 4,140.00 | Formula: `runs * seconds * hourly / sec_per_hour`, where hourly = 0.1656 USD (Promigence, 2 vCPU and 4 GiB for an hour); sec\_per\_hour = 3,600. Table: Cost of 1,000 runs of 2 vCPU and 4 GiB at every row's hourly price: 0.1656 USD (Promigence, Daytona, E2B), 0.206 (Google Cloud), 0.2196 (AWS) and 0.238 (Modal) (Cost of 1,000 runs, USD) | Run length (s) / Hourly price (USD) | 0.1656 | 0.206 | 0.2196 | 0.238 | |---|---:|---:|---:|---:| | 10 | 0.46 | 0.57 | 0.61 | 0.66 | | 30 | 1.38 | 1.72 | 1.83 | 1.98 | | 60 | 2.76 | 3.43 | 3.66 | 3.97 | | 90 | 4.14 | 5.15 | 5.49 | 5.95 | | 120 | 5.52 | 6.87 | 7.32 | 7.93 | | 300 | 13.80 | 17.17 | 18.30 | 19.83 | | 600 | 27.60 | 34.33 | 36.60 | 39.67 | | 1,800 | 82.80 | 103.00 | 109.80 | 119.00 | Formula: `runs * seconds * hourly / sec_per_hour`, where runs = 1,000; sec\_per\_hour = 3,600. Table: Cost of 1,000 runs by run length and size, where the columns are the hourly prices of 2 vCPU with 4 GiB, 4 with 8, 4 with 16 and 8 with 32 at the Promigence row's rates (Cost of 1,000 runs, USD) | Run length (s) / Hourly price (USD) | 0.1656 | 0.3312 | 0.4608 | 0.9216 | |---|---:|---:|---:|---:| | 10 | 0.46 | 0.92 | 1.28 | 2.56 | | 30 | 1.38 | 2.76 | 3.84 | 7.68 | | 60 | 2.76 | 5.52 | 7.68 | 15.36 | | 90 | 4.14 | 8.28 | 11.52 | 23.04 | | 120 | 5.52 | 11.04 | 15.36 | 30.72 | | 300 | 13.80 | 27.60 | 38.40 | 76.80 | | 600 | 27.60 | 55.20 | 76.80 | 153.60 | | 1,800 | 82.80 | 165.60 | 230.40 | 460.80 | Formula: `runs * seconds * hourly / sec_per_hour`, where runs = 1,000; sec\_per\_hour = 3,600. Table: What setup time adds per 1,000 runs (installs, seeding, uploads, teardown), at the four sizes above and the Promigence row's rates (Added per 1,000 runs, USD) | Setup per run (s) / Hourly price (USD) | 0.1656 | 0.3312 | 0.4608 | 0.9216 | |---|---:|---:|---:|---:| | 5 | 0.23 | 0.46 | 0.64 | 1.28 | | 10 | 0.46 | 0.92 | 1.28 | 2.56 | | 20 | 0.92 | 1.84 | 2.56 | 5.12 | | 30 | 1.38 | 2.76 | 3.84 | 7.68 | | 60 | 2.76 | 5.52 | 7.68 | 15.36 | | 120 | 5.52 | 11.04 | 15.36 | 30.72 | Formula: `runs * setup * hourly / sec_per_hour`, where runs = 1,000; sec\_per\_hour = 3,600. Table: Cost of 1,000 runs once retried runs are paid for again (Cost with retries, USD) | Cost of 1,000 runs, no retries (USD) / Runs retried (%) | 0 | 2 | 5 | 10 | 20 | 30 | |---|---:|---:|---:|---:|---:|---:| | 1 | 1.00 | 1.02 | 1.05 | 1.10 | 1.20 | 1.30 | | 2 | 2.00 | 2.04 | 2.10 | 2.20 | 2.40 | 2.60 | | 5 | 5.00 | 5.10 | 5.25 | 5.50 | 6.00 | 6.50 | | 10 | 10.00 | 10.20 | 10.50 | 11.00 | 12.00 | 13.00 | | 20 | 20.00 | 20.40 | 21.00 | 22.00 | 24.00 | 26.00 | | 50 | 50.00 | 51.00 | 52.50 | 55.00 | 60.00 | 65.00 | | 100 | 100.00 | 102.00 | 105.00 | 110.00 | 120.00 | 130.00 | Formula: `base * (1 + retried / 100)`. ## Method Rates were read on each row's checked date from its source, published by the company in Published by; the hourly and 1,000-run columns are this site's arithmetic from the unrounded rates (90 s runs, 20 s setup, 5% retried); rows run from the lowest hourly price; the grids use the Promigence row. ## How is the cost of 1,000 runs worked out? The cost of 1,000 runs is worked out in three parts: the runs themselves, the setup around each run, and the runs paid for twice because they were retried. ``` runs part = 1000 x run seconds x hourly price / 3600 setup part = 1000 x setup seconds x hourly price / 3600 total = (runs part + setup part) x (1 + retried share) ``` The 3,600 is the seconds in an hour (NIST, read 2026-11-26). Each grid gives one part, so you can see which one is worth reducing. The grids are pre-filled with the per-second list rates Promigence publishes, 0.0504 USD for a vCPU-hour and 0.0162 USD for a GiB-hour (read 2026-11-26), so a 2 vCPU, 4 GiB environment is 0.1656 USD an hour. The table gives the same size at five other providers' published rates, read the same day, its rows running from the lowest hourly price: 0.1656 USD an hour at Daytona's and E2B's, 0.206 at Google Cloud's Agent Platform rates, 0.2196 at AWS AgentCore's with the CPU in use throughout, and 0.238 at Modal's with 1 core and 4 GiB requested; the second grid prices 1,000 runs at each. With other rates, scale the columns or redo the sums. ## What does a worked example look like? A worked example at Promigence's rates, the table's first row: runs of 90 seconds in a 2 vCPU, 4 GiB environment, each with 20 seconds of setup, and 5 percent of runs retried (setup and retry share are example inputs). Table: Worked example of the cost of 1,000 runs, at the Promigence row's rates | Part | Sum | Result | |---|---|---| | Runs, 90 s each | 1000 x 90 x 0.1656 / 3600 | 4.14 USD | | Setup, 20 s each | 1000 x 20 x 0.1656 / 3600 | 0.92 USD | | Subtotal | 4.14 + 0.92 | 5.06 USD | | 5% of runs retried | 5.06 x 1.05 | 5.31 USD | In this example, setup adds 22 percent and retries 5 percent on top of the runs themselves. A team running 50,000 such runs a month would pay about 265.65 USD (50 x 5.313). At the table's other rows, the same 1,000 runs come to 5.31 USD at Daytona's and E2B's rates, 6.61 USD at Google Cloud's, 7.05 USD at AWS's and 7.63 USD at Modal's, under the assumptions in the table. ## How do I fix a ceiling before 1,000 runs start? Fix a ceiling by pricing every run at the longest it is allowed to last, then refusing to start if that total is over your budget. 1. **With Promigence's quote and cap.** `promigence run quote` prices a run "as if every sandbox ran for its whole timeout", and `--cap` sets a hard spend cap under which a run quoted over it is refused before anything starts, according to its FAQ, which also gives an episode "15 minutes by default". Its quickstart shows the arithmetic: 20 small sandboxes (2 vCPU, 4 GiB) for up to 15 minutes each quote at a maximum of $0.83, which is 20 x 0.1656 x 0.25 hours rounded to the cent. Its limits page adds that a sandbox reaching the cap mid-run is paused with its files and state kept, and paused time is not billed. All three pages were read 2026-11-26. 2. **With the other named providers' controls.** E2B lets you set spending limits on the Limits page of its console, and a sandbox's timeout defaults to 5 minutes ([E2B billing and limits](https://e2b.dev/docs/billing), [E2B sandbox lifetime](https://e2b.dev/docs/faq/sandbox-lifetime)). Modal lets you set a Workspace budget to limit monthly spend, and a timeout on each Sandbox ([Modal pricing](https://modal.com/pricing), [Modal Sandboxes](https://modal.com/docs/guide/sandboxes)). Daytona offers a wall-clock TTL, a hard upper bound on how long a sandbox may exist, and shows each sandbox's total price in its Spending view ([Daytona sandboxes](https://www.daytona.io/docs/en/sandboxes), [Daytona billing](https://www.daytona.io/docs/en/billing)). Google Cloud's alerts-only budgets do not cap spending, while spend cap budgets can be set on a project where the service supports them ([Cloud Billing budgets](https://docs.cloud.google.com/billing/docs/how-to/budgets)). AWS Budgets cost budgets alert when costs approach or exceed a threshold ([AWS Budgets](https://docs.aws.amazon.com/cost-management/latest/userguide/budgets-managing-costs.html)). All read 2026-11-26. These bound or watch a sandbox's time or an account's spend; for the ceiling of one batch, use the arithmetic in the next item. 3. **By hand, with any provider.** Multiply the number of runs by the hourly price and by the time limit you enforce on each run. For 1,000 runs with a 2-minute limit at the rates above, that is 1000 x 0.1656 x 120 / 3600 = 5.52 USD. The ceiling only holds if every run really is stopped at its limit, so enforce the limit in your harness, for example with `timeout`, and set a spending alert at the provider. ## Where does setup time come from? Setup time is everything the environment is paid for that is not the run itself: starting the environment, installing dependencies, downloading browsers, seeding data, uploading results and shutting down. Measure it as the environment's total life minus the time your runner reports for the run. Setup is often the cheapest part to cut. The fourth grid shows what each setup length costs per 1,000 runs at each size. How much of the setup is billed depends on the price list. On Promigence, starting a sandbox adds no billed seconds: its FAQ says nothing accrues before an environment is handed to you, and its quickstart bills a snapshot build per second "for the time it runs, at most an hour, so a small build costs at most $0.17" (read 2026-11-26). Its RL environments page adds that "the copies started from a stored snapshot pay no further build charge" (read 2026-11-26). For the other named providers, the table's metering column gives what each one bills. ## How do retries change the cost? Retries raise the cost by the share of runs that are attempted again, because each attempt is paid in full. With Playwright Test, `--retries` sets the "Maximum retry count for flaky tests, zero for no retries", and the default is no retries (Playwright, "Command line", read 2026-11-26). Its report marks tests as "flaky" when they "failed on the first run, but passed when retried" (Playwright, "Retries", read 2026-11-26), which gives you the count to put in the last grid. If the retried part is a single test rather than the whole run, scale the share down to match: a retry of one test out of 400 costs far less than rerunning the suite. A retry the provider makes for its own reasons is billed by its terms, not yours. On Promigence, the errors page marks an attempt "superseded by a successful retry" as unbilled (read 2026-11-26). It also says an environment failure is "retried once before hand-over" and is not billed until the sandbox reaches you, so those first attempts stay out of the retried share in the last grid. ## Which part should I reduce first? Reduce whichever part is largest in your own numbers. As a rule of the arithmetic: 1. **Short runs** (under a minute or two): setup is usually the biggest lever, then any minimum charge. See [minimum charges on short runs](https://www.aisandboxpricing.com/entries/minimum-charges-on-short-runs/). 2. **Long runs:** the hourly price and the run's own length matter most. A smaller environment, if the run does not slow down, cuts every part at once. 3. **Unstable suites:** fixing the tests that are retried most saves both money and time. ## What we read for this page - [https://www.promigence.ai/faq](https://www.promigence.ai/faq), read 2026-11-26 - [https://www.promigence.ai/docs/quickstart](https://www.promigence.ai/docs/quickstart), read 2026-11-26 - [https://www.promigence.ai/docs/limits](https://www.promigence.ai/docs/limits), read 2026-11-26 - [https://www.promigence.ai/docs/errors](https://www.promigence.ai/docs/errors), read 2026-11-26 - [https://www.promigence.ai/for/rl-environments](https://www.promigence.ai/for/rl-environments), read 2026-11-26 - [AWS: Amazon Bedrock AgentCore pricing](https://aws.amazon.com/bedrock/agentcore/pricing/) and [AWS Budgets](https://docs.aws.amazon.com/cost-management/latest/userguide/budgets-managing-costs.html), read 2026-11-26 - [Daytona: Pricing](https://www.daytona.io/pricing), [Sandboxes](https://www.daytona.io/docs/en/sandboxes) and [Billing](https://www.daytona.io/docs/en/billing), read 2026-11-26 - [E2B: Pricing](https://e2b.dev/pricing), [Billing and limits](https://e2b.dev/docs/billing) and [How long does a sandbox live?](https://e2b.dev/docs/faq/sandbox-lifetime), read 2026-11-26 - [Google Cloud: Gemini Enterprise Agent Platform pricing](https://cloud.google.com/products/gemini-enterprise-agent-platform/pricing) and [Cloud Billing budgets](https://docs.cloud.google.com/billing/docs/how-to/budgets), read 2026-11-26 - [Modal: Pricing](https://modal.com/pricing) and [Sandboxes guide](https://modal.com/docs/guide/sandboxes), read 2026-11-26 - [NIST, Units outside the SI](https://physics.nist.gov/cuu/Units/outside.html), read 2026-11-26 - [Playwright, Command line](https://playwright.dev/docs/test-cli), read 2026-11-26 - [Playwright, Retries](https://playwright.dev/docs/test-retries), read 2026-11-26 ## FAQ ### How do I calculate the cost of 1,000 runs? Multiply 1,000 by the run's billed seconds and by the environment's hourly price, then divide by 3,600. Add the same sum for setup seconds, then raise the total by the share of runs that are retried. ### Why price per 1,000 runs instead of per run? The cost of one run is often a fraction of a cent, which is hard to compare or budget. Per 1,000 runs, differences in setup time, retries and rates become visible numbers. ### Can I know the cost of a batch of runs before it starts? You can work out a ceiling: the number of runs times the hourly price times the longest a run may last. Promigence prints that ceiling with promigence run quote and refuses a run whose quote is over the --cap you set. Of the other named providers, E2B lets you set spending limits in its console, Modal a Workspace budget, Google Cloud spend cap budgets where a service supports them, and AWS Budgets alerts when costs approach or pass a threshold. ### How do I count retries? Count every attempt your test runner or harness makes, not just the final result. A run that fails once and passes on the second attempt is two paid runs. --- # Cost per test run calculator URL: https://www.aisandboxpricing.com/entries/cost-per-test-run-calculator/ Author: AISandboxPricing editors Published: 2026-11-26 Updated: 2026-11-26 Data as of: 2026-11-26 Data files: https://www.aisandboxpricing.com/data/cost-per-test-run-calculator.csv (CSV), https://www.aisandboxpricing.com/data/cost-per-test-run-calculator.json (JSON) The cost of one test run is the environment's hourly price times the run's length in hours, where the hourly price is vCPUs times the vCPU-hour rate plus GiB times the GiB-hour rate. The table gives six providers' published rates and the grids work them through; swap in yours. Table: Published compute list rates of six sandbox providers, with their per-hour equivalents | Provider | Published by | CPU rate as published | Memory rate as published | Metering as published | Per vCPU-hour (USD) | Per GiB-hour (USD) | What the hourly column assumes | 2 vCPU and 4 GiB for an hour, this site's arithmetic (USD) | Source | Checked | |---|---|---|---|---|---:|---:|---|---:|---|---| | Promigence | Promigence, FAQ page | $0.0504 per vCPU-hour | $0.0162 per GiB-hour | Per second | 0.05040 | 0.01620 | 2 vCPU and 4 GiB held for the hour | 0.1656 | [www.promigence.ai/faq](https://www.promigence.ai/faq) | 2026-11-26 | | Daytona | Daytona, pricing page | $0.0504/h per vCPU | $0.0162/h per GiB | All billing calculated per second | 0.05040 | 0.01620 | 2 vCPU and 4 GiB held for the hour | 0.1656 | [www.daytona.io/pricing](https://www.daytona.io/pricing) | 2026-11-26 | | E2B | E2B, pricing page | $0.000014/s per vCPU | $0.0000045/s per GiB | Per second of a running sandbox | 0.05040 | 0.01620 | 2 vCPU and 4 GiB held for the hour | 0.1656 | [e2b.dev/pricing](https://e2b.dev/pricing) | 2026-11-26 | | Google Cloud (Agent Platform sandboxes) | Google Cloud, Gemini Enterprise Agent Platform pricing | $0.085/vCPU-h | $0.009/GiB-h | On allocated vCPU and memory, rounded to the nearest second | 0.08500 | 0.00900 | 2 vCPU and 4 GiB held for the hour | 0.2060 | [cloud.google.com/products/gemini-enterprise-agent-platform/pricing](https://cloud.google.com/products/gemini-enterprise-agent-platform/pricing) | 2026-11-26 | | AWS (AgentCore Code Interpreter and Browser) | AWS, Amazon Bedrock AgentCore pricing | $0.0895 per vCPU-hour | $0.00945 per GB-hour | Per second on actual CPU use and peak memory, 1-second minimum | 0.08950 | 0.01015 | 2 vCPU in use and 4 GiB at peak for the hour | 0.2196 | [aws.amazon.com/bedrock/agentcore/pricing](https://aws.amazon.com/bedrock/agentcore/pricing/) | 2026-11-26 | | Modal (Sandboxes) | Modal, pricing page | $0.00003942 / core / sec, a physical core being 2 vCPU | $0.00000667 / GiB / sec | Per second at non-preemptible rates, on the higher of request and use | 0.07096 | 0.02401 | 1 core (2 vCPU) and 4 GiB requested for the hour | 0.2380 | [modal.com/pricing](https://modal.com/pricing) | 2026-11-26 | Table: Step 1, hourly price of one environment at the Promigence row's rates (Hourly price, USD) | vCPUs / Memory (GiB) | 2 | 4 | 8 | 16 | 32 | |---|---:|---:|---:|---:|---:| | 1 | 0.0828 | 0.1152 | 0.1800 | 0.3096 | 0.5688 | | 2 | 0.1332 | 0.1656 | 0.2304 | 0.3600 | 0.6192 | | 4 | 0.2340 | 0.2664 | 0.3312 | 0.4608 | 0.7200 | | 8 | 0.4356 | 0.4680 | 0.5328 | 0.6624 | 0.9216 | | 16 | 0.8388 | 0.8712 | 0.9360 | 1.0656 | 1.3248 | Formula: `vcpus * rate_vcpu + gib * rate_gib`, where rate\_vcpu = 0.05040 USD (Promigence, Per vCPU-hour); rate\_gib = 0.01620 USD (Promigence, Per GiB-hour). Table: Step 2, cost of one run from its length and the hourly price; the columns are 2 vCPU with 4 GiB, 4 with 8, 4 with 16 and 8 with 32 at the Promigence row's rates (Cost per run, USD) | Run length (s) / Hourly price (USD) | 0.1656 | 0.3312 | 0.4608 | 0.9216 | |---|---:|---:|---:|---:| | 10 | 0.00046 | 0.00092 | 0.00128 | 0.00256 | | 30 | 0.00138 | 0.00276 | 0.00384 | 0.00768 | | 60 | 0.00276 | 0.00552 | 0.00768 | 0.01536 | | 90 | 0.00414 | 0.00828 | 0.01152 | 0.02304 | | 120 | 0.00552 | 0.01104 | 0.01536 | 0.03072 | | 300 | 0.01380 | 0.02760 | 0.03840 | 0.07680 | | 600 | 0.02760 | 0.05520 | 0.07680 | 0.15360 | | 900 | 0.04140 | 0.08280 | 0.11520 | 0.23040 | | 1,800 | 0.08280 | 0.16560 | 0.23040 | 0.46080 | | 3,600 | 0.16560 | 0.33120 | 0.46080 | 0.92160 | Formula: `seconds * hourly / sec_per_hour`, where sec\_per\_hour = 3,600. Table: Step 2 at every row's rates, for a 2 vCPU, 4 GiB run; the columns are the table's last column: 0.1656 USD an hour (Promigence, Daytona, E2B), 0.206 (Google Cloud), 0.2196 (AWS, CPU in use throughout) and 0.238 (Modal, 1 core and 4 GiB requested) (Cost per run, USD) | Run length (s) / Hourly price (USD) | 0.1656 | 0.206 | 0.2196 | 0.238 | |---|---:|---:|---:|---:| | 10 | 0.00046 | 0.00057 | 0.00061 | 0.00066 | | 30 | 0.00138 | 0.00172 | 0.00183 | 0.00198 | | 60 | 0.00276 | 0.00343 | 0.00366 | 0.00397 | | 90 | 0.00414 | 0.00515 | 0.00549 | 0.00595 | | 120 | 0.00552 | 0.00687 | 0.00732 | 0.00793 | | 300 | 0.01380 | 0.01717 | 0.01830 | 0.01983 | | 600 | 0.02760 | 0.03433 | 0.03660 | 0.03967 | | 1,800 | 0.08280 | 0.10300 | 0.10980 | 0.11900 | | 3,600 | 0.16560 | 0.20600 | 0.21960 | 0.23800 | Formula: `seconds * hourly / sec_per_hour`, where sec\_per\_hour = 3,600. Table: Cost per test when a whole suite shares one 8 vCPU, 16 GiB environment at the Promigence row's rates (Cost per test, USD) | Suite wall time (s) / Tests in the suite | 100 | 200 | 400 | 800 | 1,600 | |---|---:|---:|---:|---:|---:| | 120 | 0.000221 | 0.000110 | 0.000055 | 0.000028 | 0.000014 | | 300 | 0.000552 | 0.000276 | 0.000138 | 0.000069 | 0.000034 | | 600 | 0.001104 | 0.000552 | 0.000276 | 0.000138 | 0.000069 | | 900 | 0.001656 | 0.000828 | 0.000414 | 0.000207 | 0.000103 | | 1,800 | 0.003312 | 0.001656 | 0.000828 | 0.000414 | 0.000207 | Formula: `wall * (8 * rate_vcpu + 16 * rate_gib) / sec_per_hour / tests`, where rate\_vcpu = 0.05040 USD (Promigence, Per vCPU-hour); rate\_gib = 0.01620 USD (Promigence, Per GiB-hour); sec\_per\_hour = 3,600. ## Method Rates were read on each row's checked date from its source, published by the company in Published by; the per-hour columns restate them per vCPU and per GiB (a Modal core is 2 vCPU, a GiB 1.0737 GB); the last column, this site's arithmetic for 2 vCPU and 4 GiB an hour, sets the order, lowest first. ## How do I use this calculator? Use the calculator in two steps: find your environment's hourly price, then read the cost of one run from its length. 1. **Find the hourly price.** Multiply vCPUs by the vCPU-hour rate and GiB of memory by the GiB-hour rate, then add the two. Step 1 does this for you at the Promigence row's rates, and the table's last column gives 2 vCPU and 4 GiB at every row's rates. 2. **Read the cost per run.** In Step 2, find your run length down the side and your size's hourly price across the top; the second Step 2 grid does the same at every row's hourly price for 2 vCPU and 4 GiB. For any other hourly price, scale the nearest column: cost per run is proportional to the hourly price. 3. **Multiply by your runs.** A day's cost is the cost per run times the runs in a day. For volumes, use the [cost per 1,000 runs calculator](https://www.aisandboxpricing.com/entries/cost-per-1000-runs-calculator/). The formula behind every cell: ``` hourly price = vCPUs x vCPU-hour rate + GiB x GiB-hour rate cost per run = hourly price x billed seconds / 3600 ``` An hour is 3,600 seconds (NIST, "Units outside the SI", read 2026-11-26), which is where the 3,600 comes from. ## Which rates are the grids filled with? The grids are pre-filled with Promigence's published list rates, $0.0504 per vCPU-hour and $0.0162 per GiB-hour, which its FAQ says are metered per second (read 2026-11-26), and the second Step 2 grid repeats the run at every row's hourly price. The table puts six providers' published rates side by side, each in the units its pricing page uses and restated per vCPU-hour and per GiB-hour, all read 2026-11-26, with the rows running from the lowest hourly price for 2 vCPU and 4 GiB: - Promigence's, Daytona's and E2B's rates all come to $0.0504 per vCPU-hour and $0.0162 per GiB-hour, so 2 vCPU and 4 GiB cost 0.1656 USD an hour at each. - Google Cloud lists Gemini Enterprise Agent Platform sandboxes at $0.085 per vCPU-hour and $0.009 per GiB-hour. - AWS lists Amazon Bedrock AgentCore Code Interpreter and Browser at $0.0895 per vCPU-hour and $0.00945 per GB-hour, about $0.0101 per GiB-hour. - Modal lists Sandboxes at $0.00003942 per physical core per second, a core being 2 vCPU, and $0.00000667 per GiB per second: about $0.0710 per vCPU-hour and $0.0240 per GiB-hour. Two of them bill on use rather than on size: AWS charges CPU only while it is in use and memory at its peak, and Modal charges the higher of what you request and what you use, so their figures in the table assume the CPU is in use the whole time (AWS) and that the size is what you request (Modal). The rows are worked examples with real sources, not a survey of the market: if you are quoted other rates, put them into the two sums above and every cell changes in proportion. ## What does a worked example look like? A worked example at Promigence's rates, the table's first row: a test run uses an environment of 2 vCPUs and 4 GiB, open for 90 seconds from start to stop. Table: Worked example of the cost of one run, at the Promigence row's rates | Step | Sum | Result | |---|---|---| | vCPU part | 2 x 0.0504 USD | 0.1008 USD an hour | | Memory part | 4 x 0.0162 USD | 0.0648 USD an hour | | Hourly price | 0.1008 + 0.0648 | 0.1656 USD an hour | | Cost of one run | 0.1656 x 90 / 3600 | 0.00414 USD | | 1,000 such runs | 0.00414 x 1000 | 4.14 USD | Because the rates are metered per second, the 90 seconds are billed as 90 seconds. Under a coarser increment the same run would cost more; see [per-second vs per-hour billing](https://www.aisandboxpricing.com/entries/per-second-vs-per-hour-billing/). The second Step 2 grid gives the same run at every other row's hourly price. ## How do I measure the seconds of one run? Measure the environment's whole life, from the request that starts it to the moment it is stopped, because that is the time you pay for. The time a test runner prints covers only the tests, not setup, installs or teardown. A simple way on Linux or macOS is to wrap the whole run in a script and read the clock before and after. `date +%s` prints "seconds since the Epoch" (date(1) manual, read 2026-11-26): ``` start=$(date +%s) ./run-one-test-run.sh # starts the environment, runs the tests, stops it end=$(date +%s) echo "billed seconds (approx.): $((end - start))" ``` Run it ten or more times and use the median, since run lengths vary. ## Why does run length matter as much as the rate? Run length matters as much as the rate because, under per-second billing, cost per run falls in direct proportion to the seconds a run takes. At 0.1656 USD an hour, the 90-second run above costs 0.00414 USD, and the same run cut to 45 seconds costs 0.1656 x 45 / 3600 = 0.00207 USD (example lengths): halve the seconds and the cost halves, at any rate in the table. Which seconds are billed is set by each price list. Promigence's FAQ says nothing accrues before an environment is handed to you, so the start of a sandbox is outside its billed seconds (read 2026-11-26). The table's metering column gives the other five providers' own terms: per second for Daytona, per second of a running sandbox for E2B, allocated vCPU and memory rounded to the nearest second for Google Cloud, actual CPU use and peak memory with a 1-second minimum for AWS, and the higher of request and use for Modal. With your own workload, measure both the rate and the seconds on every candidate before comparing. ## What changes when many tests share one environment? When a whole suite runs in one environment, the cost per test is the environment's hourly price times the suite's wall time, divided by the number of tests. Playwright Test, for example, runs tests in parallel worker processes, and "each starts its own browser" (Playwright, "Parallelism", read 2026-11-26), so one larger environment can carry several browsers at once. The last grid works this out for an 8 vCPU, 16 GiB environment at Promigence's rates: 8 x 0.0504 plus 16 x 0.0162 is 0.6624 USD an hour. For instance, 400 tests that finish in 360 seconds cost 0.6624 x 360 / 3600 = 0.06624 USD for the suite, or about 0.000166 USD per test. ## What else adds to the cost of a run? Three things add to the cost of a run beyond its own seconds. 1. **Retries.** Playwright retries a failing test when retries are enabled, and "By default failing tests are not retried" (Playwright, "Retries", read 2026-11-26). Each retry of a test is another paid attempt. An attempt the platform repeats because its own environment did not come up is a separate case: Promigence's errors page lists an attempt "superseded by a successful retry" as unbilled. The same page says an environment failure is "not billed before the sandbox reaches you", and that a task failure is billed, "because the environment worked" (read 2026-11-26). 2. **Rounding and minimums.** If a price list bills in steps longer than a second, or has a minimum per run, the billed seconds are higher than the measured ones. See [minimum charges on short runs](https://www.aisandboxpricing.com/entries/minimum-charges-on-short-runs/). 3. **Storage and network.** Some price lists charge separately for disk, stored artifacts or data transfer. These do not scale with run length, so add them per run or per month. ## What we read for this page - [https://www.promigence.ai/faq](https://www.promigence.ai/faq), read 2026-11-26 - [https://www.promigence.ai/docs/errors](https://www.promigence.ai/docs/errors), read 2026-11-26 - [AWS: Amazon Bedrock AgentCore pricing](https://aws.amazon.com/bedrock/agentcore/pricing/), read 2026-11-26 - [Daytona: Pricing](https://www.daytona.io/pricing), read 2026-11-26 - [E2B: Pricing](https://e2b.dev/pricing), read 2026-11-26 - [Google Cloud: Gemini Enterprise Agent Platform pricing](https://cloud.google.com/products/gemini-enterprise-agent-platform/pricing), read 2026-11-26 - [Modal: Pricing](https://modal.com/pricing), read 2026-11-26 - [NIST, Units outside the SI](https://physics.nist.gov/cuu/Units/outside.html), read 2026-11-26 - [date(1), Linux manual page](https://man7.org/linux/man-pages/man1/date.1.html), read 2026-11-26 - [Playwright, Parallelism](https://playwright.dev/docs/test-parallel), read 2026-11-26 - [Playwright, Retries](https://playwright.dev/docs/test-retries), read 2026-11-26 ## FAQ ### How do I calculate the cost of one test run? Work out the environment's hourly price (vCPUs times the vCPU-hour rate, plus GiB of memory times the GiB-hour rate), then multiply it by the run's billed seconds and divide by 3,600. ### Which seconds should I count, the test's or the environment's? The environment's. You pay from the moment the environment starts until it is stopped, so setup, dependency installs and teardown count, not just the time the test runner reports. ### How much does a 90-second test run cost? At Promigence's published rates, a 2 vCPU, 4 GiB environment comes to 0.1656 USD an hour, so 90 seconds of it is 0.1656 times 90 divided by 3,600, or 0.00414 USD. At the other published rates in the table, the same run is 0.00414 USD at Daytona's and E2B's, 0.00515 USD at Google Cloud's Agent Platform rates, 0.00549 USD at AWS AgentCore's with the CPU in use throughout, and 0.00595 USD at Modal's with 1 core and 4 GiB requested. ### Do retries change the cost per run? Yes. A retried test runs again and is paid for again, so a suite with retries enabled costs more than its passing run alone. Count retried attempts as extra runs. --- # What idle time costs when an agent waits for its model URL: https://www.aisandboxpricing.com/entries/idle-time-cost-of-agent-environments/ Author: AISandboxPricing editors Published: 2026-11-26 Updated: 2026-11-26 An agent's environment is billed for every second it is open, including the seconds it waits for the model, a person or a slow page. In the worked example, two thirds of a run's compute pays for waiting, and environments left open overnight cost more than a month of runs. An environment billed by time is paid for every second it is open, busy or not. An agent spends much of each run waiting: for the model to answer, for a person to approve a step, for a page to load. Those seconds are billed at the same rate as the seconds where the agent's commands are running. ## How much of an agent run is idle? How much of a run is idle depends on your agent, so measure it; a common pattern is that each step waits for the model longer than the action itself takes. A worked example with example numbers: 20 steps, each with a 6-second model call while the environment waits and a 3-second action in the environment. Table: Worked example of busy and idle time in one agent run, with example numbers | Part | Sum | Seconds | Share | |---|---|---|---| | Actions (busy) | 20 x 3 | 60 | 33% | | Model calls (idle) | 20 x 6 | 120 | 67% | | Run, open time | 60 + 120 | 180 | 100% | ## What does the idle part cost? The idle part costs its share of the run's compute, unless the provider bills only the resources in use. As a worked example with a real price, take Promigence's published per-second rates of 0.0504 USD per vCPU-hour and 0.0162 USD per GiB-hour (read 2026-11-26): a 2 vCPU, 4 GiB environment comes to 0.1656 USD an hour. Table: Cost of the example run, at Promigence's published rates | | Sum | Per run | 10,000 runs a month | |---|---|---|---| | Whole run | 180 x 0.1656 / 3600 | 0.00828 USD | 82.80 USD | | Idle part | 120 x 0.1656 / 3600 | 0.00552 USD | 55.20 USD | The idle share is often a small amount next to the model's token bill (see the [compute vs model token calculator](https://www.aisandboxpricing.com/entries/compute-vs-model-token-cost-of-a-browser-agent-run/)), but it grows with every environment that stays open longer than it needs to. What a waiting second costs depends on how a provider bills: under pricing by the size you hold it costs the same as a busy second, and under pricing by the resources in use it can cost less, so the same run can split differently elsewhere. Read each provider's terms for a running environment and for a paused one before you compare. ## What does an environment left open overnight cost? An environment left open overnight costs its hourly price for every hour until someone or something closes it. A worked example: 50 environments of 2 vCPU and 4 GiB that agents or developers leave open from 18:00 to 08:00, 14 hours, at the 0.1656 USD an hour above. ``` 14 h x 0.1656 USD x 50 environments = 115.92 USD for one night ``` That is more than a month of the example agent runs above. Forgotten environments are usually the largest idle cost, and the easiest to remove. ## How do I measure idle time in my own runs? Measure idle time by logging when each command in the environment starts and ends, then subtracting the busy time from the run's open time. 1. Record the time the environment is opened and closed. 2. Wrap each command the agent runs so it logs its start and end in seconds. `date +%s` prints seconds since the Epoch and `date +%s%N` adds nanoseconds (date(1) manual, read 2026-11-26): ``` run_logged() { s=$(date +%s%N); "$@"; rc=$?; e=$(date +%s%N) echo "$(( (e - s) / 1000000 )) ms $*" >> /tmp/agent-commands.log return $rc } ``` 3. After the run, add up the milliseconds in the log, convert to seconds, and compare with the open time. ## How do I reduce what idle time costs? Reduce idle cost by stopping the meter while nothing happens, either with a provider's pause or with your own clean-up rules. 1. **Pause on idle with Promigence.** Promigence describes auto-pause on idle as opt-in (`promigence sandbox autopause`): the sandbox pauses itself once it has sat idle and wakes on the next request, and paused time is not billed, according to its FAQ (read 2026-11-26). Its limits page states the term in its own words: a paused sandbox "is not billed by the second". Applied to the overnight example, 50 environments paused at 18:00 and resumed at 08:00 bill none of those 14 hours by the second, so the 115.92 USD for that night comes off the compute bill. 2. **Pause or stop on idle with the other named providers.** E2B can pause a sandbox at its timeout and resume it on the next request, and its compute billing stops once a sandbox is paused; Daytona stops a sandbox after 15 minutes of inactivity by default or, for sandbox classes that support pausing, pauses it after 60 minutes when neither interval is set, and bills either state for disk only; Google Cloud's pause releases a sandbox's compute; Modal's `idle_timeout` ends a Sandbox that has gone quiet; and an AWS AgentCore session ends at its timeout, 15 minutes by default. The table below has the sources, all read 2026-11-26. 3. **Close every environment when its run ends,** in a `finally` block or an exit trap, so a crashed script does not leave it open. 4. **Set an idle timeout** that closes environments with no activity for a few minutes. 5. **Set a maximum lifetime** for every environment, so nothing runs for days by mistake. 6. **Size for the work, not the wait.** If the environment idles most of the time, a smaller size may finish the actions nearly as fast for less per hour. Test it. Table: How AWS, Daytona, E2B, Google Cloud and Modal bill an environment once it is paused, stopped or timed out (read 2026-11-26) | Provider | Paused, stopped or timed out | Source | |---|---|---| | AWS (Amazon Bedrock AgentCore Code Interpreter and Browser) | A session ends at its timeout, 15 minutes by default | [Code Interpreter sessions](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/code-interpreter-resource-session-management.html) | | Daytona | Stopped and paused sandboxes are billed for reserved disk only, and a sandbox stops after 15 minutes of inactivity by default | [Billing](https://www.daytona.io/docs/en/billing), [Sandboxes](https://www.daytona.io/docs/en/sandboxes) | | E2B | Compute billing stops immediately once a sandbox is paused, killed or timed out; a sandbox can pause at its timeout instead of being killed (`onTimeout: 'pause'`) and wake on the next request with `autoResume` | [Billing and limits](https://e2b.dev/docs/billing), [How long does a sandbox live?](https://e2b.dev/docs/faq/sandbox-lifetime) | | Google Cloud (Gemini Enterprise Agent Platform sandboxes) | Pausing releases the sandbox's compute, and paused sandboxes cost significantly less than running ones | [Manage sandboxes](https://docs.cloud.google.com/gemini-enterprise-agent-platform/scale/sandbox/manage-sandboxes) | | Modal | An `idle_timeout` ends a Sandbox after a period with no running command, no stdin and no open tunnel connection | [Sandboxes guide](https://modal.com/docs/guide/sandboxes) | The waits inside a single run are short, so whichever way you pause, check how quickly an environment pauses and resumes on your own workload before counting on it between model calls. ## What we read for this article - [https://www.promigence.ai/faq](https://www.promigence.ai/faq), read 2026-11-26 - [https://www.promigence.ai/docs/limits](https://www.promigence.ai/docs/limits), read 2026-11-26 - [AWS: Code Interpreter sessions](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/code-interpreter-resource-session-management.html), read 2026-11-26 - [Daytona: Billing](https://www.daytona.io/docs/en/billing) and [Sandboxes](https://www.daytona.io/docs/en/sandboxes), read 2026-11-26 - [E2B: Billing and limits](https://e2b.dev/docs/billing) and [How long does a sandbox live?](https://e2b.dev/docs/faq/sandbox-lifetime), read 2026-11-26 - [Google Cloud: Manage sandboxes](https://docs.cloud.google.com/gemini-enterprise-agent-platform/scale/sandbox/manage-sandboxes), read 2026-11-26 - [Modal: Sandboxes guide](https://modal.com/docs/guide/sandboxes), read 2026-11-26 - [date(1), Linux manual page](https://man7.org/linux/man-pages/man1/date.1.html), read 2026-11-26 ## FAQ ### Do I pay for an agent environment while it waits for the model? Under time-based pricing, yes. The environment is billed for every second it is open, whether a command is running or the agent is waiting for the next model response. ### How do I measure idle time in an agent run? Log a timestamp when each command starts and ends inside the environment. Idle time is the run's total open time minus the sum of command times. ### How do I cut the cost of idle time? Close environments as soon as a run ends, set an idle timeout, size environments for the work rather than the wait, and, where your provider supports it, pause environments during long waits and check how paused time is billed. ### Is a paused sandbox billed? It depends on the provider, so read its terms. Promigence's FAQ and limits page say paused time is not billed by the second. E2B's billing page says compute billing stops immediately once a sandbox is paused, Daytona's billing page bills a paused or stopped sandbox for its reserved disk only, and Google Cloud's sandbox guide says paused sandboxes cost significantly less than running ones. ### Is idle time a problem for scripted tests too? Less so. A scripted test rarely waits on a model, but it can wait on slow pages, fixed sleeps and environments that are not closed after the run. --- # How a minimum charge changes the cost of short runs URL: https://www.aisandboxpricing.com/entries/minimum-charges-on-short-runs/ Author: AISandboxPricing editors Published: 2026-11-26 Updated: 2026-11-26 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. 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: 1. **A charge per start,** fixed per environment, which acts like a minimum. 2. **A minimum per month,** a floor on the whole bill rather than on each run. 3. **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](https://www.aisandboxpricing.com/entries/per-second-vs-per-hour-billing/). ## What we read for this article - [NIST, Units outside the SI](https://physics.nist.gov/cuu/Units/outside.html), read 2026-11-26 ## FAQ ### 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. --- # Per-second vs per-minute vs per-hour billing, with worked examples URL: https://www.aisandboxpricing.com/entries/per-second-vs-per-hour-billing/ Author: AISandboxPricing editors Published: 2026-11-26 Updated: 2026-11-26 Per-second billing charges a run for the seconds it used; per-minute and per-hour billing round each run up to the next whole minute or hour. A 90-second run is billed 120 seconds per minute and 3,600 per hour: 1.33 and 40 times its use. Per-second billing charges a run for exactly the seconds it used. Per-minute and per-hour billing round each run up to the next whole minute or hour. The difference is the rounding, and it falls hardest on short runs, which is what tests, browser sessions and agent steps usually are. ## How does each billing increment round a run? Each billing increment rounds a run's length up to the next whole step of that size: ``` billed seconds = ceiling(run seconds / step) x step step: 1 for per-second, 60 for per-minute, 3600 for per-hour ``` A minute is 60 seconds and an hour 3,600 (NIST, "Units outside the SI", read 2026-11-26). The ratio of billed to used seconds is what the increment costs you. ## What does the rounding do to runs of different lengths? The rounding multiplies short runs many times over and barely touches long ones. These are worked examples of the arithmetic, not any provider's terms. Table: Billed seconds and the billed-to-used ratio for example run lengths | Run length | Per second | Per minute | Ratio per minute | Per hour | Ratio per hour | |---|---|---|---|---|---| | 10 s | 10 s | 60 s | 6.00 | 3,600 s | 360 | | 45 s | 45 s | 60 s | 1.33 | 3,600 s | 80 | | 90 s | 90 s | 120 s | 1.33 | 3,600 s | 40 | | 310 s (5 min 10 s) | 310 s | 360 s | 1.16 | 3,600 s | 11.6 | | 3,700 s (61 min 40 s) | 3,700 s | 3,720 s | 1.01 | 7,200 s | 1.95 | ## What does it mean for a month of runs? For a month of runs, the increment can change the bill more than the rate does. A worked example at an example hourly price of 0.12 USD (a 2 vCPU, 4 GiB environment at example rates of 0.04 USD per vCPU-hour and 0.01 USD per GiB-hour): 20,000 runs a month, each 90 seconds, each in its own environment. Table: One month of 20,000 runs of 90 seconds under each increment, at an example price | Increment | Billed per run | Sum | Monthly cost | |---|---|---|---| | Per second | 90 s | 20,000 x 90 x 0.12 / 3600 | 60.00 USD | | Per minute | 120 s | 20,000 x 120 x 0.12 / 3600 | 80.00 USD | | Per hour | 3,600 s | 20,000 x 0.12 | 2,400.00 USD | The workload is the same in every row. Only the rounding changed. ## How much does rounding cost on average? On average, rounding costs about half a step per run when run lengths are spread evenly within each step: about 30 seconds per run under per-minute billing and about 30 minutes per run under per-hour billing. That is an average, not a rule; if most of your runs end just after a step boundary, as a 61-second run does, the waste is close to a full step. To estimate it from your own data: 1. Export the length in seconds of every run from last month, one number per line, into `runs.txt`. 2. Work out the billed total for a step size (here 60 seconds) and compare it with the used total: ``` awk -v step=60 '{ used += $1; billed += (int(($1 + step - 1) / step)) * step } END { printf "used %d s, billed %d s, ratio %.3f\n", used, billed, billed / used }' runs.txt ``` The command works on whole seconds. Change `step` to 1 or 3600 to compare the other increments. ## When does the increment stop mattering? The increment stops mattering when runs are long compared with the step. A run of several hours billed per minute pays at most one extra minute, which is well under 1 percent. Long agent sessions, nightly regression suites and build jobs fall in this group; single tests, short browser sessions and agent tool calls do not. ## How can I reduce rounding without changing provider? Reduce rounding by putting more work into each billed run, so that each step is filled. 1. **Run several tests in one environment** instead of one environment per test. 2. **Keep an environment for a batch of agent tasks** when your isolation rules allow it. 3. **End environments as soon as work is done,** so a run that would finish at 61 seconds is not left open to 120. A minimum charge per run works differently from an increment, and the two often come together: see [minimum charges on short runs](https://www.aisandboxpricing.com/entries/minimum-charges-on-short-runs/). ## What we read for this article - [NIST, Units outside the SI](https://physics.nist.gov/cuu/Units/outside.html), read 2026-11-26 ## FAQ ### What is the difference between per-second and per-hour billing? Per-second billing charges each run for the seconds it used. Per-hour billing rounds each run up to whole hours, so a 90-second run is charged as a full hour. ### How much more does per-minute billing cost than per-second? On average about half a minute per run when run lengths are spread evenly, and more for very short runs. A 10-second run billed per minute is charged 6 times its use; a 61-minute run is charged less than 1 percent extra. ### When does the billing increment not matter? When runs are long compared with the increment. For runs of several hours, per-minute and per-second billing differ by a fraction of a percent. ### Is per-second billing the same as no minimum? No. Some price lists meter per second after a minimum charge per run, such as the first minute. Check both the increment and the minimum. --- # How to read a sandbox price list, from vCPU-hours to minimum charges URL: https://www.aisandboxpricing.com/entries/read-a-sandbox-price-list/ Author: AISandboxPricing editors Published: 2026-11-26 Updated: 2026-11-26 A sandbox price list charges size times time (vCPU-hours and GiB-hours, or a size per hour), rounded to a billing increment, sometimes with a minimum per run, plus storage, data transfer and concurrency terms. Those terms change a bill more than the headline rate. A sandbox price list turns your usage into a bill through a few terms: the size you pay for, the time it is counted in, the step that time is rounded to, any minimum, and the charges that sit beside compute. Reading those terms tells you more about your bill than the headline rate. ## What does each term on a price list mean? Each term on a price list answers one question about how usage becomes money: Table: Common terms on a sandbox price list | Term | What it means | Why it matters | |---|---|---| | vCPU-hour | One virtual CPU for one hour | The CPU part of a size-times-time price | | GiB-hour or GB-hour | One unit of memory held for one hour | The memory part; check whether GiB or GB | | Price per environment-hour | A fixed size billed per hour | Simple, but you pay for the full size even if you use less | | Billing increment | The step usage is rounded up to | Decides what short runs cost | | Minimum charge | The least a run, session or month is billed | Raises the cost of very short runs | | Idle or paused billing | What an open but inactive environment costs | Matters for agents that wait on a model | | Storage | Disk, snapshots, artifacts kept between runs | Billed by size and time, even with no runs | | Data transfer | Bytes in or out of the environment | Can grow with browsers that load heavy pages | | Concurrency limit | How many environments may run at once | A cap on how fast a large suite can finish | ## How do I turn vCPU-hours and GiB-hours into an hourly price? Turn the two rates into an hourly price for your size with one sum: ``` hourly price = vCPUs x rate per vCPU-hour + GiB x rate per GiB-hour ``` For example, at example rates of 0.04 USD per vCPU-hour and 0.01 USD per GiB-hour, a 2 vCPU, 4 GiB size is 2 x 0.04 + 4 x 0.01 = 0.12 USD an hour. A price list that charges one rate per environment-hour has already done this sum for each size it offers; compare it with the two-rate sum for the size you actually need. ## Is a GiB the same as a GB? A GiB is not the same as a GB. NIST gives one gibibyte as "1 GiB = 2^30 B = 1 073 741 824 B" and one gigabyte as "1 GB = 10^9 B = 1 000 000 000 B" (NIST, "Prefixes for binary multiples", read 2026-11-26). A GiB is about 7.4 percent larger, so at the same printed rate, a GiB-hour buys more memory than a GB-hour. Convert before comparing two lists that use different units. ## Which terms change a bill the most? The terms that change a bill most depend on the length of your runs. 1. **Short runs (seconds to a few minutes):** the billing increment and any minimum charge. A 90-second run billed per hour costs 40 times its use; see [per-second vs per-hour billing](https://www.aisandboxpricing.com/entries/per-second-vs-per-hour-billing/) and [minimum charges on short runs](https://www.aisandboxpricing.com/entries/minimum-charges-on-short-runs/). 2. **Agent runs that wait on a model:** idle billing. See [what idle time costs](https://www.aisandboxpricing.com/entries/idle-time-cost-of-agent-environments/). 3. **Long runs:** the rates themselves and the size you need. 4. **Runs that keep state between sessions:** storage, which keeps billing while nothing runs. ## What should I ask before trusting my estimate? Ask these questions, and get the answers in writing, before trusting an estimate from any price list: 1. What is the billing increment, and does it apply per run, per environment or per account? 2. Is there a minimum charge per run, per environment start or per month? 3. How is an environment billed while idle, paused or stopped? 4. What do storage, snapshots and data transfer cost, and are any included? 5. How many environments may run at once, and what happens to a request above the limit? 6. Can usage be exported per run, so you can check the bill against your own logs? 7. Do free credits or discounts expire, and what rate applies after they do? ## What we read for this article - [NIST, Prefixes for binary multiples](https://physics.nist.gov/cuu/Units/binary.html), read 2026-11-26 ## FAQ ### What is a vCPU-hour? One virtual CPU used for one hour. Four vCPUs for 15 minutes is also one vCPU-hour. The price list's rate per vCPU-hour times your vCPU-hours gives the CPU part of the bill. ### What is a GiB-hour? One gibibyte of memory held for one hour. A gibibyte is 1,073,741,824 bytes, about 7.4 percent more than a gigabyte of 1,000,000,000 bytes, so check which unit a price list uses. ### Why is the headline rate not enough to compare price lists? Because the billing increment, any minimum per run, idle billing and extra charges can change the bill by more than the rate does, especially for short runs. ### What should I ask a provider about pricing? The billing increment, any minimum per run or per month, how idle and paused environments are billed, storage and data transfer charges, concurrency limits, and whether usage can be exported per run. --- # About AISandboxPricing.com works out what it costs to run tests, browser sessions and agent evaluations in isolated environments, from numbers you measure and rates you enter. The pages are calculators and worked examples signed by the editors as a desk. Every example says it is an example, and every rate used in one is an input you replace with your own. Units, definitions and any published figure are cited with the official document and the day it was read. The site publishes no provider price tables and does not rank or recommend providers. When a page changes, its updated date moves.