Inference Pricing Falls as Provider Batching Ratios Converge
Inference prices keep sliding, and the reason is less mysterious than the marketing suggests. Most providers now run serving stacks built around the same two ideas: continuous batching and paged key-value cache management. Once batch ratios cluster in the same range, the cost floor clusters too. What follows is a wire-level look at why that convergence happened, where it stops, and what an API consumer should measure before switching providers.
The Batching Ratio Gap
Inference cost per token is mostly a function of how many requests a GPU can process at once without stalling. A naive server handles one request at a time, so a single decode step leaves most of the accelerator idle. Batching packs several requests into one forward pass, amortizing weight reads across them. The ratio of concurrent sequences to hardware capacity is the number that decides your bill.
Early serving frameworks batched statically: collect a group, run it to completion, then start the next group. That wastes time whenever one sequence finishes early and the rest wait. vLLM, the open-source framework from UC Berkeley's Sky Computing Lab, popularized continuous batching, which admits and retires sequences at every decode step rather than per group. The GPU stays busy, and the effective batch ratio rises.
The gap between naive serving and a well-tuned continuous batcher is large enough that it dominates most other optimizations. Providers that shipped continuous batching early could cut prices without touching margins. As the technique spread through open-source stacks, that advantage stopped being an advantage and became the baseline.
It helps to think in terms of what each decode step actually costs. Generating one token requires reading the model's weights, and for a dense model those reads are fixed regardless of how many sequences are in flight. At batch size one you pay the full read for a single token; at batch size thirty-two you pay the same read for thirty-two tokens. The arithmetic intensity of the operation climbs with the batch, which is why throughput per GPU is not a linear function of concurrency but something closer to a curve that flattens as the card saturates. The practical consequence is that the first few slots of batching capture most of the savings, and the last few capture very little while adding latency to everyone in the batch.
What PagedAttention Actually Changes
Before paging, a serving system reserved KV cache memory per request based on the maximum possible sequence length. A request that might reach 8,000 tokens got a contiguous 8,000-token block, even if it stopped at 300. That reservation fragmented memory and capped how many sequences could sit on a card at once.
PagedAttention borrows the operating-system idea of virtual memory. The KV cache is split into fixed-size blocks, and a block table maps each sequence's logical positions to physical blocks. Blocks are allocated on demand and freed when a sequence finishes. Memory waste from over-reservation drops, so more sequences fit, and the batch ratio climbs without new hardware.
The secondary effect matters as much as the first. Shared prefixes, such as a long system prompt reused across requests, can point multiple sequences at the same physical blocks through copy-on-write. That is why prompt caching shows up as a discount line on some provider bills. The vLLM project's own benchmarks reported substantial throughput gains over prior systems, and those numbers have been broadly reproduced across forks and vendor stacks.
Block size is a tuning knob with a real trade-off. Small blocks reduce internal fragmentation but multiply the number of table lookups the attention kernel performs, which costs latency. Large blocks do the reverse. Most stacks settle somewhere in the middle and let you change it, and the default they choose tells you something about which workload they optimized for.
Wire-Level Effects of Continuous Batching
Continuous batching changes what the HTTP response looks like. Most providers expose an OpenAI-compatible chat completions endpoint, and under the hood a single decode loop interleaves tokens across many concurrent requests. With streaming enabled, each client receives server-sent events carrying its own token deltas, spliced from the shared loop. Non-streaming requests buffer the whole completion before replying.
Latency percentiles shift in ways that surprise people benchmarking with one request at a time. A single-request test measures an almost empty batch and looks wonderful. Under production concurrency, time-to-first-token grows because a new request may wait a decode step or two before admission, while inter-token latency can actually improve as the batch fills. Throughput and latency pull in opposite directions here, and the scheduler's admission policy picks the balance.
This is the trade-off providers tune per tier. Aggressive admission raises tokens per second per GPU and lowers unit cost, at the price of tail latency for interactive clients. Conservative admission protects the p99 and leaves silicon idle. A price cut often signals that a provider moved its default admission policy toward the aggressive side.
Prefill and decode have different cost profiles, and that split shows up at the wire. Prefill processes the whole prompt in one parallel pass and is compute-bound; decode emits one token per step and is memory-bandwidth-bound. A long prompt can stall the decode loop for every other sequence in the batch unless the scheduler chunks the prefill into pieces and interleaves them. Providers that chunk prefill show steadier inter-token latency under mixed traffic. Providers that do not show a latency spike every time a large prompt arrives, and it lands on unrelated requests.
Convergence in Provider Ratios
Open-source serving stacks have compressed the design space. vLLM, TensorRT-LLM, Text Generation Inference and SGLang all implement continuous batching with paged or block-based cache management, and all expose OpenAI-compatible APIs. When every provider runs roughly the same scheduler with roughly the same memory manager, their achievable batch ratios land in a similar band for similar hardware.
Quantization adds a second lever that is also converging. Serving models in 8-bit or 4-bit weights raises the number of sequences that fit per card, which raises the batch ratio again. The specific formats differ, but the direction is uniform, and providers pass a portion of the savings through as lower per-token prices.
Quantization is not free at the quality margin. Lower-bit weight formats can shift output distributions in ways that matter more for some tasks than others, and providers rarely advertise which format sits behind a given model name. If your application is sensitive to small changes in reasoning or formatting, treat a silent quantization change the way you would treat a silent model version bump: pin what you can, and re-run your evaluations when behavior moves.
That is why list prices across major providers have clustered rather than fanned out. Differentiation on raw cost per token is getting harder to sustain. A related piece on this site about firmware and driver signing across accelerator vendors makes a parallel point: the software layer is where the operational variance now lives, not the silicon.
Where Differentiation Remains
Long-context requests stress the cache in ways short prompts do not. A 100,000-token input occupies many blocks, and the scheduler has less room to admit concurrent sequences. Providers that handle long context well invest in cache eviction policies and prefix sharing that the smaller stacks skip. Pricing for long-context tiers stays visibly higher than for short prompts.
Multimodal inputs break the batching assumption outright. Images and audio encode to variable-length token sequences with preprocessing steps that do not map cleanly onto a decode loop. A provider serving vision models has to schedule prefill work separately, and the batch ratio for multimodal traffic is lower than for text.
Service-level guarantees constrain how aggressive a scheduler can be. A provider promising a tight latency ceiling cannot fill every batch slot, because a full batch is a slow batch for the last request admitted. Custom kernels and hand-tuned attention implementations still separate providers at the margins, and those margins are where premium tiers justify their price.
Reliability is the other axis that price convergence exposes. When unit costs are close, an outage or a rate-limit surprise costs you more than the difference in per-token rates. Ask prospective providers how they handle capacity during peak demand, whether rate limits are per-key or per-account, and what happens to in-flight streams when a node is drained. Those answers vary widely even among providers whose list prices sit within a few percent of each other.
Practical Steps for API Consumers
Benchmark time-to-first-token under your own concurrency, not with a single curl request. Replay a captured trace of your real traffic shape against two providers and compare the p50 and p95, because the single-request number tells you almost nothing about production behavior.
Test streaming against non-streaming on the same workload. Streaming exposes interleaving effects and gives you a truer latency picture, while non-streaming hides queueing behind a single response time that can look better or worse than it is.
Read the provider's documentation for batch-size hints, context limits and any prompt-caching discount terms. Those terms move your effective price more than the headline per-token rate, and they change without announcement.
Track your own token accounting rather than trusting the invoice summary. Prompt caching, retries, and truncated generations all distort the relationship between what you sent and what you were billed for, and the gap is usually discoverable in your own logs before it is discoverable in a support ticket.
Re-evaluate your provider choice quarterly against a fixed benchmark set. Convergence means the cheapest option shifts as stacks update, and a choice that was correct six months ago may no longer be. The maintenance burden behind open-source serving stacks is part of that churn, since scheduler behavior changes with each release.