Browser calculator · provider-neutral
Token cost calculator for your API budget.
Enter input and output token counts together with each provider’s USD per million token rates. No provider preset is treated as universal.
Last source check · 04 Sep 2026
Estimated token total
Enter your provider rates to calculate.
Input and output are priced separately, then added.
Example: separate input and output rates
At illustrative rates of $0.30 per million input tokens and $1.20 per million output tokens, 1,000,000 input tokens plus 500,000 output tokens cost $0.90. These are example numbers, not a provider price quote.
Common questions
Where do I find the right rates?
Use the pricing page for your specific provider and model. Check whether cached input, batch requests or other discounts use separate rates; calculate each separately when they do.
Does the calculator send my usage to a server?
No. The calculation happens in your browser. We do not upload the token counts, rates or results, and no account is required.
Formula
Keep input and output visible
Input tokens ÷ 1,000,000 × input rate, plus output tokens ÷ 1,000,000 × output rate. The values stay in your browser and are not sent as analytics.