FREE TOOL · RUNS IN YOUR BROWSER
AI token counter and API cost calculator
Paste a prompt and see how many tokens it is and what it costs on Claude, GPT and Gemini, per request and per month.
- Characters
- 272
- Words
- 46
- Claude tokensestimate
- 101
- OpenAI tokenscounted
- …
- Gemini tokensestimate
- 68
How many times your app sends this prompt, across all your users.
Runs in your browser. Nothing you paste is sent anywhere.
What it costs
Standard API prices per million tokens, checked October 22, 2026. Each provider links to its pricing page.
Claude
PricesEstimate. Anthropic doesn't publish Claude's tokenizer. It says a token used to be about 3.5 English characters, and that current models make about 30% more tokens from the same text.
- Claude Opus 5.5$4 in · $20 outPer request$0.01Per month$10.40
- Claude Sonnet 5.5$2 in · $10 outPer request$0.0052Per month$5.20
- Claude Haiku 5.5$0.10 in · $0.50 outPer request$0.00026Per month$0.26
- Claude Fable 5.1$10 in · $50 outPer request$0.026Per month$26.01
OpenAI
PricesCounted with o200k_base, the tokenizer OpenAI publishes for GPT-5 and GPT-4o. OpenAI hasn't published GPT-6's, so treat this as a close estimate for GPT-6.
- GPT-6 Astra$10 in · $50 outPer request…Per month…
- GPT-6.1 Sol$2 in · $10 outPer request…Per month…
- GPT-6 Luna$0.10 in · $0.50 outPer request…Per month…
Gemini
PricesEstimate. Google says a Gemini token is about 4 characters, and 100 tokens are about 60 to 80 English words.
- Gemini 4 Argon$2 in · $10 outGoogle has announced $4 in and $20 out from December 1, 2026.Per request$0.0051Per month$5.14
- Gemini 3.1 Pro Preview$2 in · $12 outPer request$0.0061Per month$6.14
- Gemini 3.8 Flash$0.75 in · $3.75 outGoogle has announced $1.50 in and $7.50 out from January 1, 2027.Per request$0.0019Per month$1.93
- Gemini 3.5 Flash-Lite$0.30 in · $2.50 outPer request$0.0013Per month$1.27
Building AI into an app? Keep the key off the phone.
NativeExpress ships AI chat, image generation and a scanner with the provider key on the server and a free quota with a Pro gate. Start from the template, get unstuck on a call, or have us build it with you.
DO IT YOURSELF, FASTER
The NativeExpress template
A running iOS and Android app with sign-in, payments, a database and AI built in. One payment, full source, lifetime updates.
GET UNSTUCK
Consulting call, $149
A working session on architecture, setup or your launch plan. You bring the problem, you leave with the decision made.
HAVE IT BUILT
Done for you
We build and launch the app with you, on your stores, under your brand. Start with a short call so we can scope it.
Book a 30-min intro callWhat is a token?
A model doesn't read words. It reads tokens: small chunks of text that can be a whole word, part of a word, a space or a single character. And that's what you pay for. Every API price is per million tokens, once for what you send in and once for what the model writes back.
I'm Robin. I've been coding since I was twelve, and the apps I build use AI features: Postel drafts social posts with AI, and NativeExpress, my React Native starter, ships AI chat, image generation and a scanner. So the question "what will this cost me per user" comes up for me all the time. This tool is how I'd answer it.
How many tokens is a word?
It depends on the model and the language, and every company counts a little differently:
- Gemini: Google says a token is about 4 characters, and 100 tokens are about 60 to 80 English words (Google's docs).
- Claude: Anthropic says a token used to be about 3.5 English characters, and that Claude 4.7 and later make about 30% more tokens from the same text (Anthropic's docs). So the same prompt is more tokens on Claude than you'd guess from the price alone.
- OpenAI: the counter above uses o200k_base, the tokenizer OpenAI publishes for GPT-5 and GPT-4o, so that number is a real count, not a rule of thumb.
English is the cheap case. Other languages, code and anything with lots of numbers or symbols usually take more tokens per word. If you're building for German or Spanish users, paste a real German or Spanish prompt above instead of guessing.
How to estimate your API bill
The math is simple: tokens in times the input price, plus tokens out times the output price, times how often it happens. That's what the calculator does. What people get wrong is what goes into it:
- Output costs more than input. On most models above, a token the model writes is five times the price of a token you send. A short prompt that asks for a long answer is mostly output.
- Chats resend everything. In a chat feature, every new message sends the whole conversation again. Message 20 costs a lot more than message 1.
- Your system prompt goes with every request. A long set of instructions you never see is paid for every single time.
- Thinking counts as output. Google's pricing page lists its output prices with thinking included, so a model that reasons before it answers bills that reasoning too.
There are ways to pay less. Anthropic lists cheaper prices for cached prompts and 50% off for batch requests that don't need an answer right away (Claude pricing). And a smaller model is often enough: for short replies, Haiku, Luna or Flash-Lite cost a fraction of the big models.
For an exact count on Claude, Anthropic has a token counting API that tells you how many tokens a message is on the model you plan to use.
The expensive mistake isn't the price per token
It's an API key inside your app. When an AI builds an app from scratch, the key often ends up right in the app, and anyone can pull it out in about five minutes. With that key they use your AI on your bill, and no calculator helps you then.
So in my apps, the AI calls happen on the server and the key never touches the phone. That's how NativeExpress ships its AI features, with a free monthly quota and a Pro gate the server enforces. If you're building your first app with AI, my course covers exactly this, from the basics to an app in the store.
FAQ
How do I count tokens?
Paste your text into the counter above. It counts OpenAI tokens with o200k_base, the tokenizer OpenAI publishes for GPT-5 and GPT-4o, and estimates Claude and Gemini tokens from the ratios Anthropic and Google publish. For an exact Claude count, use Anthropic's token counting API.
How many tokens is 1,000 words?
Roughly 1,250 to 1,700 tokens for English text, using Google's rule that 100 tokens are about 60 to 80 words. Claude's newer models make about 30% more tokens from the same text than older ones, so expect the higher end there. Paste your own text above for a real number.
Is this token counter accurate?
The OpenAI count is a real tokenizer count with o200k_base. OpenAI hasn't published GPT-6's tokenizer, so for GPT-6 treat it as a close estimate. Claude and Gemini don't publish their tokenizers, so those numbers are estimates from the providers' own ratios. Use them to plan, not to bill.
How much does 1 million tokens cost?
Between $0.10 and $10 for input on the models in this calculator, and between $0.50 and $50 for output. The cheapest are Claude Haiku 5.5 and GPT-6 Luna at $0.10 in and $0.50 out, and the most expensive are Claude Fable 5.1 and GPT-6 Astra at $10 in and $50 out, as of October 2026.
Why do output tokens cost more than input tokens?
Every provider prices writing higher than reading. On most models here, an output token costs five times an input token, so a short prompt with a long answer is mostly paid for by the answer.
Does my text get sent anywhere?
No. The counter runs entirely in your browser. The OpenAI tokenizer is downloaded to your browser once, and your text never leaves the page.
More free tools
- App cost calculatorWhat your app costs with an agency, a freelancer, an AI builder, an AI agent or a starter kit.
- App PRD generatorA product brief your coding agent can read, written in six questions.
- PRD templateA free one-page PRD template for apps, plus a version for AI coding agents.
- App icon generatorEvery iOS, Android and Expo icon size, a splash screen and the config.
- App Store screenshot generatorStore-ready screenshots with frames and headlines, at every required size.
- App name generatorBrandable names from a few keywords, in four styles.
- Claude Code pricing calculatorWhich Claude plan fits how you build, and what it costs.
