A cheaper model or a smarter one
A new AI model costs a fifteenth of today's; another resolves more but costs twice as much. Learn to choose by cost per successful task, within quality and speed bars you set first, and where caching goes wrong.
The lesson in text
Click a paragraph to hear it.01Two new models
Tuesday, ten o'clock. StayHub's AI concierge now handles booking changes in the chat: new dates, a bigger room, breakfast added. About six thousand a day.
In the same week, the AI provider ships two new models. A small one that costs a fifteenth of today's model per task. And a large one that gets more changes right, at twice the price.
Maya, the product manager, wants the smart one: fewer guests stuck, happier guests. Karim wants the cheap one, everywhere. And Lina says this one is yours: she'll only check your answer.
In this lesson, you'll learn to compare AI models the way the business pays for them: by the cost of a task done right, within bars you set first. And you'll see where a clever saving went wrong.
02What you pay for
First, how AI models are priced. You pay per token: a small piece of text, often part of a word. Every message the guest sends, and every answer the model writes, is counted in tokens.
And the price gap between models is huge. On Anthropic's price list today, its smallest model, Haiku, costs ten cents per million tokens read. Its largest, Fable, costs ten dollars. A hundred times more. And on both, writing costs five times more than reading.
| Model | Reading (input) | Writing (output) |
|---|---|---|
| Claude Haiku 5.5 (smallest) | $0.10 | $0.50 |
| Claude Sonnet 5.5 | $2 | $10 |
| Claude Opus 5.5 | $4 | $20 |
| Claude Fable 5.1 (largest) | $10 | $50 |
So Karim's argument sounds decisive. If one model is fifteen times cheaper per task, why pay more? Because the price per token is only an input. It isn't the answer.
03The front desk
Think of a hotel front desk. You could staff it only with the general manager. Every guest would be helped perfectly, at a very high hourly rate.
Or only with trainees. They're cheap per hour. But when a trainee can't solve a problem, the guest waits, comes back, complains, and someone senior ends up fixing it anyway.
Good hotels do neither. Trainees handle most requests, a supervisor checks anything unusual, and the manager steps in when needed. What matters isn't anyone's hourly rate. It's the cost of getting each guest's problem solved.
04Cost per successful task
So let's price one booking change, all in. There's the model's cost. And when the AI can't resolve it, the guest goes to a person in support, which costs StayHub about €4 per conversation.
The old small model cost a fifth of a cent per task, but resolved only seventy percent. The other thirty percent went to people: thirty percent of €4 is €1.20. So the cheap model cost about €1.20 per change.
Today's large model costs three cents per task, fifteen times more. But it resolves ninety-two percent. Only eight percent go to people, thirty-two cents. Total: about thirty-five cents per change.
Now the new ones. The small one resolves eighty-five percent: about sixty cents a change, still worse than today. The large one costs six cents, resolves ninety-six percent, and comes to twenty-two cents: the cheapest of all.
Notice what just happened. The cheapest model per token is the most expensive per task, because its failures land on people. The number that matters is the cost per successful task.
05Set the bars first
So, Maya wins? Not yet. Before you compare costs, decide what "good enough" means. That's the quality bar: StayHub needs at least ninety-three percent of booking changes resolved correctly.
Measure it on your own cases, not on a public leaderboard. StayHub keeps a golden set: four hundred real booking-change conversations, with the right outcome for each. Every candidate model runs through all of them.
Then the speed bar. In chat, ninety-five answers out of a hundred must arrive within five seconds. Engineers call that the p95. The large new model's p95 is six and a half seconds. The cheapest per task, and too slow for chat.
| Setup | Resolved | p95 | € / task | Passes? |
|---|---|---|---|---|
| Small (old) | 70% | 1.5 s | 1.20 | ✗ |
| Large (today) | 92% | 4.8 s | 0.35 | ✗ |
| Small-2 (new) | 85% | 1.4 s | 0.60 | ✗ |
| Large-2 (new) | 96% | 6.5 s | 0.22 | ✗ |
| Cascade: small-2 → check → large | 95% | 4.6 s | 0.21 | ✓ both bars |
And today's model, at ninety-two percent, sits just under the quality bar. So nothing on the table passes both bars. Notice one more thing: the bars were agreed before anyone saw the results. Otherwise whoever likes a model moves the bar to fit it.
The bars also depend on the channel. For the phone concierge, Maya wants the smart model, because callers are often stressed. But it takes over two seconds to start speaking. On a phone line, that's dead air after every sentence, and callers hang up.
06The cascade
So you build what good hotels build: a cascade. The small new model answers first, like the trainee. Then a cheap check, like the supervisor. And only doubtful cases go to today's large model, the manager.
The check is plain code, not AI. Do the new dates exist? Is that room type real in this hotel? And the backend recalculates the price itself, as always. About fifteen percent of changes fail the check and move up.
- 1Small-2 answers firstthe trainee: €0.002 a task
- 2A plain-code checkthe supervisor: do the dates exist? is the room type real? the backend recalculates the price
- 3Doubtful (≈15%) → today's large modelthe manager: €0.030 each, so €0.0045 per task on average
- 4Still unresolved (≈5%) → a person€4 each, so €0.20 per task on average
On the golden set, the cascade resolves ninety-five percent, with a p95 of four point six seconds. It passes both bars. Its cost: under a cent of models, plus twenty cents of support. About twenty-one cents a change.
At a hundred and eighty thousand changes a month, today's model costs about €63,000. The cascade, about €38,000. Twenty-five thousand euros saved every month, with more guests helped.
One warning. A cascade is only as good as its check. If the check lets wrong answers through, the cascade looks cheap and ships mistakes. So measure how often the check is fooled, on labelled cases.
07The cache that knew the wrong guest
Now the saving that went wrong. One weekend, someone switched on a semantic cache for concierge answers. When a new question is similar enough to an old one, it serves the old answer, and the model isn't even called.
One guest asked: what time is my check-out? She had paid for a late check-out, so the answer was two in the afternoon. That answer went into the cache.
Every guest's question looked the same. The right answers weren't. By Monday, about three hundred guests had been told two o'clock instead of eleven. Rooms weren't ready for arrivals. And one cached answer even showed her room number.
- · What time is breakfast?
- · Is there parking?
- · Do you allow pets?
- · What time is my check-out?
- · Is my breakfast included?
- · Which room am I in?
The fix: cache only answers that are the same for everyone, like breakfast hours or parking, per hotel. Never anything about a guest's own booking. And clear the cache when the hotel's information changes. A cache is free intelligence only when the answer really is the same for everyone who asks.
08Your job as lead
New models arrive every few months, each one cheaper or smarter. Treat a model change like any upgrade: Claude Code runs the golden set on the new model automatically, and you switch only when it passes. Teams without a golden set can't use cheaper models safely, because they can't prove nothing broke.
When someone proposes a model, ask three questions. What's the cost per resolved task, with retries and people included? Does it pass our quality bar on our own golden set? Does it pass the speed bar for this channel?
And for any shortcut, like a check or a cache, two more: how often does it let a wrong answer through? Is a cached answer really the same for everyone who asks?
Let's recap. Price per token is an input; cost per successful task is the answer. Set the quality and speed bars first, and test on your own cases. Give each task the cheapest setup that clears both. That closes engineering trade-offs. Every decision in it had the same shape: count every cost, decide the bar before the numbers, and write down when you'll look again. Next comes distributed systems: what changes when StayHub's work is spread across many machines.
Check yourself
0/10 answered1What do AI providers charge for?
2A model costs €0.002 per task and resolves 70%. Each unresolved task costs €4 of support time. What does a task really cost?
3In the front desk picture, what is the cost that matters?
4Karim says: "The new small model costs a fifteenth of today's per task. Switch everywhere." It resolves 85% against today's 92%. What happens to the cost per booking change?
5The large new model has the lowest cost per task (€0.22) but a p95 of 6.5 seconds. The chat bar is 5 seconds. Can it run the chat?
6Where should a model's quality be measured?
7How does StayHub's cascade work?
8Claude Code proposes a cascade and says it saves 70%. Which question matters most before you accept?
9A semantic cache served one guest's late check-out time (14:00) to about 300 others. What's the right fix?
10Next quarter the provider ships another, cheaper model. What do you do?
Save your progress — create a free account
Free. No card. Your finished lessons follow you to any device, and you can ask questions in the community.
Create my free accountEvery lesson is free while we build. Lock in €9/month for later.
The first 100 members keep the founding price for as long as they stay. Reserving is free: no card, nothing is charged.
See the founding offer