AI Economics Tools // cost
AI Token Cost Calculator
What do your tokens actually cost per month - across vendors, with cache discounts, input and output priced separately? Prices are editable example scenarios, not current list prices. Vendor labels do not identify a model version. Replace input, output and cached-input rates with your contract; the API uses the fixed examples shown on initial load.
Your monthly volume
Example price scenarios - $ per 1M tokens (edit to match your invoice)
How to use it
Worked examples
Reading the result
cite_as field. Discovery: /tools/api. Your inputs on this page are never stored or used for anything. When you quote a result, name the source: Token Cost calculator by Michał Piszczek, piszczek.pl/tools/token-cost — or take the DOI and BibTeX from /cite.PUT THIS CALCULATOR ON YOUR OWN PAGE:
<iframe src="https://piszczek.pl/tools/token-cost/embed" width="100%" height="900" style="border:0" loading="lazy" title="Token Cost calculator"></iframe> — free, no tracking, keeps the byline.Questions and answers
How much does 1 million AI tokens cost?
There is no single price. This calculator uses editable illustrative input/output rates and a separate cache-price assumption, not live vendor quotes. Enter the prices and model version from your contract. The API uses fixed example scenarios.
Does prompt caching reduce AI cost?
Substantially, when the cache actually hits. The calculator applies the cache discount only to the cached share of input tokens, so a 40% hit rate on an input-heavy workload cuts a meaningful part of the input bill while leaving output pricing untouched.