New release

Claude API version 2026-10-21 removes temperature settings

Anthropic's first new API version since 2023 removes temperature, top_p and top_k. Claude Code 2.1.307 adds /claude-api api-version to move code.

Date
Works with
Claude Code

What’s new

Anthropic published Claude API version 2026-10-21. It is the first new version since 2023-06-01. The versions page says: "The `temperature`, `top_p`, and `top_k` request parameters are removed. A request that sends any of them returns a 400 error on every model."

Two rare Messages API patterns now also return a 400 error: a document block placed directly in an assistant message, and a text block with citations in a user message. Some Admin API fields have new names.

New major SDK versions use the new version, for example the Python package anthropic 2.0.0 and the TypeScript package @anthropic-ai/sdk 1.0.0. Claude Code 2.1.307 adds /claude-api api-version, which moves Claude API code in your project to the new version.

Why it matters

If an app you built calls the Claude API, updating its Anthropic SDK package to the new major version also switches it to 2026-10-21, and requests that set temperature then fail. Requests that keep sending 2023-06-01 work as before. You can ask Claude Code to do the upgrade and fix what breaks.

How to try it

Update Claude Code to 2.1.307 or later. Open your app's folder, start Claude Code and type /claude-api api-version. Read the migration guide linked from the versions page before you deploy.

Source

Checked against the source on 22 Oct 2026

All updates