Frontier LLM Selection: Capability, Cost, and Routing

    When new flagship models ship in a tight window, default routing goes stale fast. This article shows how to pick and route models by workload, a fixed evaluation sheet, cost-per-success (including failed attempts), and simple production rules—not by launch headlines.

    When release windows are dense, default model routing is the first thing to go stale. A run of new flagships in a few weeks does not automatically make an old setup invalid, but it can change context length, input modalities, reasoning intensity, tool-call reliability, and unit-price curves at the same time. If a team still sends all traffic through a single default chosen months ago, the shape of the bill and the failure modes drift quietly. The right move is not chasing titles; it is remeasuring on the same task set.

    Align selection to workload, not marketing

    Selection should start from workload, not from vendor claims. Common loads fall into four buckets.

    1. Long-document understanding and summarization. Bottlenecks are context utilization, citation consistency, and truncation policy.
    2. Multimodal input. Text, images, audio/video, or layout-heavy documents must actually enter reasoning—not only be transcribed and handed to a text model.
    3. Knowledge work. Plan comparison, requirements clarification, extraction from tables and policies. Score verifiable conclusions, not writing style.
    4. Agentic coding. Multi-file edits, test-driven work, stepwise execution, rollback from errors. This class separates models most clearly and is most often overrated by single-turn Q&A leaderboards.

    Keep one evaluation sheet

    Fix the capability dimensions so you do not change the ruler every time you change models.

    • Input: supported modalities, context limit, billing by actual length, and whether overflow is rejected, truncated, or auto-summarized.
    • Output: max output, structured-constraint compliance, tool-call format error rate.
    • Runtime: time to first token, steady-state throughput, timeouts and rate limits, whether failures are retryable.
    • Quality: not “feels better,” but checkpoints: compile, tests, citations that can be traced, answers that respect given constraints.
    • Safety and compliance: whether code, customer data, and logs may leave the current environment; log retention; private or dedicated-network deploy.

    If traffic runs on a cloud model service such as Baidu AI Cloud, record region, network connectivity, and billing granularity in the same sheet. Do not treat console temporary quotas as model capability.

    Price often decides routing before capability gaps

    Flagships rarely split into “one cheap everywhere, one expensive everywhere.” Bill shapes differ: some price input and output separately with very expensive output; some fast tiers jump in unit price; some rise after a promo window; some bill long context separately.

    Compare at least four lines: input tokens, output tokens, reasoning or “thinking” tokens, and external tool/retrieval calls. List price per million tokens misleads. A successful agent task can include many retries; failed turns still bill. The core metric is cost per success, not unit price per call.

    Cost per success = total cost of all attempts on successful samples, divided by the number of samples that strictly pass. Cost of failed samples must stay in the numerator; do not count only the run that eventually worked.

    Define strict pass in advance. For coding tasks, use staged checkpoints: constraints understood, files edited correctly, existing tests pass, new tests pass without breaking unrelated modules, final diff is reviewable. A task counts as one success only if every checkpoint passes. Partial pass is diagnostic, not part of the headline metric—otherwise models score by “looking like a solution.”

    On multi-stage coding, strict pass rates of frontier models often sit in a narrow band. Harder items stall on environment understanding, long-horizon state, or edge cases—not syntax. A ranking gap of a few checkpoints may be statistically noisy while cost differs by multiples. Ask first whether extra spend buys stably more passed checkpoints or only longer reasoning traces. If the lift is in the noise, do not make the expensive tier the default.

    Reasoning intensity is not “higher is better”

    Raising reasoning from medium to higher usually adds thinking tokens and latency. Sometimes it recovers missed constraints; sometimes it overreaches: unrelated edits, new dependencies, “optimizing” a submittable solution until tests break. Run each tier on the same set. Record pass count, average cost, P95 latency, and regressions. If a higher tier does not raise (or even lowers) pass count, treat it as a risk tier: open it only for a few timeouts or clearly benefiting item types, not globally.

    Evaluation set: small, hard, isomorphic to production

    A few dozen multi-stage items (on the order of 36) is enough for a first routing call, but they must cover your languages, frameworks, repo scale, and failure types. Extrapolating public leaderboards distorts: tool environments, graders, and allowed retries rarely match an internal platform. Version the set: freeze stems, dependencies, and scoring scripts together. Rerun when models or prompts change so you are not comparing scores while items move. Human review only on disagreements and production incident replays, to calibrate auto-scoring, not replace it.

    Lock prompts and tool protocol before comparing models. A secret prompt per model measures prompt engineering, not the model. Unify system instructions, tool schemas, retry caps, and timeouts. Allowed differences should be vendor-documented call parameters (for example temperature or reasoning tier), stated in the report. Cap agent loop steps so a high-reasoning tier cannot fake a pass with unbounded retries.

    Start routing with simple rules

    You do not need a learned router.

    • Task classifier: short, low-risk, rework-tolerant traffic to cheaper models; long context, multimodal, or high-checkpoint work to more stable models.
    • Raise reasoning intensity only on the subset where auto-scoring shows a higher tier lifts strict pass rate.
    • Fallback: format or tool failure → one same-tier retry, then escalate; cap cost per request.
    • Cache reusable retrieval results and already-passing patches so the same failure is not billed repeatedly.

    In production, watch buckets, not offline averages: task type, input length, reasoning tier, tools on/off. Track strict pass rate, cost per success, human takeover, rollback, P95 latency. If pass rate is flat while cost rises, or cost falls while rollback rises, pull routing back. Weekly review is enough; full reruns of the set only when the default model, unit prices, or context policy change.

    Eight-step rollout

    1. List real loads and unacceptable failures.
    2. Freeze 20–40 multi-stage items and auto-scoring.
    3. Unify prompts, tools, and retries.
    4. Test at least two reasoning tiers per candidate.
    5. Compute cost per success including failed turns.
    6. Default only combinations that are clearly better statistically.
    7. Keep exception routes for long context, multimodal, and high-risk changes.
    8. Put cost caps, log redaction, and human escalation in the runbook.

    Illustrative cost rollup (not tied to any vendor SDK): accumulate usage on every call, then divide by strict passes.

    1. success_cost = (all-attempt input + output + reasoning + external-call fees) / strict_pass_count
    2. upgrade_if = higher_tier_pass_count_clearly_higher AND success_cost still under willingness-to-pay
    3. else = keep mid tier; high tier only for item types that replay proved benefit

    Stay conservative: flagships cluster on a narrow set; gaps are often smaller than cost gaps. Higher reasoning can be slower, more expensive, and worse. Rewrite “strongest” as which checkpoints, at what cost per success, and who takes over on failure. Periodic reruns on a frozen set are more reliable than changing the default every launch week.