Skip to main content
Use AWS Bedrock to access various foundation models on AWS. Manage your access to models on the portal. See all the AWS Bedrock foundation models. Not all Bedrock models support all features. See the supported features for each model. We recommend experimenting to find the best-suited model for your use case. Here are some general recommendations:
  • For a Mistral model with generally good performance, look at mistral.mistral-large-2402-v1:0.
  • For Amazon Nova models, use amazon.nova-pro-v1:0 for general-purpose tasks.
  • For Claude models, see our Claude integration.

Installation

For async support with AWS Bedrock, you need to install aioboto3:

Authentication

AWS Bedrock supports three authentication methods: Set your AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and AWS_REGION environment variables. Get your keys from here.
Or pass them directly to the model:

Method 2: SSO Authentication

Use SSO authentication by leveraging your current AWS profile’s authentication:

Method 3: Boto3 Session

Use a pre-configured boto3 Session for advanced authentication scenarios (including SSO, role assumption, etc.):
The authentication methods are checked in this order: Session → SSO → Access Key/Secret Key. The first available method will be used.

Example

Use AwsBedrock with your Agent:
View more examples here.

Parameters

AwsBedrock is a subclass of the Model class and has access to the same params.