Skip to content

Using AI · Working

Picking the right model for the job: routing, cheap vs strong, and fallbacks

How to match a job to a model size, test whether a cheaper model is good enough with ten real examples, route requests by hand or by rule, and build a fallback list that keeps a tool working when a model fails. With the ladder behind this site's own assistant.

By Oregon Healing Updated 11 min read Lesson 8 of 20 in Using AI Take the quiz Study guide

Picking the right model for the job: routing, cheap vs strong, and fallbacks

Once you are paying for AI by the token, the most important choice you make is which model answers. The same question can cost forty times more on one model than another, and the expensive one is not always better at it. This lesson covers how to match a job to a model, how to test whether a cheaper model is good enough, and how to set up a fallback so your tool keeps working when a model goes down. It builds on the previous lesson on pricing.

Top: a job comes in, and the first question is how hard it is. It branches three ways: Simple, such as sorting, tagging or pulling out a date, goes to a Haiku-class model; Most work, such as writing and coding, goes to a Sonnet-class model; Hard or costly judgment goes to an Opus or Fable-class model. Bottom: if the chosen model fails, the same request moves along a list on each error: 1, first choice; 2, next model from the same vendor; 3, a model from a different vendor; 4, a last rung in green with high rate limits that is hard to retire. A note lists the errors that move it on: rate limit, outage, retired model, refusal, empty reply. A monthly spend cap is not a hiccup.
Two decisions: which model to try first, and where to go when it fails.

Three sizes of model

Most AI companies sell their models in sizes. Small ones are fast and cheap. Large ones reason more carefully and cost more. Anthropic puts its own advice in one sentence on its pricing page: "Choose Haiku for simple tasks, Sonnet for most production workloads, and Opus for the most complex reasoning." Fable sits above Opus for the hardest work.

In practice, for a small practice, the sizes sort out roughly like this:

  • Small (Haiku class). Sorting, tagging and pulling facts out of text. Is this email a scheduling question or a billing question? What date is mentioned in this paragraph? Rewrite this sentence at a sixth-grade reading level. Short, well-defined jobs with one right answer.
  • Middle (Sonnet class). Most writing and most building. A first draft of a blog post, a summary of a long public report, a small change to a website. This is where I start when I am unsure.
  • Large (Opus and Fable class). Work where a wrong answer is costly or the reasoning has many steps. Reviewing a contract clause, untangling a bug that has resisted two attempts, planning a complicated project.

Other companies have the same ladder under different names. Google sells Flash and Pro versions of Gemini. xAI's current flagship is Grok 4.7. The names change every few months; the idea of small, middle and large does not.

Here is how that plays out on a week of ordinary practice chores, none of which involve client information:

  • Sorting fifty newsletter replies into "unsubscribe", "question" and "thanks": small.
  • Turning a voice memo transcript into a tidy blog draft: middle.
  • Rewriting your fee policy so it is clearer: middle, and you read every line.
  • Comparing two lease proposals for a new office and listing what each one commits you to: large, because a missed clause costs real money, and you still check it against the documents yourself.

Notice that the choice follows the cost of a mistake as much as the difficulty. A wrong tag on a newsletter reply costs nothing. A missed lease clause does.

Cost per task, not cost per token

Per-token prices are easy to compare and slightly misleading. What you care about is what it costs to get the job done. A cheap model that needs three tries, or takes twenty steps where a strong model takes eight, can end up costing more.

The AI search company Perplexity published a benchmark this year that measures exactly that: the cost to finish a whole research task. In its November results, Google's Gemini 4 Carbon and Anthropic's Fable 5.2 scored almost the same (0.857 and 0.851), but Gemini finished at about $5.86 per task and Fable at about $14.51. That is one company's test of its own kind of work, so I do not treat the numbers as a ranking. What I take from it is the method: measure the finished job.

The opposite mistake is just as common. When an answer is wrong, the first instinct is to reach for a bigger model. Often the problem is that the model did not have the information it needed, or the instructions were vague. A bigger model with the same missing context makes the same mistake more expensively. Lesson 9 is about fixing that side.

How to test whether a cheaper model is good enough

