Tools

AI API cost calculator

Price a workload from token counts. Defaults are standard short-context rates read on 4 October 2026. Change any rate before you trust the total.

No data leaves the browser. Batch is half of whatever these rates say, at OpenAI and Anthropic, as of the same date. Long-context surcharges are not applied.

One run $0.00

One day $0.00

22 working days $0

The formula is (input tokens / 1,000,000 × input price) + (output tokens / 1,000,000 × output price), multiplied by the number of runs. How to read the result, and where the estimate goes wrong, is in how to estimate an AI API bill. To price a log instead of a guess, use the Python counter.