diff --git a/docs/aws/claude_haiku_4-5.md b/docs/aws/claude_haiku_4-5.md new file mode 100644 index 0000000..e51d824 --- /dev/null +++ b/docs/aws/claude_haiku_4-5.md @@ -0,0 +1,286 @@ + + +# Claude Haiku 4.5 + + +## ![Orange rounded square icon with white radial loading spinner design.](http://docs.aws.amazon.com/bedrock/latest/userguide/images/models/claude.png) Anthropic — Claude Haiku 4.5 + + +## Model Details + + +Claude Haiku 4.5 is Anthropic's lightweight model optimized for speed and efficiency with strong coding and agent performance. For more information about model development and performance, see the [model/service card](https://www-cdn.anthropic.com/7aad69bf12627d42234e01ee7c36305dc2f6a970.pdf). ++ **Model launch date:** Oct 16, 2025 ++ **Model EOL date:** No sooner than 10/1/2026 ++ **End User License Agreements and Terms of Use:** [View](https://aws.amazon.com/legal/bedrock/third-party-models/) ++ **Model lifecycle:** Active ++ **Context window:** 200K tokens ++ **Max output tokens:** 64K ++ **Reasoning:** Supported ++ **Knowledge cutoff:** Feb 2025 ++ **Marketplace product ID:** `prod-xdkflymybwmvi` + + +| **Input Modalities** | **Output Modalities** | **[APIs supported](https://docs.aws.amazon.com/bedrock/latest/userguide/apis.html)** | **[Endpoints supported](https://docs.aws.amazon.com/bedrock/latest/userguide/endpoints.html)** | +| --- | --- | --- | --- | +| ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) Audio | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) Embedding | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) Responses | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) bedrock-runtime | +| ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) Image | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) Image | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) Chat Completions | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) bedrock-mantle | +| ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) Speech | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) Speech | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) Invoke | | +| ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) Text | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) Text | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) Converse | | +| ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) Video | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) Video | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) Messages | | + +## Capabilities and Features + + +***Bedrock Features*** + +**Features supported using `bedrock-mantle` endpoint** + + +| **Supported** | **Not Supported** | +| --- | --- | +| [See the AWS documentation website for more details](http://docs.aws.amazon.com/bedrock/latest/userguide/model-card-anthropic-claude-haiku-4-5.html) | [See the AWS documentation website for more details](http://docs.aws.amazon.com/bedrock/latest/userguide/model-card-anthropic-claude-haiku-4-5.html) | + +**Features supported using `bedrock-runtime` endpoint** + + +| **Supported** | **Not Supported** | +| --- | --- | +| [See the AWS documentation website for more details](http://docs.aws.amazon.com/bedrock/latest/userguide/model-card-anthropic-claude-haiku-4-5.html) | [See the AWS documentation website for more details](http://docs.aws.amazon.com/bedrock/latest/userguide/model-card-anthropic-claude-haiku-4-5.html) | + +**Prompt caching** + +For more information, see [Prompt caching for faster model inference](https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-caching.html). + + +| **Prompt caching supported** | **Min tokens per cache checkpoint** | **Max cache checkpoints per request** | **Supported TTL** | **Fields that accept prompt cache checkpoints** | +| --- | --- | --- | --- | --- | +| Yes | 4,096 | 4 | 5 minutes, 1 hour | system, messages, and tools | + +## Pricing + + +For pricing, please refer to the [Amazon Bedrock Pricing](https://aws.amazon.com/bedrock/pricing/) page. + +## Programmatic Access + + +Use the following model IDs and endpoint URLs to access this model programmatically. For more information about the available APIs and endpoints, see [APIs supported](https://docs.aws.amazon.com/bedrock/latest/userguide/apis.html) and [Endpoints supported](https://docs.aws.amazon.com/bedrock/latest/userguide/endpoints.html). + + +| **Endpoint** | **Model ID** | **In-Region endpoint URL** | **Geo inference ID** | **Global inference ID** | +| --- | --- | --- | --- | --- | +| bedrock-runtime | anthropic.claude-haiku-4-5-20251001-v1:0 | https://bedrock-runtime.\{region\}.amazonaws.com | `us.anthropic.claude-haiku-4-5-20251001-v1:0``eu.anthropic.claude-haiku-4-5-20251001-v1:0``au.anthropic.claude-haiku-4-5-20251001-v1:0` | global.anthropic.claude-haiku-4-5-20251001-v1:0 | +| bedrock-mantle | anthropic.claude-haiku-4-5 | https://bedrock-mantle.\{region\}.api.aws/anthropic/v1/messages | N/A | N/A | + +*For example, if region is us-east-1 (N. Virginia), then the bedrock-runtime endpoint URL will be "https://bedrock-runtime.us-east-1.amazonaws.com" and for bedrock-mantle will be "https://bedrock-mantle.us-east-1.api.aws/anthropic/v1/messages".* + +## Service Tiers + + +Amazon Bedrock offers multiple service tiers to match your workload requirements. **Standard** provides pay-per-token access with no commitment. **Priority** offers higher throughput with a time-based commitment. **Flex** provides lower-cost access for flexible, non-time-sensitive workloads. **Reserved** provides dedicated throughput with a term commitment for predictable workloads. For more information, see [service tiers](https://docs.aws.amazon.com/bedrock/latest/userguide/service-tiers-inference.html). + + +| **Standard** | **Priority** | **Flex** | **Reserved** | +| --- | --- | --- | --- | +| ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | + +## Regional Availability + + +***Regional availability at a glance*** + +Bedrock offers three inference options: **In-Region** keeps requests within a single Region for strict compliance, **Geo Cross-Region** routes across Regions within a geography (US, EU, etc.) for higher throughput while respecting data residency, and **Global Cross-Region** routes anywhere worldwide for maximum throughput when there are no residency constraints. Refer to the [Regional availability](models-region-compatibility.md) page for more details. + + +| **Region** | **In-Region** | **Geo** | **Global** | +| --- | --- | --- | --- | +| us-east-1 (N. Virginia) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| us-east-2 (Ohio) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| us-west-1 (N. California) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| us-west-2 (Oregon) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ca-central-1 (Canada) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ca-west-1 (Calgary) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| eu-central-1 (Frankfurt) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| eu-central-2 (Zurich) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| eu-north-1 (Stockholm) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| eu-south-1 (Milan) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| eu-south-2 (Spain) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| eu-west-1 (Ireland) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| eu-west-2 (London) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| eu-west-3 (Paris) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ap-east-2 (Taipei) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ap-northeast-1 (Tokyo) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ap-northeast-2 (Seoul) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ap-northeast-3 (Osaka) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ap-south-1 (Mumbai) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ap-south-2 (Hyderabad) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ap-southeast-1 (Singapore) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ap-southeast-2 (Sydney) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ap-southeast-3 (Jakarta) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ap-southeast-4 (Melbourne) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ap-southeast-5 (Malaysia) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ap-southeast-6 (New Zealand) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ap-southeast-7 (Thailand) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| il-central-1 (Tel Aviv) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| me-central-1 (UAE) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| me-south-1 (Bahrain) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| af-south-1 (Cape Town) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| sa-east-1 (São Paulo) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| mx-central-1 (Mexico) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | + +***Geo inference details*** + +**Geo: US** + +Geo Inference ID: `us.anthropic.claude-haiku-4-5-20251001-v1:0` + + +| **Source Region** | **Destination Regions** | +| --- | --- | +| us-east-1 (N. Virginia) | us-east-1 (N. Virginia), us-east-2 (Ohio), us-west-2 (Oregon) | +| us-east-2 (Ohio) | us-east-1 (N. Virginia), us-east-2 (Ohio), us-west-2 (Oregon) | +| us-west-1 (N. California) | us-east-1 (N. Virginia), us-east-2 (Ohio), us-west-1 (N. California), us-west-2 (Oregon) | +| us-west-2 (Oregon) | us-east-1 (N. Virginia), us-east-2 (Ohio), us-west-2 (Oregon) | +| ca-central-1 (Canada) | ca-central-1 (Canada), us-east-1 (N. Virginia), us-east-2 (Ohio), us-west-2 (Oregon) | + +**Geo: EU** + +Geo Inference ID: `eu.anthropic.claude-haiku-4-5-20251001-v1:0` + + +| **Source Region** | **Destination Regions** | +| --- | --- | +| eu-central-1 (Frankfurt) | eu-central-1 (Frankfurt), eu-north-1 (Stockholm), eu-south-1 (Milan), eu-south-2 (Spain), eu-west-1 (Ireland), eu-west-3 (Paris) | +| eu-central-2 (Zurich) | eu-central-1 (Frankfurt), eu-central-2 (Zurich), eu-north-1 (Stockholm), eu-south-1 (Milan), eu-south-2 (Spain), eu-west-1 (Ireland), eu-west-3 (Paris) | +| eu-north-1 (Stockholm) | eu-central-1 (Frankfurt), eu-north-1 (Stockholm), eu-south-1 (Milan), eu-south-2 (Spain), eu-west-1 (Ireland), eu-west-3 (Paris) | +| eu-south-1 (Milan) | eu-central-1 (Frankfurt), eu-north-1 (Stockholm), eu-south-1 (Milan), eu-south-2 (Spain), eu-west-1 (Ireland), eu-west-3 (Paris) | +| eu-south-2 (Spain) | eu-central-1 (Frankfurt), eu-north-1 (Stockholm), eu-south-1 (Milan), eu-south-2 (Spain), eu-west-1 (Ireland), eu-west-3 (Paris) | +| eu-west-1 (Ireland) | eu-central-1 (Frankfurt), eu-north-1 (Stockholm), eu-south-1 (Milan), eu-south-2 (Spain), eu-west-1 (Ireland), eu-west-3 (Paris) | +| eu-west-2 (London) | eu-central-1 (Frankfurt), eu-north-1 (Stockholm), eu-south-1 (Milan), eu-south-2 (Spain), eu-west-1 (Ireland), eu-west-2 (London), eu-west-3 (Paris) | +| eu-west-3 (Paris) | eu-central-1 (Frankfurt), eu-north-1 (Stockholm), eu-south-1 (Milan), eu-south-2 (Spain), eu-west-1 (Ireland), eu-west-3 (Paris) | + +**Geo: AU** + +Geo Inference ID: `au.anthropic.claude-haiku-4-5-20251001-v1:0` + + +| **Source Region** | **Destination Regions** | +| --- | --- | +| ap-southeast-2 (Sydney) | ap-southeast-2 (Sydney), ap-southeast-4 (Melbourne) | +| ap-southeast-4 (Melbourne) | ap-southeast-2 (Sydney), ap-southeast-4 (Melbourne) | +| ap-southeast-6 (New Zealand) | ap-southeast-2 (Sydney), ap-southeast-4 (Melbourne), ap-southeast-6 (New Zealand) | + +***Global inference details*** + + +| **Global Inference ID** | **Americas** | **EMEA** | **Asia Pacific** | +| --- | --- | --- | --- | +| global.anthropic.claude-haiku-4-5-20251001-v1:0 | [See the AWS documentation website for more details](http://docs.aws.amazon.com/bedrock/latest/userguide/model-card-anthropic-claude-haiku-4-5.html) | [See the AWS documentation website for more details](http://docs.aws.amazon.com/bedrock/latest/userguide/model-card-anthropic-claude-haiku-4-5.html) | [See the AWS documentation website for more details](http://docs.aws.amazon.com/bedrock/latest/userguide/model-card-anthropic-claude-haiku-4-5.html) | + +## Quotas and Limits + + +Your AWS account has default quotas to maintain the performance of the service and to ensure appropriate usage of Amazon Bedrock. The default quotas assigned to an account might be updated depending on regional factors, payment history, fraudulent usage, and/or approval of a quota [increase request](https://docs.aws.amazon.com/bedrock/latest/userguide/quotas-increase.html). For more details, please refer to [Quotas for Amazon Bedrock](quotas.md) documentation and see the [limits](https://docs.aws.amazon.com/general/latest/gr/bedrock.html#limits_bedrock) for the model. + +## Sample Code + + +**Step 1 - AWS Account:** If you have an AWS account already, skip this step. If you are new to AWS, sign up for an [AWS account](https://portal.aws.amazon.com/billing/signup). + +**Step 2 - API key:** Go to the [Amazon Bedrock console](https://console.aws.amazon.com/bedrock/home#/api-keys/long-term/create) and generate a long-term API key. + +**Step 3 - Get the SDK:** To use this getting started guide, you must have Python already installed. Then install the relevant software depending on the APIs you are using. + +------ +#### [ Messages API ] + +``` +pip install -U "anthropic[bedrock]" +``` + +------ +#### [ Invoke/Converse API ] + +``` +pip install boto3 +``` + +------ + +**Step 4 - Set environment variables:** Configure your environment to use the API key for authentication. + +------ +#### [ Messages API ] + +``` +AWS_BEARER_TOKEN_BEDROCK="" +``` + +------ +#### [ Invoke/Converse API ] + +``` +AWS_BEARER_TOKEN_BEDROCK="" +``` + +------ + +**Step 5 - Run your first inference request:** Save the file as `bedrock-first-request.py` + +------ +#### [ Messages API ] + +``` +from anthropic import AnthropicBedrockMantle + +client = AnthropicBedrockMantle(aws_region="us-east-1") + +message = client.messages.create( + model="anthropic.claude-haiku-4-5", + max_tokens=1024, + messages=[{"role": "user", "content": "Can you explain the features of Amazon Bedrock?"}], +) + +print(message.content[0].text) +``` + +------ +#### [ Invoke API ] + +``` +import json +import boto3 + +client = boto3.client('bedrock-runtime', region_name='us-east-1') +response = client.invoke_model( + modelId='anthropic.claude-haiku-4-5-20251001-v1:0', + body=json.dumps({ + 'anthropic_version': 'bedrock-2023-05-31', + 'messages': [{ 'role': 'user', 'content': 'Can you explain the features of Amazon Bedrock?'}], + 'max_tokens': 1024 + }) +) +print(json.loads(response['body'].read())) +``` + +------ +#### [ Converse API ] + +``` +import boto3 + +client = boto3.client('bedrock-runtime', region_name='us-east-1') +response = client.converse( + modelId='anthropic.claude-haiku-4-5-20251001-v1:0', + messages=[ + { + 'role': 'user', + 'content': [{'text': 'Can you explain the features of Amazon Bedrock?'}] + } + ] +) +print(response) +``` + +------ \ No newline at end of file diff --git a/docs/aws/claude_opus_4-7.md b/docs/aws/claude_opus_4-7.md new file mode 100644 index 0000000..9076618 --- /dev/null +++ b/docs/aws/claude_opus_4-7.md @@ -0,0 +1,306 @@ + + +# Claude Opus 4.7 + + +## ![](http://docs.aws.amazon.com/bedrock/latest/userguide/images/models/claude.png) Anthropic — Claude Opus 4.7 + + +## Model Details + + +Claude Opus 4.7 is Anthropic's most capable generally available model, advancing performance across coding, enterprise workflows, and long-running agentic tasks. ++ **Model launch date:** Apr 16, 2026 ++ **Model EOL date:** N/A ++ **End User License Agreements and Terms of Use:** [View](https://aws.amazon.com/legal/bedrock/third-party-models/) ++ **Model lifecycle:** Active ++ **Context window:** 1M tokens ++ **Max output tokens:** 128K ++ **Reasoning:** Supported (`thinking.type: "adaptive"` only) ++ **Knowledge cutoff:** January 2026 ++ **Marketplace product ID:** `prod-d2ik6zgct5hxi` + +**Important** +Claude Opus 4.7 only supports `thinking.type: "adaptive"` for extended thinking. Unlike Claude Opus 4.6, `thinking.type: "enabled"` with `budget_tokens` is not supported and will return a 400 error. If you are migrating from Opus 4.6, update your requests to use `thinking.type: "adaptive"`. For more information, see [Adaptive thinking](claude-messages-adaptive-thinking.md). + + +| **Input Modalities** | **Output Modalities** | **[APIs supported](https://docs.aws.amazon.com/bedrock/latest/userguide/apis.html)** | **[Endpoints supported](https://docs.aws.amazon.com/bedrock/latest/userguide/endpoints.html)** | +| --- | --- | --- | --- | +| ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) Audio | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) Embedding | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) Responses | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) bedrock-runtime | +| ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) Image | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) Image | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) Chat Completions | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) bedrock-mantle | +| ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) Speech | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) Speech | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) Invoke | | +| ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) Text | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) Text | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) Converse | | +| ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) Video | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) Video | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) Messages | | + +## Capabilities and Features + + +***Bedrock Features*** + +**Features supported using `bedrock-mantle` endpoint** + + +| **Supported** | **Not Supported** | +| --- | --- | +| [See the AWS documentation website for more details](http://docs.aws.amazon.com/bedrock/latest/userguide/model-card-anthropic-claude-opus-4-7.html) | [See the AWS documentation website for more details](http://docs.aws.amazon.com/bedrock/latest/userguide/model-card-anthropic-claude-opus-4-7.html) | + +**Features supported using `bedrock-runtime` endpoint** + + +| **Supported** | **Not Supported** | +| --- | --- | +| [See the AWS documentation website for more details](http://docs.aws.amazon.com/bedrock/latest/userguide/model-card-anthropic-claude-opus-4-7.html) | [See the AWS documentation website for more details](http://docs.aws.amazon.com/bedrock/latest/userguide/model-card-anthropic-claude-opus-4-7.html) | + +**Prompt caching** + +For more information, see [Prompt caching for faster model inference](https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-caching.html). + + +| **Prompt caching supported** | **Min tokens per cache checkpoint** | **Max cache checkpoints per request** | **Supported TTL** | **Fields that accept prompt cache checkpoints** | +| --- | --- | --- | --- | --- | +| Yes | 1,024 | 4 | 5 minutes | system, messages, and tools | + +## Pricing + + +For pricing, please refer to the [Amazon Bedrock Pricing](https://aws.amazon.com/bedrock/pricing/) page. + +## Programmatic Access + + +Use the following model IDs and endpoint URLs to access this model programmatically. For more information about the available APIs and endpoints, see [APIs supported](https://docs.aws.amazon.com/bedrock/latest/userguide/apis.html) and [Endpoints supported](https://docs.aws.amazon.com/bedrock/latest/userguide/endpoints.html). + + +| **Endpoint** | **Model ID** | **In-Region endpoint URL** | **Geo inference ID** | **Global inference ID** | +| --- | --- | --- | --- | --- | +| bedrock-runtime | anthropic.claude-opus-4-7 | N/A | `us.anthropic.claude-opus-4-7``eu.anthropic.claude-opus-4-7``jp.anthropic.claude-opus-4-7``au.anthropic.claude-opus-4-7` | global.anthropic.claude-opus-4-7 | +| bedrock-mantle | anthropic.claude-opus-4-7 | https://bedrock-mantle.\{region\}.api.aws/anthropic/v1/messages | N/A | N/A | + +*For example, if region is us-east-1 (N. Virginia), then the bedrock-runtime endpoint URL will be "https://bedrock-runtime.us-east-1.amazonaws.com" and for bedrock-mantle will be "https://bedrock-mantle.us-east-1.api.aws/anthropic/v1/messages".* + +## Service Tiers + + +Amazon Bedrock offers multiple service tiers to match your workload requirements. **Standard** provides pay-per-token access with no commitment. **Priority** offers higher throughput with a time-based commitment. **Flex** provides lower-cost access for flexible, non-time-sensitive workloads. **Reserved** provides dedicated throughput with a term commitment for predictable workloads. For more information, see [service tiers](https://docs.aws.amazon.com/bedrock/latest/userguide/service-tiers-inference.html). + + +| **Standard** | **Priority** | **Flex** | **Reserved** | +| --- | --- | --- | --- | +| ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | + +## Regional Availability + + +***Regional availability at a glance*** + +Bedrock offers three inference options: **In-Region** keeps requests within a single Region for strict compliance, **Geo Cross-Region** routes across Regions within a geography (US, EU, etc.) for higher throughput while respecting data residency, and **Global Cross-Region** routes anywhere worldwide for maximum throughput when there are no residency constraints. Refer to the [Regional availability](models-region-compatibility.md) page for more details. + + +| **Region** | **In-Region** | **Geo** | **Global** | +| --- | --- | --- | --- | +| us-east-1 (N. Virginia) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| us-east-2 (Ohio) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| us-west-1 (N. California) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| us-west-2 (Oregon) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ca-central-1 (Canada) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ca-west-1 (Calgary) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| eu-central-1 (Frankfurt) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| eu-central-2 (Zurich) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| eu-north-1 (Stockholm) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| eu-south-1 (Milan) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| eu-south-2 (Spain) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| eu-west-1 (Ireland) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| eu-west-2 (London) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| eu-west-3 (Paris) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ap-east-2 (Taipei) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ap-northeast-1 (Tokyo) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ap-northeast-2 (Seoul) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ap-northeast-3 (Osaka) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ap-south-1 (Mumbai) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ap-south-2 (Hyderabad) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ap-southeast-1 (Singapore) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ap-southeast-2 (Sydney) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ap-southeast-3 (Jakarta) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ap-southeast-4 (Melbourne) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ap-southeast-5 (Malaysia) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ap-southeast-6 (New Zealand) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ap-southeast-7 (Thailand) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| il-central-1 (Tel Aviv) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| me-central-1 (UAE) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| me-south-1 (Bahrain) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| af-south-1 (Cape Town) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| sa-east-1 (São Paulo) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| mx-central-1 (Mexico) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | + +***Geo inference details*** + +**Geo: US** + +Geo Inference ID: `us.anthropic.claude-opus-4-7` + + +| **Source Region** | **Destination Regions** | +| --- | --- | +| us-east-1 (N. Virginia) | us-east-1 (N. Virginia), us-east-2 (Ohio), us-west-2 (Oregon) | +| us-east-2 (Ohio) | us-east-1 (N. Virginia), us-east-2 (Ohio), us-west-2 (Oregon) | +| us-west-1 (N. California) | us-east-1 (N. Virginia), us-east-2 (Ohio), us-west-1 (N. California), us-west-2 (Oregon) | +| us-west-2 (Oregon) | us-east-1 (N. Virginia), us-east-2 (Ohio), us-west-2 (Oregon) | +| ca-central-1 (Canada) | ca-central-1 (Canada), us-east-1 (N. Virginia), us-east-2 (Ohio), us-west-2 (Oregon) | +| ca-west-1 (Calgary) | ca-west-1 (Calgary), us-east-1 (N. Virginia), us-east-2 (Ohio), us-west-2 (Oregon) | + +**Geo: EU** + +Geo Inference ID: `eu.anthropic.claude-opus-4-7` + + +| **Source Region** | **Destination Regions** | +| --- | --- | +| eu-central-1 (Frankfurt) | eu-central-1 (Frankfurt), eu-north-1 (Stockholm), eu-south-1 (Milan), eu-south-2 (Spain), eu-west-1 (Ireland), eu-west-3 (Paris) | +| eu-central-2 (Zurich) | eu-central-1 (Frankfurt), eu-central-2 (Zurich), eu-north-1 (Stockholm), eu-south-1 (Milan), eu-south-2 (Spain), eu-west-1 (Ireland), eu-west-3 (Paris) | +| eu-north-1 (Stockholm) | eu-central-1 (Frankfurt), eu-north-1 (Stockholm), eu-south-1 (Milan), eu-south-2 (Spain), eu-west-1 (Ireland), eu-west-3 (Paris) | +| eu-south-1 (Milan) | eu-central-1 (Frankfurt), eu-north-1 (Stockholm), eu-south-1 (Milan), eu-south-2 (Spain), eu-west-1 (Ireland), eu-west-3 (Paris) | +| eu-south-2 (Spain) | eu-central-1 (Frankfurt), eu-north-1 (Stockholm), eu-south-1 (Milan), eu-south-2 (Spain), eu-west-1 (Ireland), eu-west-3 (Paris) | +| eu-west-1 (Ireland) | eu-central-1 (Frankfurt), eu-north-1 (Stockholm), eu-south-1 (Milan), eu-south-2 (Spain), eu-west-1 (Ireland), eu-west-3 (Paris) | +| eu-west-2 (London) | eu-central-1 (Frankfurt), eu-north-1 (Stockholm), eu-south-1 (Milan), eu-south-2 (Spain), eu-west-1 (Ireland), eu-west-2 (London), eu-west-3 (Paris) | +| eu-west-3 (Paris) | eu-central-1 (Frankfurt), eu-north-1 (Stockholm), eu-south-1 (Milan), eu-south-2 (Spain), eu-west-1 (Ireland), eu-west-3 (Paris) | + +**Geo: JP** + +Geo Inference ID: `jp.anthropic.claude-opus-4-7` + + +| **Source Region** | **Destination Regions** | +| --- | --- | +| ap-northeast-1 (Tokyo) | ap-northeast-1 (Tokyo), ap-northeast-3 (Osaka) | +| ap-northeast-3 (Osaka) | ap-northeast-1 (Tokyo), ap-northeast-3 (Osaka) | + +**Geo: AU** + +Geo Inference ID: `au.anthropic.claude-opus-4-7` + + +| **Source Region** | **Destination Regions** | +| --- | --- | +| ap-southeast-2 (Sydney) | ap-southeast-2 (Sydney), ap-southeast-4 (Melbourne) | +| ap-southeast-4 (Melbourne) | ap-southeast-2 (Sydney), ap-southeast-4 (Melbourne) | + +***Global inference details*** + + +| **Global Inference ID** | **Americas** | **EMEA** | **Asia Pacific** | +| --- | --- | --- | --- | +| global.anthropic.claude-opus-4-7 | [See the AWS documentation website for more details](http://docs.aws.amazon.com/bedrock/latest/userguide/model-card-anthropic-claude-opus-4-7.html) | [See the AWS documentation website for more details](http://docs.aws.amazon.com/bedrock/latest/userguide/model-card-anthropic-claude-opus-4-7.html) | [See the AWS documentation website for more details](http://docs.aws.amazon.com/bedrock/latest/userguide/model-card-anthropic-claude-opus-4-7.html) | + +## Quotas and Limits + + +Your AWS account has default quotas to maintain the performance of the service and to ensure appropriate usage of Amazon Bedrock. The default quotas assigned to an account might be updated depending on regional factors, payment history, fraudulent usage, and/or approval of a quota [increase request](https://docs.aws.amazon.com/bedrock/latest/userguide/quotas-increase.html). For more details, please refer to [Quotas for Amazon Bedrock](quotas.md) documentation and see the [limits](https://docs.aws.amazon.com/general/latest/gr/bedrock.html#limits_bedrock) for the model. + +Default quotas for Claude Opus 4.7 are 10M TPM on `bedrock-mantle` and 15M TPM on `bedrock-runtime` for each supported region. + +## Sampling parameters no longer supported + + +Starting with Claude Opus 4.7, `temperature`, `top_p`, and `top_k` parameters are no longer supported. The recommended migration path is to omit these parameters entirely from your requests and to use prompting to guide the model's behavior. If you previously relied on temperature = 0 for deterministic outputs, note that this setting did not guarantee identical responses across invocations. + +## Sample Code + + +**Step 1 - AWS Account:** If you have an AWS account already, skip this step. If you are new to AWS, sign up for an [AWS account](https://portal.aws.amazon.com/billing/signup). + +**Step 2 - API key:** Go to the [Amazon Bedrock console](https://console.aws.amazon.com/bedrock/home#/api-keys/long-term/create) and generate a long-term API key. + +**Step 3 - Get the SDK:** To use this getting started guide, you must have Python already installed. Then install the relevant software depending on the APIs you are using. + +------ +#### [ Messages API ] + +``` +pip install -U "anthropic[bedrock]" +``` + +------ +#### [ Invoke/Converse API ] + +``` +pip install boto3 +``` + +------ + +**Step 4 - Set environment variables:** Configure your environment to use the API key for authentication. + +------ +#### [ Messages API ] + +``` +AWS_BEARER_TOKEN_BEDROCK="" +``` + +------ +#### [ Invoke/Converse API ] + +``` +AWS_BEARER_TOKEN_BEDROCK="" +``` + +------ + +**Step 5 - Run your first inference request:** Save the file as `bedrock-first-request.py` + +------ +#### [ Messages API ] + +``` +from anthropic import AnthropicBedrockMantle + +client = AnthropicBedrockMantle(aws_region="us-east-1") + +message = client.messages.create( + model="anthropic.claude-opus-4-7", + max_tokens=1024, + messages=[{"role": "user", "content": "Can you explain the features of Amazon Bedrock?"}], +) + +print(message.content[0].text) +``` + +------ +#### [ Invoke API ] + +``` +import json +import boto3 + +client = boto3.client('bedrock-runtime', region_name='us-east-1') +response = client.invoke_model( + modelId='anthropic.claude-opus-4-7', + body=json.dumps({ + 'anthropic_version': 'bedrock-2023-05-31', + 'messages': [{ 'role': 'user', 'content': 'Can you explain the features of Amazon Bedrock?'}], + 'max_tokens': 1024 + }) +) +print(json.loads(response['body'].read())) +``` + +------ +#### [ Converse API ] + +``` +import boto3 + +client = boto3.client('bedrock-runtime', region_name='us-east-1') +response = client.converse( + modelId='anthropic.claude-opus-4-7', + messages=[ + { + 'role': 'user', + 'content': [{'text': 'Can you explain the features of Amazon Bedrock?'}] + } + ] +) +print(response) +``` + +------ \ No newline at end of file diff --git a/docs/aws/claude_sonnet_4-6.md b/docs/aws/claude_sonnet_4-6.md new file mode 100644 index 0000000..df1d659 --- /dev/null +++ b/docs/aws/claude_sonnet_4-6.md @@ -0,0 +1,248 @@ + + +# Claude Sonnet 4.6 + + +## ![Orange rounded square icon with white radial loading spinner design.](http://docs.aws.amazon.com/bedrock/latest/userguide/images/models/claude.png) Anthropic — Claude Sonnet 4.6 + + +## Model Details + + +Claude Sonnet 4.6 is a full upgrade of Anthropic's mid-tier model with improved coding, computer use, long-context reasoning, and agent planning with a 1M token context window. For more information about model development and performance, see the [model/service card](https://www-cdn.anthropic.com/bbd8ef16d70b7a1665f14f306ee88b53f686aa75.pdf). ++ **Model launch date:** Feb 17, 2026 ++ **Model EOL date:** N/A ++ **End User License Agreements and Terms of Use:** [View](https://aws.amazon.com/legal/bedrock/third-party-models/) ++ **Model lifecycle:** Active ++ **Context window:** 1M tokens ++ **Max output tokens:** 64K ++ **Reasoning:** Supported ++ **Knowledge cutoff:** Aug 2025 ++ **Marketplace product ID:** `prod-ffvjxvh4ltq64` + + +| **Input Modalities** | **Output Modalities** | **[APIs supported](https://docs.aws.amazon.com/bedrock/latest/userguide/apis.html)** | **[Endpoints supported](https://docs.aws.amazon.com/bedrock/latest/userguide/endpoints.html)** | +| --- | --- | --- | --- | +| ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) Audio | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) Embedding | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) Responses | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) bedrock-runtime | +| ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) Image | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) Image | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) Chat Completions | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) bedrock-mantle | +| ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) Speech | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) Speech | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) Invoke | | +| ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) Text | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) Text | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) Converse | | +| ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) Video | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) Video | | | + +## Capabilities and Features + + +***Bedrock Features*** + +**Features supported using `bedrock-runtime` endpoint** + + +| **Supported** | **Not Supported** | +| --- | --- | +| [See the AWS documentation website for more details](http://docs.aws.amazon.com/bedrock/latest/userguide/model-card-anthropic-claude-sonnet-4-6.html) | [See the AWS documentation website for more details](http://docs.aws.amazon.com/bedrock/latest/userguide/model-card-anthropic-claude-sonnet-4-6.html) | + +**Prompt caching using `bedrock-runtime` endpoint** + +For more information, see [Prompt caching for faster model inference](https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-caching.html). + + +| **Prompt caching supported** | **Min tokens per cache checkpoint** | **Max cache checkpoints per request** | **Supported TTL** | **Fields that accept prompt cache checkpoints** | +| --- | --- | --- | --- | --- | +| Yes | 1,024 | 4 | 5 minutes, 1 hour | system, messages, and tools | + +## Pricing + + +For pricing, please refer to the [Amazon Bedrock Pricing](https://aws.amazon.com/bedrock/pricing/) page. + +## Programmatic Access + + +Use the following model IDs and endpoint URLs to access this model programmatically. For more information about the available APIs and endpoints, see [APIs supported](https://docs.aws.amazon.com/bedrock/latest/userguide/apis.html) and [Endpoints supported](https://docs.aws.amazon.com/bedrock/latest/userguide/endpoints.html). + + +| **Endpoint** | **Model ID** | **In-Region endpoint URL** | **Geo inference ID** | **Global inference ID** | +| --- | --- | --- | --- | --- | +| bedrock-runtime | anthropic.claude-sonnet-4-6 | https://bedrock-runtime.\{region\}.amazonaws.com | `us.anthropic.claude-sonnet-4-6``eu.anthropic.claude-sonnet-4-6``au.anthropic.claude-sonnet-4-6``jp.anthropic.claude-sonnet-4-6` | global.anthropic.claude-sonnet-4-6 | + +*For example, if region is us-east-1 (N. Virginia), then the bedrock-runtime endpoint URL will be "https://bedrock-runtime.us-east-1.amazonaws.com" and for bedrock-mantle will be "https://bedrock-mantle.us-east-1.api.aws/v1".* + +## Service Tiers + + +Amazon Bedrock offers multiple service tiers to match your workload requirements. **Standard** provides pay-per-token access with no commitment. **Priority** offers higher throughput with a time-based commitment. **Flex** provides lower-cost access for flexible, non-time-sensitive workloads. **Reserved** provides dedicated throughput with a term commitment for predictable workloads. For more information, see [service tiers](https://docs.aws.amazon.com/bedrock/latest/userguide/service-tiers-inference.html). + + +| **Standard** | **Priority** | **Flex** | **Reserved** | +| --- | --- | --- | --- | +| ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | + +## Regional Availability + + +***Regional availability at a glance*** + +Bedrock offers three inference options: **In-Region** keeps requests within a single Region for strict compliance, **Geo Cross-Region** routes across Regions within a geography (US, EU, etc.) for higher throughput while respecting data residency, and **Global Cross-Region** routes anywhere worldwide for maximum throughput when there are no residency constraints. Refer to the [Regional availability](models-region-compatibility.md) page for more details. + + +| **Region** | **In-Region** | **Geo** | **Global** | +| --- | --- | --- | --- | +| us-east-1 (N. Virginia) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| us-east-2 (Ohio) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| us-west-1 (N. California) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| us-west-2 (Oregon) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ca-central-1 (Canada) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ca-west-1 (Calgary) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| eu-central-1 (Frankfurt) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| eu-central-2 (Zurich) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| eu-north-1 (Stockholm) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| eu-south-1 (Milan) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| eu-south-2 (Spain) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| eu-west-1 (Ireland) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| eu-west-2 (London) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| eu-west-3 (Paris) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ap-east-2 (Taipei) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ap-northeast-1 (Tokyo) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ap-northeast-2 (Seoul) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ap-northeast-3 (Osaka) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ap-south-1 (Mumbai) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ap-south-2 (Hyderabad) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ap-southeast-1 (Singapore) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ap-southeast-2 (Sydney) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ap-southeast-3 (Jakarta) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ap-southeast-4 (Melbourne) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ap-southeast-5 (Malaysia) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ap-southeast-6 (New Zealand) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| ap-southeast-7 (Thailand) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| il-central-1 (Tel Aviv) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| me-central-1 (UAE) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| me-south-1 (Bahrain) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| af-south-1 (Cape Town) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| sa-east-1 (São Paulo) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | +| mx-central-1 (Mexico) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | + +***Geo inference details*** + +**Geo: US** + +Geo Inference ID: `us.anthropic.claude-sonnet-4-6` + + +| **Source Region** | **Destination Regions** | +| --- | --- | +| us-east-1 (N. Virginia) | us-east-1 (N. Virginia), us-east-2 (Ohio), us-west-2 (Oregon) | +| us-east-2 (Ohio) | us-east-1 (N. Virginia), us-east-2 (Ohio), us-west-2 (Oregon) | +| us-west-1 (N. California) | us-east-1 (N. Virginia), us-east-2 (Ohio), us-west-1 (N. California), us-west-2 (Oregon) | +| us-west-2 (Oregon) | us-east-1 (N. Virginia), us-east-2 (Ohio), us-west-2 (Oregon) | +| ca-central-1 (Canada) | ca-central-1 (Canada), us-east-1 (N. Virginia), us-east-2 (Ohio), us-west-2 (Oregon) | +| ca-west-1 (Calgary) | ca-west-1 (Calgary), us-east-1 (N. Virginia), us-east-2 (Ohio), us-west-2 (Oregon) | + +**Geo: EU** + +Geo Inference ID: `eu.anthropic.claude-sonnet-4-6` + + +| **Source Region** | **Destination Regions** | +| --- | --- | +| eu-central-1 (Frankfurt) | eu-central-1 (Frankfurt), eu-north-1 (Stockholm), eu-south-1 (Milan), eu-south-2 (Spain), eu-west-1 (Ireland), eu-west-3 (Paris) | +| eu-central-2 (Zurich) | eu-central-1 (Frankfurt), eu-central-2 (Zurich), eu-north-1 (Stockholm), eu-south-1 (Milan), eu-south-2 (Spain), eu-west-1 (Ireland), eu-west-3 (Paris) | +| eu-north-1 (Stockholm) | eu-central-1 (Frankfurt), eu-north-1 (Stockholm), eu-south-1 (Milan), eu-south-2 (Spain), eu-west-1 (Ireland), eu-west-3 (Paris) | +| eu-south-1 (Milan) | eu-central-1 (Frankfurt), eu-north-1 (Stockholm), eu-south-1 (Milan), eu-south-2 (Spain), eu-west-1 (Ireland), eu-west-3 (Paris) | +| eu-south-2 (Spain) | eu-central-1 (Frankfurt), eu-north-1 (Stockholm), eu-south-1 (Milan), eu-south-2 (Spain), eu-west-1 (Ireland), eu-west-3 (Paris) | +| eu-west-1 (Ireland) | eu-central-1 (Frankfurt), eu-north-1 (Stockholm), eu-south-1 (Milan), eu-south-2 (Spain), eu-west-1 (Ireland), eu-west-3 (Paris) | +| eu-west-2 (London) | eu-central-1 (Frankfurt), eu-north-1 (Stockholm), eu-south-1 (Milan), eu-south-2 (Spain), eu-west-1 (Ireland), eu-west-2 (London), eu-west-3 (Paris) | +| eu-west-3 (Paris) | eu-central-1 (Frankfurt), eu-north-1 (Stockholm), eu-south-1 (Milan), eu-south-2 (Spain), eu-west-1 (Ireland), eu-west-3 (Paris) | + +**Geo: AU** + +Geo Inference ID: `au.anthropic.claude-sonnet-4-6` + + +| **Source Region** | **Destination Regions** | +| --- | --- | +| ap-southeast-2 (Sydney) | ap-southeast-2 (Sydney), ap-southeast-4 (Melbourne) | +| ap-southeast-4 (Melbourne) | ap-southeast-2 (Sydney), ap-southeast-4 (Melbourne) | +| ap-southeast-6 (New Zealand) | ap-southeast-2 (Sydney), ap-southeast-4 (Melbourne), ap-southeast-6 (New Zealand) | + +**Geo: JP** + +Geo Inference ID: `jp.anthropic.claude-sonnet-4-6` + + +| **Source Region** | **Destination Regions** | +| --- | --- | +| ap-northeast-1 (Tokyo) | ap-northeast-1 (Tokyo), ap-northeast-3 (Osaka) | +| ap-northeast-3 (Osaka) | ap-northeast-1 (Tokyo), ap-northeast-3 (Osaka) | + +***Global inference details*** + + +| **Global Inference ID** | **Americas** | **EMEA** | **Asia Pacific** | +| --- | --- | --- | --- | +| global.anthropic.claude-sonnet-4-6 | [See the AWS documentation website for more details](http://docs.aws.amazon.com/bedrock/latest/userguide/model-card-anthropic-claude-sonnet-4-6.html) | [See the AWS documentation website for more details](http://docs.aws.amazon.com/bedrock/latest/userguide/model-card-anthropic-claude-sonnet-4-6.html) | [See the AWS documentation website for more details](http://docs.aws.amazon.com/bedrock/latest/userguide/model-card-anthropic-claude-sonnet-4-6.html) | + +## Quotas and Limits + + +Your AWS account has default quotas to maintain the performance of the service and to ensure appropriate usage of Amazon Bedrock. The default quotas assigned to an account might be updated depending on regional factors, payment history, fraudulent usage, and/or approval of a quota [increase request](https://docs.aws.amazon.com/bedrock/latest/userguide/quotas-increase.html). For more details, please refer to [Quotas for Amazon Bedrock](quotas.md) documentation and see the [limits](https://docs.aws.amazon.com/general/latest/gr/bedrock.html#limits_bedrock) for the model. + +## Sample Code + + +**Step 1 - AWS Account:** If you have an AWS account already, skip this step. If you are new to AWS, sign up for an [AWS account](https://portal.aws.amazon.com/billing/signup). + +**Step 2 - API key:** Go to the [Amazon Bedrock console](https://console.aws.amazon.com/bedrock/home#/api-keys/long-term/create) and generate a long-term API key. + +**Step 3 - Get the SDK:** To use this getting started guide, you must have Python already installed. Then install the relevant software depending on the APIs you are using. + +``` +pip install boto3 +``` + +**Step 4 - Set environment variables:** Configure your environment to use the API key for authentication. + +``` +AWS_BEARER_TOKEN_BEDROCK="" +``` + +**Step 5 - Run your first inference request:** Save the file as `bedrock-first-request.py` + +------ +#### [ Invoke API ] + +``` +import json +import boto3 + +client = boto3.client('bedrock-runtime', region_name='us-east-1') +response = client.invoke_model( + modelId='anthropic.claude-sonnet-4-6', + body=json.dumps({ + 'anthropic_version': 'bedrock-2023-05-31', + 'messages': [{ 'role': 'user', 'content': 'Can you explain the features of Amazon Bedrock?'}], + 'max_tokens': 1024 + }) +) +print(json.loads(response['body'].read())) +``` + +------ +#### [ Converse API ] + +``` +import boto3 + +client = boto3.client('bedrock-runtime', region_name='us-east-1') +response = client.converse( + modelId='anthropic.claude-sonnet-4-6', + messages=[ + { + 'role': 'user', + 'content': [{'text': 'Can you explain the features of Amazon Bedrock?'}] + } + ] +) +print(response) +``` + +------ \ No newline at end of file diff --git a/docs/aws/minimax_m2-5.md b/docs/aws/minimax_m2-5.md new file mode 100644 index 0000000..494bf41 --- /dev/null +++ b/docs/aws/minimax_m2-5.md @@ -0,0 +1,207 @@ + + +# MiniMax M2.5 + + +## ![](http://docs.aws.amazon.com/bedrock/latest/userguide/images/models/minimax2.1.png) MiniMax — MiniMax M2.5 + + +## Model Details + + +MiniMax M2.5 is an agent-native frontier model trained explicitly to reason efficiently, decompose tasks optimally, and complete complex workflows under real-world time and cost constraints. It achieves task completion speeds comparable to or faster than leading proprietary frontier models by combining high inference throughput with reinforcement learning focused on token-efficient reasoning and better decision-making in agentic scaffolds. For more information about model development and performance, see the [model/service card](https://minimax.io/news/minimax-m2). ++ **Model launch date:** Feb 12, 2026 ++ **Model EOL date:** N/A ++ **End User License Agreements and Terms of Use:** [View](https://aws.amazon.com/legal/bedrock/third-party-models/) ++ **Model lifecycle:** Active ++ **Context window:** 196K tokens ++ **Max output tokens:** 8K + + +| **Input Modalities** | **Output Modalities** | **[APIs supported](https://docs.aws.amazon.com/bedrock/latest/userguide/apis.html)** | **[Endpoints supported](https://docs.aws.amazon.com/bedrock/latest/userguide/endpoints.html)** | +| --- | --- | --- | --- | +| ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) Audio | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) Embedding | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) Responses | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) bedrock-runtime | +| ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) Image | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) Image | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) Chat Completions | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) bedrock-mantle | +| ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) Speech | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) Speech | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) Invoke | | +| ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) Text | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) Text | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) Converse | | +| ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) Video | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) Video | | | + +**Note** +Whenever possible, we recommend you use the `bedrock-mantle` endpoint. + +## Capabilities and Features + + +***Bedrock Features*** + +**Features supported using `bedrock-mantle` endpoint** + + +| **Supported** | **Not Supported** | +| --- | --- | +| [See the AWS documentation website for more details](http://docs.aws.amazon.com/bedrock/latest/userguide/model-card-minimax-minimax-m2-5.html) | [See the AWS documentation website for more details](http://docs.aws.amazon.com/bedrock/latest/userguide/model-card-minimax-minimax-m2-5.html) | + +**Features supported using `bedrock-runtime` endpoint** + + +| **Supported** | **Not Supported** | +| --- | --- | +| [See the AWS documentation website for more details](http://docs.aws.amazon.com/bedrock/latest/userguide/model-card-minimax-minimax-m2-5.html) | [See the AWS documentation website for more details](http://docs.aws.amazon.com/bedrock/latest/userguide/model-card-minimax-minimax-m2-5.html) | + +## Pricing + + +For pricing, please refer to the [Amazon Bedrock Pricing](https://aws.amazon.com/bedrock/pricing/) page. + +## Programmatic Access + + +Use the following model IDs and endpoint URLs to access this model programmatically. For more information about the available APIs and endpoints, see [APIs supported](https://docs.aws.amazon.com/bedrock/latest/userguide/apis.html) and [Endpoints supported](https://docs.aws.amazon.com/bedrock/latest/userguide/endpoints.html). + + +| **Endpoint** | **Model ID** | **In-Region endpoint URL** | **Geo inference ID** | **Global inference ID** | +| --- | --- | --- | --- | --- | +| bedrock-runtime | minimax.minimax-m2.5 | https://bedrock-runtime.\{region\}.amazonaws.com | Not supported | Not supported | +| bedrock-mantle | minimax.minimax-m2.5 | https://bedrock-mantle.\{region\}.api.aws/v1 | Not supported | Not supported | + +*For example, if region is us-east-1 (N. Virginia), then the bedrock-runtime endpoint URL will be "https://bedrock-runtime.us-east-1.amazonaws.com" and for bedrock-mantle will be "https://bedrock-mantle.us-east-1.api.aws/v1".* + +## Service Tiers + + +Amazon Bedrock offers multiple service tiers to match your workload requirements. **Standard** provides pay-per-token access with no commitment. **Priority** offers higher throughput with a time-based commitment. **Flex** provides lower-cost access for flexible, non-time-sensitive workloads. **Reserved** provides dedicated throughput with a term commitment for predictable workloads. For more information, see [service tiers](https://docs.aws.amazon.com/bedrock/latest/userguide/service-tiers-inference.html). + + +| **Standard** | **Priority** | **Flex** | **Reserved** | +| --- | --- | --- | --- | +| ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | + +## Regional Availability + + +***Regional availability at a glance*** + +Bedrock offers three inference options: **In-Region** keeps requests within a single Region for strict compliance, **Geo Cross-Region** routes across Regions within a geography (US, EU, etc.) for higher throughput while respecting data residency, and **Global Cross-Region** routes anywhere worldwide for maximum throughput when there are no residency constraints. Refer to the [Regional availability](models-region-compatibility.md) page for more details. + + +| **Region** | **In-Region** | **Geo** | **Global** | +| --- | --- | --- | --- | +| us-east-1 (N. Virginia) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | +| us-east-2 (Ohio) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | +| us-west-2 (Oregon) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | +| eu-central-1 (Frankfurt) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | +| eu-north-1 (Stockholm) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | +| eu-south-1 (Milan) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | +| eu-west-1 (Ireland) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | +| eu-west-2 (London) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | +| ap-northeast-1 (Tokyo) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | +| ap-south-1 (Mumbai) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | +| ap-southeast-2 (Sydney) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | +| ap-southeast-3 (Jakarta) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | +| sa-east-1 (São Paulo) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | +| ap-southeast-4 (Melbourne) | ![Yes](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-yes.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | ![No](http://docs.aws.amazon.com/bedrock/latest/userguide/images/icons/icon-no.png) | + +## Quotas and Limits + + +Your AWS account has default quotas to maintain the performance of the service and to ensure appropriate usage of Amazon Bedrock. The default quotas assigned to an account might be updated depending on regional factors, payment history, fraudulent usage, and/or approval of a quota [increase request](https://docs.aws.amazon.com/bedrock/latest/userguide/quotas-increase.html). For more details, please refer to [Quotas for Amazon Bedrock](quotas.md) documentation and see the [limits](https://docs.aws.amazon.com/general/latest/gr/bedrock.html#limits_bedrock) for the model. + +## Sample Code + + +**Step 1 - AWS Account:** If you have an AWS account already, skip this step. If you are new to AWS, sign up for an [AWS account](https://portal.aws.amazon.com/billing/signup). + +**Step 2 - API key:** Go to the [Amazon Bedrock console](https://console.aws.amazon.com/bedrock/home#/api-keys/long-term/create) and generate a long-term API key. + +**Step 3 - Get the SDK:** To use this getting started guide, you must have Python already installed. Then install the relevant software depending on the APIs you are using. + +------ +#### [ Chat Completions API ] + +``` +pip install boto3 openai +``` + +------ +#### [ Invoke/Converse API ] + +``` +pip install boto3 +``` + +------ + +**Step 4 - Set environment variables:** Configure your environment to use the API key for authentication. + +------ +#### [ Chat Completions API ] + +``` +OPENAI_API_KEY="" +OPENAI_BASE_URL="https://bedrock-mantle..api.aws/v1" +``` + +------ +#### [ Invoke/Converse API ] + +``` +AWS_BEARER_TOKEN_BEDROCK="" +``` + +------ + +**Step 5 - Run your first inference request:** Save the file as `bedrock-first-request.py` + +------ +#### [ Chat Completions API ] + +``` +from openai import OpenAI + +client = OpenAI() + +response = client.chat.completions.create( + model="minimax.minimax-m2.5", + messages=[{"role": "user", "content": "Can you explain the features of Amazon Bedrock?"}] + ) +print(response) +``` + +------ +#### [ Invoke API ] + +``` +import json +import boto3 + +client = boto3.client('bedrock-runtime', region_name='us-east-1') +response = client.invoke_model( + modelId='minimax.minimax-m2.5', + body=json.dumps({ + 'messages': [{ 'role': 'user', 'content': 'Can you explain the features of Amazon Bedrock?'}], + 'max_tokens': 1024 + }) +) +print(json.loads(response['body'].read())) +``` + +------ +#### [ Converse API ] + +``` +import boto3 + +client = boto3.client('bedrock-runtime', region_name='us-east-1') +response = client.converse( + modelId='minimax.minimax-m2.5', + messages=[ + { + 'role': 'user', + 'content': [{'text': 'Can you explain the features of Amazon Bedrock?'}] + } + ] +) +print(response) +``` + +------ \ No newline at end of file