Skip to main content
Educational

Same Price, Different Bill. The Tokenizer Decides What You Actually Pay

Blockframe Labs Content Team4 min read

A token is not a standard unit

Every model card lists a price per million tokens, and every cost calculator multiplies that price by a token count. The multiplication only works if every model turns your text into the same number of tokens. They do not. Each model family trains its own tokenizer, the small program that cuts text into tokens before the model runs, and OpenRouter bills on each model's native token count. So the same prompt can be 128,000 tokens on one model and 176,000 on another, at the same sticker price.

A researcher named Sarath Kavuru tested exactly that on November 22. He took one real agent context, 503,269 bytes of the stuff an agent actually reads, and ran it through the tokenizers of 55 open-weight models priced on OpenRouter. The corpus was six segments: instructions from an AGENTS.md file, tool definitions for 51 search tools, a Python source file, a JSON tool result from the GitHub API, a README, and a shell log.

The spread is 37 percent at the same price

The same context came out between 128,484 and 176,040 tokens depending on the tokenizer. Forty-five of the 55 models landed within 10 percent of OpenAI's o200k_base tokenizer, which produced 133,105 tokens. The lightest was Cohere's Command A Plus at 128,484. The heaviest was Inkling 2 Small at 176,040, a ratio of 1.323 against the baseline.

Four models list at exactly $0.30 per million input tokens: Command A Plus, Motif 3, MiniMax M3, and Inkling 2 Small. They charge the same sticker and send bills 37 percent apart.

Structured text spreads the most

Not every kind of text is affected equally. Plain instructions stayed within 0.95 to 1.15 times the baseline on every tokenizer. The spread lives in structured text: JSON tool results and tool schemas. The JSON result from the GitHub API ran from 0.980 times baseline on Command A Plus to 1.390 on Inkling 2. Gemma 4 needed 25 percent more tokens than baseline for that one API response.

Inkling 2 is the outlier, and its published tokenizer file shows why. It has the same 200,058-token vocabulary and the same split regex as the first Inkling, whose counts matched the baseline on every segment. But it lacks merges for runs of punctuation. A short JSON fragment like {"type":"string"} costs 18 tokens on Inkling 2 against 10 on o200k_base, because each quote, colon, and comma becomes its own token. An agent resends its tool list on every turn, so that overhead repeats on every call.

Cheaper on paper can cost more in practice

Across all 1,485 price-ordered pairs in the test, 15 reversed: the cheaper model on paper cost more to read the same corpus. Gemma 4 26B lists at $0.0675 per million input tokens, 3.4 percent below GLM-5.3 at $0.0699. Reading the corpus costs $0.010405 on Gemma against $0.009357 on GLM-5.3, so the cheaper sticker comes out 11.2 percent more expensive. Inkling 2 Mini at $0.075 costs more than gpt-oss-120b at $0.09 on the same text: $0.013203 against $0.011979.

Keep the scale in view. Prices in this sample span 133 times, from $0.015 to $2.00 per million. Tokenizers span 1.37 times. Most of the time the price difference dwarfs the tokenizer difference. Tokenizers decide close calls, and close calls are where most model shortlists end up.

What it does to a monthly bill

The researcher ran the arithmetic for a busy agent: 1,000 tasks a day, each reading 50,000 o200k-equivalent input tokens, over 30 days, at the same $0.30 list price. Command A Plus comes out at $434.38 a month. MiniMax M3 at $447.48. Inkling 2 Small at $595.17. The figure is illustrative, not a measured invoice, and it leaves out output tokens, cached input discounts, and chat template overhead. The direction holds, because the same scaling applies to everything the model reads.

What the test does not cover

One corpus, one price snapshot, raw text only, and no closed models. A Chinese-heavy or prose-heavy agent will see different ratios. Chat templates and tool-call wrappers add per-message tokens that vary by model, and those were not counted. List prices are not invoices: batch, cached, and provider-specific prices were excluded. The researcher also assumes a provider bills with the tokenizer published on the model's Hugging Face page, and did not send paid requests to confirm the totals. Claude, Gemini, and GPT-6 tokenizers are not published, so the closed models are missing entirely.

Measure per model, then multiply

The fix is boring, which is why it works. Save one real agent turn: system prompt, tool list, and a typical tool result. Count it with each candidate's tokenizer, or send it once and read the usage field from the response. Put those per-model counts into the cost calculator instead of one shared number. Check the size of your tool JSON first, since tool schemas were the segment with the widest spread. And log input and output tokens from each model's own usage field, not from another model's count.

Per-token price is a sticker, not a bill. The bill is tokens times price, and the tokenizer decides the tokens. On a close call between two models at similar prices, the tokenizer is the difference between the cheaper model and the more expensive one. Measure it before you sign the shortlist.


BlockFrame Wire

Get Daily AI Trends

Weekly breakdowns of autonomous agents and live benchmarks.

Blockframe Labs Content Team

The content team at BlockFrame Labs writes about AI systems and services we actually ship: automation pipelines, agent infrastructure, and the web engineering behind them. Every guide comes from a system running in production.

Work with us

This blog runs itself. Our Blog OS publishes daily from Notion with zero manual edits, and we build the same system for clients.

Related Articles