---
title: "Compute vs model token cost of a browser agent run, a calculator"
description: "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."
url: "https://www.aisandboxpricing.com/entries/compute-vs-model-token-cost-of-a-browser-agent-run/"
site: "AISandboxPricing.com"
author: "AISandboxPricing editors"
published: "2026-11-26"
updated: "2026-11-26"
---

# Compute vs model token cost of a browser agent run, a calculator

AISandboxPricing editors. Published 2026-11-26, updated 2026-11-26.

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.

Data as of 2026-11-26. The same rows: 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).

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.
