Free tool

AI Token Calculator.See what a prompt will cost.

Paste a prompt to count its tokens, characters, words and reading time, then compare the cost on the lowest-cost model from each provider. Everything is counted in your browser.

Type or paste text to calculate stats.

Privacy note: no prompt data is sent to ModelRiver.

Estimated tokens use the rule of thumb characters ÷ 4, close to how many GPT and Claude tokenizers split English text. Text that isn’t English, code and rare words may tokenize differently; use your provider’s tokenizer for exact counts. If you accept analytics cookies, anonymous usage statistics may be collected.

Lowest-cost current model by provider

What your estimated tokens cost on the lowest-cost current model from each provider, as input and as output.

Open AI Pricing Calculator(opens in a new tab)

Each pick is the lowest-cost current model in the ModelRiver model catalog, not the cheapest model anywhere. Costs use standard on-demand prices per million tokens, synced with the catalog on July 27, 2026, and assume the output is as long as the input. Batch, reserved and committed-use discounts are not included.

What are AI tokens?

Large language models don’t read words the way people do. They read tokens: whole words, pieces of words or single characters. Each model’s tokenizer decides how a text is split.

The same prompt can be a different number of tokens on different models, so it can cost a different amount too.

Browse the model catalog to compare token prices across providers, or see how ModelRiver records the tokens of every request in analytics.

tokenization
  • token
  • ization
One way a tokenizer might split the word. Another model may keep it whole, or split it into three pieces.

Why token counts matter

Frequently asked questions

What are AI tokens?

AI tokens are the small pieces of text that large language models read and write. A token can be a whole word, part of a word, or a single character, depending on the model’s tokenizer.

How does this token calculator estimate tokens?

It divides the number of characters by 4 and rounds up. That is a common rule of thumb for English text and is close to how many GPT and Claude tokenizers split it.

Why do token counts matter?

Providers charge per token, context windows are measured in tokens, and longer prompts usually take longer to answer. The token count drives cost, speed and how much fits in one request.

Is the estimate exact?

No. Different models and tokenizer versions split text differently. Use this tool for quick planning, and your provider’s own tokenizer when you need an exact count.

Which text is the estimate least accurate for?

Text that isn’t English, code, and rare or specialized words often use more tokens than the 4-characters rule suggests. Check those with your provider’s tokenizer.

Does my text leave the browser?

No. Text is counted in your browser and is not sent to ModelRiver. If you accept analytics cookies, anonymous usage statistics may be collected.

Use these models in production with ModelRiver

Route requests to 150 models across 13 providers from one API, switch models without changing your code, see the tokens and cost of every request, and set spending limits per project and per model.