Back to Methods & Assets Choose “Save as PDF” in the browser print dialog to take this page with you
CodeLeo · Method one-pager Cost guide

Multi-model routing: put each step on a model priced for it

Break a workflow into steps, assign a model tier by difficulty and cost of failure, and decide who does what by total cost per task rather than a leaderboard score.

Our position

Costs usually run away not because the model is expensive, but because every step is handed to the same most-expensive model.

What to take away

Method breakdown

  1. 01 · Split the workflow into pricable steps

    Split by operation, not by system: classification, extraction, retrieval, drafting, reasoning and review each count as a step. For each one, record typical input and output length, call volume, whether cache hits apply, and who bears the cost when it goes wrong. The goal is not to fragment the flow as finely as possible, but to make every step selectable and priceable on its own.

    • Split by task type, not by system boundary
    • Record input/output length and call volume per step
    • Mark the failure cost and the reviewer for each step
  2. 02 · Route by difficulty and cost of failure

    Group the models you can use into high, mid and low tiers. Keep steps that are hard and expensive to get wrong on the high tier; push format-fixed classification and extraction with clear pass/fail criteria to the low tier; put long-document preprocessing and cache hits on the mid tier. Write routing rules as explicit conditions — task type, length band, confidence threshold — not as an ad hoc choice at runtime.

    • Keep one evaluated candidate in each of the three tiers
    • Write routing conditions as task types and length thresholds
    • Escalate low-confidence results to the next tier automatically
  3. 03 · Review routing on total cost per task

    Do not stop at the price per million tokens. Compute total cost on real tasks: the sum of call costs across steps, plus the apportioned cost of rework and human review, divided by tasks that pass first time. When the price table changes — especially cached-input and output prices — rerun the same sample set and see whether the routing still holds. On a model change, trial the low tier first and move the high tier only after quality holds.

    • Use total cost per task including rework as the primary metric
    • Rerun the same evaluation sample after any price change
    • Roll model changes out from the low tier first

Action checklist

Who this is for

Business owners accountable for AI usage bills, platform and architecture teams, and buyers who need to control delivery cost.