Most engineering teams default every production LLM endpoint to a flagship model (Max / Pro) "just to be safe." Then the first month's API invoice lands, and they realize 80% of their traffic is ticket routing, dirty JSON extraction, and constrained summaries—work where flagship models cost 8× more and run 2× slower.

We ran 48 live deterministic API calls (DashScope OpenAI-compatible endpoint, temperature=0, enable_thinking=false) across four model tiers—qwen3.8-flash, qwen-flash, qwen3.5-plus, and qwen3.8-max—on 12 real enterprise tasks split into 4 difficulty tiers:

  • Routing (CLS 1–3): Single-label intent classification (refunds, VAT invoices, API 502 errors).
  • Dirty Extraction (EXT 1–3): Pulling 10-digit PO numbers out of voided-ID noise, converting to integer cents, and calculating 35 boxes × 12 units while ignoring spare-part decoys.
  • Constrained Summaries (SUM 1–3): Strict length caps retaining exact metrics (18%, 3.2s), rollback decisions, and cross-year ERP posting rules.
  • Code & Finance Audits (AUD 1–3): Async TOCTOU race detection, SQL injection detection, and a retrospective straight-line accrual calculation (AUD-2).

Live Results Matrix (48 Calls, Zero LLM-as-a-Judge)

Model Tier Pass Rate Failed Task Avg Latency 12-Task Cost Cost vs Flagship
qwen3.8-flash 12 / 12 None 0.95s ¥0.00056 12.2% (-87.8%)
qwen-flash 12 / 12 None 0.78s ¥0.00084 18.3% (-81.7%)
qwen3.5-plus 11 / 12 AUD-2 1.44s ¥0.00123 26.7% (-73.3%)
qwen3.8-max 11 / 12 AUD-2 1.95s ¥0.00460 100% (Baseline)

Why Did the Flagship Fail AUD-2?

AUD-2 was a retrospective ERP accrual problem: a ¥120,000 tooling contract over 122 days gets a ¥10,000 retroactive price cut in month 2 (adjusted total ¥110,000), requiring cumulative 61-day accrual (¥55,000) minus prior month accrual (¥29,508.20) = ¥25,491.80.

With thinking disabled, both qwen3.8-max and qwen3.5-plus tripped on mental decimal subtraction. The takeaway is blunt: never use a flagship LLM as a calculator. Use a Flash model to extract parameters into a Pydantic schema, then compute exact cents in 10 lines of deterministic Python Decimal:

from decimal import Decimal, ROUND_HALF_UP from pydantic import BaseModel class AccrualParams(BaseModel): original_price: Decimal price_delta: Decimal total_days: int elapsed_days: int prev_accrued: Decimal def calc_retrospective_accrual(p: AccrualParams) -> dict[str, str]: adjusted = p.original_price + p.price_delta cum = (adjusted * Decimal(p.elapsed_days) / Decimal(p.total_days)).quantize( Decimal("0.01"), rounding=ROUND_HALF_UP ) curr = (cum - p.prev_accrued).quantize(Decimal("0.01"), rounding=ROUND_HALF_UP) return {"adjusted_total": str(adjusted), "cum_accrual": str(cum), "curr_month": str(curr)} 

Production Migration Checklist

  • ☐ Move routing, dirty field extraction, and fixed-format summaries to qwen3.8-flash (sub-second latency, -88% cost).
  • ☐ Decouple all financial arithmetic from LLMs into deterministic Decimal code.
  • ☐ Replay 100 real production logs across Flash vs Max before gradual rollout (10% → 50% → 100%).
  • ☐ Explicitly lock enable_thinking=false on high-QPS endpoints.

Reproducible Scripts & Sponsorship