Tiered Flagship Model Invocation: How Reasoning Effort Determines Per-Task LLM Cost
A model's price per million tokens is only one factor in real LLM cost. This article explains how reasoning effort tiers drive per-task cost, breaks down the four cost factors behind a single call, and shows why a 20% price drop can still produce a cost gap of nearly 2x. It introduces capability density and tier economics, explains which workloads genuinely need flagship models, and lays out a three-layer tiered invocation strategy—task grading, model-and-tier mapping, and cascade routing—reinforced by budget caps, caching, and batching. It closes with a four-step rollout, a set of metrics centered on cost per successful task, and common pitfalls to avoid.
1. The starting point: prices dropped, so why didn’t costs fall?
When a model vendor releases a new generation of flagship model, developers’ attention quickly shifts from benchmark scores to cost. Several third-party evaluations put the old and new flagships on the same benchmark for a head-to-head comparison and reach a set of seemingly contradictory conclusions:
- When the new flagship runs at medium reasoning effort, its scores already approach the old flagship at maximum reasoning effort, yet the cost per completed task is only about half of the latter.
- Once the new flagship is also set to maximum reasoning effort, the per-task cost climbs to more than 2x that of the old flagship.
- Priced per million tokens, the new flagship is about 20% cheaper than the previous generation.
A 20% cut in unit price clearly cannot explain a cost gap of nearly 2x. Conversely, if you only look at “the flagship costs more per million tokens,” you miss the fact that at low-to-medium tiers it already matches the capability density of the previous flagship. And if you only look at “it’s cheaper” and max out the tier for long-chain tasks without distinguishing tiers, you can significantly overspend.
From this we can draw three judgments:
- Unit price is only one factor. The truly comparable metric is “how much it costs to complete a given type of task at a given tier.”
- Reasoning effort is the main cost switch. The higher the tier, the more thoroughly the model reasons, and token consumption usually grows several-fold.
- “Cheap” is conditional. The conditions include task type, chosen tier, the cost of failure, and whether the right model was used.
Together these three points point to an engineering practice: stop using “one model for everything,” and instead allocate models and reasoning tiers according to task characteristics. This is the tiered invocation strategy this article sets out to develop.
2. Breaking down per-task cost: seeing where the money goes
2.1 Four cost factors
A typical LLM call consists of input tokens, output tokens, and—at higher tiers—additional thinking tokens. The cost of a single task can be written as:
cost per call ≈ input price × input tokens+ output price × output tokens+ thinking-token price × thinking tokenscost per task ≈ cost per call × average attemptscost per successful task = cost per task ÷ task success rate
Here “thinking tokens” refers to the tokens a model spends on internal reasoning before giving its final answer when the reasoning tier is high. The industry usually counts them as output and tracks them separately.
On this basis, the cost per successful task can be approximated as three factors:
cost per successful task ≈ token price × average token consumption × difficulty/failure correction factorwhere: difficulty/failure correction factor ≈ 1 ÷ (task success rate × cache-hit discount)
- Token price: set by the model and vendor—the price you see when purchasing.
- Average token consumption: determined by reasoning tier and task type; the factor engineering can influence most.
- Difficulty/failure correction factor: the harder and more failure-prone the task, the more retries and manual rework, and the more the real cost multiplies.
The price list tells you the first factor but cannot answer the other two. This is also why “comparing only the price per million tokens” is easy to get wrong.
2.2 Cost structures differ by task type
| Task type | Typical characteristics | Main cost source | Optimization focus |
|---|---|---|---|
| Classification, extraction, formatting | Single-turn, short output | Input and output tokens | Batch calls, prompt caching |
| Code completion and rewriting | Large context, short output | Input tokens | Trim context, caching |
| Code review, single-file refactoring | Needs intent understanding | Output tokens | Appropriate reasoning tier |
| Retrieval QA, document summarization | Long input, short answer | Input tokens | Retrieval trimming, caching |
| Multi-step agents, codebase migration | Multi-turn tool calls | Cumulative tokens, retries | Reasoning tier, step count, stopping conditions |
| Deep research, architecture design | Long reasoning process | Thinking tokens | Set tier by business value |
One easily overlooked fact: in long-context scenarios, no matter how much you trim the output tokens, you can’t save the overhead of repeatedly passing in the input; and the total consumption of multi-step tasks is often determined by the number of steps.
2.3 Sample code: turning cost into an executable formula
Writing the above relationships into code lets you directly compare the cost of different tiers and approaches:
# Illustrative cost model; adjust the coefficients against your own measured dataTIERS = {# effort: reasoning tier, think_ratio: thinking tokens as a share of output tokens, q: first-pass rate"low": {"effort": "low", "think_ratio": 0.1, "q": 0.75},"medium": {"effort": "medium", "think_ratio": 1.0, "q": 0.88},"high": {"effort": "high", "think_ratio": 2.5, "q": 0.93},}def unit_success_cost(model_price, in_tok, out_tok, tier, rounds=1):"""Estimate the cost per successful task: price is (input, output) per million tokens;in_tok/out_tok are the input/output tokens of a single round; rounds is the number ofmodel calls in the task chain"""t = TIERS[tier]think = out_tok * t["think_ratio"]per_round = (model_price[0] * in_tok+ model_price[1] * (out_tok + think)) / 1e6attempts = 1 / t["q"] # geometric distribution: average attempts equal the inverse of the first-pass ratereturn per_round * rounds * attempts
2.4 Thinking budget and price: two illustrative billing schemes
The extra overhead from reasoning effort is usually billed in one of two ways:
- Thinking tokens are billed at the output price, with input and output prices unchanged;
- Thinking tokens are not priced separately, but the vendor charges a higher overall price for tiers with reasoning enabled.
The way you compare costs is the same in both cases:
- First run a small batch of real requests to measure the token profile of each tier (input, output, thinking tokens);
- Then plug those into the actual billing rules.
The numbers in the table below are illustrative values for explanation; actual ratios vary by task:
| Tier | Output per call (illustrative) | Of which thinking (illustrative) | Billed by output | Tier markup (illustrative) |
|---|---|---|---|---|
| low | 500 | 50 | 550 | ×1 |
| medium | 500 | 500 | 1000 | ×1.8 |
| high | 500 | 1250 | 1750 | ×3.2 |
At the same unit price, the medium tier’s actual cost is about 1.8x the low tier, and the high tier about 3.2x. If you estimate only by tier multipliers of ×1, ×2, ×3, you will underestimate the true cost of the high tier.
3. Where the savings come from: capability density and tier economics
3.1 Capability density: capability produced per token
You can use “capability density” to describe how much task completion a model buys per unit of tokens consumed at a given reasoning tier. The new flagship’s cost advantage comes mainly from two points:
- A lower unit price, which directly reduces the first factor;
- Higher capability density. Tasks that previously required the old flagship to run at full power can now be handled by the new flagship at a lower tier—what you save is the large amount of thinking tokens consumed during reasoning.
A simplified “tier–cost curve” helps make this intuitive:
- Quality rises with the tier, but with diminishing marginal returns, so the curve gradually flattens;
- Cost rises roughly linearly with the tier, or even faster.
The intersection of the two curves is the “cost-performance sweet spot” for a given type of task. A flagship with higher capability density effectively shifts this sweet spot to the left: a lower tier reaches the quality that previously required the highest tier.
3.2 Which metrics reasoning effort affects
Reasoning effort usually does not change how well the model knows a subject; it mainly changes “how much computation it is willing to spend thinking”:
| Dimension | Low tier | Medium-to-high tier |
|---|---|---|
| Structured generation, format conversion | Sufficient | Little gain |
| Single-file code generation | Sufficient in most cases | Gains on complex logic |
| Multi-file refactoring, defect localization | Easily misses edge cases | Clear gains |
| Cross-tool, multi-step tasks | Easily drifts off target | Better at self-correction |
| Same final answer | Fewer thinking tokens, lower time-to-first-token | More thinking tokens, higher latency and cost |
It’s worth stressing: the direction of the tier’s effect depends on whether the task “needs more thinking.” Raising the tier for a simple task only increases cost and latency with almost no change in quality.
3.3 Two counterintuitive conclusions
First, the cheapest way to use a model with higher capability density is not necessarily the lowest tier. The medium tier often sits near the sweet spot: quality already approaches the high tier, while tokens are only somewhat higher. If you push everything down to the lowest tier to save money, many tasks will repeatedly fail and retry, and total cost rises rather than falls.
Second, “cheap” must carry the tier as a condition. For the same model, a bill at the medium tier may be only about a third of the highest tier. What is “cheap” or “expensive” is never an inherent property of the model, but the result of the combination “model × tier × task.”
4. Why real workloads need flagship models
Cost only matters when the model is good enough. Some publicly disclosed enterprise practice cases cover a range of scenarios with high demands on the model:
- Quantitative research: A trading firm connected the model to its internal research framework, having it simultaneously play the roles of raising questions, writing code, planning, and coordinating subtasks, reducing manual tuning and task assignment.
- Investment research: Engineers at an asset management firm had the model research a test plan for a system integration feature; the model not only found all the relevant material but also pointed out that the original problem statement itself may have been misleading.
- Hardware design: With minimal human intervention, the design of four-layer circuit boards for three devices—a home voice-assistant hub, a USB conference speaker, and a handheld electronic pet—was completed within a day and reached a manufacturable state.
- Engineering migration: A model vendor used an early version to migrate a critical production service from a scripting language to a systems programming language, improving startup speed to more than 20x the original.
What these cases have in common is: long task chains, a need for the model to autonomously judge the next step, and high demands on first-attempt success rate. Compared with single-point tasks, they have three characteristics:
- Errors accumulate. The task is broken into multiple rounds of calls, and a small mistake in one step is amplified along the chain.
- Context keeps expanding. Each step’s instructions, code, and tool returns enter the subsequent context, and token consumption grows rapidly with the number of steps.
- Judgment cannot be outsourced. “What to do next” and “whether the result is trustworthy” can only be answered by the model itself; weaker models often fall short in the planning and self-correction stages.
For these tasks, the right approach is not to blindly max out, but to:
- Default to a medium-to-high tier to ensure first-attempt success rate;
- Set a per-task budget cap to constrain reasoning depth;
- Pair it with structured planning, tool calls, and intermediate-result validation to reduce ineffective trial and error.
5. Designing a tiered invocation strategy
5.1 Layer one: grade by task difficulty and risk
Sensible tiering should be built on unified task grading. You can split along two dimensions:
- Difficulty: single-step or multi-step, whether it needs cross-domain knowledge or long context;
- Risk: whether errors are reversible, whether it involves sensitive steps such as external release, funds, or data changes.
This yields a two-dimensional matrix like the one below (illustrative):
Risk ↑High │ Flagship + high doc Flagship + high doc + human review│ human reviewMed │ Light model + low tier Flagship + medium-high tier│Low │ Light model + low tier Light model + medium tier└──────────────────────────→ Difficultysingle-step, clear multi-step, needs reasoningpattern
The meaning of the matrix is straightforward:
- Low-risk, low-difficulty tasks go to a light model at a low tier, at the lowest cost;
- As difficulty rises, prioritize raising the tier rather than switching straight to the flagship, because the flagship with higher capability density is often already sufficient at low-to-medium tiers;
- High-risk tasks require layered human review or policy validation regardless of difficulty;
- No cell is fixed; adjust based on actual evaluation data.
5.2 Layer two: model and tier combinations
After grading, map each type of task to a specific model and tier combination. An example strategy is as follows (illustrative; calibrate against actual evaluations):
| Task category | Default model | Default tier | Main control lever |
|---|---|---|---|
| Text classification, field extraction | Light model | Low | Batch requests, structured output |
| Code completion, formatting | Light model | Low–medium | Prompt caching, context trimming |
| Summarization, rewriting | Light model | Medium | Limit output length |
| Code review, defect fixing | Flagship | Medium | Attach failing cases, limit change scope |
| Library/framework upgrades, bulk migration | Flagship | Medium–high | Sharded execution, failure-list-driven retries |
| Multi-step agents | Flagship | High | Step cap, budget cap, intermediate validation |
| Production changes, fund-related operations | Flagship | High | Human approval, rule validation, canary release |
Configuration example:
# Model routing policy example: quality_tier is provided by the task graderroutes:- match: { quality_tier: "spot_check" } # low risk, clear patternmodel: lightreasoning_effort: lowmax_cost_per_task: 0.05 # per-task cost cap (in the configured currency)- match: { quality_tier: "standard" } # routine business taskmodel: flagshipreasoning_effort: mediummax_cost_per_task: 0.50- match: { quality_tier: "critical" } # critical, long-chain taskmodel: flagshipreasoning_effort: highmax_steps: 40max_cost_per_task: 5.00require_human_review: true # add human review in high-risk scenariosfallback: light # auto-downgrade and alert when over budget
5.3 Layer three: cascade routing
Tiering need not be static. The idea of cascade routing is: first try with a low-cost model, and escalate to the flagship only when a confidence threshold is not met.
The most critical component here is the verifier that scores “whether the low-tier result is good enough.” Options include:
- Rule-based validation, e.g., whether code compiles and passes unit tests, whether JSON conforms to a schema;
- Self-scoring, having the model give a confidence rating on its own answer;
- A lightweight discriminative model, using a small model to judge whether the answer is correct.
def run_with_cascade(task, verifier, escalate_threshold=0.85):# 1. Fast path: light model + low tieranswer = call_model(model="light", reasoning="low", task=task)score = verifier(task, answer) # rule validation, test execution, or discriminator scoring# 2. Escalate only when validation fails, avoiding flagship cost for simple tasksif score < escalate_threshold:answer = call_model(model="flagship", reasoning="medium", task=task)score = verifier(task, answer)# 3. If a second validation still fails for a critical task, go up one more tier and enter human reviewif score < escalate_threshold and task.risk == "high":answer = call_model(model="flagship", reasoning="high", task=task)return answer, {"reviewed": False, "pending": True}return answer, {"reviewed": task.risk == "high"}
Two points to note:
- The verifier itself consumes tokens. Cascading pays off only when the escalation rate is low enough—for example, when 20% of requests escalate, the weighted average cost is roughly
0.8 × 1 + 0.2 × 3 = 1.16times that of sending everything to the light model. - A verifier with high misjudgment actually raises costs. If the verifier flags many results that would have passed as failures, the escalation rate rises and cascading loses its point. So the verifier’s accuracy needs to be monitored alongside the escalation rate.
5.4 Fallbacks: budget control, caching, and batching
No matter how refined the routing, you need fallbacks to prevent costs from spiraling:
- Per-task budget cap: set a cost ceiling for each task; once triggered, auto-downgrade or terminate, and output partial results with an alert.
- Step count and loop detection: set a maximum step count for agents and detect repeated actions to avoid “going in circles” consumption.
- Context governance: pass only necessary information into the context, e.g., deduplicating retrieval results, rolling summaries of history, truncating tool returns.
- Prompt caching: cache and reuse stable prefixes such as system prompts, codebase descriptions, and long documents. This capability is already fairly common in mainstream LLM services.
- Batching and async: route offline summarization, bulk translation, log analysis, and similar tasks through batch APIs or offline queues, isolated from the real-time path.
- Output constraints: constrain format with structured output to reduce retries caused by parsing failures.
6. Rollout path and measuring results
6.1 Four-step rollout
- Build an evaluation set: sample from real traffic and label difficulty and risk levels.
- Run the offline matrix: have each model run the same batch of tasks at each tier, recording quality scores, average token consumption, and per-task cost, to obtain a “quality–cost” frontier curve.
- Canary with a small traffic share: ramp up gradually by task type, comparing quality, cost, and human-takeover rate between the canary group and the control group.
- Operationalize: keep monitoring and re-evaluate periodically; when a new model launches, just rerun the evaluation matrix and then incrementally adjust the routing table.
6.2 Measuring results
I recommend the following metrics in place of “price per million tokens” as the core metrics:
| Metric | Definition | Use |
|---|---|---|
| Cost per successful task | Total cost ÷ number of successful tasks | Core metric for model selection and tier decisions |
| Tier distribution | Share of calls at each tier | Spot “one-size-fits-all high” or “one-size-fits-all low” |
| Escalation rate | Share of escalations triggered in cascades | Assess verifier and routing quality |
| First-pass success rate | Share passing validation on the first call | Judge whether the tier is appropriate |
| Human-takeover rate | Share of tasks requiring human intervention | Gauge overall labor cost |
| Budget trigger rate | Share of tasks hitting the cost cap | Alert on abnormal tasks and abnormal usage |
| Cache hit rate | Share of input tokens served from cache | Assess context-reuse effectiveness |
| P95 latency | 95th-percentile response time | Prevent cost cuts at the expense of experience |
Cost per successful task can be computed like this:
def unit_success_cost_from_log(total_cost, finished_tasks, success_tasks):"""Compute cost per successful task from call logs"""assert success_tasks > 0return total_cost / success_tasks
6.3 Cloud implementation notes
On cloud platforms such as Baidu AI Cloud, LLM capabilities are typically offered as general categories—for example, model services, a model development platform, inference compute, object storage, a message queue, a container platform, and log service with monitoring and alerting. Around these capabilities, tiered invocation can be implemented as follows:
- Wrap model routing and tier-selection logic behind a unified gateway, so business code faces only a stable abstract interface, making it easy to switch between models.
- Use prompt-caching capabilities to reduce the repeated overhead of long contexts.
- Store evaluation sets, prompt versions, and result data in object storage to keep experiments reproducible.
- Use a message queue to smooth peaks and fill valleys, scheduling batch tasks separately from real-time requests.
- Deploy inference services on a container platform with elastic scaling.
- Feed metrics such as token consumption, cost, and success rate into log service and monitoring/alerting, so cost is observable and overspending can be flagged in advance.
I also recommend holding two bottom lines:
- Don’t hand task-difficulty grading to the LLM itself; use rules, a lightweight classification model, or heuristic features instead, so the grading step doesn’t become a new source of cost and error.
- Keep human approval and rule validation for high-risk scenarios (such as those involving funds, production changes, or external release); model output cannot replace business validation.
7. Common pitfalls
- Comparing only unit price: ignoring tier, task difficulty, and failure cost—the option with the lowest unit price does not necessarily have the lowest cost per successful task.
- Maxing out everything: handing all tasks to the flagship’s highest tier; long-chain tasks especially get their budget eaten by reasoning overhead.
- Pushing everything to the lowest tier: using a low tier across the board to save money, which makes long-chain tasks repeatedly fail and raises retry costs.
- Ignoring retries and rework: human review time, tokens consumed by retries, and schedule delays from rework are often more expensive than the model fees themselves.
- Deciding on averages: a stable overall average cost may hide a few extra-long tasks. Watch P90/P95 cost percentiles and the budget trigger rate.
- Choosing a model once and for all: model capabilities keep evolving, so the tiering strategy needs re-evaluation quarterly or per version.
8. Conclusion
The focus of competition among flagship models is shifting from “who is stronger” to “who is stronger at a reasonable tier.” A lower unit price is only a surface phenomenon; what really deserves attention is the room to move down a tier created by higher capability density: the same quality of output can be produced at a lower tier with fewer tokens.
For developers, the pragmatic approach can be summed up in one sentence: use flagship models to solve long-chain, high-difficulty, high-risk tasks, use light models for high-frequency, clear-pattern tasks, and use reasoning tiers, cascade routing, budget control, caching, and other means to enforce cost constraints on every call.
When cost per successful task becomes an observable, comparable, and continuously optimizable metric, model selection turns from a one-time procurement decision into an engineering capability that runs continuously.
