Why it matters
Output tokens usually cost several times more than input, and prompt caching can cut input costs sharply.
Enter your provider's current per-million-token prices; the defaults are examples only.
How to use it
- Type or paste your input; the example shows the format.
- Press Calculate cost. Results also update as you type.
- Read the summary line, then the table, notes or output below it.
- Copy or download what you need. Nothing leaves this page.
FAQ
Are these prices current?
No. They're placeholders: replace them with your provider's rates.
What's prompt caching?
Reusing a long shared prompt prefix, billed at a discount on repeat requests.
Is my input uploaded?
No. The tool runs in your browser and nothing you type, paste or open is sent anywhere.
Can I rely on the result?
It follows the public specification or formula named on this page and says where it simplifies. Check anything critical against the official tool or documentation before you ship it.