Flagship LLM API Prices Jumped Several Times Over: How to Analyze and Respond
Prices for flagship large language model APIs have risen several-fold, with output tokens costing around ¥100 per million, input tokens around ¥20, and cached tokens around ¥1. This article breaks down the pricing structure behind LLM APIs, explains why costs are climbing, compares subscription plans with pay-as-you-go APIs, and shares practical engineering techniques—including cache optimization, model routing, and context management—to keep your AI costs under control.
Flagship LLM API Prices Jumped Several Times Over: How to Analyze and Respond
Some developers recently noticed that the API pricing for a flagship coding model has risen several-fold compared to its predecessor: output at roughly ¥100 per million tokens, input at roughly ¥20 per million, and cache hits at roughly ¥1 per million. This change has sparked considerable discussion in the community: does the price increase mean models are getting “expensive”? How should individual developers and small teams choose between subscription plans and pay-as-you-go APIs? Setting aside specific vendors and products, this article examines the underlying logic of LLM pricing from a general technical perspective and offers actionable cost-optimization and model-selection methods.
1. Understanding the Pricing Structure: Why Input, Output, and Cache Hits Differ So Much
Before debating whether prices are “expensive,” you need to understand the three-part billing structure used by most LLM APIs, which has become the industry-standard billing model:
1. Input tokens (roughly ¥20 per million): These include system prompts, conversation history, injected code context, and tool call results. For coding use cases, input typically far exceeds output—a typical code completion or repository-level Q&A request may carry tens or even hundreds of thousands of tokens of context.
2. Output tokens (roughly ¥100 per million): The content the model generates. Output pricing is usually 4–5 times that of input, due to how autoregressive generation works: every token generated requires a full forward pass and cannot be parallelized the way input processing can, so the unit compute cost is inherently higher.
3. Cache hits (roughly ¥1 per million): This is the key to understanding the new pricing. When a request’s context prefix matches a previous request (for example, conversation history within the same session, or the same system prompt), the platform can reuse previously computed attention states and avoid redundant computation. Cached tokens are billed at an extremely low price—essentially, the platform passes the “compute savings” on to users.
This reveals a clear design intent: the pricing structure encourages users to maximize cache hit rates. If your workflow has a high cache hit rate, your actual blended cost will be far below the headline “¥20 input” price. Conversely, if every request sends a brand-new, extremely long context, costs will balloon quickly.
2. Three Reasons Behind the Price Increase
A flagship model costing twice—or even five times—more than its predecessor isn’t simply a “price hike.” There are three rational ways to analyze it:
1. Larger models, bigger capability leaps. New-generation flagship models generally use larger Mixture-of-Experts (MoE) architectures, with total parameters in the trillions and significantly more active parameters, while context windows have expanded to the million-token scale. More active parameters mean higher inference compute consumption per token, and million-token contexts mean memory usage for KV caches grows multiplicatively. Capability upgrades and cost increases happen together.
2. Moving from “subsidized customer acquisition” back to “cost-based pricing”. The low prices of the previous generation were largely a subsidy strategy during a period of intense market competition. As the industry enters a phase of capability differentiation, flagship model pricing will converge toward true inference costs. This is nothing new in cloud computing history—early free tiers and ultra-low prices eventually return to sustainable levels.
3. Tiered pricing is the new normal. Alongside expensive flagship models, vendors typically keep lightweight models (fewer parameters, an order of magnitude cheaper) as cost-effective options, creating a tiered supply where “flagships handle the hard problems and light models run the daily workload.” While complaining about flagship prices, users actually have more choices than before.
3. Subscription Plans vs. Pay-as-you-go APIs: How to Decide with Numbers
Faced with these price changes, the core question is selection. Each billing model has its own boundaries of applicability:
Subscription plans (fixed monthly fee for a quota) suit these scenarios:
- High and regular usage frequency, such as several hours of AI-assisted coding per day;
- A need for predictable monthly budgets to avoid runaway bills;
- Usage mainly within productized tools (IDE plugins, chat interfaces) rather than self-built systems.
A pitfall to watch for: different tiers often have explicit limits on flagship model availability, context length (such as the distinction between 256K and 1M), and quota ceilings. Lower-tier plans may not be able to call the flagship model at all. Before purchasing, calculate how well your daily token consumption matches the tier’s quota—don’t just compare monthly fees.
Pay-as-you-go APIs (pay for what you use) suit these scenarios:
- Unstable usage frequency with obvious peaks and valleys;
- Embedding model capabilities into your own systems (CI pipelines, code review bots, internal developer platforms);
- Teams with cost-optimization skills who can lower blended unit costs through caching, routing, and similar techniques.
A simple quantitative decision method: track your real usage over the past two weeks, convert it into a monthly cost using “input × input price + output × output price + cache hits × cache price,” and compare against each subscription tier’s monthly fee. If your pay-as-you-go cost is consistently below a tier’s fee and the quota suffices, choose pay-as-you-go; otherwise, choose the subscription.
4. Five Engineering Practices to Lower Total Cost
Whichever model you choose, the following optimizations can significantly reduce actual spending:
1. Maximize cache hit rates. Put unchanging content (system prompts, project descriptions, coding standards) at the front of requests and changing content at the end; avoid inserting fields like timestamps into the prefix. In this pricing structure, cache hits are 20 times cheaper than full-price input—raising your hit rate from 30% to 70% could cut total costs roughly in half.
2. Implement model routing. Not every request needs the flagship model. You can establish a simple routing strategy: code formatting, simple Q&A, and unit test generation go to lightweight models; complex architecture design, cross-repository refactoring, and difficult bug analysis go to the flagship model. In practice, this can be implemented with a lightweight classifier or rule-based logic:
def route_model(task):if task.complexity == "low": # formatting, simple Q&Areturn "lightweight-model"if task.needs_long_context: # repository-level analysisreturn "flagship-model-long-context"return "flagship-model"
3. Control context length. A million-token context window is a capability, not a default setting. Use retrieval-augmented generation (RAG) to inject relevant code snippets on demand instead of stuffing the entire repository into the context—this usually reduces input tokens by an order of magnitude.
4. Compress output. Use prompt constraints so the model outputs only the necessary diffs or conclusions, avoiding verbose explanations. Output tokens are the most expensive part; halving output directly halves that cost.
5. Set up usage monitoring. Track the token composition and cost of every request, attributed by project and task type. Without measurement there is no optimization—many teams only discover after reviewing their bills that a large share of spending went to infrequent but extremely long-context “code smell” requests.
5. Final Thoughts
The several-fold price increase for flagship models is, on the surface, a cost issue; in essence, it’s a signal that the industry is shifting from subsidized competition to value-based pricing. For developers, the right response is neither complaining nor blindly downgrading, but rather: understand the “input/output/cache” pricing structure, quantify your real usage, do the math between subscriptions and pay-as-you-go, and use engineering techniques—cache optimization, model routing, and context governance—to keep total costs within a reasonable range. Prices will fluctuate, but the methodology of “making every token count” remains effective over the long term.
