Claude Models and Capabilities Explained
Claude is not one model but a family, and every API request names the model it wants. Picking well saves money and latency; picking badly means paying for intelligence you do not need or missing capability you do. This lesson explains the current lineup, what the numbers in the documentation mean, and how to turn token counts into a cost estimate.
Independent educational resource, not an official Anthropic course. All figures below were read from Anthropic's models overview on 15 November 2026. Model lineups and prices change often; re-check before you build a budget on them.
Learning objectives
- Name the four current Claude models and the job each is designed for.
- Read a model ID, a context window and a maximum output limit correctly.
- Estimate the cost of a request from its token counts.
- Understand what "adaptive thinking" and "effort" mean at a basic level.
- Know where to look up model details programmatically.
Prerequisites
The current lineup
Anthropic's docs list four current models. All of them accept text and image input, produce text output, and support tool use and multilingual input.
| Claude Fable 5.2 | Claude Opus 5.5 | Claude Sonnet 5.5 | Claude Haiku 5.5 |
| Anthropic's description | Demanding reasoning and long-horizon agentic work | Long-running agentic coding and knowledge work | Best combination of speed and intelligence | High-volume, latency-sensitive tasks: classification, extraction, routing |
| API model ID | claude-fable-5-2 | claude-opus-5-5 | claude-sonnet-5-5 | claude-haiku-5-5 |
| Input price | $8 / MTok | $4 / MTok | $2 / MTok | from $0.10 / MTok |
| Output price | $40 / MTok | $20 / MTok | $10 / MTok | from $0.50 / MTok |
| Comparative latency | Moderate | Moderate | Fast | Fastest |
| Context window | 1M tokens (all four) |
| Max output | 128K tokens (all four, synchronous Messages API) |
| Thinking | Adaptive (always on) | Adaptive (always on) | Adaptive | Adaptive |
| Default effort | high | medium | high | medium |
"MTok" means one million tokens. Anthropic's guidance on the same page is to start with Claude Opus 5.5 for most workloads, and to move to Claude Fable 5.2 for demanding reasoning and long-horizon agentic work, or when your own evaluations on Opus 5.5 at higher effort still fall short. The Haiku price is shown as "from" because the final rate depends on conditions described on the pricing page.
The page also lists older models that may still be available, and a few "limited availability" models that are only open to organisations verified through Anthropic's programs. Default to the latest models unless you have a reason not to, and check model deprecations for retirement dates.
How to read the numbers
Model ID
The string you send in the model field. Anthropic states that every current model ID is a pinned snapshot, so claude-sonnet-5-5 will keep meaning the same model until it is retired. Hard-code the ID in one configuration value, not in twenty places.
Context window
The most text the model can consider in one request, input and output together. 1M tokens is, per the docs, roughly 555 thousand words on the current tokenizer. A bigger window lets you send more, but you pay for every input token you send, so "it fits" is not the same as "it is cheap". Lesson 1.5 covers this.
Max output
The longest single reply, 128K tokens for the current models. Your own max_tokens sets the limit for one request and must be at or below the model's maximum.
Thinking and effort
Current models use adaptive thinking: the model decides how much to reason before answering, steered by the effort setting. Higher effort generally costs more time and tokens. Two practical facts from Anthropic's error documentation:
- On Claude Fable 5.2 and Claude Opus 5.5, thinking is always on. Sending
thinking: {"type": "disabled"} returns a 400 error.
- The older manual mode,
thinking: {"type": "enabled", "budget_tokens": N}, is rejected by Claude 4.7 and later models. Use adaptive thinking and output_config.effort instead.
If you are following an older tutorial that sets those fields, this is the first place it will break on a current model.
Cost: from tokens to dollars
Cost for one request is:
cost = input_tokens × input_price / 1,000,000 + output_tokens × output_price / 1,000,000
Worked example: a request with 2,000 input tokens and 500 output tokens.
| Model | Input cost | Output cost | Total |
| Claude Sonnet 5.5 | 2,000 × $2 / 1M = $0.004 | 500 × $10 / 1M = $0.005 | $0.009 |
| Claude Opus 5.5 | 2,000 × $4 / 1M = $0.008 | 500 × $20 / 1M = $0.010 | $0.018 |
| Claude Fable 5.2 | 2,000 × $8 / 1M = $0.016 | 500 × $40 / 1M = $0.020 | $0.036 |
One thousand such requests a day is $9, $18 or $36 a day respectively. That is the whole reason model choice is an engineering decision. Two discounts from the same docs page are worth knowing: Batch API requests are 50% off, and prompt-cache reads cost a fraction of the base input price (10% as a general rule, with lower fractions listed for specific models). See the pricing page for cache-write and long-context details.
Step by step: a small cost calculator
This script reads real usage from a response and prices it. The price table is copied from the table above; it is deliberately in one dictionary so you can update it in one place.
import anthropic
# USD per million tokens, from the models overview (checked 15 Nov 2026).
# Update this table when Anthropic changes prices.
PRICES = {
"claude-sonnet-5-5": {"input": 2.00, "output": 10.00},
"claude-opus-5-5": {"input": 4.00, "output": 20.00},
"claude-fable-5-2": {"input": 8.00, "output": 40.00},
}
def request_cost(model: str, input_tokens: int, output_tokens: int) -> float:
price = PRICES[model]
return (input_tokens * price["input"] + output_tokens * price["output"]) / 1_000_000
def ask(model: str, question: str) -> None:
client = anthropic.Anthropic()
message = client.messages.create(
model=model,
max_tokens=400,
messages=[{"role": "user", "content": question}],
)
text = "".join(b.text for b in message.content if b.type == "text")
cost = request_cost(model, message.usage.input_tokens, message.usage.output_tokens)
print(f"[{model}] {message.usage.input_tokens} in / {message.usage.output_tokens} out = ${cost:.5f}")
print(text)
if __name__ == "__main__":
ask("claude-sonnet-5-5", "Give me one tip for naming database columns.")
Run the same question through two models and compare both the cost line and the answer quality. For a one-sentence tip the cheaper model is usually enough; that observation, repeated across a real workload, is how you choose a model.
Because prices and IDs change, you can also read model data from the API. The Models API returns max_input_tokens, max_tokens and a capabilities object for each model (see the List Models reference). Note that it does not return prices, so a price table in your own code or configuration is still needed.
Real-world use case (illustrative scenario)
This scenario is an invented example to show how the ideas fit together. It is not a case study and its details are not measured results.
A support team receives 20,000 emails a month. A first step labels each email ("billing", "shipping", "complaint"). That is short, repetitive work, the kind Anthropic describes Haiku for. A second step drafts a careful reply to complaints only, perhaps 10% of volume, where a stronger model is worth the money. Routing by task like this often costs less than sending everything to one expensive model, and it is a design you can defend in a code review. Lesson 1.8 turns this into a decision checklist.
Common errors and solutions
| Error | Cause | Fix |
404 not_found_error on a model | Typo, or a retired model. | Copy the ID from the models overview; check deprecations. |
400 about thinking.type.enabled | Old tutorial code using manual extended thinking on a new model. | Remove it, or use adaptive thinking with output_config.effort. |
400 about thinking.type.disabled on Opus 5.5 / Fable 5.2 | Thinking is always on for these models. | Omit the thinking field. |
| 400 about sampling parameters | temperature, top_p or top_k set to a non-default value on Claude 4.7 and later. | Remove them and steer with the prompt. |
| 400 about assistant prefill | Last message is from the assistant on Claude 4.6 or later. | End with a user message; use structured outputs or system instructions instead. |
Security considerations
A model choice is also a data-handling choice. The same models are offered on Anthropic's own API and on partner clouds (the docs list Amazon Bedrock, Google Cloud, Microsoft Foundry and Claude Platform on AWS, each with its own model ID format and lifecycle dates). Where your data goes, and under whose terms, depends on which one you call. Decide that before you decide on a model.
Performance and cost considerations
- Latency is relative and depends on prompt length, output length and thinking effort, not only the model. Measure with your own prompts.
- Output tokens cost five times the input rate on every current model in the table above, so a prompt that asks for shorter answers cuts cost directly.
- Build an evaluation set of 20-50 real inputs before you choose. A model is "good enough" only against a test you wrote.
Key takeaways
- Four current models: Fable 5.2, Opus 5.5, Sonnet 5.5, Haiku 5.5. All share a 1M-token context window and 128K-token maximum output.
- Cost = tokens × price, with output priced higher than input. Print
usage and price it.
- Thinking is adaptive on current models; old manual-thinking and sampling parameters can cause 400 errors.
- Re-check IDs and prices at the source; they change.
Lesson recap: the model lineup, what is shared, and what the choice costs.
Knowledge check
- Which model does Anthropic describe as the best combination of speed and intelligence?
- A request uses 10,000 input and 1,000 output tokens on Claude Sonnet 5.5. What does it cost?
- What happens if you send
thinking: {"type": "disabled"} to Claude Opus 5.5?
- Does a 1M-token context window mean you should always fill it? Why or why not?
- Why keep model IDs and prices in configuration instead of scattering them through code?
Answers and explanations
- Claude Sonnet 5.5.
- 10,000 × $2 / 1M = $0.020 for input, plus 1,000 × $10 / 1M = $0.010 for output. Total $0.030.
- The API returns a 400
invalid_request_error, because thinking is always on for that model. Omit the field instead.
- No. You pay for every input token, and long inputs also add latency. The window is a limit, not a target.
- Both change over time. One configuration value means one edit when a model is retired or repriced.
Related tutorials
Official references and further reading