LLM API Cost Calculator — GPT, Claude, Gemini
Work out what a prompt costs per call, per day and per month, and compare the same workload across every major model.
This calculator prices a language-model workload from the token counts you actually send: input, output and cached input, multiplied by a request volume. It shows the cost per call and per period, splits input against output, and ranks every major model on the identical workload so the cheapest option for your particular input-to-output ratio is visible rather than guessed.
Runs in your browser- Prices verified
- 2026-08-01
- Models priced
- 25 across 7 providers
- Privacy
- Runs entirely in your browser — nothing is uploaded
- Cost
- Free, unlimited, no sign-up
Frequently asked questions
Why is output so much more expensive than input?
What does prompt caching actually save?
Are reasoning tokens included?
How current are these prices?
How to use the ai api cost calculator
- 1Choose the model.
- 2Set the input tokens per request.
- 3Set the output tokens per request.
- 4Set the cached input tokens.
- 5Set the requests.
- 6Turn "Compare every model" on or off as needed.
- 7Press Run, then download the result when it is ready.
Sources & specifications
Embed this tool
Put the working ai api cost calculator on your own site. It runs in your visitors' browsers exactly as it does here — free, no account, nothing uploaded.
Share this tool
Related tools
LLM Model ComparisonEvery current model side by side: price per million tokens, context window, max output, modalities and cache rates.LLM Stream ParserPaste a raw server-sent-event stream and get the reconstructed message, tool calls, usage and stop reason.Prompt Token OptimizerStrip the padding out of a prompt — dead whitespace, boilerplate politeness, redundant framing — and see the tokens and money saved.Context Window CalculatorPaste a document and see which models it fits inside, how much of each window it fills, and what is left for the reply.LLM Token CounterCount tokens with the real BPE vocabulary, see every token coloured in place, and compare the count across models.Prompt Injection SanitizerStrip invisible carriers, neutralise instruction-like markup and fence untrusted content before you paste it into a prompt.
Last updated
More ai & llm tools