---
title: "Token Counter for GPT, Claude, Gemini and More | Straitly"
description: "Free token counter: paste text to count tokens for 25 models from 11 makers, with exact GPT counts, measured estimates for the rest, and the cost."
url: https://straitly.ai/token-counter
updated: 2026-12-04
publisher: Straitly (https://straitly.ai)
---

# Token counter

Paste text below to count its tokens for 25 models from 11 makers. GPT counts are exact [\[2\]](#src-2) [\[3\]](#src-3); the others are estimates from ratios measured against each model's own token counts on 4 December 2026 [\[6\]](#src-6). Each row also shows how much of the context window the text uses and what it costs at the maker's list price and at the Straitly price [\[7\]](#src-7) [\[8\]](#src-8). Your text stays in your browser.

Updated 4 December 2026

[Count tokens](#counter) [See the measured ratios ](#ratios)

## Count tokens and cost for your text

GPT counts are exact; other rows are estimates for the text type shown. Costs are in USD at each model's base input and output rate.

## How to use the token counter

Three steps. Nothing to install and no sign-up. For a chat request, count the system prompt, the messages and any tool definitions together, since all of them bill as input tokens.

1. Paste your text
A prompt, a system message, a document or code. Or load a sample to see how the kind of text changes the count.
2. Read the counts
GPT tokens are exact. Every other model shows an estimate for the text type picked, which is detected for you and can be changed.
3. Check fit and cost
Add the output tokens you expect and your monthly requests, then switch between this text, a month and the price per 1M tokens.

## How many tokens does each model use for the same text?

Tokens each maker's model counted for every 100 GPT tokens, measured on 4 December 2026 on five sample texts of 248 to 449 GPT tokens [\[6\]](#src-6). Outside Anthropic, English lands at 100 to 102, code and JSON run higher, and Chinese runs under 95 on 8 of 9 makers. Claude models count more tokens than GPT on every kind of text (128 to 175).

Tokens per 100 GPT tokens

| Maker                                         | English | Code | JSON | Spanish | Chinese |
| --------------------------------------------- | ------- | ---- | ---- | ------- | ------- |
| OpenAI Exact, o200k\_base                     | 100     | 100  | 100  | 100     | 100     |
| Anthropic Measured on Claude Opus 5.5         | 134     | 153  | 128  | 175     | 140     |
| Google Measured on Gemini 4 Hydrogen          | 100     | 123  | 122  | 99      | 80      |
| xAI Measured on Grok 4.7                      | 100     | 117  | 106  | 100     | 88      |
| DeepSeek Measured on DeepSeek V4.1 Flash 1017 | 102     | 107  | 103  | 117     | 78      |
| Qwen Measured on Qwen3.8 Flash                | 100     | 108  | 118  | 101     | 76      |
| Z.ai Measured on GLM-5.3                      | 100     | 100  | 104  | 108     | 80      |
| Moonshot Measured on Kimi K3.1 Pro            | 100     | 101  | 101  | 129     | 72      |
| MiniMax Measured on MiniMax M3.1 Flash        | 100     | 100  | 101  | 96      | 72      |
| Mistral Measured on Mistral Large 4           | 102     | 101  | 101  | 99      | 103     |
| Meta Measured on Muse Spark 1.3               | 100     | 100  | 101  | 98      | 80      |

The counter uses each model's own ratio; models from the same maker measured within a few points of each other. A ratio above 100 means more tokens, so a higher bill at the same price per token. Load the samples in the counter to see the same texts.

## What does a million tokens cost on each model?

The price the counter multiplies by. Maker list prices are each maker's own, from its pricing page on 4 December 2026 [\[9-19\]](#src-9), and the Straitly price is from Straitly's catalog on 6 December 2026 [\[7\]](#src-7). Thinking tokens bill at the output rate [\[20\]](#src-20).

USD per 1M tokens, input / output

| Model                                                                                                          | Count    | Context | Maker list price            | Straitly price   |
| -------------------------------------------------------------------------------------------------------------- | -------- | ------- | --------------------------- | ---------------- |
| [GPT-6.2 Sol](https://straitly.ai/models/gpt-6.2-sol) gpt-6.2-sol                                              | Exact    | 1.05M   | $2.00 / $10.00              | $1.20 / $6.00    |
| [GPT-6 Luna](https://straitly.ai/models/gpt-6-luna) gpt-6-luna                                                 | Exact    | 1.05M   | $0.10 / $0.50               | $0.06 / $0.30    |
| [GPT-6.1 Terra](https://straitly.ai/models/gpt-6.1-terra) gpt-6.1-terra                                        | Exact    | 1.05M   | $1.00 / $5.00               | $0.60 / $3.00    |
| [GPT-6.2 Astra](https://straitly.ai/models/gpt-6.2-astra) gpt-6.2-astra                                        | Exact    | 1.05M   | $8.00 / $40.00              | $4.80 / $24.00   |
| [Claude Opus 5.5](https://straitly.ai/models/claude-opus-5-5) claude-opus-5-5                                  | Estimate | 1M      | $4.00 / $20.00              | $2.40 / $12.00   |
| [Claude Fable 5.2](https://straitly.ai/models/claude-fable-5.2) claude-fable-5.2                               | Estimate | 1M      | $8.00 / $40.00              | $4.80 / $24.00   |
| [Claude Sonnet 5.5](https://straitly.ai/models/claude-sonnet-5-5) claude-sonnet-5-5                            | Estimate | 1M      | $2.00 / $10.00              | $1.20 / $6.00    |
| [Claude Haiku 5.5](https://straitly.ai/models/claude-haiku-5-5) claude-haiku-5-5                               | Estimate | 1M      | $0.10 / $0.50               | $0.06 / $0.30    |
| [Gemini 4 Hydrogen](https://straitly.ai/models/gemini-4-hydrogen) gemini-4-hydrogen                            | Estimate | 1.05M   | $1.50 / $7.50               | $0.825 / $4.125  |
| [Gemini 3.8 Flash](https://straitly.ai/models/gemini-3.8-flash) gemini-3.8-flash                               | Estimate | 1.05M   | $0.75 / $3.75               | $0.315 / $1.575  |
| [Gemini 4 Argon](https://straitly.ai/models/gemini-4-argon) gemini-4-argon                                     | Estimate | 1.05M   | $4.00 / $20.00              | $1.20 / $6.00    |
| [Grok 4.7](https://straitly.ai/models/grok-4.7) grok-4.7                                                       | Estimate | 524K    | $2.00 / $6.00               | $1.20 / $3.60    |
| [DeepSeek V4.1 Flash 1017](https://straitly.ai/models/deepseek-v4-1-flash-1017) deepseek-v4-1-flash-1017       | Estimate | 1.05M   | $0.30 / $1.20 peak list     | $0.09 / $0.36    |
| [DeepSeek V4 Pro 0813](https://straitly.ai/models/deepseek-v4-pro-0813) deepseek-v4-pro-0813                   | Estimate | 1.05M   | $1.32 / $3.96 peak list     | $0.792 / $2.376  |
| [Qwen3.8 Flash](https://straitly.ai/models/qwen3.8-flash) qwen3.8-flash                                        | Estimate | 1M      | $0.113 / $0.382 Global rate | $0.0678 / $0.229 |
| [Qwen3.5 Plus](https://straitly.ai/models/qwen3.5-plus) qwen3.5-plus                                           | Estimate | 1M      | $0.115 / $0.688 Global rate | $0.069 / $0.413  |
| [Qwen3.8 27B](https://straitly.ai/models/qwen3.8-27b) qwen3.8-27b                                              | Estimate | 1M      | No Global rate              | $0.123 / $0.88   |
| [GLM-5.3](https://straitly.ai/models/glm-5.3) glm-5.3                                                          | Estimate | 1.05M   | $1.40 / $4.40               | $0.416 / $1.3866 |
| [GLM-5.3-Flash](https://straitly.ai/models/glm-5.3-flash) glm-5.3-flash                                        | Estimate | 1.05M   | $0.15 / $0.50               | $0.0383 / $0.128 |
| [Kimi K3.1 Pro](https://straitly.ai/models/kimi-k3.1-pro) kimi-k3.1-pro                                        | Estimate | 1.05M   | $2.00 / $10.00              | $1.14 / $5.70    |
| [MiniMax M3.1 Flash](https://straitly.ai/models/minimax-m3.1-flash) minimax-m3.1-flash                         | Estimate | 1.05M   | $0.15 / $0.60               | $0.0855 / $0.342 |
| [Mistral Large 4](https://straitly.ai/models/mistral-large-4) mistral-large-4                                  | Estimate | 470K    | $0.70 / $2.10               | $0.399 / $1.197  |
| [Mistral Small 4](https://straitly.ai/models/mistral-small-2603) mistral-small-2603                            | Estimate | 262K    | $0.15 / $0.60               | $0.09 / $0.36    |
| [Muse Spark 1.3](https://straitly.ai/models/muse-spark-1.3) muse-spark-1.3                                     | Estimate | 1.05M   | $1.25 / $4.25               | $0.75 / $2.55    |
| [Muse Spark 1.3 Contributor](https://straitly.ai/models/muse-spark-1.3-contributor) muse-spark-1.3-contributor | Estimate | 1.05M   | $0.10 / $0.20               | $0.06 / $0.12    |

DeepSeek rows show DeepSeek's peak list price, the rate for its peak hours (01:00 to 04:00 and 06:00 to 10:00 UTC, Monday to Friday, except Chinese public holidays). Qwen rows show Alibaba's Global rate; Alibaba lists no Global rate for Qwen3.8 27B. Qwen3.5 Plus's Global rate is for prompts up to 128K tokens; longer prompts bill $0.287 / $1.72 up to 256K and $0.573 / $3.44 up to 1M. Context is the window in Straitly's catalog, rounded the same way on every row. 4 OpenAI models count exactly and 21 are estimates. Every provider's price for the same models is on the [LLM API price index](https://straitly.ai/llm-api-price-index).

[See all models ](https://straitly.ai/models)

## What the counter does not count

A count of the raw text is the floor of what a request bills. These add to it.

- Chat formatting: each message adds a few tokens for its role and wrapper. A one-message request to GPT reported 6 more prompt tokens than its text alone. [\[6\]](#src-6)
- Images, audio and files. Each maker counts them its own way; the Anthropic and Google count endpoints accept them [\[4\]](#src-4) [\[5\]](#src-5).
- Thinking tokens. Reasoning models write hidden tokens that bill as output, so a hard question can cost more output than the visible answer [\[20\]](#src-20).
- Mixed text. Estimates use one ratio for the whole text; a prompt that is half code and half prose lands between the two ratios in the table.
- Price tiers and cache. Some models bill a higher rate past a prompt length, and cached input bills less; the cost shown is the base input and output rate.

## Questions people ask about counting tokens

[Ask a question](https://straitly.ai/contact)

- ### How many tokens is a word?
In English, about three quarters of a word: OpenAI says 1 token is about 4 characters and 100 tokens are about 75 words, and Google says 100 tokens are about 60 to 80 English words. Code, JSON and other languages use more tokens per word. [\[1\]](#src-1) [\[5\]](#src-5) See [the measured ratios](#ratios).
- ### Are these token counts exact?
GPT counts are exact: they use o200k\_base, the tokenizer OpenAI maps GPT-5 and newer models to. Every other count is an estimate, the GPT count times a ratio measured on 4 December 2026 for that model and that kind of text. [\[2\]](#src-2) [\[6\]](#src-6) See [how the estimates are made](#method).
- ### Why does Claude count more tokens for the same text?
Claude models use their own tokenizer. Anthropic says its newer tokenizer produces about 30 percent more tokens than on earlier models, and on our samples current Claude models counted 1.28 to 1.75 times the GPT count. A price per token only compares fairly once you count tokens the same way. [\[4\]](#src-4) [\[6\]](#src-6) See [the ratio table](#ratios).
- ### How do I get an exact count for Claude or Gemini?
Call the maker's count endpoint with the full request: Anthropic's count\_tokens is free but rate limited and still returns an estimate, and Google's Gemini API has a count\_tokens call too. [\[4\]](#src-4) [\[5\]](#src-5)
- ### Is my text sent to a server?
No. The counter runs in your browser: the GPT tokenizer is downloaded to the page and the text you paste is counted there, never uploaded or stored. [\[3\]](#src-3)

## Sources

How this page is checked: Straitly, which sells API access to these models, built it. Ratios were measured on 4 December 2026; Straitly prices are from its catalog on 6 December 2026; the makers' token docs and pricing pages were read on 4 December 2026\. Last updated 4 December 2026\. If something here is out of date, tell us at [straitly.ai/contact](https://straitly.ai/contact).

1. \[1\] [What are tokens and how to count them?](https://help.openai.com/en/articles/4936856-what-are-tokens-and-how-to-count-them) OpenAI Help Center, checked 4 December 2026
2. \[2\] [tiktoken model to encoding map](https://github.com/openai/tiktoken/blob/main/tiktoken/model.py) OpenAI on GitHub, checked 4 December 2026
3. \[3\] [gpt-tokenizer](https://github.com/niieani/gpt-tokenizer) GitHub (MIT licence), checked 4 December 2026
4. \[4\] [Token counting](https://platform.claude.com/docs/en/build-with-claude/token-counting) Claude Developer Platform, checked 4 December 2026
5. \[5\] [Understand and count tokens](https://ai.google.dev/gemini-api/docs/tokens) Google AI for Developers, checked 4 December 2026
6. \[6\] [Token ratios measured through the Straitly API, see Method details](#method) Straitly, measured 4 December 2026
7. \[7\] [Straitly model catalog](https://straitly.ai/api/catalog) Straitly, read 6 December 2026
8. \[8\] [Straitly models](https://straitly.ai/models) Straitly, read 6 December 2026
9. \[9\] [OpenAI API pricing](https://developers.openai.com/api/docs/pricing) OpenAI, checked 4 December 2026
10. \[10\] [Anthropic API pricing](https://platform.claude.com/docs/en/about-claude/pricing) Anthropic, checked 4 December 2026
11. \[11\] [Google API pricing](https://ai.google.dev/gemini-api/docs/pricing) Google, checked 4 December 2026
12. \[12\] [xAI API pricing](https://docs.x.ai/developers/pricing) xAI, checked 4 December 2026
13. \[13\] [DeepSeek API pricing](https://api-docs.deepseek.com/quick%5Fstart/pricing) DeepSeek, checked 4 December 2026
14. \[14\] [Alibaba API pricing](https://www.alibabacloud.com/help/en/model-studio/model-pricing) Alibaba, checked 4 December 2026
15. \[15\] [Z.ai API pricing](https://docs.z.ai/guides/overview/pricing) Z.ai, checked 4 December 2026
16. \[16\] [Moonshot API pricing](https://platform.kimi.ai/docs/pricing/chat) Moonshot, checked 4 December 2026
17. \[17\] [MiniMax API pricing](https://platform.minimax.io/docs/pricing/overview) MiniMax, checked 4 December 2026
18. \[18\] [Mistral API pricing](https://docs.mistral.ai/inference/pricing) Mistral, checked 4 December 2026
19. \[19\] [Meta API pricing](https://dev.meta.ai/docs/pricing-rate-limits) Meta, checked 4 December 2026
20. \[20\] [Reasoning controls](https://straitly.ai/docs/reasoning) Straitly docs, checked 4 December 2026

**Method details**

Each of the five sample texts (English, code, JSON, Spanish and Chinese) was sent to every model twice through the Straitly API: once alone and once joined to a copy of itself with a blank line. The difference in prompt tokens the model's API reported is the text's token count with the request wrapper taken out. That count divided by the o200k\_base count of the same text is the ratio. GPT models matched o200k\_base exactly on all five, which is why their counts are shown as exact.

Read next: [LLM API Price Index](https://straitly.ai/llm-api-price-index) , [Prompt caching](https://straitly.ai/prompt-caching-savings) , [OpenAI API pricing](https://straitly.ai/openai-api-pricing) , [Gemini API pricing](https://straitly.ai/gemini-api-pricing) , [Claude API pricing](https://straitly.ai/claude-api-pricing).

## Call any of these models on one key.

One OpenAI-compatible key for the models above and the rest of the 118.

[Console](https://straitly.ai/app) [Talk to sales ](https://straitly.ai/contact)

---
Markdown version of https://straitly.ai/token-counter.

Ask a question about this page: https://straitly.ai/ask?q=your+question
