What is an AI token estimator?
An AI token calculator estimates how many tokens a prompt, response, document excerpt, or chat history may use before you send it to a model. That makes it useful for early planning: you can measure prompt size here, then move the result into the AI API Cost Calculator to estimate request-level and monthly spend.
Tokens are the small units AI models read and generate. A token can be a character, a short word, part of a longer word, punctuation, or whitespace. API providers meter tokens because token volume is a closer proxy for model work, so token volume is the starting point for any AI budget.
Working with a spreadsheet or many prompts? Count tokens in a CSV or batch file.
How to calculate tokens for OpenAI, Claude, and Gemini
Start by separating the content you send from the content the model generates. For OpenAI, Claude, Gemini, and other APIs, input tokens usually include system instructions, user messages, chat history, retrieved context, and uploaded text. Output tokens are the answer the model writes back. Provider tokenizers can differ, so treat this page as a fast planning estimate and verify production-sensitive workloads against official tools and pricing pages.
For provider-specific cost context, compare the current model list in the AI Model Pricing Comparison, review OpenAI API pricing, or check Anthropic Claude API pricing before making a launch budget.
Token count vs API cost
Token count tells you the size of the work. API cost depends on the model price, how many input tokens you send, how many output tokens the model generates, and how often the workflow runs. A short prompt can still become expensive if it produces long answers at high volume, while a longer prompt may be acceptable when it improves accuracy and reduces retries.
For OpenAI API cost planning, measure the prompt, retrieved context, and expected answer here first. Then check whether current prices changed in the OpenAI API pricing change guide and move the token counts into the AI API Cost Calculator to estimate monthly spend.
Once you know the rough token range, use the Prompt Cost Optimizer to trim repeated wording and oversized context before those tokens become recurring spend.
- Token usage: measure the prompt, chat history, retrieved context, and expected response size before production traffic.
- Output costs: watch long answers, JSON responses, summaries, and multi-step agent outputs because generated tokens can be priced higher.
- API spend: move realistic token ranges into the API cost estimator to estimate cost per request, daily usage, and monthly API cost.
Words to tokens and tokens to dollars: quick reference
These tables use the same English planning ratio as the calculator's word mode: about 0.75 words per token, which sits between the 0.81 we measured for everyday English and the 0.66 for technical docs. Do not convert by characters: the common "one token is four characters" rule overcounts plain English and misses about half the tokens in JSON and CSV. Treat these tables as budgeting ranges, not exact tokenizer output; paste real text into the calculator above when the count matters.
Before you budget an agent that reads JSON or CSV, check the measured characters-per-token ratios for 11 kinds of text, including code and Chinese.
| Words | Estimated tokens |
|---|---|
| 100 words | 134 tokens |
| 500 words | 667 tokens |
| 1,000 words | 1,334 tokens |
| 5,000 words | 6,667 tokens |
| 10,000 words | 13,334 tokens |
| 100,000 words | 133,334 tokens |
| Tokens | Estimated words | Estimated pages |
|---|---|---|
| 1,000 tokens | 750 words | 1.5 pages |
| 8,000 tokens | 6,000 words | 12 pages |
| 32,000 tokens | 24,000 words | 48 pages |
| 128,000 tokens | 96,000 words | 192 pages |
| 200,000 tokens | 150,000 words | 300 pages |
| 1,000,000 tokens | 750,000 words | 1,500 pages |
What tokens cost in dollars
API prices are quoted per 1 million tokens, with output usually priced higher than input. The table below converts current standard list prices for the lowest-priced model in the calculator and the two calculator defaults; compare every model in the AI Model Pricing Comparison.
| Model | 1,000-word prompt (input) | 1M input tokens | 1M output tokens |
|---|---|---|---|
| Amazon Nova MicroLowest input price | $0.000047 | $0.035 | $0.14 |
| OpenAI GPT-5.4 miniCalculator default | $0.001 | $0.75 | $4.50 |
| OpenAI GPT-6.1 SolCalculator default | $0.0027 | $2.00 | $10.00 |
How this estimate works
The calculator counts words, digits, punctuation, and CJK characters separately and gives each its own token rate. We measured those rates against OpenAI's o200k_base tokenizer on English prose, code, CSV and JSON tables, and Chinese text; the total estimate for each type landed within about 5% of the real count. A flat 4-characters-per-token rule counted number-heavy CSV at about half its real size. Claude and Gemini use their own tokenizers, so treat the result as a planning number, not a bill.
Planning example
A 750-word English support article is about 1,000 tokens at this calculator's measured word rate; paste the real article to check it. If your app sends it with every request and generates a 300-token answer, each request may use about 1,300 tokens.
Worked examples
Example: 1,000 words to tokens
A 1,000-word English article came to about 1,240 tokens on OpenAI's o200k_base tokenizer in our measurement, and dense technical writing to about 1,530; headings, lists, numbers and code push it higher. If the same article is sent as retrieved context on every request, the token cost repeats every time the workflow runs. For budgeting, test a low, typical, and high-length example rather than relying on one clean sample.
Example: monthly chatbot token usage
Suppose a support chatbot sends a 700-token instruction, 1,200 tokens of retrieved help content, a 150-token customer message, and receives a 450-token answer. That is roughly 2,050 input tokens and 450 output tokens per reply. At 20,000 replies per month, the workflow uses about 41 million input tokens and 9 million output tokens before retries, escalation flows, or longer conversations are included.
Paste real prompts, retrieved snippets, onboarding messages, or customer support examples. Save typical low, medium, and high token counts, then use those ranges in the API Cost Calculator and AI Budget Planner instead of relying on a single best-case prompt.
How many tokens does a knowledge assistant for 5,000 employees use?
Short answer: about 550 million input tokens and 50 million output tokens a month in a typical rollout, and anywhere from roughly 140M to 1.8B input tokens depending on how many people actually use it. Usage, not head count, drives the number, so estimate it in four steps:
- Active users: not every employee asks questions every day. Start with 15% to 50% of head count on a workday.
- Questions per user: 2 to 8 a day is a common range for an internal help or policy assistant.
- Input per question: 800 tokens of system prompt, 3,000 tokens of retrieved document chunks (six chunks of about 500 tokens), 500 tokens of recent chat history and a 100-token question, so 4,400 input tokens. Paste one of your real retrieved chunks into the calculator above to check the 3,000 figure.
- Output per answer: about 400 tokens, or roughly 300 words.
| Scenario | Questions per month | Input / output tokens | Amazon Nova Micro | OpenAI GPT-5.4 mini | OpenAI GPT-6.1 Sol |
|---|---|---|---|---|---|
| Light750 users × 2/day | 31,500 | 139M / 13M | $6.62 | $160.65 | $403.20 |
| Typical1,500 users × 4/day | 126,000 | 554M / 50M | $26.46 | $642.60 | $1,612.80 |
| Heavy2,500 users × 8/day | 420,000 | 1,848M / 168M | $88.20 | $2,142.00 | $5,376.00 |
Input is about 90% of the tokens here, so the cheapest lever is the context you send, not the answer length. The system prompt is identical on every request, which makes it a good fit for prompt caching; check the discount for your model in the Prompt Caching Savings Calculator. Retrieving 3 chunks instead of 6 cuts input by about a third. To turn these numbers into a monthly budget with your own model and traffic, use the AI API Cost Calculator, and set team or department limits in the AI Budget Planner.
Move your prompt and response token counts into the API cost estimator to create a monthly API cost estimate.
Need the token cost basics first? Read the input vs output tokens guide to understand why generated response tokens can change API bills more than prompt size alone.
New to OpenAI billing? Learn whether a free unlimited OpenAI API key actually exists before estimating your usage.
Frequently asked questions
How do I estimate AI tokens?
Paste a real prompt, document excerpt, or chat transcript into an AI token estimator, choose a representative model family, and compare low, typical, and high-length examples before using the count for cost planning.
How many tokens are in 1,000 words?
On OpenAI's o200k_base tokenizer, 1,000 words came to about 1,240 tokens for everyday English prose and about 1,530 for dense technical writing. Code, numbers, tables and non-English text push the count higher, and other providers' tokenizers can differ.
How many words is 1 million tokens?
About 750,000 English words, or roughly 1,500 pages at 500 words per page, using the common planning ratio of 0.75 words per token. Code, tables, non-English text, and heavy punctuation usually fit fewer words into the same number of tokens.
How much does 1 million tokens cost?
It depends on the model and on whether the tokens are input or output. At current standard list prices, Amazon Nova Micro costs $0.035 per 1M input tokens and $0.14 per 1M output tokens; OpenAI GPT-5.4 mini costs $0.75 per 1M input tokens and $4.50 per 1M output tokens; OpenAI GPT-6.1 Sol costs $2.00 per 1M input tokens and $10.00 per 1M output tokens. One million tokens is about 750,000 English words, and output tokens usually cost several times more than input.
How do I estimate token consumption for a company knowledge assistant?
Multiply active users by questions per user per day and by workdays, then multiply that question count by the tokens in one question. Input per question is the system prompt, the retrieved document chunks, recent chat history and the question itself; retrieved context is usually the biggest part. For 5,000 employees with 30% asking 4 questions a day, that is about 126,000 questions and roughly 554M input plus 50M output tokens a month.
How do I convert token usage into API cost?
Separate input tokens from expected output tokens, choose the model price per 1 million tokens, then multiply each token total by its matching rate. For monthly planning, multiply the per-request estimate by request volume and active users.
Does Claude count tokens differently from OpenAI?
Yes. Claude, OpenAI, Gemini, and other providers use different tokenizers, so the same prompt can produce slightly different token counts across models.
How can I reduce token costs?
Remove repeated instructions, send only relevant context, cap output length, cache stable inputs where available, and route simple tasks to lower-cost models after quality testing.
Does this calculator send my text to an AI provider?
No. The calculator runs locally in your browser and does not send your pasted text to OpenAI, Anthropic, Google, or another AI provider.