LLM Token Cost Calculator

Estimate token costs using your own input and output rates. Your calculation stays in this browser.

Your rates, clear resultsRuns in your browserFree · No login

Your workload

USD

Enter your own rates. This preview does not include verified provider prices.

Tokens you send to the model.

Tokens the model generates.

USD per 1 million input tokens.

USD per 1 million output tokens.

All requests use the same token counts and rates.

Calculated on your device. No inputs sent or saved.

Estimated cost

Live calculation

Your estimate starts here

Enter token counts and prices, or load the example to see how it works.

Rate source: supplied by youHow this is calculated

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.