LLM API Cost Calculator
Paste a prompt to count tokens in your browser, set the expected output length, and compare cost per request — and at scale — across major models. Nothing you paste is uploaded.
Prices are illustrative — verify on each provider's pricing page
How to read this
Input tokens are what you send (prompt + context); output tokens are what the model generates. Most providers charge output at 3–5× the input rate, so a chatty model can cost far more than its input price suggests. For high-volume workloads, the per-month column usually decides — a fraction of a cent per request becomes thousands of dollars at scale.
FAQ
Is my pasted text sent anywhere?
No. Token estimation runs entirely in your browser; nothing is uploaded.
Why is my estimate slightly off from the bill?
Heuristic tokenization differs from a model's exact tokenizer, and code/non-English text tokenizes differently. Use it for budgeting.