Sub topic 8
Choosing between model tiers
This chapter assumes you know how input and output tokens are priced and how an agent loop resends its context on every turn. It covers what separates model tiers and how to pick one for a given kind of work.
What a tier is
Most providers sell a family of models at several levels. The names differ, but the pattern is the same: a small, a mid and a large model. Each step up usually gains capability and loses on price and speed.
| Tier | Typical strengths | Relative price | Relative latency |
|---|---|---|---|
| Small | Classification, summarizing, simple edits, running a fixed procedure | Lowest | Fastest |
| Mid | Everyday coding, multi-file edits, debugging with clear signals | Middle | Moderate |
| Large | Ambiguous design, hard debugging, long multi-step plans | Highest | Slowest |
The "relative" columns are the part you can rely on. Exact prices and speeds change often, so read them from your provider's current price list and your own measurements.
Three dimensions to compare
Capability is how often the model gets the step right. A step that needs judgment, such as deciding which module to change, separates tiers more than a step that follows a template.
Cost is the per-token rate multiplied by tokens used. A large model can be 20 to 30 times the price of a small one, and that ratio applies to every turn of the loop.
Latency is how long you wait per turn. In an agent loop, slow turns add up. A model that is slightly better per step but several times slower can make the whole session feel worse.
Seeing the price gap
The script below prices the same workload on three tiers. The rates are placeholders, not real prices.
PRICES = { # USD per million tokens (placeholders)
"small": {"input": 0.5, "output": 2.5},
"mid": {"input": 3.0, "output": 15.0},
"large": {"input": 15.0, "output": 75.0},
}
# Total tokens across one agent session.
input_tokens = 200_000
output_tokens = 10_000
for tier, p in PRICES.items():
cost = (input_tokens * p["input"] + output_tokens * p["output"]) / 1_000_000
print(f"{tier}: ${cost:.3f}")This prints small: $0.125, mid: $0.750 and large: $3.750. The large tier costs 30 times the small tier for the same token counts. That gap is only worth paying when the large model avoids failures the others would hit.
A practical selection process
- Start with the mid tier as the default. It handles most coding work.
- Move steps down to the small tier when the work is mechanical and easy to check, such as summarizing a log.
- Move up to the large tier only for steps where the mid tier has failed.
- Re-test periodically. Small and mid models improve, and a step that needed the large tier last year may not need it now.
Common mistakes
- Using the large tier everywhere. This pays the highest rate on every turn, including turns that are mechanical.
- Using the small tier for planning. A weak plan causes retries, and retries cost more than the saved rate.
- Ignoring latency. Waiting on slow turns costs developer time, which is often more expensive than tokens.
- Judging by price per token. A cheaper model that fails often can cost more per finished task. A later chapter covers this in detail.
Exercise
A step runs 40 times per session, summarizing test output. The small tier fixes it correctly in nearly every run. The large tier is 30 times the price. Which tier should you pick, and what would change your answer?
Show answer
Pick the small tier. The step is mechanical and the small model already succeeds, so the large tier adds cost without adding results. Your answer would change if measurements showed the small tier's summaries often missed failures, causing retries or wrong fixes. Then the extra cost of failures could exceed the large tier's price.