CONFIRMED • OFFICIAL

Claude API 2026-10-21: temperature and top_p removed, SDK migration guide
Claude API 2026-10-21 rejects temperature, top_p and top_k with a 400 error. Which SDKs send the new version by default and how to migrate safely.
Marcelo Santiago
Criador do bridgecode
Get AI articles in your inbox
Technical curation on models, agents and coding tools. No spam, unsubscribe anytime.
On October 21, 2026, Anthropic released the 2026-10-21 version of the Claude API and new major versions of the SDKs and CLI ant. The source does not provide the release time.
What it is and what it is not: an API update with breaking changes for some integrations, not the launch of a new model.
In this article you will see:
- which parameters are no longer accepted
- which SDKs send the new version by default
- how to check compatibility before the upgrade
Claude API 2026-10-21 requires reviewing requests
The new version removes temperature, top_p and top_k from Messages and Message Batches requests. Sending any of them returns a 400 error, even when the value was the default.
document blocks directly in assistant messages and citations in texts sent by the user also return a 400 error. Anthropic recommends checking the affected cases and testing the integration before publishing. (official migration guide)
Credit: Anthropic.
Seven SDKs and the ant CLI start using the new version
The first batch includes Python 2.0.0, TypeScript 1.0.0, C# 13.0.0, Go 2.0.0, Java 3.0.0, PHP 1.0.0, Ruby 2.0.0 and ant CLI 2.0.0. They send version 2026-10-21 by default. (Anthropic release notes)
Anthropic also changed the license of these SDK and CLI versions from MIT to Apache 2.0. It is a license change, with no additional code required, but teams that track dependency licenses should update their inventories.
Migration depends on the runtime environment
On Amazon Bedrock, version 2026-10-21 is only available for Claude 4.7 and later models. Integrations with older models should keep the current SDK version or the API header they already use.
For another recent platform control change, read about Anthropic's inference hooks for Claude Enterprise. For context on models used by code agents, see Reflection's open model Beam.
Frequently asked questions about the 2026-10-21 version of the Claude API
What changed in Claude API 2026-10-21?
The version removes three sampling parameters and introduces breaking changes to message formats, SDKs and some API responses.
Which parameters does the new Claude API version remove?
It removes `temperature`, `top_p` and `top_k` from Messages and Message Batches requests. Sending them triggers a 400 error.
Which Anthropic SDKs use the new version by default?
The new major releases are Python, TypeScript, C#, Go, Java, PHP and Ruby, plus the `ant` CLI.
Does Claude API 2026-10-21 work on Amazon Bedrock?
Yes, but Anthropic's guide notes it is available on Bedrock only for Claude 4.7 and later models.
Compatibility tests prevent the update from breaking the API
The key point is to review the parameters and formats used by each integration, update SDKs when it makes sense, and validate everything in tests before publishing.
Stop switching between ten AI tools. Coordinate your agents in a single flow on bridgecode.
Source: Anthropic
Related articles

Karpathy builds a video platform over a weekend with Claude
Andrej Karpathy built HackerTube in a weekend with Claude. What it says about development speed with coding agents.

Rich Sutton reinforces that compute alone does not create intelligence
Turing Award winner Rich Sutton reinforces that raw compute is not enough for intelligence and calls for new methods, continuous learning and world models.

AI auditors detect misbehavior but generate false alarms
AI models catch a good portion of other agents' misbehavior, but they generate a lot of false alarms. See the numbers from Andy Hall's study.
