AI EngineerGuide

Beta headers to remove when moving to Claude Sonnet 5.5

Behavior change Applies to claude-sonnet-5-5 on the Anthropic Messages API.

Anthropic's docs describe this behavior change but don't quote the exact message, so we don't either.

How to fix it

Remove interleaved-thinking-2025-05-14 (adaptive thinking interleaves automatically) and any context-window beta header.

Before
{
  "betas": [
    "interleaved-thinking-2025-05-14"
  ],
  "max_tokens": 1024,
  "messages": [
    {
      "content": "Summarize this ticket.",
      "role": "user"
    }
  ],
  "model": "claude-sonnet-4-5-20250929"
}
After (Claude Sonnet 5.5)
{
  "max_tokens": 1024,
  "messages": [
    {
      "content": "Summarize this ticket.",
      "role": "user"
    }
  ],
  "model": "claude-sonnet-5-5"
}

Official source

Remove interleaved-thinking-2025-05-14, because adaptive thinking interleaves automatically.

https://platform.claude.com/docs/en/models/sonnet-5-5/migration-guide#migrating-from-sonnet-45 (last checked 2026-11-02)

Other changes for the same models

All migration errors

FAQ

How do I fix this when moving to claude-sonnet-5-5?

Remove interleaved-thinking-2025-05-14 (adaptive thinking interleaves automatically) and any context-window beta header.

Where is this documented?

In Anthropic’s official docs: https://platform.claude.com/docs/en/models/sonnet-5-5/migration-guide#migrating-from-sonnet-45, last checked 2026-11-02.