Claude Opus 4.5 retires from the Claude API on Jan 22, 2027
claude-opus-4-5-20251101 and the undated claude-opus-4-5 retire Jan 22, 2027. What changes in requests and responses when you move to claude-opus-5-5.
claude-opus-4-5-20251101 (Claude Opus 4.5) retires from the Claude API on January 22, 2027. The recommended replacement is claude-opus-5-5, but several request settings are rejected with a 400 on the new model, so the move is more than a name swap.
This is the "2026-11-23: Claude Opus 4.5 model" entry of the Anthropic Model deprecations page (read 2026-12-01).
| Retirement date | Retiring name | Recommended replacement |
|---|---|---|
| January 22, 2027 | claude-opus-4-5-20251101 | claude-opus-5-5 |
The same entry says: "This retirement includes claude-opus-4-5, the same model’s ID without a date." Search for two names, the dated one and the undated one.
Which platforms this covers
The date applies to Anthropic-operated platforms: the Claude API, Claude Platform on AWS, Claude Models on Google Cloud (Anthropic managed) and Microsoft Foundry. Amazon Bedrock and Claude Models on Google Cloud (Google managed) "set their own retirement schedules", so their dates can differ. The docs also say to check which dates apply to you instead of relying on an email. The model ID for claude-opus-5-5 differs per platform too.
Steps
[1] Find what still calls the model. The audit procedure in the docs: open the Usage page in Claude Console, click Export, and read the CSV, which breaks usage down by API key and model. If keys are not split per service, the CSV will not name the code, so search the repository as well. Run on a test code tree:
$ grep -rn "claude-opus-4-5" ../src/review.py:4:DATED = "claude-opus-4-5-20251101"./src/review.py:5:UNDATED = 'claude-opus-4-5'./deploy/values.yaml:2: ANTHROPIC_MODEL: claude-opus-4-5./deploy/values.yaml:3: CLOUD_MODEL_ID: us.anthropic.claude-opus-4-5-20251101-v1:0./tests/names.txt:1:claude-opus-4-50./.github/eval.yml:1:model: 'claude-opus-4-5'./.env:1:ANTHROPIC_MODEL="claude-opus-4-5-20251101"Not all seven lines are targets. claude-opus-4-50 is a different string, and us.anthropic.…-v1:0 carries a cloud platform prefix and suffix, so it follows that platform's schedule. To drop those two, exclude hits with name characters on either side:
$ grep -rnP '(?<![\w.@/-])claude-opus-4-5(?:-20251101)?(?![\w-])' ../src/review.py:4:DATED = "claude-opus-4-5-20251101"./src/review.py:5:UNDATED = 'claude-opus-4-5'./deploy/values.yaml:2: ANTHROPIC_MODEL: claude-opus-4-5./.github/eval.yml:1:model: 'claude-opus-4-5'./.env:1:ANTHROPIC_MODEL="claude-opus-4-5-20251101"Both quote styles, a line end, .env and the hidden .github folder were all matched. The test tree also has src/dynamic.py, which builds the name as "claude-opus-" + VERSION; neither command finds it. Names assembled from variables and settings outside the repository (container images, serverless environment variables) are outside this search. Find "Opus 4.5" written as prose with grep -rniE "opus[ -]4[.-]5" ., and check the real form of a cloud platform ID in that platform's model table.
[2] Fix the request settings. These are the request requirements in the Opus 5.5 migration guide that affect code coming from Opus 4.5 or earlier. Where the guide says "rejected", the API returns a 400. The 400 conditions for sampling parameters come from the parameter table on the Model deprecations page.
| In your request | claude-opus-5-5 | See |
|---|---|---|
thinking: {"type": "enabled", "budget_tokens": N} | rejected | thinking.type.enabled |
thinking: {"type": "disabled"} | rejected | thinking.type.disabled |
tool_choice any or tool | rejected; only auto or none | tool_choice any |
messages ending in an assistant turn (prefill) | rejected | assistant prefill |
temperature, top_p, top_k | 400 in API version 2026-10-21; earlier versions return 400 for non-default values | omit them and steer with the prompt |
| Older computer use tool versions | declare computer_toolset_20260801 (Bedrock also accepts computer_20251124) | computer use item in the guide |
For thinking, omit the field or send {"type": "adaptive"}; they are equivalent, and adaptive thinking is always on. Depth is set only by effort (low, medium, high, xhigh, max), and the default is medium. The guide's example request has no thinking field and only "output_config": {"effort": "medium"}.
[3] Fix the code that reads responses. These changes raise no error but change what you get.
- A response can start with
thinkingblocks. Reading by position, such ascontent[0].text, breaks; pick the blocks whosetypeis"text". thinking.displaydefaults to"omitted", so thethinkingfield arrives empty. If you showed thinking text to users, set"summarized".- In tool-use loops, pass
thinkingblocks back exactly as received. Filtering or reordering them returns a 400 (thinking blocks cannot be modified). - Keep the conversation history append-only. Editing
system,toolsor earlier messages mid-conversation can makethinkingblocks fail the prefix check. The docs say this might or might not return a 400. Rebuilding the history also loses prompt cache hits. To change instructions, the guide says to use a mid-conversation system message. See the prefix check docs for the platforms where this applies. max_tokensis the cap on thinking plus response text. A workload that ran without thinking can hit it sooner, so checkstop_reason(stop_reason max_tokens). Atxhighormaxeffort the guide says to start at 64k.
[4] Clean up beta and SDK settings. These are the guide's items for code on Opus 4.5 or earlier. Use client.messages.create() instead of client.beta.messages.create(), and remove the beta headers effort-2025-11-24, fine-grained-tool-streaming-2025-05-14 and interleaved-thinking-2025-05-14. If you use structured outputs, move output_format to output_config.format; sending output_format without the beta header structured-outputs-2025-11-13 returns a 400. Code that parses tool call arguments as raw strings should switch to a standard JSON parser. If you use Claude Managed Agents, the guide says you usually change only the agent's model field.
[5] Re-measure cost and behavior. Per million input/output tokens the price table lists Opus 4.5 at $5 / $25 and Opus 5.5 at $4 / $20 (read 2026-12-01). The docs also say the tokenizer used since Opus 4.7 can use up to 1.35x as many tokens for the same text, and thinking tokens bill as output. A unit price of 0.8x with 1.35x the tokens makes the same request more expensive (0.8 × 1.35 = 1.08), so do not judge by the unit price alone. If you send images, a full-resolution image can use up to about 3x as many tokens. Downsample images before sending them if you do not need the detail. If your organization has a Priority Tier commitment, the guide says Opus 5.5 does not support it, so plan capacity separately.
Compare output format, length, latency and cost on a few dozen real inputs at different effort levels, then switch the model name in one place (an environment variable, for example) and deploy. After the retirement date there is no going back to Opus 4.5, so what you can roll back is your own code change. In the docs table claude-opus-4-6 is Active but "Not sooner than February 5, 2027", two weeks after the Opus 4.5 date.
After January 22
The docs say requests to a retired model fail, and that on the Claude API the Messages API returns a [404 not_found_error](/posts/claude-api-404-not-found-error/). The docs do not give the message text. Log the status code, error.type and the model value you sent, which tells a path mistake from a retired model at a glance.