LLM Inference Pricing Comparison: What a Token Really Costs

LLM Inference Pricing Comparison: What a Token Really Costs

Why does the same prompt cost a fraction of a cent on one model and several cents on another? Ask five teams what they pay for large language model inference and you will get five different numbers, often for workloads that look identical on paper. The gap is not random. It comes from how providers count tokens, how they price input versus output, and how discounts quietly reshape the bill.

This guide breaks down the pricing structures behind hosted LLM inference, compares the headline rates that defined the market through 2024 and 2025, and explains why the cheapest per-token price rarely means the cheapest task. Treat every figure here as a snapshot. Prices move fast, and the method matters more than any single number.

Why per-token pricing became the default

Hosted inference is almost always billed per token, split into input tokens (your prompt) and output tokens (the model’s reply). Output is consistently priced several times higher than input, because generating text is more compute-intensive than reading it. That asymmetry is the first thing to internalize: a workload that produces long answers costs far more than one that mostly consumes context.

The second thing is that token counts are not portable between model families. The same paragraph can tokenize differently depending on the tokenizer a model uses, so a nominal per-token price is not a like-for-like comparison until you normalize it. The practical fix is to measure cost per task (one support ticket resolved, one document summarized) rather than cost per token. That single shift in framing prevents most bad purchasing decisions.

2024–2025 prices at a glance

2024–2025 prices at a glance

The table below captures launch-era list prices per million tokens. These numbers were accurate when the models launched, but several were revised within months, so verify current rates before you budget.

Model (launch) Input per 1M tokens Output per 1M tokens
GPT-4o (May 2024) $5.00 $15.00
GPT-4o mini (Jul 2024) $0.15 $0.60
Claude 3.5 Sonnet (Jun 2024) $3.00 $15.00
Claude 3 Haiku $0.25 $1.25
Gemini 1.5 Flash (May 2024, under 128K context) $0.35 $1.05

Two patterns jump out. First, the spread between frontier and small models is enormous, often 20 to 30 times on input. Second, output pricing clusters around $15 per million tokens at the top tier, which means the output-heavy parts of your workload dominate the bill. A model that looks cheap on input can still be expensive if it rambles.

Context length is a pricing tier, not a feature

Long context windows are marketed as a capability, but they are also a billing mechanism. Several providers apply higher per-token rates once a prompt crosses a threshold, commonly 128K or 200K tokens. Gemini’s pricing has used this tiered structure, and Anthropic has applied similar long-context premiums on some models.

In practice, this punishes exactly the use cases that long context enables: feeding entire contracts, codebases, or call transcripts into a single request. A team that dumps 150K tokens of context into every call may pay a premium rate on the whole request without realizing it. The fix is unglamorous but effective: retrieve only the relevant chunks, and reserve full-context requests for cases where they genuinely change the answer. If you are sizing infrastructure around these workloads, it helps to understand why memory capacity matters for inference planning, since context length drives memory as well as price.

Batch processing: the easiest discount to capture

Asynchronous batch APIs are the most straightforward cost lever available. OpenAI’s Batch API, announced in April 2024, offers roughly 50% off standard rates for jobs completed within 24 hours. Anthropic’s Message Batches API offers a similar discount. The trade-off is latency: you give up real-time responses in exchange for half price.

That is a great deal for evaluation runs, backfills, content classification, and overnight report generation. It is a terrible deal for anything a user is waiting on. Choosing between batch and real-time inference is really a question about whether a human is watching, and the answer determines which price sheet applies. Teams that route every request through the real-time endpoint are leaving money on the table for no reason.

Prompt caching and the economics of repetition

Prompt caching targets a different waste: paying full price to re-read the same instructions on every call. Anthropic introduced prompt caching in 2024, billing cached input tokens at a fraction of the standard input rate. OpenAI added automatic prompt caching in October 2024, applying discounts to repeated prefixes.

Caching rewards a specific architecture: a long, stable system prompt or reference document followed by a short, variable user query. It rewards almost nothing if your prompts change completely on every request. Before assuming caching will cut your bill, look at your actual prompt structure. If the shared prefix is under a few hundred tokens, the savings may be marginal. If you are pasting a 20-page policy document into every call, caching is close to free money.

Self-hosting and third-party hosts change the math

Open-weight models such as Llama 3 and Mistral can run on owned or rented GPUs, where the cost driver is GPU-hours, not tokens. That makes direct comparison with hosted APIs genuinely hard. A self-hosted deployment has a fixed cost floor whether you serve one request or ten thousand, so the effective per-token price depends entirely on utilization. Low utilization makes self-hosting look expensive; high, steady utilization can beat API pricing substantially.

Third-party inference hosts often undercut first-party API prices for open-weight models, but they vary in latency, throughput, and reliability. A cheaper per-token rate with unpredictable tail latency can cost more in user trust than it saves in compute. When you evaluate these offers, treat a cloud pricing update as something to audit rather than accept, because discount structures and rate cards change quietly.

