Founders BetaFounder price: US$ 9.90/month locked for as long as you subscribe.→
HomeBlogNewsletterClaude API 2026-10-21: temperature and top_p removed, SDK migration guide
Cover of Claude Platform Docs with the title Migrating to API version 2026-10-21.
Image: Anthropic
Newsletter3 minOfficially confirmed

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

Marcelo Santiago

Criador do bridgecode

CONFIRMED • OFFICIAL

The biggest AI newsletter in the World

Get AI articles in your inbox

Technical curation on models, agents and coding tools. No spam, unsubscribe anytime.

Daily at 8:00 and 16:00 Brasília time. No spam.

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

Share this article

Add bridgecode as a source on Google
Tags:#Anthropic#Claude API#SDK#CLI ant#migração de API
Marcelo Santiago
Marcelo Santiago·Creator of bridgecode

Developer and creator of bridgecode, an agentic development environment for orchestrating squads of AI agents. Helps people going from vibe coding to professional development move from idea to shipped product.

The biggest AI newsletter in the World

Enjoyed this content? Stay ahead in AI engineering.

Code analysis, multi-agent architecture, token benchmarks and tools selected by developers for developers.

Daily at 8:00 and 16:00 Brasília time. No spam.