Prev Next

AI / Claude OPUS & Sonnet 5.5 Interview questions

Last updated

1. What is Claude Sonnet 5.5? 2. What is Claude Opus 5.5? 3. What are the API model IDs for the 5.5 models? 4. What is the pricing for Claude Opus 5.5 and Sonnet 5.5? 5. What are the context window and output limits of the 5.5 models? 6. What is adaptive thinking in the Claude 5.5 models? 7. What is the default effort level for Opus 5.5 and Sonnet 5.5? 8. What is the between_tools thinking setting? 9. What is forced tool use, and do the 5.5 models support it? 10. What is the minimum cacheable prompt length for the 5.5 models? 11. What is the Message Batches API discount for the 5.5 models? 12. What is the 300K output beta on the Batches API? 13. What is the computer_toolset_20260801 toolset? 14. What does it mean that thinking blocks are tied to the model? 15. What is the advisor tool in the context of Sonnet 5.5? 16. What is Claude Opus 5.5 Fast? 17. What model tiers make up Anthropic's current lineup? 18. What is the knowledge cutoff for Opus 5.5 and Sonnet 5.5? 19. What is the difference between Sonnet 5.5 and Sonnet 5? 20. How does Opus 5.5 differ from Opus 5 for existing code? 21. What is the difference between Opus 5.5 and Sonnet 5.5? 22. When should you choose Sonnet 5.5 over Opus 5.5? 23. When would you choose Opus 5.5 over Sonnet 5.5? 24. Why does disabling thinking fail on Opus 5.5? 25. How do you turn off up-front thinking on Sonnet 5.5? 26. What happens when between_tools is used at xhigh or max effort? 27. How does between_tools affect per-turn effort changes? 28. How do you replace forced tool use on Sonnet 5.5? 29. What happens if you set temperature on Sonnet 5.5? 30. How do you migrate from computer_20251124 to the new toolset? 31. Why does a streaming UI go quiet between tool calls on Sonnet 5.5? 32. Explain the execution flow of a tool loop with between_tools? 33. What does the thinking-binding-controls beta do? 34. How does server-side fallback treat a between_tools request? 35. How does effort trade cost against quality on Sonnet 5.5? 36. When would you raise effort above medium on Opus 5.5? 37. How can you optimize cost for high-volume Sonnet 5.5 workloads? 38. How do you optimize prompt caching on the 5.5 models? 39. How do you troubleshoot a 400 error after migrating to Sonnet 5.5? 40. How do you troubleshoot a 400 error after migrating to Opus 5.5? 41. How do Opus 5.5 and Sonnet 5.5 compare with Fable 5.1? 42. Explain the execution flow of migrating a Sonnet 5 agent to 5.5? 43. How would you escalate from Sonnet 5.5 to Opus 5.5 mid-conversation? 44. How can you optimize a latency-sensitive agent on Sonnet 5.5? 45. What does the Sonnet 5.5 safety evaluation say? 46. How do you check 5.5 model limits programmatically? 47. How does the tokenizer affect context planning on 5.5 models? 48. How do you combine Sonnet 5.5 and Opus 5.5 in one agent system? 49. How can you validate behavior before moving traffic to Sonnet 5.5? 50. Explain how thinking, effort, and cost interact across both 5.5 models?

1. What is Claude Sonnet 5.5?

Claude Sonnet 5.5 is the Sonnet-tier model in Anthropic's 5.5 generation, positioned as the best combination of speed and intelligence. Its Claude API model ID is claude-sonnet-5-5.

It offers a 1M-token context window and up to 128K output tokens, priced at $2 per million input tokens and $10 per million output tokens. Thinking is adaptive, the default effort is high, and latency is rated Fast.

It follows Claude Sonnet 5 and is the cheaper, quicker sibling of Claude Opus 5.5.

Take quiz
Which description fits Claude Sonnet 5.5 best?
Best combination of speed and intelligence
Slowest model, meant only for deep research
A small model limited to a 200K window
What is the maximum output per request for Sonnet 5.5 on the standard API?
64K tokens
128K tokens
200K tokens

2. What is Claude Opus 5.5?

Claude Opus 5.5 is the Opus-tier model of the 5.5 generation, built for long-running agentic coding and knowledge work. The API model ID is claude-opus-5-5.

It shares the 1M-token context window and 128K max output with Sonnet 5.5, but costs $4 per million input tokens and $20 per million output tokens, with Moderate latency.

Adaptive thinking is always on and cannot be disabled; the default effort is medium.

Take quiz
What workload is Opus 5.5 designed for?
Pure image generation
Only short, single-turn classification
Long-running agentic coding and knowledge work
Can thinking be turned off on Opus 5.5?
Yes, by sending thinking type disabled
Yes, but only inside the Batches API
No, adaptive thinking is always on
Yes, by setting effort to none

3. What are the API model IDs for the 5.5 models?

On the Claude API the IDs carry no date suffix. Use the bare string for each tier:

Model Claude API ID
Claude Opus 5.5 claude-opus-5-5
Claude Sonnet 5.5 claude-sonnet-5-5
Claude Haiku 5.5 claude-haiku-5-5

