We recommend the Converse API for users who do not need to use custom models. It can be accessed using
ChatBedrockConverse.Anthropic models on BedrockFor Anthropic models specifically, you can use
ChatAnthropicBedrock which extends ChatAnthropic and provides the same API while running on AWS Bedrock. See the ChatAnthropicBedrock section below for details.Overview
Integration details
| Class | Package | Serializable | JS support | Downloads | Version |
|---|---|---|---|---|---|
ChatBedrock | langchain-aws | beta | ✅ | ||
ChatBedrockConverse | langchain-aws | beta | ✅ |
Model features
The below apply to bothChatBedrock and ChatBedrockConverse.
| Tool calling | Structured output | Image input | Audio input | Video input | Token-level streaming | Native async | Token usage | Logprobs |
|---|---|---|---|---|---|---|---|---|
| ✅ | ✅ | ✅ | ❌ | ❌ | ✅ | ❌ | ✅ | ❌ |
Setup
To access Bedrock models you’ll need to create an AWS account, set up the Bedrock API service, get an access key ID and secret key, and install thelangchain-aws integration package.
Credentials
Head to the AWS docs to sign up to AWS and setup your credentials. Alternatively,ChatBedrockConverse will read from the following environment variables by default:
Installation
The LangChain Bedrock integration lives in thelangchain-aws package:
Instantiation
Now we can instantiate our model object and generate chat completions:Invocation
Streaming
Usestream_events to stream tokens directly:
Streaming tool calls and structured output
When using tool calling or structured output with Anthropic models, tool call arguments stream as partial JSON chunks by default. To reduce latency and get more evenly distributed chunks, you can enable Anthropic’s fine-grained tool streaming beta:Fine-grained tool streaming is supported on Claude 4.5+ models. See the Claude documentation for more details.
Extended thinking
This guide focuses on implementing Extended Thinking using AWS Bedrock with LangChain’sChatBedrockConverse integration.
Supported models
Extended Thinking is available for the following Claude models on AWS Bedrock:| Model | Model ID |
|---|---|
| Claude Opus 4 | anthropic.claude-opus-4-20250514-v1:0 |
| Claude Sonnet 4 | anthropic.claude-sonnet-4-20250514-v1:0 |
| Claude 3.7 Sonnet | us.anthropic.claude-3-7-sonnet-20250219-v1:0 |
How extended thinking works
When extended thinking is turned on, Claude creates thinking content blocks where it outputs its internal reasoning. Claude incorporates insights from this reasoning before crafting a final response. The API response will include thinking content blocks, followed by text content blocks.Prompt caching
Bedrock supports caching of elements of your prompts, including messages and tools. This allows you to reuse large documents, instructions, few-shot documents, and other data to reduce latency and costs.Not all models support prompt caching. See Bedrock prompt caching supported models.
For LangChain agents, use
BedrockPromptCachingMiddleware to let LangChain optimize stable system prompt and tool content. For direct model calls, use manual cachePoint blocks or invocation-level cache_control, depending on the model and API.cachePoint key. See example below:
Citations
Citations can be generated if they are enabled on input documents. Documents can be specified in Bedrock’s native format or LangChain’s standard types:ChatAnthropicBedrock
For AWS Bedrock users specifically interested in Anthropic models,langchain-aws provides ChatAnthropicBedrock. This class extends ChatAnthropic and provides the same interface while running on AWS Bedrock infrastructure. This takes advantage of the Anthropic SDK’s Bedrock clients.
Installation
Installlangchain-aws with the anthropic extra to get the required dependencies:
Usage
ChatAnthropicBedrock supports the same features and parameters as ChatAnthropic. You can initialize it with AWS-specific parameters:
ChatAnthropic integration page.
API reference
For detailed documentation of allChatBedrock, ChatBedrockConverse, and ChatAnthropicBedrock features and configurations head to the API reference.
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

