LLM API Cost Calculator

Estimates the per-request cost of a prompt across major LLM APIs — GPT-5, Claude Opus/Sonnet/Haiku, Gemini 2.5 Pro/Flash, Llama 4, and DeepSeek — from input and output token counts, with a sorted comparison table that highlights the cheapest model. Prices are approximate per 1M tokens; always verify with the provider.

Claude Sonnet — $0.0105 / request

Input: $0.003000 · Output: $0.007500

ModelInput $/MOutput $/MInput costOutput costTotal
Gemini 2.5 Flash· cheapest$0.1500$0.6000$0.000150$0.000300$0.000450
DeepSeek V3$0.2700$1.10$0.000270$0.000550$0.000820
Llama 4 Maverick$0.5000$0.8000$0.000500$0.000400$0.000900
GPT-5 mini$0.5000$2.00$0.000500$0.001000$0.001500
Claude Haiku$0.8000$4.00$0.000800$0.002000$0.002800
Gemini 2.5 Pro$1.25$10.00$0.001250$0.005000$0.006250
Claude Sonnet$3.00$15.00$0.003000$0.007500$0.0105
GPT-5$5.00$15.00$0.005000$0.007500$0.0125
Claude Opus$15.00$75.00$0.0150$0.0375$0.0525

Prices are approximate per 1M tokens and change frequently. Always verify with the provider's pricing page before budgeting.

LLM API Cost Calculator — Free Online Tool

Estimates the per-request cost of a prompt across major LLM APIs — GPT-5, Claude Opus/Sonnet/Haiku, Gemini 2.5 Pro/Flash, Llama 4, and DeepSeek — from input and output token counts, with a sorted comparison table that highlights the cheapest model. Prices are approximate per 1M tokens; always verify with the provider.

How to use the LLM API Cost Calculator

  • Open the tool above — it runs entirely in your browser, so your input never leaves this page.
  • Paste or type your input into the field, then press the relevant button (e.g. Encode / Decode, Generate, or Convert).
  • Copy the result from the output area with the copy button orCtrl/Cmd + C.
  • No signup, no upload, and no tracking — repeat as often as you need.

Frequently asked questions

Is the LLM API Cost Calculator free to use?

Yes. The LLM API Cost Calculator is completely free, with no signup, no ads inside the tool, and no hidden limits.

Does the LLM API Cost Calculator upload my data?

No. The LLM API Cost Calculator processes everything locally in your browser. Your input is never sent to a server, so it stays private even on shared devices.

Does the LLM API Cost Calculator work offline?

After the page loads, the LLM API Cost Calculator runs entirely in your browser, so it keeps working without a network connection.

Free & private — why use this LLM API Cost Calculator

The LLM API Cost Calculator runs 100% client-side in your browser. Your data is never uploaded to a server, no account is required, and the tool is completely free. It works offline once the page has loaded and is part of a growing collection of privacy-first developer utilities.

More developer utilities