Blog
Anthropic releases Claude API version 2026-10-21, its first new API version since 2023
Anthropic's new Claude API version removes the temperature, top_p and top_k settings and tightens some message rules, while new SDKs switch to bearer-token authentication and the Apache 2.0 licence. The older 2023-06-01 version has not been deprecated.
Anthropic has released a new version of the Claude API, the service developers use to build Claude into their own apps. Version 2026-10-21, released on 21 October 2026, is the first formal API version since 2023. It removes some long-standing settings and changes how the official software kits handle API keys. Code that does not switch to the new version keeps working as before.
How versioning works
Every request to the Claude API carries an anthropic-version header that says which set of rules it follows. Until now, almost everyone used 2023-06-01. According to TokenPost and AlphaSignal, that version has not been deprecated, and Anthropic plans to release API versions more often, so developers can deal with breaking changes before a new model requires them.
Nothing changes for an app until it either sends the new version header or upgrades to one of the new SDK releases, which send it by default: 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 the ant command-line tool 2.0.0.
The biggest change: sampling settings are gone
Under the new version, the temperature, top_p and top_k parameters are removed from the Messages API. Developers often used these to make answers more predictable or more varied. A request that includes any of them now returns an error, even if it uses the default value.
Anthropic's migration guide says requests will sample with the defaults, including a temperature of 1.0. Claude 4.7 and later models already accept only the defaults, so they behave as before. But on older models such as Claude Sonnet 4.6, a request that lowered temperature for more consistent output loses that effect, and Anthropic says "no other setting replaces it". Its advice is to stop sending the parameter or keep that request on 2023-06-01.
Other breaking changes
The guide lists several more:
- Putting a document block directly in an assistant message now returns an error. Documents belong in user messages.
- Sending citations on text in a user message now returns an error. Citations in Claude's own earlier replies are still accepted.
- Several field names in the Admin API and Claude Enterprise Analytics API change. For example,
rolesbecomesrole_ids, and API keys now report ascopeobject instead ofworkspace_id.
On Amazon Bedrock, the new version is available only for Claude 4.7 and later models. Teams using older models there should stay on their current SDK and version.
Changes in the SDKs
The new SDK releases also change things that do not depend on the API version:
- They send the API key in an
Authorization: Bearerheader instead ofX-Api-Key. The API accepts both, but proxies or gateways that look forX-Api-Keyneed updating. - A client can hold only one credential. Passing both an API key and an auth token now raises an error.
- The legacy Text Completions API is removed from the TypeScript, Go, Java and Ruby SDKs and the CLI.
- The SDKs and CLI move from the MIT licence to the Apache 2.0 licence. Earlier versions stay under MIT.
- The CLI no longer accepts keys as command-line flags, since those can show up in shell history.
Anthropic also added fields that let companies reselling Claude check whether Anthropic has restricted or banned one of their end customers.
Why it matters
For developers, this is a planned clean-up, not an emergency. Apps pinned to the old version keep running, but anyone upgrading SDKs gets the new rules automatically. Teams in Nigeria and elsewhere building on Claude should check their code for temperature settings, proxy rules that read X-Api-Key, and Admin API field names before upgrading, and test against 2026-10-21 first, as Anthropic recommends.