Latest / AI Fire Daily / #577 Neil: Reduce Claude Sonnet 5 Costs With Smarter Model Routing
Transcript
- 0:00You have access to one of the most brilliant
- 0:03AI models ever created, and you are likely using
- 0:07it right now to do the digital equivalent of
- 0:09tying your shoes. Yeah, it's wild. We basically
- 0:12treat a massive supercomputer like a cheap pocket
- 0:15calculator. We do. We reflexively throw our absolute
- 0:19easiest problems at the smartest AI available,
- 0:22and we bleed money in the process without even
- 0:25realizing it. Beat. It is a quiet, expensive
- 0:28trap. It drives me crazy, honestly. But today,
- 0:31we're fixing that. Right. Welcome to today's
- 0:34Deep Dive. If you are listening to this, you
- 0:36have probably opened your developer dashboard
- 0:39at the end of the month. Oh, yeah. You saw the
- 0:41bill for ClaudeSonic 5, and you felt that immediate
- 0:45pit in your stomach. I know that feeling all
- 0:46too well. So our mission today is dissecting
- 0:50exactly how to optimize those workflows. You
- 0:52should only pay for premium AI power when you
- 0:54actually need it. Today is all about building
- 0:56a highly efficient system. I mean, we're going
- 0:58to audit where you're currently wasting money
- 1:00first. Then we'll draw a hard line on what actually
- 1:04needs sun at five. And then this is my absolute
- 1:07favorite part. We are going to build an automated
- 1:10router. A system that makes the cost decisions
- 1:12for you in real time. Exactly. And finally, we'll
- 1:15cover testing and safely migrating your tasks.
- 1:18But before we can cut costs, we have to slow
- 1:20down. We have to actively observe the moving
- 1:24parts of our daily workflows. Right. You can't
- 1:26optimize a system if you don't understand its
- 1:28basic mechanics. Exactly. Breaking down a workflow
- 1:32step by step is crucial. Think about a standard
- 1:36workflow you run every single day. You gather
- 1:38your research material, you summarize that research,
- 1:41you extract key data points, you write a draft,
- 1:44and finally you review it. Every single one of
- 1:47those steps currently hits the most expensive
- 1:49model. Pete, I actually have a vulnerable admission
- 1:52to make right here. Oh, let's hear it. I still
- 1:54wrestle with model costs myself. all the time.
- 1:57It is so incredibly easy to just, you know, default
- 2:00to the biggest model. Oh, completely. It feels
- 2:02safer. It does. You just ignore the bill until
- 2:04it finally hurts. You are definitely not the
- 2:06only one doing that. I mean, it's human nature
- 2:08to choose the path of least resistance. Yeah.
- 2:10That is exactly why we use a specific audit prompt
- 2:13to break that habit. You rate each of your workflow
- 2:16tasks on a strictly defined 1 to 5 scale. I like
- 2:20the idea of quantifying it. But what are the
- 2:23actual dimensions we are measuring here? So,
- 2:26we measure three distinct things for every single
- 2:28task. We rate the raw reasoning required, we
- 2:31rate the potential error risk, and we rate the
- 2:35context requirement. That context requirement
- 2:37is a really fascinating metric to isolate. Yeah,
- 2:40it really is. It essentially measures how much
- 2:42background information the model needs to hold
- 2:44in its working memory to do the job right. Right.
- 2:47And the results from this structured audit are
- 2:49often highly counterintuitive. Well, I would
- 2:52assume data extraction is a total no -brainer
- 2:54for the cheap tier. It is just finding a number
- 2:57on a page and pulling it out. That requires basically
- 3:00zero reasoning. And that is exactly where the
- 3:03trap usually hides. Yeah. Simple data extraction
- 3:05looks incredibly cheap on the surface. But when
- 3:08you rate it on error risk, it scores massively
- 3:11high. Ah, because of the downstream blast radius?
- 3:14Precisely. If it pulls the wrong revenue number,
- 3:16the subsequent financial report is entirely compromised.
- 3:19Exactly. a bad date or a missing client name
- 3:22breaks everything downstream. So that simple
- 3:25extraction might actually need to stay on Sonnet
- 3:285. Or at the very least, you have to engineer
- 3:30a strict manual validation step. Right. Now conversely,
- 3:34basic text summarization feels like a complex
- 3:37premium task. But the audit shows it's an easy
- 3:41switch. Because it requires low reasoning and
- 3:43it is very easy for you to spot check. Exactly.
- 3:45To sex silence. Are humans actually good at accurately
- 3:48rating this error risk ourselves? Or do we just
- 3:51suffer from massive cognitive blind spots? We
- 3:54are honestly quite terrible at evaluating our
- 3:56own risks. We routinely underestimate risk until
- 4:00something completely breaks in production. Yeah.
- 4:02That is why this prompt framework is so valuable.
- 4:04It acts as a totally objective mirror for your
- 4:07workflow. So the prompt forces us to see risks
- 4:10our biases usually hide. Perfectly said. It takes
- 4:13the emotional guesswork out of the entire equation.
- 4:16Now that the audit shows us our blind spots,
- 4:17we can move forward. How do we actually draw
- 4:20the line between premium and budget tasks? Well,
- 4:23using Sonnet 5 for absolutely everything is just
- 4:26incredibly wasteful. It is like using a supercomputer
- 4:29as a calculator. Oh, I love that analogy. It's
- 4:31so true. Routing tasks like this feels a lot
- 4:34like hospital triage. You do not send a guy with
- 4:38a scraped knee to the top neurosurgeon. Right.
- 4:40You send him to the triage nurse. Exactly. That
- 4:42frees up the surgeon for the complex traumas.
- 4:45We are essentially building an AI triage nurse.
- 4:48That is a brilliant way to frame it. We have
- 4:50to identify what truly must stay on the neurosurgeon's
- 4:53table. Complex research is a non -negotiable
- 4:56premium task. Difficult coding definitely stays
- 5:00on the premium tier, and multi -step agent workflows
- 5:03must also stay on Sonnet 5. Because agent workflows
- 5:06require the model to independently plan, execute,
- 5:09and course -correct. That demands high -level
- 5:12autonomous reasoning. Exactly. Strategic analysis
- 5:15is another one that needs the big brain. The
- 5:17source material gives a really vivid example
- 5:20of this. What is the example? Imagine you're
- 5:22asking the AI to compare five different competitor
- 5:25reports. Wow! That is a massive amount of dense
- 5:29often contradictory information to hold in memory
- 5:32It is you are asking the model to cross reference
- 5:36conflicting claims You're asking it to judge
- 5:39the underlying evidence behind those claims right
- 5:41and then you wanted to recommend actionable new
- 5:45market opportunities. That requires deep semantic
- 5:48understanding. It has to weigh the relationships
- 5:51across a massive context window. It also needs
- 5:53to notice when the provided data is simply weak.
- 5:56It has to flag when it cannot responsibly make
- 5:58a clear recommendation. That kind of nuanced
- 6:01judgment is exactly why you pay for Sonnet 5.
- 6:04If you move that kind of synthesis to a cheaper
- 6:06model, the quality will absolutely drop off a
- 6:09cliff. Cheaper models suffer from severe attention
- 6:11dilution. They just lose the thread of the argument.
- 6:13And then you just end up checking all the original
- 6:15sources again manually, which defeats the entire
- 6:18purpose of automating it in the first place.
- 6:20Right, you're fixing the weak reasoning yourself.
- 6:22The money you save on the back end is completely
- 6:24wasted by your own time. So let's contrast that
- 6:27with the scraped knees. What can safely move
- 6:30to the triage nurse models? You have a lot of
- 6:33great options for the cheaper tier. Categorizing
- 6:36text into predefined labels is a perfect candidate.
- 6:39OK. Formatting raw text into a fixed predictable
- 6:42structure works beautifully. And basic summarization,
- 6:46as we established, is very safe. Let's look at
- 6:49formatting into predictable structures, like
- 6:51processing a standard business invoice. Exactly.
- 6:54You only need a few specific details pulled from
- 6:57the page. You need the company name, the invoice
- 7:00date, and the total amount. You want to extract
- 7:02it into a valid JSON format. meaning a simple
- 7:05text structure computers read easily. So instead
- 7:08of returning a messy conversational paragraph,
- 7:10it just returns the raw formatted variables.
- 7:12Right. The prompt tells the cheaper model exactly
- 7:15what to do. If a field is missing, just return
- 7:18null. Do not try to guess or hallucinate missing
- 7:21values. This request requires drastically less
- 7:24reasoning than synthesizing competitor reports.
- 7:27Night and day difference. The cheaper model is
- 7:30more than capable of this pattern matching, and
- 7:32the result is incredibly easy for you to verify.
- 7:35Because you just look at the invoice and check
- 7:37the numbers. Exactly. So we are looking at a
- 7:40core trio of decision -making criteria here.
- 7:42Yes. How much raw reasoning is actually needed?
- 7:45How easy is the final output to quickly check?
- 7:48And what is the blast radius of a single mistake?
- 7:51Is there a danger in defining these tasks too
- 7:54broadly? Like, assuming all research is automatically
- 7:57complex tasks? Oh, there's a massive danger in
- 7:59doing that. Granularity is the absolute key to
- 8:02making this writing work. Researching a simple
- 8:04textbook definition is a very cheap task. Synthesizing
- 8:07an emerging market trend strictly requires Sonnet
- 8:105. Right, the devil is in the details. Nuance
- 8:13dictates the model tier. You have to look closely
- 8:15at the specific mechanics of the job. So, we
- 8:18have drawn these lines manually now. But doing
- 8:21this by hand for every single task is exhausting.
- 8:25Yeah, nobody wants to do that. We need to build
- 8:27an automated traffic controller. We simply do
- 8:30not want to actively think about this every time
- 8:32we execute a workflow. And that is the real beauty
- 8:35of a dedicated routing system. We shift away
- 8:38from sending absolutely everything to Claude
- 8:40Sonnet 5 by default. Right. We create a much
- 8:43smarter automated flow. right at the entry point.
- 8:46It goes from the task to a complexity check,
- 8:48then it routes to a cheaper model or to Sonnet
- 8:515. But wait, if the router has to read the prompt
- 8:55to decide if it is complex, isn't it basically
- 8:57doing the heavy lifting already? How does it
- 8:59judge complexity without actually solving the
- 9:01problem? That is the clever part. The router
- 9:04evaluates the instruction's complexity footprint,
- 9:06not the final answer. It is essentially pattern
- 9:09matching the request type. Ah, I see. We achieve
- 9:12this by using a highly constrained routing prompt
- 9:14on a fast, cheap model. So the router just looks
- 9:17for trigger words or structural complexity in
- 9:19the prompt itself. Exactly. The router analyzes
- 9:22the incoming task, then it outputs a tiny, simple
- 9:27piece of code. It just outputs route .cheap,
- 9:31or routes on it. Right, and it includes one short
- 9:34sentence explaining the reason for the decision.
- 9:37Which gives you an audit trail. This logic plugs
- 9:40seamlessly into automation tools you might already
- 9:42use to connect your apps, things like NaN or
- 9:46Make. Two -sec silence, whoa. What? Imagine scaling
- 9:50this to millions of automated decisions. It's
- 9:52mind -blowing. You are perfectly optimizing brain
- 9:54power and budget in real time, completely hands
- 9:57-off. It is like building a highly efficient
- 9:59digital nervous system for your entire business.
- 10:01It really is a beautiful thing to watch run.
- 10:04It intelligently evaluates every single request
- 10:06before spending your money. API calls requests
- 10:09your computer makes to the AI become incredibly
- 10:11cheap. But does adding a router step introduce
- 10:14a new problem? Does it just add a new point of
- 10:16failure or unnecessary latency into the workflow?
- 10:19There is a very slight delay up front. That is
- 10:21absolutely true. But a microsecond routing prompt
- 10:24is incredibly cheap and lightning fast. Right.
- 10:27Because it is not generating a long answer, it
- 10:29saves massive latency and cost on the heavy backend
- 10:32execution. A tiny delay up front saves massive
- 10:35time and money on the backend. Exactly. It is
- 10:37a micro investment that pays off instantly. So
- 10:40the automated router is built and theoretically
- 10:43ready to go, but flipping the switch blindly
- 10:46across your entire workflow is dangerous. Extremely
- 10:49dangerous. We have to test the waters carefully
- 10:51before aggressively moving tasks away from Sonnet
- 10:535. You should never migrate simply because a
- 10:57model is cheaper. That is a guaranteed recipe
- 11:00for broken workflows and massive frustration.
- 11:03We need a rigorous testing framework before we
- 11:05commit to the new routing. And the testing framework
- 11:07is actually quite elegant. You take a group of
- 11:10real, typical tasks from your daily workflow.
- 11:13You run the exact same input through CloudSonic
- 11:155. That becomes response A. And you run it through
- 11:18the cheaper model. That becomes response B. Then
- 11:21you use a prompt to evaluate them against each
- 11:23other. You are essentially using a large language
- 11:25model as an impartial judge. Yes. You ask a powerful
- 11:29model to score both responses side -by -side.
- 11:32You are checking for strict accuracy, completeness,
- 11:35and instruction following. You want to objectively
- 11:37identify any important errors or missing details
- 11:40in the cheaper model's output. This highlights
- 11:43the hidden, often completely ignored, cost of
- 11:46human correction. This is the single most crucial
- 11:48point of the whole process. The cheaper model
- 11:51might save you a few pennies on API costs per
- 11:53run. But if it drops one key detail, a human
- 11:56might spend 20 minutes tracking it down. And
- 11:5920 minutes of human time completely obliterates
- 12:01fractions of a cent in API savings. You are actually
- 12:04bleeding more money on the deal. Precisely. If
- 12:07you routinely have to fix missing details or
- 12:09correct formatting, keep the task on Sonnet 5.
- 12:12Right. The cheaper model just needs to work flawlessly
- 12:15for one specific job. It does not need to possess
- 12:18the general intelligence to replace Sonnet 5
- 12:20entirely. It just needs to do its one assigned
- 12:23chore. Perfectly. How many tasks should someone
- 12:27realistically test? When do you finally feel
- 12:29confident in the cheaper model's actual baseline
- 12:31reliability? I strongly advise starting with
- 12:34a small, highly diverse batch, use maybe 50 to
- 12:38100 typical daily tasks that represent your actual
- 12:41workload. You need just enough volume to spot
- 12:44repeating systemic patterns of failure. Test
- 12:47a small diverse batch until you spot the model's
- 12:50breaking point. Exactly. Find exactly where it
- 12:52breaks and you map its true limits. So we have
- 12:54audited, we have routed, and we have tested.
- 12:56Now it is time to safely deploy this system into
- 12:59the wild. The fun part. We need to execute this
- 13:01without breaking our daily operations. The underlying
- 13:04philosophy here is to migrate very slowly. There
- 13:08is no magic one size fits all traffic split for
- 13:11every single workflow. The source material shares
- 13:14a really fascinating real -world setup for this
- 13:17migration. Oh, it is a brilliant example of hybrid
- 13:19model architecture. One user setup used 80 %
- 13:22Sonnet 5 for the actual granular execution of
- 13:25tasks, but they used 20 % Opus 4 .8 strictly
- 13:29for the high -level planning phase. Because Opus
- 13:314 .8 excels at overarching strategic foresight.
- 13:35It sets the complex architecture, and Sonnet
- 13:375 acts as the highly capable engine executing
- 13:40the steps. And what was the financial... result
- 13:43of that specific hybrid split. They cut their
- 13:46monthly clod spending by about 50 percent and
- 13:49they achieve that massive cost reduction with
- 13:51absolutely no clear drop in final output quality.
- 13:54That is incredible. But how do we build our own
- 13:57custom deployment plan? You use a dedicated migration
- 14:00prompt fed with your rigorous test results. This
- 14:04prompt dictates your precise migration priority
- 14:07moving forward. Right. It tells you exactly what
- 14:09percentage of traffic to test on the cheaper
- 14:11model first. It also establishes validation checks.
- 14:14and clear automated fallback rules. Yes. The
- 14:18final elegant operational flow looks like this.
- 14:20The routed task goes to the cheaper model first.
- 14:23The cheaper model generates an outplot. Then,
- 14:26that output hits a strict validation check. Finally,
- 14:28it falls back to Claude Sonnet 5 only if it fails
- 14:31that check. You are keeping Sonnet 5 as the premium,
- 14:34highly reliable safety net. It is always there
- 14:37to catch the complex edge cases when the triage
- 14:39nurse gets overwhelmed. It guarantees you never
- 14:42sacrifice final quality for cost. What does a
- 14:45good validation check actually look like in practice?
- 14:49How do we automatically check the work before
- 14:51escalating it up to Sonnet 5? It is usually a
- 14:54very simple programmatic structural check. For
- 14:57instance, you might run a script to ensure the
- 14:59JSON schema is strictly being followed. Or you
- 15:03write a basic rule that checks that all the absolutely
- 15:06required data fields... are present and not empty.
- 15:10So validation is just a quick automated proofread
- 15:13before calling the heavy hitter. That is exactly
- 15:15it. A cheap instant proofread before you pay
- 15:17for an expensive rewrite. We have covered a massive
- 15:20amount of technical ground today. Let's recap
- 15:22the core philosophy we have been unpacking. Claude
- 15:25Sonnet 5 is an incredibly powerful premium cognitive
- 15:29tool, but true operational efficiency is using
- 15:32it only where it adds real irreplaceable value.
- 15:35We have to stop paying premium prices for basic
- 15:38budget level tasks. It is all about purposefully
- 15:41matching the tool to the specific job. I highly
- 15:44encourage you to look at your own workflows today.
- 15:47Run a quick mental audit of the specific tasks
- 15:49you currently automate. Ask yourself if you are
- 15:52truly optimizing the architecture or just defaulting
- 15:55to the easiest option. It is so incredibly easy
- 15:58to fall into that default trap. I want to leave
- 16:01you with a final provocative thought today. Let's
- 16:05extend this entire routing idea beyond just artificial
- 16:07intelligence and API overhead. I want you to
- 16:11seriously consider your own biological brain
- 16:14power. Oh, I really like where this is going.
- 16:16Think about your daily mental energy as a finite
- 16:19API budget. How much of your biological energy
- 16:22is spent on cheaper model tasks? How much of
- 16:25your day goes to basic formatting, simple data
- 16:27extraction, or answering repetitive emails? We
- 16:30all do so much robotic low -level work every
- 16:32single day without questioning it. Exactly. What
- 16:35if you rigorously audited your own mental workflow?
- 16:38What if you actively delegated or automated those
- 16:41lower -tier tasks away from yourself? Wow. Imagine
- 16:44freeing up your own internal Sonic 5. You could
- 16:47reserve that premium biological energy purely
- 16:49for deep strategic thinking and complex problem
- 16:52-solving. Building a router for your own brain.
- 16:55That is the ultimate efficiency system right
- 16:57there. It really is. Thank you for joining us
- 16:59on this deep dive today. We will catch you on
- 17:01the next one.