LLM API Price Increases Explained: Cost Structure, Architecture, and Model Selection
Newer LLM API pricing often shows a larger increase for output tokens than for input tokens, while cached-input pricing can remain much lower. This article explains the cost logic behind input processing, output generation, and cache hits; why autoregressive decoding, context growth, and memory bandwidth make output pricing sensitive; how sparse expert architectures separate total parameters from activated parameters; and how teams should evaluate total cost of ownership, cache hit rates, output length, and model selection instead of comparing unit prices alone.
1. The Real Issue Behind Price Changes: Not Simply a Price Increase, but a Shift in Cost Structure
Discussions about pricing for new-generation large model services have become more frequent. Some newer model services have increased their prices more noticeably than the previous generation, especially for output pricing, while cache-hit pricing remains relatively low. For example, in some pricing structures, input may be priced at 20 yuan per million tokens, output at 100 yuan per million tokens, and cache-hit input at 1 yuan per million tokens.
If we only look at this from the surface, it may be easy to interpret it as “the new generation model is more expensive.” However, the more important question is: why are the costs of input, output, and cache-hit requests so different? Why does inference pricing increase after a model’s capabilities improve?
For developers and enterprise users, understanding this question has at least three benefits.
First, it helps teams budget more accurately. Instead of only looking at unit price, teams should also consider average input length, average output length, cache-hit rate, and concurrency pressure in real business workloads.
Second, it helps architects understand the computation, GPU memory, memory bandwidth, and scheduling complexity behind model inference. This makes it easier to choose a model form that better fits the workload.
Third, it helps business teams determine whether a higher-priced model really brings corresponding benefits, rather than increasing cost without improving core business metrics.
From a technical perspective, the price of a large model service is not determined only by parameter size. It is jointly affected by input processing, output generation, cache reuse, concurrency scheduling, GPU memory usage, expert routing, service-level requirements, and operational support.
The price increase of a new-generation model is usually not caused by a single factor. It is often the combined result of model architecture, inference difficulty, resource costs, and commercial strategy.
2. Input, Output, and Cache Hits: Three Request Types Have Different Cost Logic
Large model services usually use tokens as the basic billing unit. From a user’s perspective, both input and output are text. However, in an inference system, they are handled differently.
Input mainly corresponds to prompt or context processing, while output corresponds to generating an answer token by token. Their resource consumption patterns are quite different.
1. Input Stage: One-Pass Processing, Focused on Parallelism and GPU Memory Usage
When a request enters a model service, the system first encodes and processes the input content. This stage is usually called the prefill stage. During prefill, the model reads the user prompt, context, system instructions, and any retrieved content.
One advantage of the input stage is that many tokens can be processed in parallel. With suitable hardware and batching mechanisms, the system can process multiple input segments at once, improving overall throughput.
However, the input stage is not free of cost.
First, longer inputs increase GPU memory usage because the model must store intermediate states and attention-related information for the input tokens.
Second, attention computation becomes more expensive as input length grows. In long-context scenarios, the pressure of input processing can increase significantly.
Third, the input stage also requires preliminary work such as tokenization, template assembly, context truncation, and context compression. These steps consume compute resources as well.
Therefore, even though input pricing is usually lower than output pricing, it reflects the model’s ability to understand context, process long text, and manage resource usage. For businesses that need to process large documents, knowledge bases, conversation histories, or complex instructions, input cost cannot be ignored.
2. Output Stage: Token-by-Token Generation, More Sensitive to Cost
The output stage is one of the most typical and expensive parts of large model inference.
Unlike input, which can be processed in batches, output is usually generated autoregressively. The model generates one token, adds it to the context, and then generates the next token. This loop continues until generation is complete.
This mechanism creates several key issues.
First, output is a serial process. The system cannot parallelize it in the same way as input processing.
Second, as output length increases, each generation step must refer to the existing context. The longer the context, the higher the compute pressure for each generation step.
Third, the output stage needs to continuously maintain the key-value cache, which stores important information about generated tokens so that later steps can continue inference. This cache consumes GPU memory and increases memory bandwidth pressure.
If output is priced at 100 yuan per million tokens while input is priced at 20 yuan per million tokens, this is not simply “output is five times more expensive.” It reflects more complex resource scheduling and a longer computation chain in the output stage.
High output pricing essentially charges for serial generation, context growth, GPU memory usage, and real-time responsiveness.
3. Cache Hits: Low Pricing Comes From Reuse, but It Still Has Costs
Cache-hit pricing is usually much lower than normal input pricing. For example, at 1 yuan per million tokens, this pricing encourages users to reuse existing content, such as system prompts, fixed knowledge snippets, long-document prefixes, or historical conversation context.
The value of a cache hit is that it reduces repeated computation. If multiple requests contain the same prefix, the system can cache the intermediate results for that prefix. Subsequent requests can reuse those results instead of processing them again. This can significantly reduce pressure in the prefill stage and improve response speed.
However, caching is not free.
The system must store cached content, manage the cache lifecycle, determine which content can be reused, identify expired content, and manage how much GPU memory or external storage the cache consumes.
In addition, if the cache-hit rate is low, the caching mechanism itself can introduce extra overhead. Therefore, low cache-hit pricing reflects the fact that the service provider has spread costs through reuse. It does not mean that caching has no technical complexity.
| Request Type | Main Compute Stage | Cost Characteristics | Business Considerations |
|---|---|---|---|
| Regular input | Prefill | Can be processed in parallel; long inputs increase GPU memory and attention overhead | Context length, document size, instruction complexity |
| Output generation | Autoregressive decoding | Generated token by token; depends on context; consumes GPU memory and bandwidth | Output length, response latency, streaming experience |
| Cache hit | Reuses intermediate results | Reduces repeated computation, but requires storage and invalidation management | Cache-hit rate, prefix reuse rate, cache lifetime |
3. Why Output Pricing Often Becomes the Core Driver of LLM Costs
In most large model services, output pricing is often higher than input pricing. This is not accidental. It is determined by the inference mechanism.
1. Autoregressive Generation Limits Full Parallelism
The input stage can be viewed as reading and encoding context in one pass, while the output stage is a step-by-step reasoning process. Each generation step depends on the previous result, so the system must wait for the current token to be generated before moving to the next step.
Although the server side can combine multiple requests through batching to improve utilization of GPUs or other compute resources, output-stage scheduling is still more complex than input-stage scheduling.
If multiple users have very different output lengths, batching efficiency can be affected. Short requests may finish quickly and release resources, while long requests continue to occupy GPU memory and compute resources. This increases scheduling difficulty.
2. Context Growth Increases Attention Pressure
Output tokens are not generated in isolation. When the model generates each new token, it must refer to the preceding input and the output already generated. The longer the context, the more tokens the model needs to attend to, and the higher the attention computation pressure.
This is also why scenarios such as long conversations, long-document question answering, code generation, and agentic tasks usually have higher costs. These scenarios often have both long inputs and long outputs, and the context continues to grow during generation.
3. GPU Memory Bandwidth Can Matter More Than Raw Compute
Many people assume that for a larger model, the main bottleneck is compute. In reality, during inference, GPU memory bandwidth and memory capacity are equally critical.
The model needs to frequently read weights, activations, and cache information. If GPU memory bandwidth is insufficient, generation speed can be limited even if compute capacity is sufficient.
The output stage is especially sensitive to GPU memory bandwidth because every generation step requires reading a large number of parameters and cached information. Therefore, when some models have high output-stage costs, it is not only because they “use more compute.” It is also because they place higher demands on GPU memory, bandwidth, and scheduling efficiency.
4. Sparse Expert Architecture: Separating Parameter Size From Activation Size
The original discussion mentions that some new-generation models use sparse architectures. These models may have a very large parameter count and many experts, but only a small number of experts are activated for each inference pass. This type of architecture is usually associated with sparse Mixture-of-Experts models.
The core characteristic of this architecture is that the total parameter count is very large, but not all parameters are activated during a single inference pass.
For example, some models may have trillions of total parameters and hundreds or even thousands of experts, but each token or each forward pass activates only a small number of experts. This design can theoretically expand model capacity while controlling the compute required for a single pass.
1. Compute Is Determined by Activated Parameters, Not Just Total Parameters
One important advantage of sparse architectures is that although the total parameter count is large, only a small portion of parameters is actually used during each inference pass.
Therefore, from a pure compute perspective, a sparse model is not necessarily more expensive than a dense model with the same total parameter count.
If the total parameter count is large but only a small fraction is activated each time, the model may have stronger expressive power and knowledge capacity, while the compute pressure of a single inference pass may not increase linearly. This is one important reason why sparse architectures attract attention.
2. GPU Memory Pressure Does Not Disappear Just Because Fewer Parameters Are Activated
Although sparse architectures activate fewer parameters, the model service usually still needs to load all expert parameters, or at least load enough experts to ensure that requests can be processed correctly. This means GPU memory capacity remains a key constraint.
If there are many experts, the server needs a more complex expert scheduling mechanism. Different requests may activate different experts, and the system must ensure that the relevant experts can be loaded or accessed in time.
For large-scale sparse models, insufficient GPU memory, uneven expert distribution, and cross-device communication can all increase inference costs.
3. Routing and Load Balancing Increase System Complexity
In sparse models, the router determines which experts should be used for each token. If routing is too concentrated, some experts will be accessed frequently while other experts remain idle. This creates load imbalance.
To keep the service stable, the system may need engineering optimizations such as expert parallelism, load balancing, hot-expert replication, and caching.
These optimizations are not directly reflected in the unit price seen by users, but they affect service costs. The more experts there are and the sparser the activation pattern, the more complex system scheduling usually becomes. Therefore, part of the price increase of new-generation models may come from more complex architecture and more difficult resource management.
4. Sparse Architecture Does Not Automatically Mean Low Cost
A sparse architecture may look like it “uses only part of the parameters,” but this does not necessarily mean inference costs will be low.
What it really changes is the relationship between cost and capacity. A model can have greater knowledge capacity, while each inference pass uses only part of that capacity. However, the service provider still has to bear costs related to GPU memory usage, routing computation, expert scheduling, communication overhead, and engineering optimization.
Therefore, “sparse” should not be simply understood as “cheap.” A more accurate statement is: sparse architecture allows model capacity and single-pass compute to be decoupled, but it also introduces new deployment and operations complexity.
5. Technical and Business Reasons Why Newer Models Cost More
The price of a new-generation model being noticeably higher than the previous generation is usually not caused by a single factor. It can be understood from three perspectives: technology, resources, and business model.
1. Better Capabilities Often Come With More Complex Inference Flows
New-generation models may support longer contexts, stronger reasoning, more complex instruction following, more stable code generation, or better multi-turn conversation capabilities.
These capability improvements usually mean that the model must do more in input understanding, context maintenance, output generation, and consistency preservation.
For example, long-context capability requires the model to process more tokens, which significantly increases the cost of the input stage. Complex reasoning capability may require the model to generate longer intermediate steps, which increases output costs. Tool calling or multi-step tasks may split a single request into multiple model calls, further increasing total resource consumption.
2. Long Context and Long Outputs Raise Resource Ceilings
If a business scenario needs to process long documents, long conversations, or complex knowledge bases, input length will increase significantly. If the business needs to generate reports, code, plans, or structured results, output length will also increase.
When both input and output lengths rise, costs can be much higher than in simple question-answering scenarios.
For service providers, supporting long context is not simply a matter of allowing a few more tokens. It also brings cache pressure, attention overhead, memory usage, and request timeout risks. Therefore, new models that support long context often require stronger underlying resource support.
3. Service Stability, Security, and Compliance Also Add Cost
A large model service must not only answer correctly. It must also remain stable, low-latency, and controllable.
Service providers need to deploy capabilities such as monitoring, rate limiting, alerting, content safety, data isolation, and failover. If enterprise customers require a high service level, these capabilities become part of the cost.
In addition, model services must deal with content safety, privacy protection, audit logs, and compliance requirements. These investments may not appear directly in a single token call, but they affect overall pricing.
4. R&D and Iteration Costs Are Shared Across the Model Service
A new-generation model requires substantial investment in training, evaluation, alignment, inference optimization, and continuous iteration.
For service providers, model pricing must cover not only the cost of a single inference call, but also R&D, maintenance, evaluation, and continuous optimization costs. This is also why high-performance models often have a premium.
6. Low Cache-Hit Pricing Does Not Always Mean Lower Total Cost
Low cache-hit pricing can indeed reduce the cost of repeated content. However, enterprises should not assume that they will always save money just because cache-hit pricing is 1 yuan per million tokens.
Whether caching actually saves money depends on the cache-hit rate, business workload structure, and cache management cost.
1. Caching Works Best for Stable Repeated Prefixes
Caching is more suitable for scenarios where the prefix is highly stable. Examples include:
- The system prompt remains unchanged.
- Knowledge-base snippets are reused by multiple requests within a short period.
- A long document is repeatedly referenced within the same session.
- Multiple tasks share the same background information.
- Batch requests use the same template.
If every request contains a large amount of different content, the cache-hit probability will be low. In that case, even if cache pricing is low, it may not truly reduce overall costs.
2. Cache Hit Rates Need Unified Management
Enterprises also need to consider cache strategy. How long should the cache remain valid? Which content can be shared? How should isolation work in multi-tenant scenarios? Will cache expiration trigger additional computation?
Without unified management, caching can lead to unstable hit rates, data consistency risks, and extra operations costs.
Therefore, low cache-hit pricing is an optimization tool, not a natural cost advantage. What really matters is whether the cache-hit rate is high enough and whether the caching mechanism matches the structure of business requests.
7. Evaluating Real Cost: From Unit Price to Total Cost of Ownership
When facing price increases for new-generation models, the most important thing for enterprises is not simply to compare “which unit price is lower.” Instead, they should adopt a total cost of ownership perspective.
Total cost includes not only token fees, but also storage, caching, evaluation, retries, operations, and labor costs.
A simplified formula can be written as:
Total cost = input cost + output cost + cache cost + additional resource cost + operations cost
Where:
input cost = billed input tokens / 1,000,000 * input priceoutput cost = output tokens / 1,000,000 * output pricecache cost = cached tokens / 1,000,000 * cache-hit price
If you need to estimate the cost of a single call, you can use the following pseudocode:
def estimate_cost(input_tokens, output_tokens, cached_tokens,price_in=20, price_out=100, price_cache=1):billed_input = max(input_tokens - cached_tokens, 0)input_cost = billed_input / 1_000_000 * price_incache_cost = cached_tokens / 1_000_000 * price_cacheoutput_cost = output_tokens / 1_000_000 * price_outreturn input_cost + cache_cost + output_cost
This estimation model is simple, but it helps teams build a basic understanding: when output pricing is high, output length often has a greater impact on cost than input length. If a business scenario has a long average output length, total costs may rise significantly even if input pricing is relatively low.
Enterprises also need to further evaluate:
- Average input token count;
- Average output token count;
- Cache-hit rate;
- Daily request volume;
- Peak concurrency;
- Timeout and retry ratio;
- Whether long context is required;
- Whether streaming output is required;
- Whether content safety and audit requirements exist;
- Whether multi-model coordination is required;
- Whether human review or result validation is required.
Only by putting these factors into the same cost table can a team determine whether a new-generation model is truly suitable for its business.
8. Key Strategies for Reducing LLM Usage Costs
If enterprises want to use more capable models while controlling costs, they can start with the following approaches.
1. Control Input Length
Although input cost is usually lower than output cost, long inputs still significantly increase resource consumption. Enterprises can control input length by:
- Simplifying system prompts;
- Removing repeated background information;
- Summarizing knowledge-base content before sending it to the model;
- Using retrieval-augmented methods to retrieve only the most relevant snippets;
- Compressing or hierarchically summarizing conversation history;
- Avoiding putting an entire document into the context indiscriminately.
Controlling input length is not simply about shortening text. It is about preserving key information while reducing unnecessary tokens.
2. Control Output Length
Because output pricing is usually higher, controlling output length has a more direct impact on cost. Enterprises can:
- Ask the model to return structured results;
- Limit the number of words or list items;
- Split complex tasks into smaller tasks;
- Generate a summary first, then expand only when needed;
- Set clear constraints on output format;
- Reduce unnecessary repeated generation in business workflows.
For report-style, code-style, and solution-style tasks, it is especially important to define clear output boundaries and prevent the model from expanding without limits.
3. Improve Cache Hit Rates
Cache-hit pricing is low, but only when requests can effectively hit the cache. Enterprises can improve hit rates by using stable system prompts, reusing knowledge prefixes, and maintaining consistent task templates.
At the same time, they should establish cache monitoring metrics and continuously observe hit rates and cost changes.
4. Use a Tiered Model Strategy
Not every request needs to use the highest-tier model. Enterprises can tier models based on task complexity:
- Use low-cost models for simple question answering;
- Use more capable models for complex reasoning;
- Use cost-first strategies for batch offline tasks;
- Use low-latency strategies for real-time interactive tasks;
- Add validation and human review for high-risk scenarios.
This tiered strategy can help balance quality and cost.
5. Use Asynchronous Processing and Batching
For tasks that do not require real-time responses, asynchronous processing can be used. Examples include batch document summarization, batch content generation, and offline data analysis.
Asynchronous processing allows systems to make better use of resources and schedule tasks according to priority.
6. Establish Monitoring and Budget Mechanisms
Enterprises need to continuously monitor token consumption, output length, cache-hit rate, failure rate, and per-task cost. Only with monitoring can teams detect abnormal growth in time.
For example, some prompts may cause overly long outputs. Some knowledge-base updates may reduce cache-hit rates. Some tasks may have high retry rates. All of these can push up costs.
9. Evaluate New-Generation Models Rationally: Price Increases Should Match Capability Gains
A price increase for new-generation models does not necessarily mean the pricing is unreasonable. The real question is: does the higher price bring corresponding business benefits?
If a new-generation model can significantly improve accuracy, reduce manual work, shorten processing time, and lower error rates, then total value may increase even if unit pricing rises.
On the other hand, if the business only needs simple question answering or fixed-template generation, using a high-priced model may waste resources.
For developers, the key is not to blindly chase the newest model, but to build a clear cost evaluation framework.
For enterprises, the key is not to look only at procurement unit price, but to look at overall input and output.
For technical architects, the key is not to look only at parameter size, but to evaluate inference resources, caching strategy, scheduling capability, and business fit.
From an industry perspective, the pricing structure of large model services will become more complex. Input, output, cache hits, long context, concurrency capacity, and service level will all become important dimensions for pricing and model selection.
Technologies such as sparse expert architectures, hybrid inference, cache reuse, and tiered routing will also make model cost less dependent on parameter size alone. Instead, cost will increasingly be determined by overall system design.
10. Conclusion
The price increase of new-generation large model services is the result of model capability, inference complexity, resource investment, and commercial strategy working together.
The difference between input pricing, output pricing, and cache-hit pricing reflects differences in parallelism, GPU memory usage, bandwidth pressure, and scheduling difficulty across different compute stages.
Sparse expert architectures can expand model capacity by activating only a small number of experts, but they also bring new challenges related to GPU memory, routing, and operations.
For developers and enterprises, the most important thing is not simply to judge whether a model is “expensive” or “cheap.” It is to build a complete cost model and evaluate real business benefits.
Only by bringing token structure, cache-hit rate, output length, concurrency scale, task value, and optimization strategies into a unified framework can teams make more rational and sustainable technical choices as model capabilities continue to improve rapidly.
