| Capability tier | The class of tasks a model handles reliably (extraction, reasoning, coding). |
| Time to first token | Latency felt by users before streaming begins. |
| Model routing | Sending each request to the smallest model that can handle it. |
- A workflow has several steps with different difficulty.
- Cost or latency budgets are tight.
- You need a fallback when a provider is unavailable.
- 01Label each step by required capability (classification vs reasoning).
- 02Benchmark a small and large model on your own evaluation set.
- 03Route simple steps to the smaller model; escalate on low confidence.
- 04Keep a documented fallback provider for critical paths.
Two-tier ticket triage
- Context
- A support desk classifies thousands of tickets per day.
- Problem
- Sending every ticket to a frontier model makes cost per ticket hard to justify.
- Approach
- Route with a small model and escalate only low-confidence cases to a larger one.
- Outcome
- Lower cost per correctly resolved ticket with quality held steady.
Customer assistant during a provider outage
- Context
- A customer-facing assistant depends on a single model provider.
- Problem
- A latency spike makes the assistant unusable for several minutes.
- Approach
- Configure a pinned fallback on a different provider and log which tier answered each request.
- Outcome
- Continuous service with an auditable record of routing decisions.
Route ticket classification
async function classify(text: string) {
const small = await call(smallModel, { text, format: "label" });
if (small.confidence >= 0.75) return small.label;
return call(strongModel, { text, format: "label" }); // escalate
}Measure cost per correctly classified ticket; cheap wrong answers are not savings.
Fallback chain for a customer assistant
primary: { model: "pinned-small", timeout_ms: 1500 }
fallback: { model: "pinned-large", provider: "other-vendor" }
record: [model_version, route_reason, confidence]Use a different provider for the fallback to reduce correlated outages, and log which tier answered each request.
Frontier model everywhere
Up: Highest capability
Down: Highest cost and latency
Small model routing
Up: Fast and cheap
Down: Needs confidence checks and escalation
Self-hosted
Up: Control and data residency
Down: Infrastructure and operations burden
| Option | Upside | Cost |
|---|---|---|
| Frontier model everywhere | Highest capability | Highest cost and latency |
| Small model routing | Fast and cheap | Needs confidence checks and escalation |
| Self-hosted | Control and data residency | Infrastructure and operations burden |
- Evaluate on your data, not public leaderboards.
- Measure cost per successful task, not per token.
- Pin versions and record which model produced each answer.
- Re-run the benchmark when models change.
| Key | Typical value | Note |
|---|---|---|
| primary_model | task-specific | Record in one config file. |
| fallback_model | different provider | Reduces correlated outages. |
| confidence_threshold | task-specific | Triggers escalation to a stronger model. |
| Symptom | Cause | Fix |
|---|---|---|
| Costs grew after a model upgrade | Routing was removed or thresholds changed | Restore per-step routing and review logs. |
| Fallback never triggers | No health or confidence signal | Add explicit escalation rules. |
Is the biggest model always best?
No. For classification, extraction and formatting, smaller models often match larger ones at a fraction of cost.
How many models should we use?
Usually two or three tiers plus a fallback. More adds operational complexity.
More in Models & foundations
Language models: tokens, context and inference
The mental model behind an LLM call: tokenisation, context windows, sampling controls and why outputs are probabilistic.
Embeddings and vector search
How text becomes vectors, what similarity actually means, and when a vector index is the right tool.
Prompting vs fine-tuning vs RAG
A decision guide: which lever changes behaviour, which one adds knowledge, and what each one costs.