Amazon Bedrock and Google Cloud use their own identifiers. Each model page lists them under Availability, so copy from there instead of guessing.

Take quiz
Which string selects Sonnet 5.5 on the Claude API?
claude-sonnet-5-5-20260601
claude-5-5-sonnet
sonnet-5.5-latest
claude-sonnet-5-5
Do the 5.5 Claude API model IDs include a date suffix?
Yes, a YYYYMMDD suffix
Yes, a build number
No, they are bare IDs

4. What is the pricing for Claude Opus 5.5 and Sonnet 5.5?

List prices per million tokens (MTok) are below, with two other models for context:

Model Input Output Latency
Claude Opus 5.5 $4 $20 Moderate
Claude Sonnet 5.5 $2 $10 Fast
Claude Haiku 4.5 $1 $5 Fastest
Claude Fable 5.1 $10 $50 Slower

Opus 5.5 costs exactly twice Sonnet 5.5 on both input and output. The Message Batches API takes 50% off input and output. Check the full price list for caching rates.

Take quiz
How much does Opus 5.5 charge per million output tokens?
$10
$20
$50
$5
How does Opus 5.5's list price compare with Sonnet 5.5's?
Identical
Ten times as expensive
Twice as expensive on both input and output
Cheaper on input, pricier on output

5. What are the context window and output limits of the 5.5 models?

Both Opus 5.5 and Sonnet 5.5 give you a 1M-token context window and 128K max output tokens per request.

On the Message Batches API, both can reach 300K output tokens with a beta header (see the batch question later).

A token is not a word. On the current tokenizer, 1M tokens is roughly 555k words, or about 2.5M Unicode characters. Size your inputs in tokens.

Take quiz
Roughly how many words fit in 1M tokens on the current tokenizer?
About 750k words
About 150k words
About 555k words
What is the standard max output per request for Opus 5.5?
128K tokens
64K tokens
300K tokens
32K tokens

6. What is adaptive thinking in the Claude 5.5 models?

With adaptive thinking the model decides whether to reason and how deeply, per request, guided by the effort setting. You do not hand it a fixed token budget.

On Opus 5.5 it is always on. On Sonnet 5.5 it is on when you send no thinking field, and sending the field below is equivalent:

thinking = {"type": "adaptive"}

By default the thinking text is not returned (display is omitted), but you can request a display value that returns it.

Take quiz
On Sonnet 5.5, what is equivalent to omitting the thinking field?
thinking {"type": "disabled"}
thinking {"type": "adaptive"}
thinking {"type": "enabled", "budget_tokens": 0}
Under adaptive thinking, who decides how much reasoning to do?
A fixed budget_tokens value
The client SDK
The model, guided by effort
The Batches API scheduler

7. What is the default effort level for Opus 5.5 and Sonnet 5.5?

The two models differ. Opus 5.5 defaults to medium; Sonnet 5.5 defaults to high.

Effort is the dial for thinking depth, latency, and cost. Sonnet 5.5 accepts levels up to xhigh and max through adaptive thinking, so you can go beyond its default for hard tasks.

Because defaults differ, a prompt tuned on one model will not cost or behave the same on the other until you set effort explicitly.

Take quiz
What is Opus 5.5's default effort?
high
max
low
medium
What is Sonnet 5.5's default effort?
low
high
medium

8. What is the between_tools thinking setting?

between_tools is the lowest thinking setting on Sonnet 5.5. It turns off up-front thinking, and it replaces the old disabled value.

thinking = {"type": "between_tools"}

It needs no beta header and works on every platform that offers Sonnet 5.5. It is accepted at low, medium, and high effort. The short progress notes the model writes between tool calls still come back as thinking blocks.

Opus 5.5 has no such setting, because its thinking cannot be turned off.

Take quiz
Which request turns off up-front thinking on Sonnet 5.5?
thinking {"type": "disabled"}
thinking {"type": "enabled", "budget_tokens": 1}
thinking {"type": "between_tools"}
Does between_tools require a beta header?
No, none is needed
Yes, thinking-binding-controls-2026-08-01
Yes, output-300k-2026-03-24

9. What is forced tool use, and do the 5.5 models support it?

Forced tool use means setting tool_choice to {"type": "any"} or {"type": "tool", "name": "..."} so the model must call a tool.

Claude Sonnet 5.5 does not support it: such a request returns a 400 invalid_request_error. The Opus 5.5 release notes list the same change as a breaking change.

Use {"type": "auto"} instead and make the tool requirement explicit in the prompt.

Take quiz
Which tool_choice is rejected on Sonnet 5.5?
{"type": "auto"}
{"type": "tool", "name": "get_weather"}
tool_choice omitted entirely
What error does forced tool use return?
400 invalid_request_error
429 rate_limit_error
529 overloaded_error
401 authentication_error

10. What is the minimum cacheable prompt length for the 5.5 models?

Both Opus 5.5 and Sonnet 5.5 can cache a prompt prefix of 512 tokens or more.

A shorter prefix is simply too small to be cached, so a 300-token system prompt gets no caching benefit on its own. Pad it with real, stable context (tool definitions, reference text) if repeated calls share it.

Cached reads are billed at a discounted rate; see the pricing page for the exact figure.

