What is an AI token?
A token is a small chunk of text — roughly 4 characters or ¾ of a word in English. Models read and write in tokens, and API providers bill you per million tokens processed.
Model input, output, and cached tokens across the major providers, then project the cost across thousands of requests. Everything runs privately in your browser.
Pick a provider and model, enter your token counts, and see the exact cost — plus projections for 1K, 10K and 100K requests.
Rates used: input 5/1M, output 30/1M, cached 0.5/1M (USD).
Enter values and press Calculate to see your estimated cost.
Paste or upload a document, choose your task, and estimate how much it costs to process across every model.
Character heuristic only: Chinese chars / 1.5 + other chars / 4. This is not any model's tokenizer. In a frozen three-prompt Gemini 3.7 Flash sample, Japanese was underestimated by 13.5%–25.6%. Read the experiment.
Based on 0 input + 0 output tokens.
| Provider | Model | Est. cost (USD) |
|---|---|---|
| OpenAI | GPT-5.6 Sol | $0.00cheapest |
| OpenAI | GPT-5.6 Terra | $0.00 |
| OpenAI | GPT-5.6 Luna | $0.00 |
| Anthropic | Claude Opus 5 | $0.00 |
| Anthropic | Claude Sonnet 5 | $0.00 |
| Anthropic | Claude Haiku 4.5 | $0.00 |
| Gemini 3.7 Flash | $0.00 | |
| Gemini 3.5 Flash | $0.00 | |
| Gemini 3.5 Flash-Lite | $0.00 | |
| DeepSeek | DeepSeek V4 Flash | $0.00 |
| DeepSeek | DeepSeek V4 Pro | $0.00 |
A quick primer on tokens, pricing mechanics, and how to keep your AI costs under control.
A token is a small chunk of text — roughly 4 characters or ¾ of a word in English. Models read and write in tokens, and API providers bill you per million tokens processed.
Input tokens are everything you send to the model (your prompt, context, and documents). Output tokens are what the model generates back. They are usually priced separately.
Generating text is more compute-intensive than reading it, so output tokens are typically priced 2–5× higher than input tokens. Long answers can dominate your bill.
Every character of a document becomes input tokens. A large report can be tens of thousands of tokens, and re-sending it on each request multiplies the cost quickly.
Use smaller or cheaper models for simple tasks, cache repeated context, trim prompts, summarize before analyzing, and cap output length. Compare providers before committing.
A token is a small unit of text that AI models process — roughly 4 English characters or three-quarters of a word. Providers charge per million tokens for both input and output.
Multiply your input tokens by the model’s input price per million, multiply your output tokens by the output price per million, add any cached-input cost, and sum them. This calculator does it automatically.
It depends on the document length and model. Paste your document into the Long Document Cost Analyzer above to estimate tokens and see the cost across GPT, Claude, Gemini and DeepSeek.
The lowest per-token row is not automatically the lowest-cost model for every task. Compare the dated rates, then measure retries, latency, tokenization, and task success for your workload.
In the manually reviewed reference dataset, listed DeepSeek models cost less per token than the listed OpenAI GPT models. Pricing changes often, so always verify the linked official pricing pages.
Comparable Claude models may cost more per token than Google’s Gemini Flash tier, while some Claude and Gemini Pro rates are closer. Check the reviewed date and linked official sources.
Token counts use a character heuristic (Chinese chars / 1.5 + other chars / 4), not any model's tokenizer. In a frozen three-prompt Gemini 3.7 Flash sample, absolute error ranged from 2.1% to 27.3%; all three Japanese prompts were underestimated by 13.5%–25.6%. Use the tool for rough budgeting, not billing-exact figures.
No. All text analysis happens entirely in your browser. Your pasted text and uploaded files are never sent to a server, uploaded, or stored anywhere.