Free tool
LLM token and cost calculator
On this page
The short answer
- Paste a prompt or type token counts, set requests per month, and compare the cost on 81 models from 9 providers.
- Prices are standard list prices per 1M tokens, read from each provider's official pricing page on 12 Nov 2026. Every row links to its source.
- Lowest listed price: granite-4.0-h-micro ($0.017 in / $0.112 out per 1M). Highest: gpt-5.5-pro ($30 / $180).
- Token counts from pasted text are an estimate (characters ÷ 4). Type exact counts for exact costs.
Key numbers
- List prices across 81 models from 9 providers run from $0.017/$0.112 (granite-4.0-h-micro) to $30/$180 (gpt-5.5-pro) per 1M input/output tokens. (State of LLM API Pricing 2026, 12 Nov 2026)
- From 1 Dec 2026, Gemini API requests to gemini-2.5-pro route to gemini-3.8-flash and are billed at its rates. (Gemini API deprecations, 13 Nov 2026)
Calculator
How it works
- Tokens. Exact counts you type win. Otherwise input and output tokens are estimated as characters ÷ 4 (default output: 300 tokens).
- Price per request = input tokens × input price + output tokens × output price, divided by 1,000,000. With a cached share, that part of the input uses the cached price where the source lists one.
- Per month = price per request × requests per month. Batch discounts, priority tiers, long-context tiers, regional uplifts and tool or image charges are not modelled.
The prices come from our State of LLM API Pricing 2026 report (CC BY 4.0). Download them as CSV or JSON.
Worked examples
| Model | Input / output per 1M | Per request | Per 100,000 requests |
|---|---|---|---|
| gpt-6.1-terra OpenAI | $1 / $5 | $0.00350 | $350.00 |
| gpt-6-luna OpenAI | $0.1 / $0.5 | $0.00035 | $35.00 |
| Claude Haiku 5.5 Anthropic | $0.1 / $0.5 | $0.00035 | $35.00 |
| Claude Sonnet 5.5 Anthropic | $2 / $10 | $0.00700 | $700.00 |
| Gemini 3.8 Flash Google | $0.75 / $3.75 | $0.00263 | $262.50 |
A cheaper model is only cheaper if it passes your tests. Run the same cases on two or three models in the Litmiq app, then price the cheapest one that passes every hard rule. See compare OpenAI models.
Limits
- Character-based token estimates can be off by 20% or more, especially for code, JSON and non-English text. Tokenizers differ by provider and model generation.
- Prices change. The source page is authoritative; each row shows the date we read it. Scheduled price changes we know of are on the pricing report.
FAQ
How are tokens counted?
If you paste text, the calculator estimates tokens as characters divided by 4, a common rule of thumb for English with OpenAI tokenizers. Code, non-English text and other tokenizers can differ a lot. For exact numbers, type the token counts from your provider's usage field or tokenizer.
Where do the prices come from?
From the Litmiq State of LLM API Pricing 2026 dataset: 81 models from 9 providers, standard list prices per 1 million tokens as shown on each provider's official pricing page on 12 Nov 2026. Every row links to its source page.
Does it include batch discounts or cached input?
Batch pricing is not included. Cached input is applied only where the source row lists a cached price; otherwise the full input price is used and the row is marked.
Is my prompt sent anywhere?
No. The calculator runs in your browser and the prices are part of the page. Nothing you type is uploaded.
Get model deprecation alerts
We email you when OpenAI, Anthropic or Google publish a new shutdown date for a model on our tracker. Sent by hand from hello@litmiq.com, a few times a month at most. Unsubscribe by replying.
We store only your email, through our form provider. See the privacy policy.
Price it, then test it
The cheapest model that passes every test case is the one to ship. Run a ready-made suite on several models in your browser.
- Free, no signup
- Runs in your browser
- Your OpenAI key, sent only to OpenAI