Take quiz
What is the minimum cacheable prompt length on 5.5 models?
1,024 tokens
512 tokens
4,096 tokens
128 tokens
What happens to a 300-token prompt prefix?
It is cached at half price
It is too short to be cached
The API rejects the request

11. What is the Message Batches API discount for the 5.5 models?

The Message Batches API gives a 50% discount on both input and output tokens for Opus 5.5 and Sonnet 5.5.

Model Standard in/out per MTok Batch in/out per MTok
Opus 5.5 $4 / $20 $2 / $10
Sonnet 5.5 $2 / $10 $1 / $5

Batches are asynchronous, so they suit evals, bulk classification, and backfills, not interactive chat.

Take quiz
What discount does the Batches API apply to 5.5 models?
10% on output only
25% on input only
50% on input and output
What is Sonnet 5.5's effective batch input price per MTok?
$1
$2
$0.50
$4

12. What is the 300K output beta on the Batches API?

Standard requests cap at 128K output tokens. On the Message Batches API, Opus 5.5 and Sonnet 5.5 can produce up to 300K output tokens when you send the beta header:

anthropic-beta: output-300k-2026-03-24

It helps with very long single outputs such as large generated documents or code bases. Without the header the 128K limit applies.

Take quiz
Which header unlocks 300K output on batches?
thinking-binding-controls-2026-08-01
output-300k-2026-03-24
output-128k-2026-01-01
Where does the 300K output limit apply?
Any streaming request
Only on claude.ai
Message Batches API, as a beta
Only with thinking disabled

13. What is the computer_toolset_20260801 toolset?

It is the computer-use toolset the 5.5 models need on the Claude API and Google Cloud. Declare it in tools like this:

{"type": "computer_toolset_20260801"}

The older computer_20251124 tool is rejected there with a 400 error. Amazon Bedrock is the exception: Sonnet 5.5 still accepts the earlier tool on that platform.

Browser use and integrations already built on the toolset need no change.

Take quiz
Which tools entry enables computer use on Sonnet 5.5 via the Claude API?
{"type": "computer_toolset_20260801"}
{"type": "computer_20251124"}
{"type": "computer_use_latest"}
Where does Sonnet 5.5 still accept computer_20251124?
Amazon Bedrock
Claude API
Google Cloud
Nowhere

14. What does it mean that thinking blocks are tied to the model?

In the 5.5 generation, thinking blocks are bound to the model and the conversation that produced them. A block from one model may not be readable by another.

Moving from Sonnet 5 to Sonnet 5.5 keeps the reasoning. Moving from Sonnet 5.5 to any other model means the turns after the switch run without that reasoning.

If a request contains blocks the target model cannot read, the API drops them before the model sees them. The request still succeeds and dropped blocks are not billed. Always pass thinking blocks back unchanged.

Take quiz
What happens to an unreadable thinking block after a model switch?
The request fails with a 400
It is billed but ignored
The API drops it, the request succeeds, and it is not billed
Which model switch keeps prior reasoning?
Sonnet 5.5 to Haiku 4.5
Sonnet 5.5 to Opus 4.8
Sonnet 5 to Sonnet 5.5
Opus 5.5 to Sonnet 5.5

15. What is the advisor tool in the context of Sonnet 5.5?

The advisor tool lets the model you call consult a separate advisor model. Some pairings are not allowed: Sonnet 5.5 rejects Claude Opus 4.8, Claude Opus 4.7, and Claude Sonnet 5 as advisors.

Whatever advisor Sonnet 5.5 accepts, its advice comes back encrypted as an advisor_redacted_result block. Your client cannot read the advice text.

Check the advisor tool's model-compatibility table before wiring a pair, because the supported list changes between releases.

Take quiz
What block carries advisor output for Sonnet 5.5?
advisor_text_result
thinking_summary
advisor_plain_block
advisor_redacted_result
What happens if Claude Opus 4.8 is set as Sonnet 5.5's advisor?
It works but is billed at batch rates
It works only at low effort
The advisor tool rejects the pairing

16. What is Claude Opus 5.5 Fast?

Anthropic offers a lower-latency version of Opus 5.5 on the Claude API as a research preview. It is priced separately from the standard model.

Choose it when you need Opus-level capability but standard Opus latency is too slow, for example an interactive coding assistant. Check the model page for current availability, since previews change.

It is a speed variant, not a different model tier.

Take quiz
What is the status of the lower-latency Opus 5.5 offering?
Research preview on the Claude API
Generally available on every platform
Retired
How is Opus 5.5 Fast priced?
Same as standard
Free during preview
Separately from standard Opus 5.5
Same as Sonnet 5.5

17. What model tiers make up Anthropic's current lineup?

From smallest to largest: Haiku (Haiku 5.5, claude-haiku-5-5), Sonnet (Sonnet 5.5), and Opus (Opus 5.5).

Above Opus sits the Mythos tier. Its current models are Claude Mythos 5.2 and Claude Fable 5.2, which share one underlying model; Fable adds extra safety measures for biology and cybersecurity. Claude Mythos Preview is not public and is used by a small set of organizations under Project Glasswing.

For interviews, know where Opus 5.5 and Sonnet 5.5 sit: the everyday upper and middle tiers.

