Picking a model in the Claude app is a dropdown swap, whereas changing the model your application calls over the API touches request parameters and response parsing too. Moving to Sonnet 5.5 means checking more than the model ID string. This post breaks down when Sonnet 5.5 makes sense over Opus 5.5 and which API settings need updating when migrating from Sonnet 5.

At a Glance

  • Sonnet 5.5 is the second model in the Claude 5.5 family after Opus 5.5, running 30% faster than Sonnet 5 and lowering task cost by up to 30% across most workloads.
  • Per-token list prices match Sonnet 5; the savings come from using fewer tokens to finish the same job.
  • Treat Sonnet 5.5 as the default for well-scoped everyday tasks, and reach for Opus 5.5 when work requires long multi-step judgment.
  • Migrating API calls from Sonnet 5 requires checking thinking and tool_choice settings, along with computer use and advisor parameters if your integration uses them.

About the Original Post

Addy Osmani published this Playbooks guide on claude.dev on September 28, 2026. Written as a hands-on migration reference for developers integrating Claude through the API, it fits engineering teams weighing model selection, latency, and cost across coding tools or production agents.

Choosing Between Sonnet 5.5 and Opus 5.5

The original post draws the line around two questions: is the specification clear, and can you verify the output? Tasks that meet both criteria belong on Sonnet 5.5, including bug fixes, scoped feature work, docs, slide decks, spreadsheets, research, and code or content reviews.

Open-ended knowledge work and multi-step agentic coding, where the model reads files, edits code, runs tests, and sustains judgment across a long loop, belong on Opus 5.5 instead. At the time of publication, Anthropic also noted that Haiku 5.5 would arrive within a few weeks for high-volume workloads.

Comparison of an original photo alongside Python-rendered paintings written by Sonnet 5, Sonnet 5.5, and Opus 5.5

Figure 1. From left: original photo, followed by scenes rendered by Sonnet 5, Sonnet 5.5, and Opus 5.5. Rather than calling an image generator, each model wrote Python code to paint the image. Demo by Lance Martin; meant as a visual illustration rather than a formal benchmark. Source: Original post .

The demo drew inspiration from code-painting experiments by @jkeatn , using an original photograph by @IceSolst .

Look at how clearly the requirements and acceptance checks are defined rather than routing by task label alone.

Per million tokens, Sonnet 5.5 lists at $2 for input and $10 for output, while Opus 5.5 lists at $4 for input and $20 for output. Cache reads, which reuse a shared prompt prefix already sent in an earlier turn, cost $0.20 per million tokens on both models.

Price per 1M tokensSonnet 5.5Opus 5.5
Input$2$4
Output$10$20
Cache write · 5m$2.50$5
Cache write · 1h$4$8
Cache read$0.20$0.20

Fresh input, output, and initial cache writes all cost twice as much on Opus 5.5 as on Sonnet 5.5; only cache reads match. Including batch processing and prompt caching, Sonnet 5.5 carries the exact same rate card as Sonnet 5.

Because the rate card did not budge between Sonnet 5 and Sonnet 5.5, comparing price tables tells you nothing about your actual bill. Lower task spend comes from finishing the same work in fewer tokens, which you can only measure by running representative tasks from your own workload.

Images consume input tokens as well. Sonnet 5.5 processes high-resolution images up to 2,576 pixels on the long edge, so a 2000×1500 image uses roughly 2.5× as many tokens as it did on Sonnet 4.6. Downscale images before sending them unless the task depends on reading fine print or dense UI details.

Sonnet 5.5 supports a 1M-token context window and up to 128k output tokens per response (M = million, k = thousand), with no beta header needed to unlock long context. Pass claude-sonnet-5-5 as the model ID in API requests.

Default effort, which controls how much compute the model spends reasoning, differs by environment: the Claude API defaults to high, while Claude Code defaults to medium.

API Breaking Changes When Migrating from Sonnet 5

This section covers code-level changes in API integrations. An HTTP 400 error means the API rejected the request format or parameter combination upfront, before the model ever ran.

First, thinking behavior changed. Sonnet 5.5 runs with thinking enabled by default, and sending thinking: {"type": "disabled"} now triggers a 400 error.

