AI Token Cost Calculator
Estimate AI API token costs using your own input/output token volumes and per-million-token rates.
Your inputs
What the result means
Provider-neutral by design
TutorCalc does not hardcode AI vendor pricing here. Enter the current rates for the model you plan to use.
Model input and output separately
Worked example
If a fictional workload uses 2 million input tokens at $1 per million and 0.5 million output tokens at $4 per million, modeled token cost is $2 + $2 = $4. Set the request count to 1 when using these aggregate example volumes. The example prices are invented; enter the provider’s current rates for the exact model and service tier.
Calculation and assumptions
For each token category, cost = token count ÷ 1,000,000 × price per million. Input/output rates can differ. Use representative measured token counts rather than assuming that a word, character or request always equals a fixed number of tokens.
How to use the estimate
Include retries, long system prompts and generated output in your volume estimate. Cached inputs, batch discounts, reasoning usage, image/audio processing, tools, storage and taxes may have separate treatment. This calculator models the categories shown; it does not reproduce every line of a provider invoice.
Calculation methodology and corrections · Example checked 28 October 2026