Agent cost estimator
Estimate the cost of a multi-step agent run from token counts and per-million prices.
Browser compute / no account / no upload
Inputs
Cost per step = (input tokens x input price + output tokens x output price) / 1,000,000. Total = cost per step x steps. Prices and token counts are yours; nothing leaves the browser.
Method
- Cost per step is input tokens times input price plus output tokens times output price, divided by one million.
- Total cost multiplies the per-step cost by the number of steps. Total tokens is the sum of input and output tokens per step, multiplied by steps.
- The estimate excludes retries, cached input pricing, and provider minimums, so treat it as a planning number rather than a bill.