AnthropicReleases

· Power user · Claude API

Illustration: a blank wire-bound desk calendar seen straight on, with one day's square shaded dark, on black.
Illustration

Claude API version 2026-10-21 drops temperature; new SDKs switch by default

Upgrading to Python SDK 2.0.0, TypeScript 1.0.0 or any new Claude SDK moves you to an API version that rejects temperature, top_p and top_k.

If you build on the Claude API, don't bump your SDK blindly this week. Anthropic released API version 2026-10-21 on Wednesday, along with new major versions of every official SDK and the ant CLI that send it by default, per the release notes. Under the new version, a request that sends temperature, top_p or top_k gets a 400 error, "even at the parameter's default value," per the migration guide. Read it first, then upgrade.

What changed#

The versions page lists 2026-10-21 as the first new version since 2023-06-01. The new SDKs are 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. The Python and TypeScript changelogs list the new API version under breaking changes.

2023-06-01 (old SDKs)2026-10-21 (new SDKs)
temperature, top_p, top_k (Messages and Message Batches)Accepted400 error on every model
citations on text blocks in user messagesAccepted400 error
document block directly in an assistant messageAccepted400 error
Admin API key workspaceworkspace_idscope.workspace_id
How most SDK clients send your keyX-Api-Key headerAuthorization: Bearer
SDK and CLI licenseMITApache 2.0

Several Admin API and Enterprise Analytics fields also lose their old names, for example actor.email becomes actor.email_address. The new SDKs drop Text Completions from TypeScript, Go, Java, Ruby and the CLI, and split MessageParam into one type per role.

Why it matters#

On Claude 4.7 and later models, losing the sampling knobs changes nothing, because those models "already accept only the defaults." On older models such as Claude Sonnet 4.6, the guide says a request that lowered temperature for more consistent output "loses that effect. No other setting replaces it." The guide's options are to stop sending the parameter or keep that request on 2023-06-01. The versions page says previous versions "are considered deprecated and may be unavailable for new users," so our read is to plan the move rather than pin forever.

How to upgrade#

These are the guide's three steps.

  1. Switch to 2026-10-21. Upgrade to the SDK version listed above for your language. Without an SDK, send the header anthropic-version: 2026-10-21. TypeScript: move @anthropic-ai/bedrock-sdk, vertex-sdk, foundry-sdk, aws-sdk and google-cloud-sdk to v1 in the same upgrade, or your package manager installs a second, older copy of the SDK. Go: change every import to github.com/anthropics/anthropic-sdk-go/v2; for the CLI, go install needs the /v2 path, because "The old path keeps installing the latest v1 release, with no error or warning."
  2. Update your code for the breaking changes, then release the upgrade together with those fixes. To find them, this prompt for any coding agent (ours, untested) does a read-only pass:
Audit this repository for the Claude API 2026-10-21 upgrade. List every place that sends temperature, top_p or top_k; sends citations on text blocks in user messages; puts document blocks directly in assistant messages; calls the Text Completions API; or relies on the X-Api-Key header. Give file and line for each and the change the migration guide asks for. Don't edit anything.
  1. Test against 2026-10-21 before you release, as the guide asks.

Good to know#

  • Gateways that read X-Api-Key break. The new SDKs send the key as Authorization: Bearer, except the Foundry clients, which still send X-Api-Key. Change a proxy that reads X-Api-Key to read Authorization. The API itself "accepts a key in either header," so direct callers need no change.
  • Bedrock is limited. "On Amazon Bedrock, 2026-10-21 is available only for Claude 4.7 and later models." For older Bedrock models, the guide says to stay on the SDK version you use today.
  • The CLI drops key flags. ant no longer accepts --api-key or --auth-token; use ANTHROPIC_API_KEY, --api-key-stdin or ant auth login for keys.
  • One credential per client. In Python 2.0.0, passing two credentials to a client raises ValueError.
  • License trackers need an update. "Earlier versions remain under the MIT License." The npm and PyPI listings for the new versions show Apache-2.0.

What to watch: whether Anthropic sets a retirement date for 2023-06-01, and how fast frameworks that wrap the SDKs ship their own upgrades.

Steps

  1. Switch to 2026-10-21: upgrade to the first SDK major that uses it (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, ant CLI 2.0.0), or set the anthropic-version header yourself.
  2. On Amazon Bedrock, keep calls to models older than Claude 4.7 on the SDK version you use today.
  3. Update your code for each breaking change that affects you, plus the SDK and CLI changes, and release them together with the upgrade.
  4. Test your integration against 2026-10-21 before you release.

Sources

  1. platform.claude.com
  2. platform.claude.com
  3. platform.claude.com
  4. github.com
  5. github.com

Something wrong? Tell the bot