You do not need special tools for this. You need ten real examples and an hour.

  1. Collect ten real inputs for the job, with no client information in them. Ten public questions your website gets, ten paragraphs you want tagged, ten drafts you want tightened.
  2. Write down what a good answer looks like before you run anything. A tag from a fixed list, a summary under 100 words that mentions the deadline, whatever applies.
  3. Run the same ten through a small model and a middle one. Most chat apps let you pick the model from a menu at the top of the chat, so you can do this by hand.
  4. Score them against your list, ideally without looking at which model wrote which answer.
  5. Pick the cheapest model that passes. If the small one gets nine of ten and the one miss is harmless, use the small one. If a miss would embarrass you, step up.

Repeat the test when a new model comes out. Small models improve quickly, and a job that needed a middle model last spring may not need one now.

Routing: sending each job to the right place

Routing just means deciding which model gets which request. There are three ways to do it, from simplest to most automatic.

  • By hand. You pick the model from the menu before you start. This is all most people need in a chat app.
  • By rule. In a tool you build, each kind of job is hard-wired to a model. Tagging always goes to the small one, drafting to the middle one.
  • By a small model. A cheap, fast model reads the incoming request first and decides how hard it is, then hands it to the right size. This is what my site's assistant does, described below.

A pattern I see more developers talk about is a version of the third: a cheap model does the routine work and calls on a stronger model only when it gets stuck. I have not seen a single standard way to set that up, so I mention it as a direction rather than a recipe.

Fallbacks: what happens when a model fails

Models fail more often than people expect. A company has an outage. A free model is retired with little notice. You hit a rate limit during a busy hour. A model refuses a perfectly harmless request, or sends back an empty answer. If your tool depends on one model, any of those takes it down.

A fallback is a list. When the first model fails, the same request goes to the second, then the third. The rules I follow come from running one of these for real:

  • Move on after any error from a model, not only the ones you predicted. Rate limits, timeouts, refusals, garbled replies and "model not found" all count. The only thing that should stop the chain is a missing key, which is a setup mistake to fix.
  • Include at least one model from a different company. If the first two models on your list come from the same company, one outage takes out both.
  • End the list on a model with generous rate limits and a name that is hard to retire. Some companies offer a "latest" name that always points at their current model, which survives retirements.
  • Set a deadline for the whole chain. A visitor will not wait two minutes while your tool tries six models.

One error needs its own handling. As lesson 7 explained, when you hit your monthly spend cap, the error looks like a rate limit, but waiting will not fix it. A good fallback treats that model as unavailable for the rest of the month and moves on.

Routers: one key for many models

Services such as OpenRouter sit between your tool and the AI companies. You hold one key, and through it you can reach hundreds of models from many vendors. You can give it an ordered list of models, and if the first fails (the request is too long, a model is down, a rate limit is hit, or a content filter refuses it), it tries the next. It also offers an automatic option that chooses a model for you, with a setting for low, medium or high cost.

Three things to know before you use one:

  • You pay for the model that answered. If you list a free model first and it falls back to a paid one, that request costs money.
  • A router is one more company that sees your prompts. Read its privacy terms as carefully as the model company's.
  • It is not a route to HIPAA coverage. Anything involving client information needs a vendor that signs a business associate agreement, covered in HIPAA-safe AI tools, BAAs, and what not to paste.

For a beginner, a router is a convenient way to try many models with one account. For anything that matters, the same fallback rules apply whether you build the list yourself or let a router hold it.

My own setup

The Ask box and the dashboard helper on this site run on a fallback list I call a ladder. It answers public questions about the site, never anything about clients. Here is how it works, in plain terms:

  • A small model reads the question first and decides what kind of question it is. A larger model writes the answer.
  • The ladder has four companies on it. The first rungs are open models hosted by Groq. If those fail, it moves to a model on NVIDIA's hosted service, then to Cerebras, then to Google's Gemini Flash. The last rung uses Google's "latest" name, so a retirement on Google's side cannot break it.
  • Any failure moves it down one rung. A missing key skips that company entirely, and there is a deadline for the whole climb, so a visitor gets an answer or a polite message in reasonable time.
  • The keys live in a private settings file on the server, as lesson 7 recommends.

