Skip to content
FreeToolNet

LLM API cost calculator

Enter your token counts and your provider's prices. The maths runs in your browser.

Result

Enter an input price and an output price to see the cost.

How the number is calculated

Providers bill input and output tokens separately, each at a price per million tokens. For one request:

cost = uncached_input / 1,000,000 × input_price
     + cached_input   / 1,000,000 × cached_price
     + output         / 1,000,000 × output_price

The cached part is your input tokens multiplied by the cache share. The daily figure multiplies by requests per day, and the monthly figure assumes 30 days.

Getting the inputs right

What this does not cover

Cache-write surcharges, batch discounts, image or audio input, and per-request tool fees are not modelled. If you use them, treat the result as a baseline.