What this thread does
The problem
An existing Claude API integration starts returning 400s after a model swap, or its UI goes quiet during tool calls. This is a request/response migration guide; choose your workload tier in the existing family-choice thread first. All official pages below were fetched today.
What changed
- On 2026-09-22 (checked 2026-10-20), Anthropic released Claude Opus 5.5 (checked 2026-10-20). On 2026-09-28 (checked 2026-10-20), it released Claude Sonnet 5.5 (checked 2026-10-20). Both dates are in the official release notes and Sonnet entry.
- Versus the previous generation, the Opus changes make thinking mandatory and reject forced tool choice. The Sonnet changes replace the old thinking-off setting with
between_tools. Both change thinking-block compatibility and computer use. Sonnet also rejects older advisor models; check its advisor allowlist before migrating. Release dates above, checked 2026-10-20.
Model IDs, access and prices — checked 2026-10-20
Claude API IDs come from the models overview. These are API services; no downloadable package or OSS model licence is being supplied. USD rates per million tokens below are standard API rates from official pricing, checked 2026-10-20; fast mode and cloud-provider premiums are excluded.
| Model / ID, each checked 2026-10-20 | Input / output | Cache read | Delta |
|---|---|---|---|
Opus 5.5 / claude-opus-5-5 | $4 / $20 | $0.20 | 20% lower base rates than Opus 5 |
| Opus 5, 4.8, 4.7, 4.6, 4.5 | $5 / $25 | $0.50 | Predecessor comparison |
Sonnet 5.5 / claude-sonnet-5-5 | $2 / $10 | $0.10 | Same base rates as Sonnet 5; half its cache-read rate |
| Sonnet 5 | $2 / $10 | $0.20 | Predecessor comparison |
| Sonnet 4.6 and 4.5 | $3 / $15 | $0.30 | New base rates one-third lower |
Percentages are arithmetic on these rates, not measured task-cost savings. Both target models have 1M context and 128K maximum output, checked 2026-10-20, per the models overview. Recount tokens when coming from an older tokenizer; compare billed task cost, including thinking, rather than price per token alone.
What breaks
The Opus change page documents 400 invalid_request_error, including the exact string tool_choice: type "tool" and "any" are not supported for this model. It also documents "thinking.type.disabled" is not supported for this model.
Other concrete failures include rejected manual thinking budgets, non-default sampling controls and assistant prefill from older integrations; the migration guides below enumerate them. A parser that assumes content[0].text can instead receive a thinking block. Progress text between tool calls can disappear from the UI without a request failure. A model switch can drop incompatible thinking blocks; editing earlier history can violate thinking binding. Do not treat an HTTP success as proof that reasoning survived the switch.
How to migrate
1. Read the Opus migration guide or Sonnet migration guide, including the section for your starting model. Use claude-opus-5-5 or claude-sonnet-5-5 (both checked 2026-10-20); do not add a date suffix. In Claude Code, the official commands are /claude-api migrate this project to claude-opus-5-5 and /claude-api migrate this project to claude-sonnet-5-5 (checked 2026-10-20). 2. Omit thinking for adaptive thinking. For Opus, tune output_config.effort, starting at medium. For Sonnet without up-front thinking, send thinking as {"type":"between_tools"} at low, medium or high; higher effort rejects it. Do not add display, budget_tokens or block_binding to that object. 3. Remove manual budget_tokens, non-default temperature, top_p, top_k, and final assistant prefill. Replace forced tool choice with auto; use strict tool schemas for argument validation or structured outputs for JSON responses. Strict schemas do not guarantee that a tool is called. 4. Select response blocks by type and preserve thinking blocks unchanged through the tool loop. With adaptive thinking, request thinking.display as summarized if the UI needs readable progress. 5. On Claude API and Google Cloud, replace computer_20251124 with computer_toolset_20260801 (tool versions checked 2026-10-20). The old tool remains accepted on Amazon Bedrock. Review each provider's guide before porting request shapes across providers.
When to pick which migration path
| Constraint | Recommendation |
|---|---|
| Existing Opus agent | Keep the workload and evals fixed; migrate its request shape first |
| Existing Sonnet agent needs no up-front reasoning | Test between_tools at permitted effort |
| JSON extraction built on forced tool use | Test schema conformance and actual tool invocation separately |
| Changing model in a running conversation | Replay saved history through the target and inspect continuity before rollout |
Community evidence
- In oh-my-pi issue 13994, sFritsch09 reported a working first turn followed by
messages.2.output_config: Extra inputs are not permittedon Vertex. Collaborator roboomp reproduced the provider mismatch and linked a fix. This is evidence for testing a second turn, not a universal Claude API failure. - In AIRI issue 2816, s3d-i reported an OpenRouter error, “Reasoning is mandatory for this endpoint and cannot be disabled.” Turning Thinking on restored chat for the reporter. The issue is closed; this is an adapter-specific report, not proof that the first-party Sonnet option is absent.
What to test
Replay representative saved requests and at least a two-turn tool loop. Check streamed block handling, empty thinking blocks, JSON validity, tool execution, history edits, model switching, computer-use actions, refusal handling and output truncation. Compare task completion, latency and total billed usage at fixed effort. Canary the migration with a configurable model ID and a deadline-aware fallback plan.
Pitfalls
- Applying the Opus thinking rule to Sonnet without checking its separate mode.
- Assuming
autoplus strict schemas forces execution. - Reusing provider-specific headers or model IDs across endpoints.
- Comparing lower base rates while ignoring output thinking and tokenization changes.
A prompt to give your agent
Your training data predates this release. Read the linked official Opus and Sonnet migration guides now; do not guess model IDs, parameters or provider support. Inventory our actual provider, starting model, sampling defaults, thinking, prefill, tool choice and response parser. Prepare a scoped patch and tests for first turn, second turn, streamed tool execution and saved-history replay. Use the target IDs above, checked 2026-10-20. Report measured cost and failures; do not claim success from a model-name edit alone.
Limits
No SDK was installed, no API request or benchmark was run, and no migration was executed. Community evidence is two integration bug reports, not a production adoption survey. No SDK version pin or OSS licence claim is made. Prices and capabilities are checked 2026-10-20 and need rechecking before rollout.
Started from a post by @Anthropic, packaged by the editor. Original post