Which AI Model for Which Task: A Decision Tree for Building Software

Most AI tools let you choose between several models: some fast and cheap, some slower and more capable. Many people pick one and never change it. That either wastes money on simple work, or gets subtle mistakes on hard work that a stronger model would have avoided.

Choosing well isn't complicated. It comes down to a few questions about the task.

The models, in plain terms

At the time of writing (November 2026), Anthropic's Claude family has four current models. Their models overview describes them roughly like this:

  • Haiku: the fastest, for high-volume, simple tasks like sorting, extracting and routing.
  • Sonnet: the best balance of speed and intelligence.
  • Opus: for long-running coding and knowledge work. Anthropic suggests it as the starting point for most work.
  • Fable: the most capable, for demanding reasoning and long, complex work.

Other providers have similar tiers. Names change; the idea doesn't.

Many tools also let you set how hard the model thinks (often called "effort"). More effort means slower and more expensive, but better on hard problems.

The decision tree

Ask these four questions about the task:

  1. How complex is it? Is it a well-understood change, or a problem with real unknowns?
  2. How much does it touch? One file or screen, or many parts of the system?
  3. Has it been done before? Is there a clear pattern to follow, or is it brand new?
  4. How costly is a mistake, and how hard is it to check? Can you see at a glance whether it's right, or could a bug hide for weeks?

Then:

  • Mostly simple answers (small, contained, done before, easy to check): a fast or balanced model. Quick fixes, copy changes, a new field on a form, summarizing a document.
  • Mixed answers: the default capable model (Opus, for Claude) at normal effort. Most everyday building lands here.
  • Any hard answer (complex, touches many parts, brand new, hard to check, or high stakes): the most capable model, or higher effort, or both.

How I use it

In my own work, the default capable model handles the tasks I'd give a capable junior developer: clear, well-scoped work with a pattern to follow. I move up to the most capable model, or higher effort, for work that is complex, hard to test, touches many parts of the system, needs creativity, or matters a lot if it's wrong.

Two kinds of work show the difference most clearly.

Design. Smaller models are fine for a one-off addition to a screen that already exists. They're poor at exploring a new feature from scratch, where someone has to hold the whole picture in mind and be creative with it.

Diagnosing bugs. Faced with a strange problem, a weaker model will state the cause and the fix with complete confidence, be proven wrong a few minutes later, and then do it again. You end up in a loop of wrong fixes. A stronger model is far more likely to find the real cause the first time, and to improve step by step if its first attempt misses.

The mistake I see most is the opposite: using a fast model for a hard task to save a little time or money, then spending far longer fixing what it got wrong.

Examples

TaskModel choiceWhy
Fix a typo, change a button labelFast or balancedTiny, easy to check
Add a field to a form and save itBalanced or defaultSmall, clear pattern
Build a new screen from a mockupDefaultEveryday building
Change how prices are calculated everywhereMost capableTouches many parts, costly if wrong
Track down an intermittent bugMost capable, higher effortHard to reason about
Plan the structure of a new appMost capableMistakes here affect everything after
Sort 5,000 support emails by topicFastHigh volume, simple judgment

What the choice costs

At the time of writing, each step down Claude's range costs about half as much as the one above it: Opus is about half the price of Fable, and Sonnet about half the price of Opus. Haiku is far cheaper again. Faster models also answer sooner, which matters when you're waiting on dozens of small changes a day.

For most small projects, the bill isn't the real cost. Your time is. An hour spent untangling a subtle mistake from a model that was too small for the job costs more than a month of using the right one. So the rule I'd give a beginner is simple: when in doubt, go up a level, not down.

Where cost does matter is volume. If a tool you've built calls an AI model thousands of times a day, to sort emails or read invoices, the cheapest model that does the job reliably is the right one. Test it on a few hundred real examples before you decide.

Signs you picked the wrong model

Too small for the task:

  • It fixes one thing and breaks another.
  • It forgets a rule you gave it earlier in the same session.
  • Its answers sound confident but miss the point of the question.
  • You've rewritten the prompt three times and nothing improves.

Bigger than you need:

  • The task is simple and repetitive, and you're waiting on every answer.
  • You're running a high-volume job and the bill is climbing.

Two more tips

  • Plan with a strong model, build with the right one. A capable model makes a better plan. Once the tasks are small and clear, many can be handled by a faster one.
  • When results disappoint, move up before you rewrite your prompt. Often the model, not the instructions, was the limit.

Common questions

Which AI model is best for coding? There isn't one best model. Use the most capable one for planning and for anything complex or risky, and a faster one for small, clear tasks.

Should I just always use the most powerful model? For a small project, that's a reasonable default. You'll pay a little more and wait a little longer on simple tasks, and avoid the costlier mistake of using too small a model on a hard one.

What does "effort" or "thinking" mean in these tools? It's how much reasoning the model does before it answers. More helps on hard problems and is wasted on easy ones.

Do I need to switch models in the middle of a project? Often, yes. Plan with a strong model, build routine pieces with a faster one, and go back up for anything that turns out to be hard.

Will this advice go out of date? The model names will. The four questions won't.

Related guides: plan before you prompt, testing AI-written software and writing a project instructions file.

The bottom line

Match the model to the task: fast for simple, high-volume work; the default for everyday building; the most capable for anything complex, wide-reaching, new or high-stakes. Four quick questions are enough to decide.

This is part of my guide to building software with AI. Choosing models is one of the things the founders' workshop covers hands-on, or book a call.

Have a project in mind?

Tell me what's slowing you down and I'll tell you honestly whether it's worth building. 30 minutes, free, no obligation.

Book a free 30-minute call

Next: pick a time from my calendar.