If you want to skip initial upfront reasoning and let the model think only between tool calls, set between_tools. That mode works only when effort is low, medium, or high; pairing between_tools with xhigh or max returns a 400 error. At xhigh or max, use adaptive thinking instead so the model scales its own reasoning depth.

Response parsing needs a check too. API responses return an array of typed content blocks such as thinking and text. Because the first element can now be a thinking block, client code that reads content[0].text blindly should be updated to inspect block types and extract text blocks explicitly.

Several feature-specific parameters also tightened:

  • Tool calling: Forcing tool execution by setting tool_choice to any or tool now returns a 400 error. The guide recommends sending auto and enabling strict: true so tool arguments conform to your schema.
  • Computer use: On the Claude API and Google Cloud, screen interaction requires computer_toolset_20260801; declaring the older computer_20251124 tool returns a 400 error. Amazon Bedrock still accepted the older identifier when the post went live.
  • Advisor tool: When Sonnet 5.5 runs as the executor asking another model for guidance, Opus 4.8, Opus 4.7, and Sonnet 5 are not supported as advisors. Valid advisor models include Opus 5.5, Opus 5, and Sonnet 5.5 itself.
  • Progress updates: Notes longer than a sentence or two between tool calls arrive as progress-update thinking blocks, which come back empty under the default display configuration. Set thinking.display under adaptive thinking if your UI surfaces those status notes (between_tools returns plain text without extra setup). Because requests still succeed with HTTP 200 when notes are blank, verify this behavior explicitly in your UI.

Inside Claude Code, running /claude-api migrate this project to claude-sonnet-5-5 scans your project to update the model ID and incompatible request parameters automatically.

Post-Migration Tuning

Named effort tiers were recalibrated for Sonnet 5.5. Because thinking token volume at a given tier differs from Sonnet 5, do not assume your old effort setting will produce identical latency or spend.

For agentic coding with clear specs, the guide suggests starting at medium and moving to high only on longer or harder tasks. Save xhigh and max for workloads where evaluations confirm a quality lift; if extended reasoning pushes latency and cost too high at those tiers, test Opus 5.5 head-to-head instead.

Audit legacy prompt instructions written to patch older models. Refusal workarounds from Sonnet 5, manual tool-retry instructions, and anti-laziness nudges (“do not be lazy, write the full implementation”) should be stripped out and re-tested against your evals to see whether Sonnet 5.5 still needs them.

Minimum cacheable prefix length dropped from 1,024 tokens on Sonnet 5 to 512 tokens on Sonnet 5.5, though changing top-level effort between requests invalidates the cached prefix. Starting in Claude Code v2.1.284 on the Claude API, the sonnet alias resolves to Sonnet 5.5, while the default session model stays Opus 5.5.

Takeaways

The notes below are this blog’s own interpretation, not part of the original post.

  1. Identical per-token rates can still produce noticeably different per-task bills. Because Sonnet 5 and Sonnet 5.5 share the exact same price table, the only way to judge migration savings is running a handful of recurring tasks on both models and comparing output quality alongside total tokens consumed.

  2. Upgrading a model touches the whole harness (prompts, tool definitions, request config, and response parser), not just a model name constant. Keeping model parameters in one place and parsing response blocks by type rather than array index prevents brittle breakages on future upgrades.

  3. Multi-step data agents can split work across models based on how verifiable each step is. Steps where a tool checks the output right away, such as generating and executing SQL against known schemas, fit Sonnet 5.5 well. Steps that interpret ambiguous results and decide follow-up investigation fit Opus 5.5, and both setups should be compared side by side on real queries.

What to Try First

  • Search your codebase for thinking: {"type": "disabled"}, forced tool_choice values (any or tool), and hardcoded content[0].text reads, then update each call site against the migration rules above.
  • Run a small batch of everyday tasks with identical inputs on Sonnet 5 and Sonnet 5.5, logging pass rates, input/output token counts, and wall-clock time side by side.
  • Strip older compensating prompt rules on a test branch and run your evaluation cases to see which instructions are now dead weight.

Original post: Building with Claude Sonnet 5.5