Take quiz
Which tier sits above Opus?
Haiku
Sonnet
Flash
Mythos
How do Fable 5.2 and Mythos 5.2 relate?
Same underlying model; Fable adds bio and cyber safeguards
Fable is a smaller distilled model
Fable replaces Haiku
They are unrelated models

18. What is the knowledge cutoff for Opus 5.5 and Sonnet 5.5?

Anthropic's models overview lists June 2026 for both. For comparison, Claude Sonnet 5 shows January 2026 and Claude Haiku 4.5 shows February 2025.

Anything after the cutoff is not in the training data. For recent events, library versions, or prices, give the model a search or retrieval tool rather than trusting recall.

Ask for current facts in your prompt flow, not in your assumptions.

Take quiz
What cutoff does the models overview list for the 5.5 models?
January 2026
June 2026
February 2025
December 2025
Why attach a search tool even with a June 2026 cutoff?
Search is required by the Batches API
The cutoff only affects pricing
Events after the cutoff are not in training data

19. What is the difference between Sonnet 5.5 and Sonnet 5?

Price and size are unchanged: both are $2 / $10 per MTok with a 1M window and 128K output. The changes are behavioural, and several break existing code.

Area Sonnet 5 Sonnet 5.5
Turn off up-front thinking disabled between_tools (disabled returns 400)
Forced tool use Works Returns an error
Thinking blocks Not tied to model Tied to model and conversation
Computer use (API, Google Cloud) computer_20251124 computer_toolset_20260801
Knowledge cutoff Jan 2026 Jun 2026

A text-between-tool-calls change also alters the response shape without failing requests.

Take quiz
Which request works on Sonnet 5 but returns 400 on Sonnet 5.5?
thinking {"type": "disabled"}
thinking {"type": "adaptive"}
tool_choice {"type": "auto"}
How did the price change from Sonnet 5 to 5.5?
It did not change; both are $2 / $10
It doubled
It was halved
Input rose, output fell

20. How does Opus 5.5 differ from Opus 5 for existing code?

Four breaking changes hit code already running on Opus 5:

  1. Thinking cannot be disabled; control depth with effort.
  2. Forced tool use returns an error.
  3. Thinking blocks are tied to the model and conversation.
  4. On the Claude API and Google Cloud, the earlier computer_20251124 tool is no longer accepted.

The first three also apply to the Fable models. If your Opus 5 integration sends none of these patterns, the upgrade is mostly a model-ID swap, but run evals anyway.

Take quiz
How many breaking changes affect Opus 5 code moving to Opus 5.5?
Two
Four
Six
None
Which is a breaking change in Opus 5.5?
The context window shrinks to 200K
Model IDs gain a date suffix
Forced tool use now returns an error
Batch pricing was removed

21. What is the difference between Opus 5.5 and Sonnet 5.5?

Aspect Opus 5.5 Sonnet 5.5
Price per MTok (in / out) $4 / $20 $2 / $10
Latency rating Moderate Fast
Default effort medium high
Thinking Adaptive, always on Adaptive; between_tools available
Context / max output 1M / 128K 1M / 128K
Positioning Long-running agentic coding, knowledge work Best speed and intelligence mix

Capacity limits match, so the choice is about capability per dollar and latency, not about how much you can send.

Take quiz
Which of these models is rated Fast?
Opus 5.5
Fable 5.1
Neither
Sonnet 5.5
Which model offers the between_tools setting?
Sonnet 5.5
Opus 5.5
Both of them
Neither of them

22. When should you choose Sonnet 5.5 over Opus 5.5?

Pick Sonnet 5.5 when latency or cost drives the design: chat assistants, high-volume extraction, routing, and tool-light workflows. It is half the price and rated Fast.

Nothing in capacity pushes you to Opus, because both share a 1M window and 128K output. Start on Sonnet, build evals, and escalate only if you can show a measurable gap.

For tool-driven tasks that do not need up-front reasoning, between_tools trims latency further.

Take quiz
A tool-light chatbot has a strict latency budget. What do you start with?
Sonnet 5.5
Opus 5.5 at max effort
A Fable-tier model
What is the right way to decide when to escalate to Opus?
Always pick the largest model
Run your own evals and escalate only on a measured gap
Pick Opus because it has a bigger context window

23. When would you choose Opus 5.5 over Sonnet 5.5?

Choose Opus 5.5 for long-running agentic coding, multi-step knowledge work, and tasks where a failed run is expensive in engineer time or customer impact.

It costs twice as much per token, but a model that finishes in one run can beat a cheaper one that needs retries and human cleanup. Measure cost per completed task, not per token.

If Opus latency hurts, the lower-latency Opus 5.5 research preview is worth a look.

Take quiz
Which workload best suits Opus 5.5?
Millions of simple intent tags per day
Short FAQ lookups
A long-running agentic coding session
Why can paying 2x per token still be cheaper overall?
Fewer failed runs and retries
Opus output tokens are free
Opus has a larger context window
Opus skips billing for thinking

24. Why does disabling thinking fail on Opus 5.5?

On Opus 5.5 adaptive thinking is always on. Anthropic removed the off switch, so a request that tries to disable thinking is rejected rather than silently ignored.