I built it that way because free models get retired with little notice, and one dead model should never mean a dead Ask box. My daily work is different: there I pick by hand. I use a large model for planning and anything I would be embarrassed to get wrong, and I let smaller ones handle the mechanical parts.

Model names, prices and router features in this lesson were checked against the linked pages on November 24, 2026. New models arrive every few months; rerun your ten-example test when they do.

Further reading

Sources

  1. “Pricing.” Anthropic. "Choose Haiku for simple tasks, Sonnet for most production workloads, and Opus for the most complex reasoning." Per-model prices. https://platform.claude.com/docs/en/about-claude/pricing (accessed Nov 24, 2026).
  2. “Models overview.” Anthropic. Current Claude models and their intended uses. https://platform.claude.com/docs/en/about-claude/models/overview (accessed Nov 24, 2026).
  3. “Model fallbacks.” OpenRouter. Ordered models array; falls back on context length, moderation, rate limits and downtime; billed for the model that answered. https://openrouter.ai/docs/guides/routing/model-fallbacks (accessed Nov 24, 2026).
  4. “Auto router.” OpenRouter. Automatic model choice with a low, medium or high cost tier. https://openrouter.ai/models/openrouter/auto (accessed Nov 24, 2026).
  5. “xAI API overview.” xAI. Flagship model grok-4.7; OpenAI-compatible API. https://docs.x.ai/docs/overview (accessed Nov 24, 2026).
  6. “Gemini Developer API pricing.” Google. Flash and Pro model tiers. https://ai.google.dev/gemini-api/docs/pricing (accessed Nov 24, 2026).
  7. “WANDR benchmark cost per task (post on X).” Perplexity. Perplexity's own benchmark: Gemini 4 Carbon 0.857 at about $5.86 per task, Fable 5.2 0.851 at about $14.51. One vendor's test; cited for method, not ranking. https://x.com/perplexity_ai/status/2120209857622253674 (accessed Nov 24, 2026).
  8. AI Matrix. “OpenRouter Tutorial.” YouTube, Aug 5, 2026. Video, 4:14. Lesson video. https://www.youtube.com/watch?v=vyxhNI8fwU4 (accessed Nov 24, 2026).

Study guide

Key ideas

  • Models come in sizes: small (Haiku class) for sorting and tagging, middle (Sonnet class) for most work, large (Opus and Fable class) for costly judgment
  • Compare cost per task, not cost per token
  • A wrong answer is often missing context, not a model too small

The ten-example test

  • Ten real inputs with no client information
  • Write the pass standard first, run small and middle models, score, pick the cheapest that passes
  • Rerun when new models come out

Fallback rules

  • Move on after any per-model error; only a missing key stops the chain
  • At least one model from another company; end on a high-limit model with a name that is hard to retire
  • A deadline for the whole chain; treat a spend-cap error as unavailable until the month resets
  • Routers: you pay for the model that answered; one more company sees prompts; no HIPAA coverage

Sources

Open the study guide on its own page

Check what you learned

10 questions from this lesson. Answers are checked as you go; nothing is recorded.

  1. 1 / 10

    According to Anthropic's pricing page, which model is meant for most production workloads?

    Hint

    The middle size.

  2. 2 / 10

    Which job is the best fit for a small, cheap model?

    Hint

    Short, well defined, one right answer.

  3. 3 / 10

    Why can per-token prices mislead you?

    Hint

    Think about the finished job.

  4. 4 / 10

    An answer is wrong. What should you check before switching to a bigger model?

    Hint

    Lesson 9 covers it.

  5. 5 / 10

    In the ten-example test, when do you write down what a good answer looks like?

    Hint

    Avoid grading on a curve.

  6. 6 / 10

    What does "routing" mean here?

    Hint

    It happens before the model answers.

  7. 7 / 10

    Which errors should move a fallback list to the next model?

    Hint

    You cannot predict every failure.

  8. 8 / 10

    Why put a model from a different company on your fallback list?

    Hint

    Think about a bad day at one company.

  9. 9 / 10

    You list a free model first on a router and it falls back to a paid one. What happens?

    Hint

    Billing follows the answer.

  10. 10 / 10

    Does using a router give you HIPAA coverage?

    Hint

    Coverage comes from a signed agreement.