Install and configure the AWS CLI
- Install a version of the AWS CLI at or newer than version
2.13.23 - Configure your AWS credentials using the AWS configure command (see Configure the AWS CLI) or find your credentials by navigating to “Command line or programmatic access” within your AWS dashboard and following the directions in the popup modal.
- Verify that your credentials are working:
Shell
Install an SDK for accessing Bedrock
Anthropic’s client SDKs support Bedrock. You can also use an AWS SDK likeboto3 directly.
Accessing Bedrock
Subscribe to Anthropic models
Go to the AWS Console > Bedrock > Model Access and request access to Anthropic models. Note that Anthropic model availability varies by region. See AWS documentation for latest information.API model IDs
| Model | Base Bedrock model ID | global | us | eu | jp | apac |
|---|---|---|---|---|---|---|
| Claude Sonnet 4.5 | anthropic.claude-sonnet-4-5-20250929-v1:0Copied! | Yes | Yes | Yes | Yes | No |
| Claude Sonnet 4 | anthropic.claude-sonnet-4-20250514-v1:0Copied! | Yes | Yes | Yes | No | Yes |
| Claude Sonnet 3.7 | anthropic.claude-3-7-sonnet-20250219-v1:0Copied! | No | Yes | Yes | No | Yes |
| Claude Sonnet 3.5 | anthropic.claude-3-5-sonnet-20241022-v2:0Copied! | No | Yes | No | No | Yes |
| Claude Opus 4.1 | anthropic.claude-opus-4-1-20250805-v1:0Copied! | No | Yes | No | No | No |
| Claude Opus 4 | anthropic.claude-opus-4-20250514-v1:0Copied! | No | Yes | No | No | No |
| Claude Opus 3 | anthropic.claude-3-opus-20240229-v1:0Copied! | No | Yes | No | No | No |
| Claude Haiku 4.5 | anthropic.claude-haiku-4-5-20251001-v1:0Copied! | Yes | Yes | Yes | No | No |
| Claude Haiku 3.5 | anthropic.claude-3-5-haiku-20241022-v1:0Copied! | No | Yes | No | No | No |
| Claude Haiku 3 | anthropic.claude-3-haiku-20240307-v1:0Copied! | No | Yes | Yes | No | Yes |
List available models
The following examples show how to print a list of all the Claude models available through Bedrock:Making requests
The following examples show how to generate text from Claude on Bedrock:Activity logging
Bedrock provides an invocation logging service that allows customers to log the prompts and completions associated with your usage. Anthropic recommends that you log your activity on at least a 30-day rolling basis in order to understand your activity and investigate any potential misuse.Turning on this service does not give AWS or Anthropic any access to your content.
Feature support
You can find all the features currently supported on Bedrock here.PDF Support on Bedrock
PDF support is available on Amazon Bedrock through both the Converse API and InvokeModel API. For detailed information about PDF processing capabilities and limitations, see the PDF support documentation. Important considerations for Converse API users:- Visual PDF analysis (charts, images, layouts) requires citations to be enabled
- Without citations, only basic text extraction is available
- For full control without forced citations, use the InvokeModel API
1M token context window
Claude Sonnet 4 and 4.5 support the 1M token context window on Amazon Bedrock.The 1M token context window is currently in beta. To use the extended context window, include the
context-1m-2025-08-07 beta header in your Bedrock API requests.Global vs regional endpoints
Starting with Claude Sonnet 4.5 and all future models, Amazon Bedrock offers two endpoint types:- Global endpoints: Dynamic routing for maximum availability
- Regional endpoints: Guaranteed data routing through specific geographic regions
This applies to Claude Sonnet 4.5 and future models only. Older models (Claude Sonnet 4, Opus 4, and earlier) maintain their existing pricing structures.
When to use each option
Global endpoints (recommended):- Provide maximum availability and uptime
- Dynamically route requests to regions with available capacity
- No pricing premium
- Best for applications where data residency is flexible
- Route traffic through specific geographic regions
- Required for data residency and compliance requirements
- Available for US, EU, Japan, and Australia
- 10% pricing premium reflects infrastructure costs for dedicated regional capacity
Implementation
Using global endpoints (default for Sonnet 4.5 and 4): The model IDs for Claude Sonnet 4.5 and 4 already include theglobal. prefix:
global. prefix from the model ID:
Additional resources
- AWS Bedrock pricing: aws.amazon.com/bedrock/pricing
- AWS pricing documentation: Bedrock pricing guide
- AWS blog post: Introducing Claude Sonnet 4.5 in Amazon Bedrock
- Anthropic pricing details: Pricing documentation