The control you have instead is effort. Lowering it makes the model reason less on easy requests, which cuts latency and cost without code that fights the model's design.

This is one of four breaking changes from Opus 5, so audit any shared client wrapper that hard-codes a thinking type.

Take quiz
How do you reduce reasoning cost on Opus 5.5?
Send thinking type disabled
Lower the effort setting
Set temperature to 0
Add a very small max_tokens
Which existing Opus 5 code needs changing for this?
Code that sends only user messages
Code that omits tool_choice
Code that sends a request to disable thinking

25. How do you turn off up-front thinking on Sonnet 5.5?

Replace disabled with between_tools. Before and after:

# Sonnet 5
thinking={"type": "disabled"}

# Sonnet 5.5
thinking={"type": "between_tools"}

  1. Keep effort at high or below (low, medium, high).
  2. Do not change effort mid-conversation.
  3. Pass any thinking blocks back unchanged with the assistant turn.

If your request uses no tools, the response is plain text, just like disabled on Sonnet 5.

Take quiz
What is the highest effort at which between_tools is accepted?
high
xhigh
max
What does a between_tools response contain when no tools are used?
Only text
Empty thinking blocks
A 400 error
An encrypted advisor block

26. What happens when between_tools is used at xhigh or max effort?

The request returns a 400 error. between_tools only works at low, medium, and high effort.

To run at xhigh or max, use adaptive thinking: omit the thinking field or send {"type": "adaptive"}.

between_tools also accepts no other thinking fields. Sending display, budget_tokens, or block_binding with it returns a 400 as well.

Take quiz
What does a between_tools request at max effort return?
It runs with effort clamped to high
It runs and silently re-enables thinking
A 400 error
Which field sent with between_tools triggers a 400?
max_tokens
tools
display
system

27. How does between_tools affect per-turn effort changes?

With between_tools, effort is locked for the conversation. A per-message output_config.effort that differs from the level in effect returns a 400.

If your product raises effort for hard turns and lowers it for easy ones, use adaptive thinking instead.

History also matters: with between_tools, keep the conversation append-only, or remove thinking blocks from any edited turn onward.

Take quiz
What happens if effort changes mid-conversation under between_tools?
The new effort is applied silently
The request returns a 400
The model ignores the change and logs a warning
Which setting lets you vary effort turn by turn?
Adaptive thinking
between_tools
thinking disabled
A manual budget_tokens value

28. How do you replace forced tool use on Sonnet 5.5?

Combine strict tool use, tool_choice: auto, and a clear instruction in the prompt:

client.messages.create(
    model="claude-sonnet-5-5",
    max_tokens=1024,
    tools=[{**t, "strict": True} for t in tools],
    tool_choice={"type": "auto"},
    messages=[{"role": "user",
        "content": "What is the weather in Paris? Use the get_weather tool."}],
)

strict guarantees that any call the model makes matches the tool's input_schema. It does not force a call, which is why the prompt must say the tool is required.

Take quiz
Which combination replaces tool_choice set to a named tool?
tool_choice any plus thinking disabled
strict tools, tool_choice auto, and a prompt instruction
temperature set to 0
A larger max_tokens value
What does strict: true guarantee?
The tool is always called
Tool results are cached
Each tool call matches the tool's input_schema
The model never writes text

29. What happens if you set temperature on Sonnet 5.5?

Setting temperature, top_p, or top_k to a non-default value returns a 400 error on Claude Sonnet 5.5.

Remove those parameters and steer behaviour through the prompt and the effort setting. The Sonnet 5.5 page documents this; check the Opus 5.5 page for your own target before assuming the same rule there.

Shared client code that injects temperature=0 for determinism is the usual culprit after a migration.

Take quiz
What does temperature 0.2 on Sonnet 5.5 return?
It is silently ignored
It is clamped to 1.0
A 400 error
Which request avoids this error?
One that omits the sampling parameters
One with top_k set to 40
One with top_p set to 0.9

30. How do you migrate from computer_20251124 to the new toolset?

Four changes on the Claude API or Google Cloud:

  1. Remove the old beta header.
  2. Replace the tools entry with {"type": "computer_toolset_20260801"}.
  3. Update the agent loop to handle the toolset's member tool_use blocks and batch actions.
  4. Read toolset_name in results.

Requests that still declare computer_20251124 get a 400 on those platforms. On Bedrock, Sonnet 5.5 still accepts the earlier tool.

Take quiz
What replaces the computer_20251124 entry in tools?
The same entry plus a beta header
{"type": "computer_toolset_20260801"}
A bash tool entry
What must the agent loop now handle?
Base64 PDF blocks
Sampling parameters
Member tool_use blocks and toolset_name in results

31. Why does a streaming UI go quiet between tool calls on Sonnet 5.5?

On Sonnet 5.5, text the model writes between tool calls comes back in thinking blocks. The default display is omitted, so an app that only streams text blocks shows nothing during those gaps.

Two fixes: set a display value that returns the text, or turn off up-front thinking with between_tools, where the short progress notes arrive as thinking blocks with summary text.

The request never fails, which is why this bug is found by users, not by tests.

