You changed nothing. Same system prompt, same tool definitions, same user message. Then you moved to a newer model and the same request started costing more. Anthropic’s docs explain one version of this: Claude 4.7 and later models and Claude Mythos Preview “use a newer tokenizer,” and “The same input text produces approximately 30 percent more tokens than on earlier models.”
That sentence is the whole argument against shopping by price per million tokens. A token is not a fixed unit of text; it is whatever the model’s tokenizer decides to cut, and each provider cuts differently. All three providers document their own counting rules, and the numbers below are what those rules mean for a prompt you actually send.
Counts from the old model stay with the old model
When the tokenizer changes, your text lands on different boundaries. Anthropic adds that “The exact increase depends on the content and workload shape,” and the docs say under “Supported models”: “Recount prompts against the model you plan to use rather than reusing counts measured against earlier models.”
Here is the arithmetic on the documented 30 percent. A prompt that measured 200,000 tokens on an older model lands around 260,000 on the new tokenizer. In a 1,000,000-token window, the room you have left drops from 800,000 to 740,000. If the per-token price held steady, your input bill would also move by 1.3x. This is the doc’s rough figure multiplied out, so treat it as a shape rather than a promise about your own prompt.
OpenAI’s help center frames the same problem more generally: “The same text can produce different token counts depending on the model, its encoding, and the language.” It also warns against the comparison people actually make at the pricing page: “A lower price per million tokens does not necessarily produce a lower total cost: models can tokenize the same text differently and generate different amounts of output or reasoning.”
“Four characters per token” is an English estimate
Most token explainers open with one token equals about four characters. That number comes with a language attached. OpenAI’s page lists “1 token is approximately 4 characters,” “1 token is approximately three-quarters of a word” and “100 tokens are approximately 75 words,” then says plainly: “These are estimates, not exact counts.” Its caveat matters if you work outside English: “other languages can have different relationships between characters, words, and tokens.” Gemini’s docs give the same shape of estimate: “about 4 characters,” plus an English word count of “60-80 English words.”
So we measured it. Using tiktoken’s o200k_base encoding, we counted a pair of sentences that say the same thing in Korean and in English, then a longer paragraph in both languages.
| Sample | Characters, words | Tokens | Tokens per character |
|---|---|---|---|
| Korean sentence | 28 chars, 8 words | 17 | 0.61 |
| Its English version | 58 chars, 11 words | 15 | 0.26 |
| Korean paragraph | 151 chars, 39 words | 88 | 0.58 |
| Its English version | 309 chars, 57 words | 62 | 0.20 |
(Measured with tiktoken 0.14.0 on o200k_base. The two English rows are translations of the Korean text above them.)

Two things show up at once. On one sentence pair, per character, Korean runs at 0.61 tokens against English at 0.26, more than double. On the paragraph pair, the same text comes out 88 tokens against 62, closer to 1.4x. Those two ratios come from different samples, so keep them apart rather than reading them as one figure. Count characters and the gap balloons; count meaning and it narrows. Either way, the four-characters rule is not the tool you want for a Korean corpus.
Whitespace does the same thing at a smaller scale. OpenAI’s page notes that “red, Red, and red do not contain identical text: the last example includes a leading space.” Counting the three in the same encoding gives three different IDs, 1291 for red, 7805 for Red and 3592 for red. All three count as a single token, but the model reads three different pieces, which is what the docs mean by “Spaces also affect how text is divided into tokens.” Those IDs belong to one provider’s encoding, so do not carry them to another vendor’s model.
All three providers will count for you, but they count different things
None of this requires guessing, because each provider exposes a counting call. What differs is the scope.
Anthropic’s count_tokens accepts the same structured input as message creation, including system prompts, tools, images and PDFs. The number it returns is “an estimate,” and the docs warn the real input count can differ by a small amount. Server tools such as web search and code execution, the MCP connector, and image or document blocks passed by URL or by file source all return an error. Counting is free but rate limited, at 5,000 requests per minute on the Start tier.
OpenAI splits it in two. For plain text, use the Tokenizer or tiktoken with encoding_for_model. For a whole request, use the Responses input-token counting API at POST /v1/responses/input_tokens, which is free and does not touch your inference quota. The docs note that a plain-text count may not include everything in a real request: “A plain-text token count does not necessarily include all tokens in an API request.” Message structure, tools, schemas, images and files all add input. What it will not tell you is how much output you get.
Gemini’s count_tokens returns input only. After a real call, the usage object breaks out input, output, thinking, cached and tool-use tokens, and passing previous_interaction_id counts both turns of a conversation.
Thinking tokens and video can land in the same window
Text is only part of what you pay for. OpenAI states that reasoning tokens “count toward output usage and are billed as output tokens,” which is why a short answer can use more tokens than its visible text suggests.
Gemini documents conversions for the other modalities: images at 384 pixels or smaller on both sides count as 258 tokens, and larger images are tiled into 768x768 pieces at 258 tokens each. Video is the messier one. The summary list says 263 tokens per second for static processing, while the video table in the same doc gives about 100 tokens per second at default low resolution and about 300 at high resolution, or roughly 6,000 and 18,000 tokens for a 60-second clip. Agentic processing brings a minute down to typically 1,500 to 3,000 tokens. Audio is 32 tokens per second, 320 for ten seconds. However you count video, a handful of clips can outweigh a long document.
The window also works differently by model. Gemini 4 models share 1,048,576 tokens across input, thinking and output, while Gemini 3 and 2.5 keep separate input and output budgets. On Gemini 4, synchronous responses cap output at 65,536 tokens by default, and “if your input tokens plus max_output_tokens exceed 1,048,576 tokens, the API automatically caps the output limit to the remaining space.” In a model that shares the window, input that fills most of it leaves less room for the answer.
Measure one real request, not the price table
Pick the request you send most often, the one with the system prompt and tool definitions attached rather than a bare question. Count it with the model ID you use now and with the model you are considering, then compare the input_tokens. That is the method Anthropic’s docs recommend, and it takes one call per model. Add room on the output side if you use a reasoning model, since a short answer can still hide a lot of billed tokens.
If the model shares one window, check the output limit separately. Input that fills most of the window leaves the answer capped to the remainder, and a trimmed answer means a second request and a second bill.