Where the comparison breaks down

Three methodological traps account for most misleading comparisons.

  • Tokenizer variance. Different model families split text into different token counts. Normalize by measuring tokens per word for your own content before comparing rates.

  • Discount mechanics. Batch, caching, and committed-use discounts work differently and stack differently. A headline rate that ignores them overstates real cost.

  • Workload shape. Input-heavy and output-heavy workloads rank providers differently. Build a cost model from your own prompt and completion ratios, not from a generic average.

There is also a measurement problem underneath all of this. If you cannot measure latency and cost per request reliably, you cannot tell whether a cheaper model is actually cheaper once retries, timeouts, and fallbacks are included. Learning how to measure inference latency end to end is a prerequisite for any honest pricing comparison, because cost and performance are two views of the same system.

A practical checklist before you switch providers

Most teams that regret a model migration regret it for operational reasons, not price reasons. Run through this before signing anything:

  • Benchmark on your own data. Pull 200 real requests, run them through both candidates, and compare total cost and quality side by side.

  • Separate input from output. Calculate your actual input-to-output token ratio. If output dominates, the output rate is your real price.

  • Check the context tiers. Confirm which rate applies at your typical prompt length, not at the demo length.

  • Model the discounts you will actually use. Batch and caching only help if your workload fits their shape.

  • Include failure costs. Retries, rate-limit backoffs, and fallback models all add to the real bill.

  • Set a review date. Put a calendar reminder to re-check pricing quarterly, because list prices move.

A useful framing for all of this is to treat inference as an architecture decision rather than a shopping decision. The AI inference architecture you choose, including routing, caching, and batching layers, determines your cost far more than the per-token rate on any single model card.

Conclusion

LLM inference pricing looks like a simple number and behaves like a system. The headline per-token rate is only the entry point; context tiers, output weighting, batch discounts, caching, and tokenizer differences all push the real cost up or down. The teams that spend least are rarely the ones chasing the lowest advertised rate. They are the ones who measured their own workload, routed requests to the right endpoint, and rechecked the math when prices changed.

Start with cost per task. Benchmark on real traffic. Capture the discounts your workload actually fits. Do that, and the comparison stops being confusing and starts being useful.

Frequently asked questions

Why is output more expensive than input in LLM inference pricing?

Generating tokens requires sequential computation, with each new token depending on the ones before it, while processing input can be parallelized. That structural difference makes generation more compute-intensive, so providers charge several times more per output token. For workloads with long answers, the output rate is the number that matters most.

Are the prices in this article still current?

Probably not in every case. The figures reflect launch-era list prices from 2024 and 2025, and several providers revised rates within months. Treat them as a starting point for understanding structure, then verify current rates directly with each provider before you build a budget.

Does a cheaper per-token model always cost less overall?

No. A model with a low per-token price can cost more per task if it needs longer prompts, produces more verbose output, or requires retries. Tokenizer differences also mean the same text becomes different token counts across model families. Compare cost per completed task, not cost per token.

How much can batch processing actually save?

Batch APIs from major providers have offered roughly 50% off standard rates for asynchronous jobs completed within about 24 hours. The exact discount varies by provider and model. It is the simplest discount to capture, but only for work where no user is waiting on the response.

Is prompt caching worth the engineering effort?

It depends on your prompt structure. Caching pays off when you repeatedly send a long, stable prefix such as a system prompt or reference document. If your prompts change entirely on each call, or the shared prefix is short, the savings may not justify the added complexity.

Can self-hosting open-weight models beat API pricing?

Sometimes, but only at high, steady utilization. Self-hosted inference is billed in GPU-hours, so the effective per-token cost falls as utilization rises and looks poor when traffic is spiky. Model your expected load honestly before assuming self-hosting is cheaper than a hosted API.

The pricing tables in this article are a snapshot, and the structural lessons outlast them. Rates move, new tiers appear, and providers quietly retire the discounts that made a migration attractive. What does not change is the arithmetic: cost per task, measured on your own traffic, with your own input-to-output ratio and your own retry rate. Build that measurement once, keep it current, and every future price change becomes a routine update rather than a fresh research project. The providers that win your business next year will not necessarily be the cheapest today; they will be the ones whose pricing structure matches how you actually call them. Choose accordingly, and revisit the decision on a schedule rather than in a panic.

One last discipline: keep a simple cost log per endpoint, recording tokens in, tokens out, latency, and retries for each workload. After a month it becomes the most reliable pricing document you own, more relevant than any published rate card. When a provider announces a change, you can price its real impact in minutes instead of re-running the whole evaluation. That habit, more than any single discount, is what keeps inference spending under control as models and rate sheets keep moving.

Latest articles

Scroll to Top