Skip to main content
Technical Enough

Choose the model you ship

Chapter 8 of 10 in Add AI Features · 23 min

You have been testing the club's support assistant on your laptop, and its answers are good. One evening an answer to a simple question takes nine seconds, long enough that you wonder whether the page has frozen. While you wait, you open the provider's dashboard and look at a number you have never checked: 412 calls this month, every one of them to the flagship, the provider's most capable and most expensive model, which you accepted as the default the day you made your first call. When you wrote the cost of the assistant in your idea file, about a cent an answer, you used the price of the provider's middle model. You have never run a single question on that model, and you cannot say why you use the flagship, because you never chose it.

From the chapters before this one you bring a feature that works on your laptop: a prompt written as a spec, a schema (the fixed format the model's reply must follow, so your code can read it), the facts the model needs in its prompt, and a tool the model can call, all running on a strong default model. Starting on a strong model was right, because until the prompt is solid you cannot tell a prompt problem from a model problem. In this chapter you test the model you accepted as a default against the same provider's cheaper model, using real inputs of your own, and keep whichever one the results support.

Five questions for choosing a model, applied to one real feature

Choosing a model comes down to five questions, and we will apply each one to FuelTheFam's fridge feature: a parent takes a photo of the open fridge, the photo goes to the app's server and from there to a multimodal model (one that accepts images as well as text), and a shopping list comes back while the fridge door is still open.

  • Modality, the kinds of input a model accepts. Can the model take your input at all? The fridge feature needs image input, which rules out much of the field before any ranking matters, so ask this first.
  • Capability. Is the model good enough at your task? Ask about your task, not tasks in general. Naming groceries in a photo takes no deep reasoning, so a model's strength at deep reasoning does nothing for this feature.
  • Cost. You pay per token (a chunk of text the provider counts and charges for, a short word or a piece of a longer one) on every call: a fraction of a cent per list at current mid-tier rates (the price of a provider's middle model), several times that on a flagship, multiplied by every user, every day.
  • Latency, the wait. Measure it from where your user stands: a parent at the open fridge notices every second, and the app's time budget for logging a full day of meals is under three minutes.
  • Data handling. Where does the input go once you send it? A fridge photo shows the inside of someone's home, so we turned off the provider's options to keep the data and to train on it. Run the same check on whatever your feature accepts.

Public leaderboards (boards for short), the websites that rank models against each other, help with only one of these questions, capability. They come in a few kinds that have lasted: arenas, which rank models by which answer people prefer when they cannot see which model wrote it; indexes, which plot quality against speed and price; and evaluations on private question sets that no provider can prepare for. We name no benchmarks (fixed sets of test questions that models are scored on) here, because they go out of date: once a benchmark is famous enough to become shorthand, models reach top scores on it within a few quarters, and after that it no longer tells models apart. Use the Playbook's tool selection section to pick two or three candidates and stop there, because no board has ever run your inputs.

The real choice is between one provider's tiers

The models that accept your input fall into tiers, levels of price and capability. Every major provider now sells three: a flagship, priced for the hardest work; a mid-tier model that answers faster and costs a fraction of the flagship's rate; and a small, fast model priced for simple jobs that run in high volume. Today's mid-tier handles more than last year's flagship did. For a feature with a defined job, the question that matters is not which flagship tops this month's board, but whether the tiers give different results on your inputs at all.

Three model tiers and where to compare themThree cards. The flagship tier has the highest capability, costs the most per call, answers slower, and suits the hardest work. The mid-tier handles most defined tasks at a fraction of the price, fast, and is the tier to test first. The small and fast tier is cheapest and fastest, for simple high-volume jobs like classifying and routing. A bottom strip names the categories of public board for comparing models: preference arenas, quality-versus-price indexes, and private question sets, with current links in the Playbook. Caption: start with a strong default, then launch on the cheapest tier that passes your inputs.THREE TIERS, ONE DECISIONFLAGSHIPHighest capabilityMost expensive per callSlower to answerFor the hardest workMID-TIERHandles most defined tasksA fraction of the priceFastThe tier to test firstSMALL & FASTSimple, high-volume jobsCheapest per callFastestClassify, route, extractCOMPARE THEM ONpreference arenas · quality-vs-price indexes · private question sets · current links in the PlaybookStart with a strong default, then launch on the cheapest tier that passes your inputs.

The drawing shows the three tiers as cards and marks the mid-tier as the tier to test first. Its bottom strip lists the same three kinds of board (preference arenas, quality-versus-price indexes and private question sets), and its caption gives the rule we test in this chapter: start with a strong default, then launch on the cheapest tier that passes your inputs.

The Proof Table: test two models on five real inputs

A Proof Table is a table you fill in to compare two models on your own inputs. Each row is one real input, and each column is one model. Before you run anything, you write one sentence saying what a passing output must do, and after the run you mark each output pass or fail against that sentence. You started this habit in Make your first model call, where you ran the same input more than once before judging the feature.

We filled ours in with five real fridge photos from our own phones: a typical case, a crowded case, a degraded (blurry) case, a near-empty case, and an off-domain case, a fridge photo with a non-food object in the frame that the list should leave out. Before any run we wrote the pass bar, the test each list had to meet: a parent could shop from the list without reopening the fridge, and every item on it appears in the photo. A list with an invented item fails outright, because nobody on our team reads a list before the user sees it. Each photo went through both tiers with the prompt the live feature uses (return only items visible in the photo) and the live schema, which has one field, items, holding a list of strings (pieces of text).

The drawing is our Proof Table: the five photos down the side with a one-line note each, one column per tier, and a verdict row saying the flagship got the same passes at a higher price, with the mid-tier marked "chosen" because it is the model we kept. The arrow labeled "rerun after every change" means you run all five rows again after every change.

The mid-tier passed four of the five photos, and the only row where the two tiers differed in a way that mattered was the one they both failed. On the readable photos, the whole difference was one hidden butter the mid-tier missed and two jams it merged into one, and neither would change what a parent buys. On the blurry photo, both tiers listed items that are not in the photo, despite the instruction to list only visible items, and the cheaper model failed in the more dangerous way: it listed nine items with no hint of doubt, so the list read like a good one. The fix is not a different model: when a photo is unreadable, the feature asks for a retake instead of guessing.

A Proof Table is a test of two models on five real inputs: you write the pass bar (the test every output must meet) before the run, judge each output against it, write each verdict as a sentence you can defend, and run the table again after every change to the prompt, the facts you give the model, or the model itself.

You might object that five photos prove nothing, and as statistics that is right: the boards run thousands of test cases where we ran five. But the two measurements answer different questions. From the boards we knew that both tiers can handle photos at all. From the table we learned what our feature does with our inputs, and what made it worth running was finding which input fails and how it fails, not the pass rate. No leaderboard has a category for photos taken as a fridge door swings shut. The rigorous version, with dozens of cases scored automatically, is called an eval (a test of your feature on the inputs real users will send), and in The Practice you build yours; a five-input run fits in an afternoon.

Use the cheapest tier that passes your own five inputs, and read every failing row twice, because when the input itself is the problem, no model tier fixes it.

Record the choice: change one config line and start your Model Spec

Switching models takes a one-line change if the model's name is stored in one configuration value (a setting your code reads from a single place) instead of being repeated throughout the code. Our switch was this diff, the before-and-after of one change, with the removed line marked by a minus and the added line by a plus:

- FRIDGE_MODEL = "provider-flagship-latest"
+ FRIDGE_MODEL = "provider-mid-tier-latest"

(The real values are the provider's current model names; they change too often to print here.) Fine-tuning, training a model further on your own examples, stays the last rung of the customization ladder (the order for changing what a model does, cheapest first) from Give the model tools to fetch and act, and you will almost never need it: everything this feature needed came from a better prompt, fresher facts, or a retake rule.

Record the choice somewhere more lasting than a config line as well. The Model Spec is a one-page document that records how your feature uses its model, in seven short fields: the job, the model, the prompt, the output, the context, the lever, and the fallback. Copy the Model Spec starter. You made the decisions for five of its fields in earlier chapters, so fill those in first:

The model field is the one you fill in from this chapter. Ours reads:

Model: current mid-tier multimodal (name pinned in config)
Chosen over: the same provider's flagship
Evidence: Proof Table v1, July 2026; passed 4 of 5
Why: no gap on readable photos; a fraction of the cost and wait
Known failure: both tiers invent items on blurry photos; the retake rule catches it
Revisit when: a failing row appears that a retake cannot fix

The last field, the fallback, holds the spend cap and what the feature does when the model is slow, unavailable, or wrong. You fill that field in during the next chapter, Wire the model into your build. You finish the page in Launch your AI assistant with limits and a handoff to a person, where it goes into the "Where AI fits" field of your Build Plan.

Try it now

The drill takes about thirty minutes; you spend nothing on the first path and pennies on the second. You arrive with a working feature on your default model, with its prompt, schema, facts, and tool. You leave with your Proof Table v1, your chosen model, and a Model Spec with every field filled in except the last.

No setup: Copy the Proof Table template into any document and fill in everything except the model outputs. Collect five real inputs from the user your one-pager describes, one of each kind: typical, crowded, degraded, near-empty, and off-domain. For the running club's support assistant, the five are questions members have really sent to the support address: an ordinary one about when the weekend run starts, a long message with three questions in it, one full of typing mistakes, one that says only "hi", and a request for a refund, which a passing reply sends on to a person and does not answer. Write a one-sentence pass bar for each row before any model runs, then mark which rows you predict a cheaper tier would fail.

With your tools: Ask Claude Code to pull your model name into one config value, then run your five inputs through your default and the same provider's cheaper tier, pasting both outputs into the table. Judge each row against the bar, write one-sentence verdicts, and set the config line to the cheapest tier that passed. Same move in Codex or Cursor: ask for one config value, then run your five inputs through both tiers and write the verdicts. If nothing is installed yet, the Setup Clinic gets you running.

Either way, start your Model Spec. Copy the Model Spec starter, fill in the five fields you settled in earlier chapters, and write the model field: the choice, the evidence, and what would make you revisit it. If you took the first path, write the model you plan to test first and add the evidence when you have run the table.

Chapter Summary

  • You arrive with a feature that works on a strong default model, and you decide from a test on your own inputs whether to keep that model.
  • You compare models on five questions: modality (can it take your input), capability at your specific task, cost per call, latency where your user stands, and data handling.
  • Use the public leaderboards only to pick a shortlist: once a benchmark is famous, models reach top scores on it within a few quarters and it stops telling them apart, and no board has ever run your inputs.
  • The real decision is usually between one provider's tiers, flagship, mid-tier, or small and fast, and today's mid-tier handles more than last year's flagship did.
  • A Proof Table is a table with five real inputs as rows and two models as columns. You write what a passing output must do before the run, mark each output pass or fail, and rerun the table after every change.
  • Our run surprised us: the mid-tier passed four of five, both tiers failed the blurry photo, and the fix was the retake rule, not the bigger model.
  • Keep the model name in one config value so switching stays a one-line change.
  • Fine-tuning is the last rung of the customization ladder, and you will almost never need it.
  • The Model Spec is a one-page record of how your feature uses its model, in seven fields. You fill in six of them now, including the model you chose, the evidence for it, and what would make you revisit the choice.

Next, in Wire the model into your build, you add the feature to your live site, running on the model you chose.

Sources

  • OpenAI, Anthropic, and Google model documentation and pricing pages (last verified July 2026).
  • Public model leaderboards in the categories described in this chapter; current links are maintained in the Playbook's tool selection section (last verified July 2026).
  • FuelTheFam fridge-feature Proof Table run, our own build records, July 2026.