LLM API Pricing: Temporary Discounts vs. Long-Term Cache Savings
Temporary LLM API discounts can reduce evaluation costs, but lasting reductions in cached-input pricing may matter more for production workloads. This article examines the difference, models the cost of a repository scan, explores the technical drivers behind lower inference prices, and outlines practical steps for evaluating models, improving cache reuse, and controlling spending.
LLM API pricing is not always moving in one direction. During a period when several major providers in China were raising prices for their base and flagship models, one leading provider took the opposite approach: less than 24 hours after releasing a new flagship model, it announced a temporary discount across its model lineup, cutting input and output prices to roughly 25% of their launch rates.
The provider also announced a separate, lasting reduction in cached-input pricing to one-tenth of its initial level.
For developers, these announcements raise two different questions: Is the promotional period a good opportunity to evaluate a stronger model? And do lower cache costs make that model economical for ongoing production use?
Answering them requires looking beyond the headline discount to pricing structure, workload costs, competitive positioning, and the engineering behind inference efficiency.
1. Two Price Changes, Two Different Implications
The pricing information described in the announcement included the following flagship-model rates. All prices are in Chinese yuan (CNY) per million tokens.
| Billing category | Launch price | Temporary promotional price | Reduction |
|---|---|---|---|
| Input: cache hit | CNY 1.00 | CNY 0.25 | 75% |
| Input: cache miss | CNY 12.00 | CNY 3.00 | 75% |
| Output | CNY 24.00 | CNY 6.00 | 75% |
| Corresponding lightweight-model rates | Not specified | Reduced proportionally | 75% |
The reported promotion was scheduled to end at midnight on May 5. A separate update dated April 26 stated that cached-input pricing would remain at one-tenth of its initial level over the longer term.
These are historical announcement details, not confirmation of currently available rates. The source does not specify the year or time zone, so developers should check the provider’s official pricing documentation before budgeting.
More importantly, the two mechanisms should not be conflated:
- The temporary discount covers input and output charges during a promotional window. Those rates may change when the promotion ends.
- The long-term cached-input reduction changes the economics of repeated context beyond that window.
The stated long-term reduction to one-tenth of the original cached-input rate is also distinct from the CNY 0.25 promotional rate shown above. The announcements should not be treated as automatically stacking discounts.
For developers, promotional pricing affects the cost of experimentation. Persistent cache savings affect production total cost of ownership.
2. Price–Performance: A Higher Token Rate Can Still Offer Better Value
At the promotional rate, the new flagship model’s output costs CNY 6 per million tokens, compared with approximately CNY 3 for the previous flagship generation.
That is a doubling of the output-token price, but not necessarily a doubling of the cost of useful work.
The new model reportedly achieved approximately 80.6% on a public software-engineering benchmark, placing it near leading results on that evaluation. The previous generation performed substantially less well on comparable tasks.
This suggests that the newer model may offer better price–performance despite its higher output rate. However, a benchmark score alone does not establish a universal “cost per unit of capability.” The practical question is whether the model produces useful results more reliably in the developer’s actual workload.
Cached-input pricing adds another dimension. Coding assistance, document analysis, and multi-turn conversations often repeatedly include the same:
- System instructions
- Project rules
- Document or repository context
- Shared prompt prefixes
When eligible content is served from a prefix cache, the service can reuse previously computed state rather than recomputing that portion of the input. This makes cache-hit rate an important cost-control lever for workloads with substantial repeated context.
3. What Does a Repository Scan Actually Cost?
Switching an AI coding tool to a newer model may be straightforward. Understanding its cost requires more care.
3.1 The Cost Formula
When token volumes are expressed in millions, the request cost is:
Total cost =cached input tokens × cached-input rate+ uncached input tokens × uncached-input rate+ output tokens × output rate
Token quantities and billing rates must use consistent units. If quantities are raw token counts, divide each by 1,000,000 before multiplying by a per-million-token price.
3.2 Example: A Full-Repository Scan
Consider a medium-sized repository with approximately 50,000 lines of code and an average of 30 characters per line. After adding prompt templates, file paths, and assembled context, assume the scan consumes:
- 2 million input tokens
- 0.5 million output tokens for recommendations and explanations
These are workload assumptions, not a general rule for converting lines of code into tokens.
Using the promotional rates consistently, a scan with no cache hits costs:
Input: 2 × CNY 3.00 = CNY 6.00Output: 0.5 × CNY 6.00 = CNY 3.00Total: CNY 9.00
Now assume 70% of input tokens qualify for the CNY 0.25 cached-input rate:
Input:2 × [(0.7 × CNY 0.25) + (0.3 × CNY 3.00)]= CNY 2.15Output:0.5 × CNY 6.00= CNY 3.00Total: CNY 5.15
On a like-for-like promotional-price basis, caching reduces the total from CNY 9.00 to CNY 5.15—approximately 43%.
A calculation using CNY 12 for uncached input and CNY 6 for output would produce a CNY 27 baseline, but that mixes launch and promotional rates. Comparing it with CNY 5.15 would overstate the savings attributable to caching alone.
For teams running repeated repository scans, even the consistent-price saving can be meaningful. Its actual size depends on cache eligibility, hit rate, and the balance between input and output tokens.
3.3 Long Context Is Useful, but Not Free
Million-token context windows can help with large-file analysis, repository-wide understanding, and long-document summarization. They can also encourage applications to send far more input than a task requires.
At a fixed token rate, input costs grow with the volume of billed input. A larger context window is therefore a capacity feature, not a reason to fill every request.
A practical approach is to:
- Run an initial global scan to establish an index and locate relevant material.
- Use long-context analysis for the specific modules or documents that require it.
- Return to smaller requests when broad context is unnecessary.
This preserves the value of long context without making maximum-size requests the default.
4. Competitive Positioning: Cheapest Is Not Always Best
4.1 Comparison With Other Providers in China
In the market snapshot described here, flagship output prices at several Chinese providers had risen into the CNY 10–30 per million-token range.
Against that range, CNY 6 was competitive and approached or undercut some providers’ lightweight-model pricing. A CNY 0.25 cached-input rate also compared favorably with cited cache rates of CNY 1–2.
For workloads with large amounts of repeated context—such as knowledge-base question answering, log analysis, and coding assistance—these differences can materially affect feasibility.
However, this is a comparison of the reported rates, not a current market-wide price survey.
4.2 Comparison With International Models
The source comparison placed some international flagship models’ output prices in the tens of US dollars per million tokens, equivalent to more than CNY 100. Relative to those examples, a CNY 6 output rate represents a substantial difference.
Price alone does not establish overall value. Some international models may remain stronger on particular complex reasoning tasks, while models developed for the Chinese market may be attractive for Chinese-language workloads and local deployment requirements.
Latency and regulatory suitability depend on the deployment location and service arrangement. Availability in China should not be assumed to mean availability worldwide.
Model selection should therefore include workload-specific A/B testing and an assessment of:
- Task quality
- Latency
- Stability
- Data security
- Service availability in the intended region
5. The Technical Drivers Behind Lower Prices
5.1 Scaling AI Accelerator Supply
The provider’s technical reporting described newer AI accelerators developed in China moving from small-scale validation toward larger deployments.
Greater compute availability can help reduce inference costs, particularly when accompanied by better utilization. However, hardware scale alone does not prove a specific cost reduction or explain the full size of a price cut.
It is better understood as one potential enabling factor rather than a complete explanation of the pricing decision.
5.2 Inference-System Optimization
Inference services also benefit from improvements such as:
- KV-cache reuse
- Operator fusion
- Dynamic batching
- Quantized inference
These techniques can reduce repeated computation, improve hardware utilization, or lower resource requirements.
Prefix caching is especially relevant to cached-input discounts. When a matching prefix is eligible for reuse, the system can avoid repeating part of the input-processing work.
That does not make the entire request computationally free: processing new input and generating output still carry costs. Nevertheless, avoiding repeated prefix computation can support much lower prices for eligible cached tokens.
5.3 Scale Effects and Cache Reuse
Larger request volumes may create more opportunities to reuse common prefixes, depending on how the service implements caching.
The potential feedback loop is straightforward:
Lower prices → More usage → More opportunities for reuse→ Lower average serving costs
This is not a guarantee that cache-hit rates increase automatically with user count. Reuse depends on workload similarity and the provider’s cache design. Developers should not assume that prefixes are shared across users or accounts unless the documentation explicitly establishes that behavior.
The broader point remains: repeated-context workloads can have a different cost structure from workloads dominated by unique inputs.
6. Practical Integration Recommendations
6.1 Start With a Small Evaluation
Use a limited budget to test one or two representative projects rather than committing a large balance immediately.
The evaluation should establish whether the model’s quality and operating cost fit the intended workflow. Promotional rates may expire, and results can vary substantially between tasks.
6.2 Verify Long-Context Configuration
Some coding-tool integrations require a specific model identifier to select a long-context variant. Where the provider documents a version with a 1M-context suffix, confirm that the tool uses the correct identifier.
Do not assume that this naming convention applies to every provider. Check the relevant API documentation, then validate the integration with a small project before attempting a repository-scale analysis.
Otherwise, the tool may select a shorter-context model or fail when the request exceeds the supported window.
6.3 Structure Prompts for Prefix Reuse
Place stable content near the beginning of requests, including:
- System instructions
- Project rules
- Shared file headers
- Repeated contextual material
Keep this prefix consistent across related requests. Avoid inserting unnecessary random identifiers or changing timestamps ahead of reusable content, because they can prevent prefix matches.
Maintain continuity across iterative work where the integration supports it, but do not assume that using the same conversation alone guarantees a cache hit. The provider’s caching rules determine eligibility.
6.4 Monitor Costs and Set Budget Alerts
Track token consumption by project or session and establish daily spending limits where supported.
This helps detect accidental loops, oversized requests, and configuration mistakes before they create substantial charges.
For high-frequency workflows, connect spending to operational metrics such as:
- Cost per code audit
- Average cost per repository scan
- Number of scans per day
These measures are more actionable than a monthly total alone.
6.5 Recheck Pricing Before Scaling
Temporary discounts are useful for evaluation, but production budgets should account for the possibility of higher rates afterward.
The provider suggested that further accelerator deployment could support additional long-term reductions. That is a possibility, not a guaranteed pricing roadmap.
A cautious strategy is to validate capability during the lower-cost window, then reassess the applicable rates before expanding usage.
Conclusion
Temporary API discounts and lasting cache-price reductions solve different problems. The first lowers the cost of trying a model; the second can improve the economics of using it repeatedly in production.
The most useful question is not simply how large the discount appears. It is whether the model can deliver sufficient quality, reliability, and security at a sustainable cost for a specific workflow.
Use consistent prices when calculating savings, measure cache behavior rather than assuming it, and send only the context a task needs. Those practices turn attractive token rates into meaningful operational savings.