Take quiz
Why does the UI go quiet between tool calls?
Inter-tool text arrives in thinking blocks
Streaming is disabled on 5.5
Tool calls run only in batch mode
Which fixes bring the text back?
Set a display value that returns it, or use between_tools
Raise max_tokens to 128K
Switch tool_choice to any
Lower effort to low

32. Explain the execution flow of a tool loop with between_tools?

sequenceDiagram
participant App
participant API as Claude API
App->>API: Request with tools and thinking between_tools
API-->>App: Short progress thinking block and tool_use
App->>App: Run the tool
App->>API: tool_result and the thinking block unchanged
API-->>App: Final text answer

Each turn the model may emit a short progress note as a thinking block, then a tool_use. Your app runs the tool and sends the tool_result.

Send the thinking block back unchanged with the assistant turn. The model then receives the full note it wrote, not just the summary shown to you.

Take quiz
What do you pass back alongside each tool_result?
Only the text blocks
A rewritten summary of them
The thinking blocks, unchanged
What does the model receive when you pass a progress block back?
Only the summary text
Nothing, the block is ignored
The full note it wrote, not the summary
An encrypted copy

33. What does the thinking-binding-controls beta do?

It controls what the API does when a request carries thinking blocks that do not match the model. You send the beta header thinking-binding-controls-2026-08-01 and set thinking.block_binding.prefix_mismatch_behavior to "drop_block".

On accounts created earlier, setting that field to either value turns the check on for that request.

It works only with thinking: {"type": "adaptive"}. With between_tools, keep history append-only or remove thinking blocks from the edited turn onward.

Take quiz
Which beta header enables the thinking-binding controls?
output-300k-2026-03-24
thinking-binding-controls-2026-08-01
block-binding-2026-01-01
With which thinking type does block_binding work?
adaptive
between_tools
disabled
enabled with budget_tokens

34. How does server-side fallback treat a between_tools request?

With server-side fallback, a between_tools request that falls back to Claude Sonnet 5 runs there with thinking: {"type": "disabled"}.

That mapping makes sense: Sonnet 5 does not know between_tools but does accept disabled, so the fallback keeps the same meaning, no up-front thinking.

Remember that thinking blocks are model-bound, so reasoning from the primary model is not carried into the fallback.

Take quiz
What does a between_tools request become after falling back to Sonnet 5?
thinking disabled
thinking adaptive at max effort
A 400 error
Why is that the right mapping?
Sonnet 5 requires a manual budget
Sonnet 5 accepts disabled but not between_tools
Sonnet 5 has no thinking support at all

35. How does effort trade cost against quality on Sonnet 5.5?

Effort sets thinking depth, so it moves latency, cost, and quality together. Sonnet 5.5 defaults to high.

A launch-day third-party test of a coding task reported that medium used roughly half the tokens and cost of high (about 6.2k versus 11.9k tokens) while matching its scores, whereas low dropped on one check set. Treat that as a data point, not a rule.

The practical approach: pick a representative eval, run it at low, medium, and high, and choose the cheapest level that holds your quality bar.

Take quiz
In the third-party test, how did medium compare with high?
Twice the tokens
Identical token use
It failed every check
About half the tokens and cost with matching scores
What is the sound way to pick an effort level?
Run your own eval at several levels and take the cheapest that passes
Always use max
Always use low
Copy the default from Opus

36. When would you raise effort above medium on Opus 5.5?

Opus 5.5 defaults to medium and cannot turn thinking off, so effort is your only reasoning dial.

Raise it to high, xhigh, or max for hard multi-step work: large refactors, ambiguous debugging, or planning where an early mistake compounds. Drop to low for simple lookups where depth adds cost, not value.

Raise effort per task type, and confirm with evals, since deeper reasoning also means more output tokens billed at $20 per MTok.

Take quiz
What is Opus 5.5's only reasoning-depth control?
Disabling thinking
The effort setting
between_tools
temperature
Which task most justifies raising effort?
Looking up a product name
Echoing back a user message
A large refactor where early mistakes compound

37. How can you optimize cost for high-volume Sonnet 5.5 workloads?

Stack the levers, cheapest first:

  1. Use Sonnet 5.5 instead of Opus 5.5: half the per-token price.
  2. Send non-urgent work through the Batches API for 50% off ($1 / $5 per MTok).
  3. Keep stable prefixes of 512+ tokens cacheable.
  4. Lower effort, or use between_tools where no up-front reasoning is needed.
  5. Trim output length; output tokens cost five times input.

Measure cost per successful task after each change, so savings do not hide a quality drop.

Take quiz
What is Sonnet 5.5's Batches API price per MTok (input / output)?
$2 / $10
$0.50 / $2.50
$4 / $20
$1 / $5
Why trim output length on Sonnet 5.5?
Output is cheaper than input
Output costs five times input per token
Output is billed only on batches

38. How do you optimize prompt caching on the 5.5 models?

Caching works on a stable prefix. Put content that never changes first (system prompt, tool definitions, reference documents), and variable content last.

"system": [{
  "type": "text",
  &quot;text&quot;: &quot;<long, stable instructions>&quot;,
  &quot;cache_control&quot;: {&quot;type&quot;: &quot;ephemeral&quot;}
}]

