Anthropic Breaking change major

Python SDK v1.0 removes deprecated parameters and moves to httpx2

Version 1.0 of the Anthropic Python SDK drops Python 3.9, swaps httpx for httpx2, and removes the Text Completions API, the sampling parameters, and the tool runner's compaction_control.

What does this mean for me?

Action needed
  • Engineering leadership

    Cost, risk, timeline, team impact Plan for it

    Budget a small migration for any Python service on the Anthropic SDK: Python 3.10+ is now required, httpx is replaced by httpx2, and Text Completions plus temperature/top_p/top_k are gone. Pin the 0.x line until teams have scheduled the work, and check that tracing and mocking tooling still works after the swap.

  • Engineer

    What to change, what breaks, what to test Action needed

    Before upgrading to Python SDK v1.0: move off Python 3.9, rebuild custom `http_client`, `Timeout` and transport objects from `httpx2`, and call `httpx2.alias_httpx()` at startup if anything patches `httpx` (tracing, VCR-style mocks). Remove `temperature`, `top_p`, `top_k`, Text Completions calls and the tool runner's `compaction_control`.

  • General consumer

    Using the Claude apps, not the API No impact

    Nothing to do — this is a developer library change and does not affect the Claude apps.

Anthropic released v1.0 of the Python SDK on August 20, 2026. The HTTP layer moves from httpx to httpx2, an API-compatible fork: custom http_client, Timeout, and transport objects must now be built from httpx2 (the DefaultHttpxClient helpers are unchanged), and code that relies on tracing or mocking libraries which patch httpx needs a httpx2.alias_httpx() call at startup. v1.0 also requires Python 3.10 or later.

The release removes long-deprecated surface: the legacy Text Completions API, the temperature, top_p, and top_k parameters on Messages methods, and the tool runner’s client-side compaction_control. The subtlety worth catching is the failure mode. On current models these sampling parameters already returned a 400 from the API while still type-checking in the SDK; in the Python SDK v1.0 they are no longer defined at all, so passing them raises a TypeError before a request is made. The deprecations page and the migration guide were both updated to say that most SDKs keep the parameters for compatibility and that the Python SDK is the exception.

Structured outputs shift the same way: v1.0 does not accept output_format={...} on client.beta.messages.create() or count_tokens(), though the output_format=Model argument of the parse() and stream() helpers is unchanged. The API itself still accepts the deprecated output_format parameter, so this is an SDK-level removal ahead of the server-side one.

Two further behaviour changes affect running code rather than call signatures. On the async client, .with_raw_response results now require await response.parse(). And AnthropicBedrock raises an error when no AWS region is configured instead of silently defaulting to us-east-1 — an explicit failure in place of a wrong-region request.

Upgrades are opt-in: pinning anthropic<1 keeps existing code working. The v1 migration guide in the SDK repository lists every change with before-and-after snippets.

API surface

ParameterChangeBreakingModels
temperatureremovedyes
top_premovedyes
top_kremovedyes
compaction_controlremovedyes
output_formatremovedyes
http_clientchangedyes

Terms on this page: Deprecation, Legacy model

Sources

Confidence
high
Verification
Verified: stated on the vendor's own pages
Date precision
exact
How this entry was made
Drafted by an agent, reviewed by a person