How Does Large Model Inference Get Down to Half a Cent per Call? A Technical Breakdown of Low-Priced LLM APIs
This article explains the technical and business factors behind the low per-call pricing of large language model APIs. It breaks down the cost structure of inference and reviews five cost-reduction paths: model design, inference engines, cluster scheduling, caching, and business strategy. It also offers practical guidance for developers comparing API prices or considering self-hosted inference.
1. Starting From “Half a Cent per Call”: Low Prices Are More Than a Marketing Tactic
Recently, the API pricing published by a Chinese large model provider sparked wide discussion. A complete search-augmented question-answering call was priced as low as about half a fen (RMB 0.005). At first glance, the number is hard to believe. Large model inference runs on thousands of high-performance GPUs operating continuously, and electricity, data center space, hardware depreciation, and operations staff are all real costs. Why can some platforms charge high prices for similar capabilities while others push prices this low?
For developers and technical decision-makers, this question cannot stop at guessing whether a provider is selling below cost. Low prices usually rest on a complete chain of cost-reduction techniques. Understanding that chain helps assess whether a service can be sustained. It also offers a reference framework for building self-hosted inference or choosing a cloud inference product. This article examines the cost structure of large model inference and its cost-reduction paths across five areas: the model, the inference engine, the cluster, caching, and business strategy.
2. The Cost Ledger: Where the Money Goes
Before discussing how to save, we need to know where the money goes. Inference costs fall into four main categories:
- Hardware: Purchasing or leasing GPUs is the largest expense. Inference clusters are usually billed by GPU-hour. The amortized cost of a high-end inference card, plus data center hosting, can reach tens of RMB per hour.
- Power and operations: Electricity, cooling, network bandwidth, and the site reliability engineering (SRE) staff needed to keep the cluster highly available.
- Software efficiency: On the same card, an unoptimized inference framework may deliver only half or less of the throughput of an optimized one. This is a hidden cost. Low hardware utilization means paying for waste.
- Idle capacity: Traffic has peaks and troughs. Poor scheduling leaves large amounts of compute idle overnight, and idle compute is still billed.
This ledger shows that low prices do not come from cutting one line item. Every item has to be pushed to its limit.
3. Path 1: Slimming Down the Model
Inference cost is directly tied to parameter count and activation volume. Common industry practices include:
- Architecture changes that reduce activation cost: Mixture-of-Experts (MoE) designs have a very large total parameter count, which supports a high capability ceiling. Each token, however, activates only a small subset of expert networks. This sharply reduces the FLOPs per forward pass, so the same compute budget can serve many more requests.
- Weight quantization: Reducing weights from 16-bit to 8-bit precision, or lower, shrinks memory footprint and memory access costs. Inference is typically memory-bound, so smaller weights translate directly into higher throughput. Quantization still requires careful evaluation of the trade-off between accuracy and speed. Pushing precision as low as possible is not automatically better.
- KV cache optimization: In long-context scenarios, the key-value cache consumes large amounts of GPU memory. Sparse attention, cache compression, and paged memory management can support longer contexts and higher concurrency without significant quality loss.
These model-level optimizations are one-time investments with ongoing returns. Once training is complete, every online inference call benefits.
4. Path 2: Squeezing the Inference Engine
Once the model is fixed, the engineering quality of the inference engine determines how much throughput a single card can deliver. Key techniques include:
- Continuous batching: Traditional static batching waits until every request in a batch finishes before accepting new ones, so short and long requests slow each other down. Continuous batching lets new requests join at any time and lets finished requests leave immediately. This can raise GPU utilization several times over.
- Speculative decoding: A small model drafts tokens quickly, and a large model verifies them in batches. Verifying several tokens costs far less than generating them one by one. This can speed up decoding by 2–3x without changing output quality.
- Operator fusion and compilation: Fusing matrix multiplication, normalization, activation functions, and other operators into a single kernel reduces memory reads and writes. Inference compilers automate graph optimization and kernel selection.
- Prefill/decode separation: Prefill is compute-bound, while decoding is memory-bound. The two stages have very different hardware needs. Deploying and tuning them separately lets each type of hardware run the workload it handles best.
The following simplified pseudocode shows how continuous batching works:
# Pseudocode: core idea of continuous batchingrunning_requests = []while True:# Remove finished requests immediatelyrunning_requests = [r for r in running_requests if not r.finished]# Fill free slots with new requests as they arrivewhile len(running_requests) < MAX_BATCH:running_requests.append(queue.pop())# Run one forward pass per step over the active tokensstep_forward(running_requests)
A scheduling change this simple can be the key to doubling throughput.
5. Path 3: Cluster Scheduling and Scale
Beyond single-machine optimization, operational capability at the cluster level matters just as much:
- Peak shaving and valley filling: Training and inference workloads are scheduled together. Inference uses most of the compute during daytime peaks. At night, idle GPUs are switched to offline training or batch jobs, so every card is put to use. This is an important factor in how leading providers bring costs down.
- Spreading fixed costs at scale: Data center construction, operations systems, and monitoring and alerting platforms are relatively fixed investments. The more requests a provider serves, the less each call carries. This is why inference pricing often shows a rich-get-richer effect: larger providers have more room to cut prices.
- Domestic chips and heterogeneous deployment: Some providers are gradually combining multiple types of compute resources. This gives them more bargaining power over supply and further lowers the unit cost per token.
6. Path 4: Caching and Reuse
Many queries are highly repetitive. The industry commonly uses multiple layers of caching:
- Prompt prefix caching: Forward-pass results for repeated content, such as system prompts, few-shot examples, and long documents, can be cached and reused. Cache hits are billed at a much lower rate, or sometimes for free. For fixed-template applications, this can save more than 50% of input costs.
- Semantic caching: Semantically similar questions return a cached answer without calling the model. Hit rates are especially notable in retrieval-augmented generation (RAG) and search-augmented scenarios.
- Result caching and edge distribution: Final answers to popular questions are cached and served through a CDN, bringing their cost close to zero.
“Half-a-cent” pricing may rely on a high cache hit rate. Statistically, a substantial share of requests does not need full recomputation. When evaluating low-priced services, check the billing rules for each cache tier, because they vary widely.
7. Path 5: Business Strategy
Low pricing does not necessarily mean selling at a loss to buy market share:
- Customer acquisition: API calls are the first point of contact for developers. A low barrier to entry builds an ecosystem quickly. Once developers run their workloads on a platform, switching costs rise. Paid add-ons, such as longer context, higher concurrency, private deployment, and related cloud object storage and logging services, then become the source of profit.
- Passing on technical gains: When optimization lowers the actual unit inference cost to a tenth of the original or less, charging a small fraction of the old price still yields a margin. In this case, low prices simply reflect technical gains in the price.
- Competitive positioning: As model capabilities converge, price becomes the most visible differentiator. The first provider to cut prices can set the market’s anchor for what a “reasonable price” is.
Staying rational still matters. Whether an extremely low price can last depends on whether its cost structure has been genuinely optimized. Three signals help judge this: whether the provider publishes a stable service level agreement (SLA), whether it offers a clear multi-tier pricing system rather than only a promotional price to attract users, and whether it has enough diverse revenue to support its pricing.
8. Implications for Developers and Businesses
Understanding the technical logic behind low prices leads to several practical recommendations:
- Compare total cost, not unit price: Input and output pricing, cache-hit discounts, context length tiers, and concurrency limits all affect the actual bill. Run a cost simulation with your own typical requests before deciding.
- Use caching