The prefix must reach 512 tokens. Avoid inserting timestamps or user IDs near the top, because any change in the prefix invalidates what follows it.

Take quiz
Where should stable content go for good cache hits?
At the end of the prompt
Inside the latest user message
At the start of the prompt
What breaks a cached prefix?
Changing text inside the prefix, such as a timestamp near the top
Adding text after the cached prefix
Using the 5.5 model ID

39. How do you troubleshoot a 400 error after migrating to Sonnet 5.5?

Work through the usual suspects:

Cause Fix
thinking: disabled Use between_tools
tool_choice any or named tool Strict tools plus auto
Manual budget_tokens Use adaptive thinking and effort
Non-default temperature, top_p, top_k Remove them
computer_20251124 on API or Google Cloud Use computer_toolset_20260801
between_tools with xhigh or max, or with display, budget_tokens, block_binding Use adaptive, or drop the extra fields

The error message usually names the cause, and for disabled it points straight to between_tools.

Take quiz
A 400 mentions between_tools after you sent disabled. What is the fix?
Add a beta header
Switch to thinking type between_tools
Raise max_tokens
Which pairing causes a 400 on Sonnet 5.5?
between_tools with max effort
adaptive with high effort
between_tools with medium effort
tool_choice auto with strict tools

40. How do you troubleshoot a 400 error after migrating to Opus 5.5?

Three migration patterns cause most failures:

Symptom Fix
Request tries to disable thinking Remove it; lower effort instead
tool_choice any or a named tool Use auto and prompt for tool use
computer_20251124 on Claude API or Google Cloud Use computer_toolset_20260801

Also check that thinking blocks are returned unchanged and are not mixed across models in one conversation.

Grep shared SDK wrappers first, since one helper often sets these for every call.

Take quiz
A request that disables thinking fails on Opus 5.5. What is the fix?
Remove it and lower effort to reduce reasoning
Add output-300k-2026-03-24
Set tool_choice to any
What replaces computer_20251124 on the Claude API?
computer_use_v2
computer_toolset_20260801
computer_20260801_legacy

41. How do Opus 5.5 and Sonnet 5.5 compare with Fable 5.1?

Model Price (in / out per MTok) Latency Default effort
Sonnet 5.5 $2 / $10 Fast high
Opus 5.5 $4 / $20 Moderate medium
Fable 5.1 $10 / $50 Slower high

All three list a 1M window and 128K output, and Opus 5.5 and Fable 5.1 keep adaptive thinking always on.

Fable is the premium step: five times Sonnet's price. Use it only when evals show Opus 5.5 falling short.

Take quiz
What is Fable 5.1's default effort in the comparison table?
medium
low
high
How many times Sonnet 5.5's output price is Fable 5.1's?
Five times
Two times
Ten times
The same

42. Explain the execution flow of migrating a Sonnet 5 agent to 5.5?

flowchart TD
A["Change model ID to claude-sonnet-5-5"] --> B{Sends thinking disabled?}
B -- Yes --> C["Switch to between_tools"]
B -- No --> D{Forces tool_choice?}
C --> D
D -- Yes --> E["Use strict tools and tool_choice auto"]
D -- No --> F{Uses computer_20251124?}
E --> F
F -- Yes --> G["Move to computer_toolset_20260801"]
F -- No --> H["Remove budget_tokens and sampling params"]
G --> H
H --> I["Check display of inter-tool text"]
I --> J["Run evals and tune effort"]

Do the steps in this order because each one removes a hard 400. Evals come last, since they only make sense once requests succeed.

Do not forget advisor pairings: Opus 4.8, Opus 4.7, and Sonnet 5 are rejected as advisors.

Take quiz
What is the first change in the migration flow?
Tune effort
Switch the model ID to claude-sonnet-5-5
Remove the system prompt
Why do evals come last?
Evals are optional
Evals only run on batches
Requests must succeed before behaviour can be compared

43. How would you escalate from Sonnet 5.5 to Opus 5.5 mid-conversation?

flowchart LR
A["Sonnet 5.5 turn"] --> B{Task too hard?}
B -- No --> A
B -- Yes --> C["Switch model ID at a turn boundary"]
C --> D["API drops unreadable thinking blocks"]
D --> E["Opus 5.5 runs without prior reasoning"]
E --> F["Visible summary carries the state"]

Switch at a turn boundary. Because thinking blocks are model-bound, Opus 5.5 does not see Sonnet's reasoning. The API drops those blocks, the call still succeeds, and they are not billed.

So put what matters in visible text, such as a short state summary, before switching. Keep history append-only to avoid mismatches.

Take quiz
What happens to Sonnet 5.5's thinking blocks when Opus 5.5 takes over?
They are dropped and Opus runs without that reasoning
Opus reads them in full
The request fails with a 400
How should key context cross the switch?
Inside the dropped thinking blocks
As visible text in the conversation
Through the advisor tool only

44. How can you optimize a latency-sensitive agent on Sonnet 5.5?

Sonnet 5.5 is already rated Fast, so tune the remaining levers:

  • Use between_tools for tool-driven flows that do not need up-front reasoning.
  • Run at medium or low effort where evals allow; avoid max.
  • Cache stable prefixes of 512+ tokens to cut input processing.
  • Stream, and make sure inter-tool text is displayed (display value or between_tools).
  • Keep outputs short.

