Supported providers
AWS Bedrock
Use your own AWS credits through Keywords AI
There are 2 ways to add your AWS Bedrock credentials to your requests:
Add it from the UI
- Go to Credentials page
- Add your AWS Bedrock credentials.
Add it in code
- Add
customer_credentials
parameter in your request body to use your own AWS credits.
{
// Rest of the request body
"customer_credentials": {
"bedrock": {
"aws_access_key_id": "aws_access_key_id",
"aws_secret_access_key": "aws_secret_access_key",
"aws_region_name": "aws_region_name",
}
}
}
Override credentials for a particular model. (Optional)
One-off credential overrides. Instead of using what is uploaded for each provider, this targets credentials for individual models.
{
// Rest of the request body
"customer_credentials": {
"bedrock": {
"aws_access_key_id": "aws_access_key_id",
"aws_secret_access_key": "aws_secret_access_key",
"aws_region_name": "aws_region_name",
}
},
"credential_override": {
"bedrock/anthropic.claude-3-5-sonnet-20240620-v1:0":{ // override for a specific model.
"aws_access_key_id": "aws_access_key_id",
"aws_secret_access_key": "aws_secret_access_key",
"aws_region_name": "aws_region_name",
}
}
}
Requirements
- Ensure your deployment name matches those listed on our Models page.
- Confirm that your models are available in the region specified by your credentials.
Credentials validation is not supported. Failure to comply with these requirements will result in errors!
How to get your AWS Bedrock credentials
- Go to
https://aws.amazon.com/
and click onSign In to the Console
. - Choose your region and click on
Security credentials
in the top right corner. - Click on
Access keys
and thenCreate New Access Key
. - You will see your
Access key ID
andSecret access key
. Copy these values and use them in theaws_access_key_id
andaws_secret_access_key
fields in the request body. - You can find your
aws_region_name
in the URL of the AWS console. For example, if the URL ishttps://us-west-2.console.aws.amazon.com/
, then theaws_region_name
isus-west-2
.