Anthropic's API version 2026-10-21 rejects temperature settings, and its new SDKs send it by default
Anthropic released Claude API version 2026-10-21 on 21 October 2026, with new major versions of eight client libraries and its command-line tool. Anthropic says the SDKs now send the new version by default: Python 2.0.0, TypeScript 1.0.0, Go 2.0.0 and five others. Its migration guide lists three Messages API changes that return a 400 error, an outright rejection, instead of a warning.
Why it matters: Sending temperature, top_p or top_k now fails even at the default value. Without them a request samples at a temperature of 1.0. Anthropic says models that only accept defaults, such as Claude 4.7 and later, behave as before. On models that accept other values, such as Claude Sonnet 4.6, a request that lowered temperature for steadier output loses that effect, and nothing replaces it. A support agent tuned for consistent answers could start varying its wording without any error you would see.
The other two failures are narrower: a document block placed directly in an assistant message, and a user text block with a non-empty citations array. The SDKs also send your API key as an Authorization: Bearer header instead of X-Api-Key. Anthropic says the API accepts either, but a proxy, gateway or log filter that reads X-Api-Key will stop seeing the key.
The catch: These are Anthropic's own pages, so they describe the intended path. The guide says you can stay on the old version, 2023-06-01, but gives no date for ending it, and I found none. On Amazon Bedrock, the guide says the new version covers only Claude 4.7 and later, so a mixed fleet needs two settings.
What to do: Before any SDK bump reaches production, search your code and gateway configuration for temperature, top_p, top_k and X-Api-Key. Replay 50 recent requests from each application against a staging key on the new version, and compare the outputs for the ones that lowered temperature. Pin the old version for those until the comparison passes.
Our coverage →Anthropic: Migrating to API version 2026-10-21 ↗Anthropic: Claude Platform release notes ↗