Skip to main content

Amazon Bedrock

Amazon Bedrock provides access to a variety of foundation models (FMs) from leading AI providers through a fully managed AWS service.

Sample configuration

The following example shows a starting llm parameter configuration you can use when you Start a conversational AI agent.


_15
"llm": {
_15
"url": "https://bedrock-runtime.us-east-1.amazonaws.com/model/us.anthropic.claude-sonnet-4-20250514-v1:0/converse-stream",
_15
"api_key": "<your_bedrock_api_key>",
_15
"access_key": "<your_aws_access_key_id>",
_15
"secret_key": "<your_aws_secret_access_key>",
_15
"region": "us-east-1",
_15
"model": "us.anthropic.claude-sonnet-4-20250514-v1:0",
_15
"system_messages": [
_15
{
_15
"role": "system",
_15
"content": "You are a helpful chatbot."
_15
}
_15
],
_15
"style": "bedrock"
_15
}

Key parameters

llmrequired
  • url stringrequired

    The Amazon Bedrock runtime endpoint for the target region and model. See Amazon Bedrock endpoints and quotas for the correct endpoint format.

  • api_key stringnullable

    Your Bedrock API key for authentication. Use either api_key alone, or both access_key and secret_key together for authentication.

  • access_key stringnullable

    Your AWS Access Key ID for authenticating Bedrock API calls. Required if not using api_key. Must be used together with secret_key. Get your access key from the AWS IAM Console.

  • secret_key stringnullable

    Your AWS Secret Access Key for authenticating Bedrock API calls. Required if not using api_key. Must be used together with access_key. Get your secret key from the AWS IAM Console.

  • region stringrequired

    The AWS region hosting the Bedrock model, for example, us-east-1 or us-west-2. See Supported Regions and models for available regions.

  • style stringrequired

    The API style to use. Set to bedrock for Amazon Bedrock models.

For advanced configuration options, model capabilities, and detailed parameter descriptions, see the Amazon Bedrock documentation.