~/academy $ claude learn choosing-a-model-in-the-api
Choosing a Claude model for your app
The current Claude API model ids, how they compare on speed, cost and capability, and their prices per million tokens, checked 18 November 2026. 7 min
$ Read
The current line-up, checked 18 November 2026
These are the four latest models on the Claude API. Prices are US dollars per million tokens (MTok), input then output. A token is a small chunk of text. All four take text and images, and all four support tool use.
Copy the id exactly as shown. Current ids have no date on the end, and each one is a pinned snapshot, so the model behind it does not change under you.
Claude Fable 5.2. For demanding reasoning and long-horizon agentic work. Moderate latency. $8 input, $40 output.
Claude Opus 5.5. For long-running agentic coding and knowledge work. Moderate latency. $4 input, $20 output.
Claude Sonnet 5.5. The best combination of speed and intelligence. Fast. $2 input, $10 output.
Claude Haiku 5.5. For high-volume, latency-sensitive work such as classification, extraction and routing. Fastest. $0.10 input, $0.50 output for prompts up to 100,000 tokens ($0.50 and $2.50 above that).
Lesson notes: Choosing a Claude model for your app
Everything in this lesson as text, for revision or to read without the interactive steps. By the end you will be able to: You pick a starting model for your product, put its exact id in your code and estimate what a workload will cost.
Step 1 of 6 · Read
The current line-up, checked 18 November 2026
These are the four latest models on the Claude API. Prices are US dollars per million tokens (MTok), input then output. A token is a small chunk of text. All four take text and images, and all four support tool use.
Copy the id exactly as shown. Current ids have no date on the end, and each one is a pinned snapshot, so the model behind it does not change under you.
claude-fable-5-2 Claude Fable 5.2. For demanding reasoning and long-horizon agentic work. Moderate latency. $8 input, $40 output.
claude-opus-5-5 Claude Opus 5.5. For long-running agentic coding and knowledge work. Moderate latency. $4 input, $20 output.
claude-sonnet-5-5 Claude Sonnet 5.5. The best combination of speed and intelligence. Fast. $2 input, $10 output.
claude-haiku-5-5 Claude Haiku 5.5. For high-volume, latency-sensitive work such as classification, extraction and routing. Fastest. $0.10 input, $0.50 output for prompts up to 100,000 tokens ($0.50 and $2.50 above that).
Step 2 of 6 · Read
What they share and where they differ
All four have a 1M token context window and up to 128K output tokens per request, with a reliable knowledge cutoff of June 2026. All four think before answering using adaptive thinking, steered by an effort setting. The default effort is
highon Fable 5.2 and Sonnet 5.5, andmediumon Opus 5.5 and Haiku 5.5.Two price modifiers matter from day one. The Batch API halves both input and output prices, and cached input is much cheaper than fresh input (both have their own lessons). Haiku 5.5 is the one model priced by prompt length: a request whose prompt is over 100,000 tokens pays the higher rate.
You can also ask the API what a model supports.
client.models.list()returns every model you can use, withmax_input_tokens,max_tokensand acapabilitiesobject, so your code does not have to hard-code limits.Step 3 of 6 · Read
Two ways to start, and a quick cost check
Capability first. The docs say most workloads start with Claude Opus 5.5. Build with it, tune your prompts, then lower effort or try a cheaper model once your tests show quality holds. Move up to Fable 5.2 only if Opus 5.5 at high effort still falls short.
Efficiency first. For prototypes, tight latency or high-volume simple tasks, start with Haiku 5.5 and upgrade only where your tests find a real gap. Tuning effort is often a better lever than switching models.
Do the maths before you choose. Say you summarise 1,000 support tickets, each about 2,000 input tokens and 300 output tokens: 2M input and 0.3M output in total. That is about $28 on Fable 5.2, $14 on Opus 5.5, $7 on Sonnet 5.5 and $0.35 on Haiku 5.5. Thinking tokens are billed as output too, so measure real usage rather than trusting the estimate.
Step 4 of 6 · Quiz
Check your understanding
Your app sorts 50,000 short customer emails a day into five folders, and each answer must come back fast. Which model do you try first?
- claude-fable-5-2, because it is the most capable.
- claude-opus-5-5, because the docs say most workloads start there.
- claude-haiku-5-5, then upgrade only if your tests show it misfiles.
Show the answer
claude-haiku-5-5, then upgrade only if your tests show it misfiles. Classification and routing at high volume is what Haiku 5.5 is described for. Test it, and move up only where it falls short.
Step 5 of 6 · Choose
Which model should your app start with?
Answer for the main job your product will send to Claude.
- What is the job? Labelling, routing or pulling fields out of text / Everyday writing, coding help or data analysis / Long agentic coding or complex knowledge work / Hours-long agent runs or deep multistep research
- How many requests a day? Tens of thousands or more / Hundreds to a few thousand / A handful of big tasks
- How fast must the answer come back? Instantly, a person is waiting / A few seconds is fine / It can run in the background
Show the possible results
- Claude Haiku 5.5 (claude-haiku-5-5) ($0.10 input, $0.50 output per MTok for prompts up to 100K tokens, checked 18 November 2026): Fastest and cheapest. Ideal for high-volume classification, extraction and routing. Raise effort before you switch models.
- Claude Sonnet 5.5 (claude-sonnet-5-5) ($2 input, $10 output per MTok, checked 18 November 2026): Fast with strong capability for code generation, content, analysis and tool use in products people use live.
- Claude Opus 5.5 (claude-opus-5-5) ($4 input, $20 output per MTok, checked 18 November 2026): The recommended starting point for most workloads, especially complex agentic and knowledge work. Lower effort later to save money.
- Claude Fable 5.2 (claude-fable-5-2) ($8 input, $40 output per MTok, checked 18 November 2026): The most capable model open to all customers. Use it when Opus 5.5 at higher effort still falls short on your tests.
Step 6 of 6 · Quiz
Check your understanding
Which of these will the Claude API accept as a model id?
- `claude-opus-5-5-20261118`
- `claude-opus-5-5`
- `opus-latest`
- `claude-5.5-opus`
Show the answer
`claude-opus-5-5` That is the exact Claude API id for Claude Opus 5.5, and it is already a pinned snapshot.