Prices verified December 1, 2026

Home › Tools › Token counter

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.

Cost per request for your text, USD. List prices verified December 2026
#ModelProviderInput $/1MOutput $/1MCost
1Qwen 3 8BAlibaba$0.05$0.2$0.0003
2GPT-6 LunaOpenAI$0.1$0.5$0.0008
3Claude Haiku 5.5Anthropic$0.1$0.5$0.0008
4Qwen 3 32BAlibaba$0.15$0.6$0.0010
5Mistral Small 4Mistral AI$0.15$0.6$0.0010
6Llama 4 ScoutMeta$0.18$0.59$0.0010
7Llama 4 MaverickMeta$0.27$0.85$0.0015
8GPT-5.6 LunaOpenAI$0.2$1.2$0.0019
9GPT-5.4 nanoOpenAI$0.2$1.25$0.0019
10DeepSeek V4.1 FlashDeepSeek$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.

1.33Tokens per English word
~4Characters per token
49Models priced
0Bytes of your text uploaded

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

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.

Keep going