Token Cost Calculator
Estimate AI API cost by entering token counts and your current price per 1 million tokens. This avoids hard-coded prices that can become outdated.
cost = tokens / 1,000,000 x price per 1M tokens
Formula: total cost = input token cost + output token cost
Token Cost Calculator
Results are calculated in your browser. For image, AI, and cooking tools, assumptions can affect the final result.
Formula and examples
total cost = input token cost + output token cost
| Example | What it means |
|---|---|
| 100,000 tokens at $1 per 1M tokens costs $0.10. | Practical reference value |
| 1,000,000 tokens at $2 per 1M tokens costs $2.00. | Practical reference value |
| Input and output tokens may have different prices. | Practical reference value |
Common mistakes
- Model pricing changes, so always enter the current price yourself.
- Input and output tokens can have different rates.
- Cached, batch, or special pricing may use different rates.
FAQ
Why do I enter price manually?
AI pricing changes and differs by model, so manual price input keeps the calculator flexible.
What does price per 1M tokens mean?
It means the price for one million input or output tokens.
Does this include taxes or platform fees?
No. It estimates token usage cost only.
Related converters
Last updated
Last updated on June 8, 2026. This page is designed as a practical calculator and reference. Always verify official requirements for passport, print submission, billing, or professional production work.