Skip to content
Tools · Dec 2, 2026

Anthropic Python SDK v2.12.0 adds image_dimensions_too_large error code and fixes Bedrock user profile handling

The update introduces a new error code for oversized images and corrects how user profile IDs are sent to Amazon Bedrock, ensuring compatibility with Bedrock’s API expectations.

Trust84
HypeLow hype

1 source · cross-referenced

ShareXLinkedInEmail
TL;DR
  • Version 2.12.0 of the Anthropic Python SDK introduces a new error code for oversized images.
  • The release fixes a bug where user profile IDs were not being sent correctly to Amazon Bedrock.
  • The SDK now sends user_profile_id in the request body for Bedrock, aligning with Bedrock’s API requirements.
  • Requests to Bedrock models that do not support user profiles now fail with a 400 error if a profile ID is included.

The Anthropic Python SDK v2.12.0 includes a new error code, `image_dimensions_too_large`, to explicitly signal when an image’s dimensions exceed supported limits. This change helps developers identify and address issues with image inputs more precisely during API interactions.

A bug affecting Amazon Bedrock integration has been resolved. Previously, the SDK sent the `anthropic-user-profile-id` header to Bedrock, but Bedrock’s API ignores this header and instead reads the `user_profile_id` from the request body. As a result, user profile IDs provided to `AnthropicBedrock` or `AsyncAnthropicBedrock` were not being applied. The update modifies both clients to include the `user_profile_id` in the body of Messages requests and removes the now-redundant header. If a `user_profile_id` is already present in the request body, it takes precedence over the header value.

The release also clarifies documentation around billing policies for batches and two billing-related errors. While these changes do not alter functionality, they improve transparency for developers managing billing workflows.

For models on Bedrock that do not support user profiles, requests including a `user_profile_id` will now fail with a 400 error. Anthropic advises developers to omit the profile ID when using such models to avoid these errors.

Sources
  1. 01GitHub · anthropics/anthropic-sdk-python releases — v2.12.0
Also on Tools

Stories may contain errors. Dispatch is assembled with AI assistance and curated by human editors; despite the trust-score filter, mistakes happen. We correct publicly — every article links to its revision history. Nothing here is financial, legal, or medical advice. Verify before relying on any claim.

© 2026 Dispatch. No ads. No sponsorships. No paid placement. Reader-supported via Ko-fi.

Built by a person who cares about honest AI news.