Do not use the Batches API for this; it trades latency for a 50% discount. If you need Opus capability, the Opus 5.5 lower-latency preview exists.

Take quiz
Which setting removes up-front reasoning delay on Sonnet 5.5?
Thinking disabled
between_tools
effort max
A larger max_tokens
Is the Batches API a latency optimization?
No, it trades latency for a 50% discount
Yes, it is the fastest path
Yes, but only for Opus

45. What does the Sonnet 5.5 safety evaluation say?

Anthropic publishes safety evaluations and deployment decisions for each model; the Sonnet 5.5 and Opus 5.5 pages link to them. Read the source, not a summary, before an enterprise review.

A launch-day third-party write-up of the Sonnet 5.5 system card reported that it crosses no new RSP threshold and rates alignment risk as low, while noting findings that matter for production use.

Treat that as secondary reporting and verify against Anthropic's own page.

Take quiz
What did the third-party review report about RSP thresholds?
A new threshold was crossed and API access was restricted
No new RSP threshold was crossed
Thresholds were not evaluated
Where do you find the official safety evaluation?
Only on the pricing page
It is not published
The safety evaluations link on the model page

46. How do you check 5.5 model limits programmatically?

Use the Models API, which reports a model's limits and capabilities so your code does not hard-code them.

curl https://api.anthropic.com/v1/models/claude-sonnet-5-5 \
  -H &quot;x-api-key: $ANTHROPIC_API_KEY&quot; \
  -H &quot;anthropic-version: 2023-06-01&quot;

Do this at startup or in a health check. When a limit or capability changes, such as supported thinking types, your service notices without a code release.

Take quiz
Which API reports a model's limits and capabilities?
The Models API
The Batches API
The Files API only
Why query it instead of hard-coding limits?
It makes requests free
Limits and capabilities can change between releases
It disables caching

47. How does the tokenizer affect context planning on 5.5 models?

The current tokenizer, introduced with Claude Opus 4.7, turns the same text into more tokens than older models did. A 1M window holds about 555k words now, versus about 750k on earlier models.

Two consequences: budgets set in words need recalculating, and the same document costs more input tokens than it did before.

Count tokens with the API's token counting rather than estimating from character counts.

Take quiz
About how many words fit in 1M tokens on the older tokenizer?
About 555k words
About 300k words
About 750k words
What is the consequence of the newer tokenizer?
The same text uses more tokens
The same text uses fewer tokens
The context window shrank to 200K

48. How do you combine Sonnet 5.5 and Opus 5.5 in one agent system?

A common pattern is Sonnet 5.5 as the default worker and Opus 5.5 for the hard steps. Route by task type, or escalate when the cheap model fails a check.

  • Delegate planning or review steps to Opus 5.5; keep bulk execution on Sonnet.
  • Consider the advisor tool, noting its pairing limits and encrypted results.
  • Switch at turn boundaries and carry state as visible text, since thinking blocks do not cross models.

Track cost per completed task to confirm that the routing pays off.

Take quiz
What is a sensible default worker in a mixed system?
Opus 5.5 for every step
Sonnet 5.5, with Opus 5.5 for hard steps
Fable 5.1 for every step
What crosses a model switch reliably?
Thinking blocks
Encrypted advisor results
Visible text such as a state summary
Cache entries

49. How can you validate behavior before moving traffic to Sonnet 5.5?

Treat it as a migration with evals, not a drop-in swap.

  1. Replay a golden set of real prompts on the old and new model.
  2. Fix every 400 first (thinking, tool_choice, sampling, computer tool).
  3. Compare task success, tool-call correctness, and output length.
  4. Compare token usage and cost per task at each effort level.
  5. Confirm the UI still shows text between tool calls.
  6. Shadow a slice of live traffic, then ramp up.

Keep the previous model ID as a rollback path until the metrics hold for a full traffic cycle.

Take quiz
What do you fix first in a Sonnet 5.5 migration test run?
Requests that return 400 errors
Slow response times
The system prompt wording
Why shadow live traffic before a full cutover?
Shadow traffic is free
Real traffic reveals behaviour that golden sets miss
It removes the need for evals

50. Explain how thinking, effort, and cost interact across both 5.5 models?

Setting Opus 5.5 Sonnet 5.5
Thinking Adaptive, always on Adaptive, or between_tools
Default effort medium high
Lowest reasoning Low effort (cannot disable) between_tools at high or below
xhigh / max Via effort Only with adaptive thinking
Output price per MTok $20 $10

Effort changes how many thinking tokens are spent, and thinking tokens are billed as output. That is why the same prompt can cost very different amounts at different effort levels.

Sonnet gives you more knobs (including between_tools); Opus gives you one (effort) and a higher price per output token.

Take quiz
What is the lowest reasoning option on Opus 5.5?
between_tools
Low effort, since thinking cannot be disabled
thinking disabled
temperature 0
Why does effort change the bill?
Thinking tokens are billed as output tokens
Effort changes the input price
Effort changes the batch discount
«
»

Comments & Discussions