Token counter and
LLM cost calculator
Paste a prompt to count its tokens and see what it costs on GPT, Claude, Gemini and DeepSeek
Paste a prompt to compare.
Token breakdown
| Model | Tokens | Per request | Cost for 1,000 requests |
|---|
Works with your existing AI stack
Switch between GPT, Claude and other models without building a separate integration for each one.
Use the AI/ML API Python library with one API key, or choose the interface your application already uses.
Jev Router saved 48% on seven coding tasks
In this example, the models cost $0.25 with routing versus $0.49 with Claude Opus 5.5 on every task. The comparison excludes the routing fee.
See the seven tasks- 4Light
- 2Standard
- 1Heavy
How it works
Send your request to typesafe/jev-router. Jev assesses its difficulty and picks a model from the light, standard or heavy tier.
Why it costs less
Easy requests use lower-priced models. You pay the answering model’s token rate plus a small fee for the routing decision.
Four tasks used the light tier, two used the standard tier, and only the race-condition fix needed the heavy tier.
Why you need a token counter
Check whether a prompt fits. A model’s context window is measured in tokens, not words. Code, JSON, URLs and multilingual text can break the usual English rule of thumb.
Estimate what the job will cost. Count a typical prompt, choose an answer length, then compare the price for one call or a whole batch before you run it.
Frequently asked questions
Yes. No sign-up, no API key and no upload: the tokenizers load with the page and counting runs entirely in your browser, so nothing you paste leaves your machine.
No. Tokens are counted in your browser. Your text is not sent to a model or saved.
A small piece of text that an AI model reads and writes, often part of a word. Models charge per token, and each model splits the same text a little differently.
About 1.3 tokens per word in English prose, or roughly four characters per token. The ratio depends on the model’s tokenizer and on the text: code, JSON and URLs split into many short pieces, and non-Latin scripts and emoji tokenize far denser than prose. Paste the actual text instead of multiplying words by 1.3.
The text is tokenized in your browser, with the model’s own tokenizer where one is published and with a labeled proxy where it is not. The method for the selected model is shown under Token breakdown.
- GPT-5.5 — exact count. OpenAI’s published
o200k_basetokenizer, the same one OpenAI’s own token counter uses, run locally. - GPT-6.2 Astra — estimate.
o200k_baseas a proxy; marked Estimated and shown with ~. - Claude Fable 5.2 — estimate. A Claude-family proxy that scores word shapes instead of running Anthropic’s tokenizer; marked Estimated.
- DeepSeek V4 Pro 0813 and V4.1 Flash — exact count. DeepSeek’s published tokenizer files, with real token IDs.
- Gemini 3.1 Flash Lite — Google’s count method run locally: the Gemma 4 tokenizer the Google SDK’s token counter is built on.
Every count covers the pasted text only. Message formatting, a system prompt and tool definitions add tokens on top; the usage field in the API response is the number you are billed for.
- GPT-5.5 — exact count. OpenAI’s published
Tokens in your prompt plus the answer length you picked, multiplied by each model’s price per token on AI/ML API. Prices are from December 2, 2026. Real answers can be shorter or longer.
Top up your balance, then pay for what you use at provider rates. There’s zero markup on models and tools, and charges follow each model’s units, such as tokens, images or video duration. See pricing.
Paste a typical prompt and choose an answer length. For 1K, 100K or 1M identical requests, use the last column as shown. For another volume, multiply the Per request price by your request count. If the job has different types of prompts, estimate each group separately and add the totals.