LLM Token Cost Calculator
Estimate token costs using your own input and output rates. Your calculation stays in this browser.
Estimated cost
Live calculationYour estimate starts here
Enter token counts and prices, or load the example to see how it works.
How this is calculated
For each request, input cost is input tokens × input price per million ÷ 1,000,000. Output cost uses the same formula with output tokens and the output price. The two costs are added, then multiplied by the number of requests.
Calculation uses decimal arithmetic. Returned amounts are rounded to at most 12 decimal places after aggregation.
Where do the prices come from?
You supply both rates. This preview does not contain a verified provider price list. Check your provider’s current pricing and applicable terms before entering rates. Your rates are not checked or stored by PremadeTools.
What is excluded?
Cached-token tiers, batch discounts, images, audio, service fees, taxes and currency conversion are excluded. All requests are assumed to have the same token counts and rates. Results are estimates, not invoices.
Are my inputs sent anywhere?
This page calculates locally in your browser. It does not send your entries to the API or an AI provider. It does not store entries in cookies or browser storage.