Own Weights

LLM API pricing comparison: why tokenizers skew it

An LLM API pricing comparison done fairly: count tokens per provider, test non-English and code text, and compare cost per task, not a price table.

Updated

To compare LLM API pricing fairly, send the same real inputs to each model, count the tokens each one bills, and apply current list prices. Compare the cost of one finished task, not the price per million tokens, because each tokenizer cuts the same text into a different number of tokens. The cheapest price per token can still be the most expensive per document.

The sections below cover each step and the places where comparisons go wrong.

Are tokens the same across models?

No. A token is a piece of text chosen by a tokenizer, and each provider uses its own. Hypothetical: one paragraph is 300 tokens on one model and 360 on another. Tokenizers also differ on spaces, punctuation, numbers and uncommon words, so a price per token only means something once you know how many tokens your text becomes. For the basics, read what is a token.

LLM cost for non-English text and code

Many tokenizers are built on mostly English text. Text in other languages, and text in scripts that are less common in training data, often splits into more tokens for the same meaning. Code is different again: identifiers, brackets, indentation and JSON keys each take tokens of their own. A German contract, a Hindi support ticket and a Python file can cost more per word than an English memo, and the size of the gap depends on the tokenizer, not on the price list.

Count with each provider’s own tokenizer or token-counting tool where it has one. Test with a sample of the non-English or code inputs you actually receive. A sentence typed for the test tells you very little.

How to compare token prices across providers

  1. Pick one task and collect real inputs for it, including the languages and file types you see in production.
  2. Count input and output tokens for each provider on that same sample.
  3. Multiply by current list prices, input and output separately. Output tokens usually cost more, which is why input vs output token cost matters. Check each provider’s current pricing page, since we do not list other vendors’ prices here.
  4. Add any reasoning tokens the model bills.
  5. Score the outputs on your own test set. A cheap answer that is wrong is not cheap. Our pricing table puts exam scores beside cost for that reason.

Discounts can change the result. Anthropic’s Batch API is half price, so a job that can wait belongs in a different column of your comparison.

Cost per task vs cost per token

Cost per token tells you what a unit of text costs. Cost per task tells you what one finished job costs. That includes long prompts, output length, retries, and the documents the model gets wrong and a person has to fix. Finance usually needs the second number. The document version of this idea is in why cost per document beats cost per token.

How to score the outputs on your own files

Step 5 is where most price comparisons cut corners. Divide each model’s bill for the same checked sample, long inputs and other languages included, by its number of correct results, so a cheap model that gets more wrong shows its real price. The full method is in how to build a test set.

Own Weights fine-tunes an open-weight model for one high-volume task, tests it against the current model on the customer’s own data, and serves it in the customer’s cloud account or on-prem. The customer owns the weights.

When a cheaper token price is the wrong choice

Fine-tuning is not the right call for every workload. A fine-tuned model does one job well, and it does not do the rest. If your task changes every few weeks, if your volume is low, or if you cannot build a test set from your own data, a hosted frontier API is often the better buy. On a narrow task with good data, a fine-tuned model can beat a frontier model. It does not always win, so check on your own data before you switch.

Our free AI cost audit is the first step. It maps your AI spend by task from your code and invoices, so the comparison uses your workload instead of a benchmark. If you want to talk through the numbers afterward, ask for a call.

Questions

What is a fair LLM API pricing comparison?

A fair comparison sends the same real inputs through each model and bills them at current list prices. The number to compare is what one finished task costs. Score the outputs against your own test set so the cheapest model is also one that gets the answer right.

Are tokens the same across models?

Usually not. Two providers can bill the same prompt as different token totals, so the price per token alone does not settle the comparison. Use the provider's own counting tool where one exists.

Does token count change in different languages?

Yes, usually. Text outside English often takes more tokens to say the same thing, and the gap varies by tokenizer. Test with a sample of the languages you actually process.

Is cost per task better than cost per token?

For a buying decision, usually yes. It counts the retries and human rework that a per-token rate leaves out. Keep cost per token as an input to that estimate, not the answer.

How do I compare AI API prices across providers?

Take one task, run a real sample through each provider, and multiply the billed input and output tokens by each provider's list prices. Apply any discount that fits your workload before you decide. Confirm the rates on each provider's site, because they change.