Day 4, 25 minutes · beginner
Why it matters
The model name is one line in your script, and it is the line with the biggest effect on what you pay and how long you wait. The strongest model is not always the right one. A reply to a tea review does not need the model built for long, hard reasoning, and Linde will send hundreds of these.
Today you learn what the current Claude models are for, how to read their names, and a simple test to choose between two of them: same prompt, both models, then compare the reply, the time and the cost. At the end you have picked the model for Linde's script, with a reason you can explain.
The current models
The models overview page lists four "latest models". On 4 December 2026 they were:
| Model | Model ID | What the docs say it is for | Speed | Price per million tokens (input / output) |
|---|---|---|---|---|
| Claude Fable 5.2 | claude-fable-5-2 |
demanding reasoning and long-horizon agentic work | moderate | $8 / $40 |
| Claude Opus 5.5 | claude-opus-5-5 |
long-running agentic coding and knowledge work | moderate | $4 / $20 |
| Claude Sonnet 5.5 | claude-sonnet-5-5 |
the best combination of speed and intelligence | fast | $2 / $10 |
| Claude Haiku 5.5 | claude-haiku-5-5 |
high-volume, latency-sensitive tasks such as classification, extraction and routing | fastest | from $0.10 / from $0.50 |
All four read text and images, write text, and have a context window of 1 million tokens and a maximum output of 128,000 tokens. Prices change: check the pricing page before you rely on these numbers.
Three terms from that table:
- MTok: the pricing page writes prices per million tokens. $2 / MTok means 2 US dollars for every million tokens.
- Context window: everything the model can look at in one request, including its own answer. The docs say 1 million tokens is roughly 555,000 words. More is not automatically better: the context windows page warns that accuracy drops as the context grows.
- Max output: the highest
max_tokensyou can ask for in one answer.
Model IDs do not change under you
What you put in the model field is the model ID. For current models it has no date in it, like claude-sonnet-5-5, and the docs say every model ID is a pinned snapshot: the model behind it stays the same for as long as that ID exists. Older models (before the 4.6 generation) had IDs with a date, such as claude-haiku-4-5-20251001, and a shorter alias that pointed to the newest dated version. For the current models, the alias row on the models page simply repeats the ID.
So your script will not suddenly behave differently because Anthropic shipped something new. To move to a newer model, you change the ID yourself. Each model also has a retirement date on the models page: the date before which Anthropic promises not to retire it.
Two ways to start
The page "Choosing the right model" describes two approaches:
- Efficiency first: start with Claude Haiku 5.5, test your task well, and move up only where it falls short. Good for prototypes, tight budgets and high volumes of simple tasks.
- Capability first: start with Claude Opus 5.5 for complex work, then save money later with a lighter setting or a smaller model.
Linde's task is short, frequent and has a clear right answer: friendly, correct, not too long. That points to efficiency first. Today you put Claude Sonnet 5.5 next to Claude Haiku 5.5 and see whether the cheaper one is good enough.
How to work out the cost
Each response tells you its usage. The cost of one request is:
input tokens / 1,000,000 x input price
+ output tokens / 1,000,000 x output price
For example, 60 input tokens and 120 output tokens on Claude Sonnet 5.5 at the prices above: 60 / 1,000,000 x 2 = $0.00012, plus 120 / 1,000,000 x 10 = $0.0012, which is about $0.0013 for one reply. Small per request, so the question is how many requests you make. Lesson 7 goes deeper.
Count with the same model you will use. The pricing page notes that newer models use a newer tokenizer (the part that cuts text into tokens), which makes about 30 percent more tokens from the same text than models before Claude Opus 4.7.
The steps
- Find the model IDs on the models overview page.
- Run the same review through Claude Sonnet 5.5 and Claude Haiku 5.5.
- Compare the two replies, the time each took and the cost of each.
- Pick one and write down why.
Follow the steps below.
Today's actions
Ticks are not saved without an accountDo it in Claude API
Claude API
- Open the models overview page in the Claude docs and find the row Claude API ID. Those are the exact names your code sends, such as
claude-sonnet-5-5andclaude-haiku-5-5. - In your harbour-lane-replies folder, with the virtual environment on, create
compare_models.pywith this code. It sends the same review to two models and times each one.import time from dotenv import load_dotenv import anthropic load_dotenv() client = anthropic.Anthropic() PROMPT = ( "We are Harbour Lane Tea Co, a small online tea shop. " "A customer left this review: 'Lovely smoky tea, but the parcel took nine days.' " "Write a short, friendly reply that we can post under the review." ) for model in ["claude-sonnet-5-5", "claude-haiku-5-5"]: start = time.perf_counter() message = client.messages.create( model=model, max_tokens=1000, messages=[{"role": "user", "content": PROMPT}], ) seconds = time.perf_counter() - start print("=====", model, f"({seconds:.1f} seconds)") for block in message.content: if block.type == "text": print(block.text) print("input tokens:", message.usage.input_tokens) print("output tokens:", message.usage.output_tokens) print() - Run
python compare_models.py. Read both replies as Linde would: which one would she post without changes? - For Node instead of Python: save this as
compare_models.mjsand runnode --env-file=.env compare_models.mjs.import Anthropic from "@anthropic-ai/sdk"; const client = new Anthropic(); const PROMPT = "We are Harbour Lane Tea Co, a small online tea shop. " + "A customer left this review: 'Lovely smoky tea, but the parcel took nine days.' " + "Write a short, friendly reply that we can post under the review."; for (const model of ["claude-sonnet-5-5", "claude-haiku-5-5"]) { const start = performance.now(); const message = await client.messages.create({ model, max_tokens: 1000, messages: [{ role: "user", content: PROMPT }] }); const seconds = (performance.now() - start) / 1000; console.log(`===== ${model} (${seconds.toFixed(1)} seconds)`); for (const block of message.content) { if (block.type === "text") { console.log(block.text); } } console.log("input tokens:", message.usage.input_tokens); console.log("output tokens:", message.usage.output_tokens); console.log(); } - Open the pricing page in the Claude docs. For each model, multiply input tokens by the input price and output tokens by the output price, divide both by 1,000,000 and add them up.
- Optional: list the models your key can use, with their context window and maximum output, from the Models API. Save this as
list_models.pyand run it.from dotenv import load_dotenv import anthropic load_dotenv() client = anthropic.Anthropic() for model in client.models.list(): print(model.id, "| context:", model.max_input_tokens, "| max output:", model.max_tokens) - Pick a model for Linde's script and write its ID and your reason at the top of
first-call-notes.txt. The rest of the course usesclaude-sonnet-5-5; change it in your own copy if you chose another.
Note: Claude Haiku 5.5 has two prices: one for prompts up to 100,000 tokens and a higher one above that. A short review is far below that line. Prices are in US dollars per million tokens (MTok).
Paid planPay as you go: buy prepaid credits in the Claude Console (minimum 5 US dollars). There is no free tier. Max, Ultra and Team plans include monthly API credits.
Create a free account to save your progress
Free, and no payment details. Your ticks and finished lessons are kept, on every device.
Create a free account I already have an accountCreate a free account to save your progress. Sign in or sign up