LLM Routing: How Flagship and Efficient Models Share the Work

    Two-tier LLM families let teams balance quality, cost, and latency without choosing a single model for every task. This article explains how to interpret benchmark differences, compare token pricing, assign workloads by the cost of failure, and implement routing, fallback, and caching through a unified API.

    1. Why Model Families Now Offer Two Tiers

    LLM releases once followed a straightforward replacement cycle: a new generation arrived, and the previous generation stepped aside. Over the past two years, a different product structure has become increasingly common: a single model family offers both a flagship tier and an efficient tier.

    The two tiers share advances from the same training generation but target different levels of task complexity and different cost profiles.

    Three factors drive this approach:

    1. Most workloads do not require maximum capability. In the workload pattern described here, more than 80% of calls involve routine tasks such as code review, document summarization, and format conversion. Only a small share requires the strongest reasoning capabilities. Running every request on a flagship model means paying a premium across the entire workload to serve that smaller share.
    2. Agent workflows amplify cost sensitivity. Agent-based workflows consume far more tokens than single-turn questions. Repeated calls across multiple steps can quickly make flagship-model costs difficult to control. Enterprises need an affordable default that is capable enough for everyday work.
    3. Latency and throughput matter. Efficient models are typically smaller or faster at inference, making them better suited to high-concurrency, low-latency online services.

    Consider the two-tier structure seen in recent model-family releases. A frontier-positioned flagship targets demanding tasks such as professional document generation, legal and scientific research, deep code changes across multiple files, CAD and simulation, and 3D generation, with context windows reaching around a million tokens. Its efficient counterpart handles everyday work such as pull request reviews, code revisions based on feedback, converting meeting notes into briefs, and multistep agent workflows. In this example, both tiers offer the same context-window capacity and reasoning-effort options.

    These are not successive generations. They are two operating tiers within the same generation, each serving a different workload segment.

    2. Reading Benchmarks: The Capability Gap May Be Smaller Than Expected

    A common selection mistake is to consider only the flagship model. Public third-party evaluations often present a more nuanced picture:

    1. Real-world repository changes: On benchmarks that assess whether generated patches are suitable for merging, the efficient model may trail the flagship by only a few tenths of a point while costing one-fifth as much.
    2. Overall intelligence scores: Flagship models typically lead efficient models by several points, but they do not necessarily outperform competing models from the same generation. A vendor’s claim of broad improvement may look more like “better efficiency, similar coding performance” in independent evaluations.
    3. Specialized benchmarks: On some narrower tests, such as question-and-answer-based software engineering evaluations, the efficient model may even score below its predecessor. Tiering is therefore not simply a matter of reducing capability across the board; it can reflect different training priorities.

    The capability gap is real. For many everyday engineering tasks, however, it may be small enough for the cost advantage to outweigh it. The clearest differences tend to emerge in difficult reasoning, synthesis across very long contexts, and specialized workflows that use terminal tools.

    3. Two Signals to Look for in Pricing

    A representative two-tier pricing structure looks like this. These figures are illustrative; actual pricing should be checked against the provider’s official announcements.

    Price per million tokens Flagship tier Efficient tier Flagship-to-efficient ratio
    Input $8.00 $2.00 4×
    Cached input $0.40 $0.10 4×
    Output $40.00 $10.00 4×
    Very long-context input (>272K tokens) $16.00 $4.00 4×

    Two pricing signals deserve attention:

    1. Flagship prices may fall across all token categories compared with the previous generation. For example, input and output prices might drop by 20%, with an even larger reduction for cached input. This indicates that providers are also lowering the barrier to flagship usage to attract more high-value workloads.
    2. Efficient-tier prices may remain unchanged while quality and token efficiency improve. Users get more capability for the same price. For high-volume workloads, completing a task with fewer tokens is itself an effective price reduction.

    Cached input is often priced at roughly 10–20% of standard input, although the illustrative table above shows an even deeper discount. This can substantially affect multistep agent costs. Caching stable system prompts and repository indexes can reduce the input-cost component of long-context workflows by an order of magnitude.

    4. Choosing a Tier by Workload

    Assign tiers according to the cost of task failure, rather than an intuitive judgment of task difficulty.

    Efficient Tier: The Everyday Default

    • Code reviews, bug fixes, and iterative changes based on feedback
    • Converting meeting notes into structured briefs, and summarizing emails or documents
    • Planning and tool-calling steps in multistep agent orchestration
    • High-concurrency online services and batch data processing

    Flagship Tier: High-Value, Demanding Work

    • Professional documents that must follow industry templates, including presentations, spreadsheets, and contracts
    • Legal research and terminal-based scientific computing workflows
    • Deep code refactoring that requires synthesizing multiple source materials
    • CAD, simulation, and 3D content generation

    A practical approach is to run the efficient model first, then retry with the flagship if the first attempt fails or does not meet the quality standard. This cascade strategy can cover most requests at a lower cost than sending every task directly to the flagship.

    5. Engineering Model Routing

    When both models use a compatible interface, integrating two tiers requires little additional engineering. A unified API gateway can expose both through the same protocol, with the model field selecting the tier.

    The following example uses a placeholder gateway URL and model IDs:

    1. import os
    2. from openai import OpenAI
    3. client = OpenAI(
    4. api_key=os.environ["LLM_API_KEY"],
    5. base_url="https://your-gateway.example.com/v1",
    6. )
    7. ROUTING = {
    8. "routine": "model-family-efficient", # Efficient tier: everyday tasks
    9. "hard": "model-family-frontier", # Flagship tier: demanding tasks
    10. }
    11. def call(task_type: str, messages: list) -> str:
    12. resp = client.chat.completions.create(
    13. model=ROUTING[task_type],
    14. messages=messages,
    15. # Match reasoning effort to task complexity rather than maximizing it globally.
    16. extra_body={"reasoning_effort": "medium" if task_type == "routine" else "high"},
    17. )
    18. return resp.choices[0].message.content

    Use the relevant API documentation to confirm the model IDs and supported reasoning-effort settings.

    Four implementation points matter:

    1. Route by model ID. With a shared API protocol, switching tiers can require changing only the model field, without an additional adaptation layer.
    2. Tie reasoning effort to task classification. Where supported, levels such as low, medium, high, extra-high, and maximum should follow the task tier rather than a single global setting.
    3. Build a quality feedback loop. Sample and evaluate efficient-tier outputs. Automatically promote task categories to the flagship when their success rate falls below the required threshold.
    4. Use input caching. Cache unchanged context prefixes, such as specifications and repository summaries, to reduce long-context costs.

    6. Conclusion

    A two-tier model family gives callers more control over how they spend on capability. Model selection is no longer a single choice between “better” and “worse”; it becomes a resource-allocation decision shaped by the workload.

    The engineering goal is not to choose one best model for everything. It is to design a routing policy: let the efficient tier handle most traffic, reserve the flagship for high-value work and quality fallback, and use gateway routing and caching to lower the cost per completed task.

    The value of a two-tier architecture comes from treating the models as complementary operating levels—not as competing answers to the same selection question.