AI token counter and cost estimator
Paste text, get an estimated token count and the API price on all 49 models at once. It runs in your browser, so your text is never uploaded. Expect a 10 to 15 percent margin against each provider's own tokenizer.
Paste your text
Cost on every model
Enter text above to price it. Sorted cheapest first. Until then the table below shows 1,000 English words in and 1,330 tokens out.
| # | Model | Provider | Input $/1M | Output $/1M | Cost |
|---|---|---|---|---|---|
| 1 | Qwen 3 8B | Alibaba | $0.05 | $0.2 | $0.0003 |
| 2 | GPT-6 Luna | OpenAI | $0.1 | $0.5 | $0.0008 |
| 3 | Claude Haiku 5.5 | Anthropic | $0.1 | $0.5 | $0.0008 |
| 4 | Qwen 3 32B | Alibaba | $0.15 | $0.6 | $0.0010 |
| 5 | Mistral Small 4 | Mistral AI | $0.15 | $0.6 | $0.0010 |
| 6 | Llama 4 Scout | Meta | $0.18 | $0.59 | $0.0010 |
| 7 | Llama 4 Maverick | Meta | $0.27 | $0.85 | $0.0015 |
| 8 | GPT-5.6 Luna | OpenAI | $0.2 | $1.2 | $0.0019 |
| 9 | GPT-5.4 nano | OpenAI | $0.2 | $1.25 | $0.0019 |
| 10 | DeepSeek V4.1 Flash | DeepSeek | $0.3 | $1.2 | $0.0020 |
Most expensive for the same job: Claude Fable 5.1 $0.080, GPT-6 Astra $0.080, Claude Fable 5.2 $0.064.
How the estimate works
The counter averages two rules of thumb: about 4 characters per token and about 1.33 tokens per English word. Averaging them smooths out text with very long or very short words. It is not a tokenizer, so treat the result as a planning number, not an invoice.
Code, JSON, URLs and numbers split into more tokens than prose. Arabic and other non-Latin scripts cost more per word, so use the Arabic token counter for those.
What the cost does not include
- Prompt caching. Cached input is billed at a fraction of the input rate. Model it with the prompt caching calculator.
- Batch discounts on models that support a batch API.
- Long-context tiers. Some models raise the rate above a token threshold. Check the model page.
Frequently asked questions
How many tokens is my text?
Paste it into the box above. The counter estimates tokens from characters and words, which lands within about 10 to 15 percent of the real tokenizer for English prose. Code, numbers and non-English text usually produce more tokens per word.
Is the token count exact?
No. Each provider uses its own tokenizer, so any browser-side counter is an estimate. For billing-critical numbers, send a sample to the provider's token-counting endpoint and compare it with this estimate.
Is my text uploaded anywhere?
No. The count and the cost table are computed in your browser. The page only downloads the public pricing file; your text never leaves your device.
How is the cost calculated?
Cost = input tokens x input price + output tokens x output price, using the per-million-token list prices in our open pricing dataset, verified December 2026. Cached and batch discounts are not applied here.