Skip to main content
This guide shows you how to configure AWS Bedrock as an external model provider in AI Studio. After setting up this provider, you can use foundation models from AWS Bedrock when building agents.
AI Studio currently supports Bedrock models in us-east-1, us-west-1, us-west-2, and eu-west-1 regions only. See Regional considerations for details.

Prerequisites

Before adding Bedrock models to AI Studio, you need:
  • An AWS account with access to Amazon Bedrock
  • Credentials for one of the supported authentication methods (see Configure AWS credentials)
  • Permission to invoke the models you want to use in your selected region
AI Studio supports text generation and embedding models from Bedrock. Video, audio, and image generation models are not supported.

Configure AWS credentials

AI Studio supports three authentication methods for AWS Bedrock. Choose the method that matches how your organization manages AWS access.
Amazon Bedrock API keys authenticate requests with a bearer token. Generate a long-term key in the Amazon Bedrock console.
  1. Sign in to the Amazon Bedrock console
  2. In the left navigation pane, select API keys
  3. Open the Long-term API keys tab and select Generate long-term API keys
  4. Choose an expiration period and optional advanced permissions
  5. Select Generate, then copy the key and store it securely
The API key is only shown once. Short-term API keys expire with your console session (up to 12 hours) and are a poor fit for AI Studio. Use a long-term key for production credentials.
After you generate the key, copy the value and either enter it when you add a Bedrock model, or save it as a reusable credential set on the LLM Credentials page.

Add Bedrock models in AI Studio

After configuring your AWS credentials, add Bedrock models to AI Studio.
  1. Navigate to Models & Guardrails > Models in AI Studio
  2. Under Bring your own model, select + Add model
  3. Select Amazon Bedrock as the provider, then select Next
  4. Select the model from the Model name dropdown
  5. Enter a unique Display name for the model
  6. Provide credentials using one of the following options (not both):
    • Select an existing credential set from the Credentials name dropdown
    • Enter a new Credential name and the authentication fields for your chosen method, using the values from Configure AWS credentials
  7. Configure team access:
    • All teams: Anyone with builder access can use the model
    • Specific teams: Restrict to selected teams
  8. Select Save
Use either an existing credential set or new credential fields. Filling both sides of the credentials section can prevent the form from saving.
If the model you need does not appear in the Model name dropdown, contact Writer support. Use a unique display name so the model does not collide with a WRITER-managed catalog entry in WRITER Agent.

Regional considerations

AI Studio supports Bedrock models in the following AWS regions:
  • US East (us-east-1)
  • US West (us-west-1)
  • US West 2 (us-west-2)
  • EU West (eu-west-1)
Support for additional AWS regions is coming soon.
When configuring Bedrock in AI Studio:
  • Select a supported region where your credentials can invoke the model
  • Ensure your credentials have permissions in the same region you select
  • Some Bedrock models are only available in specific regions—check the Amazon Bedrock regional availability documentation
Ensure the region you select in AI Studio matches the region where your credentials can invoke the model.

Monitor costs

AWS bills Bedrock usage directly to your AWS account based on the tokens processed. WRITER also charges a 10% pass-through fee on external model usage, paid via credits. AI Studio tracks usage and costs for external models, providing visibility into spending across all your models in one place.

Troubleshoot Bedrock configuration

Invalid credentials error

If you see an “Invalid credentials” or “Authentication failed” error:
  • Verify credentials are copied correctly without extra spaces
  • For Bedrock API keys, confirm the key is still active and has not expired
  • For access keys, check that the keys are still active in the IAM console
  • For assume role, verify the Role ARN, External ID (if required), that the role trust policy allows the source principal, and that the source user’s identity policy allows sts:AssumeRole on the target role ARN
  • Ensure the credentials allow bedrock:InvokeModel on the model or inference profile ARNs you configured
  • For streaming failures, confirm the policy also allows bedrock:InvokeModelWithResponseStream

Model not available error

If a model doesn’t appear or returns an error:
  • Confirm the model appears in the Bedrock Model catalog for your region
  • For Anthropic models, confirm you completed the first-time use form if prompted
  • Verify you selected the correct region in AI Studio
  • Check that your credentials allow access to the specific model or inference profile ARNs in your IAM policy

Duplicate model in WRITER Agent

If the model dropdown shows a confusing duplicate:
  • Check whether the same model is already enabled as a WRITER-managed catalog model on the Models page
  • Use a distinct Display name for the BYOM entry, or delete the extra BYOM model if you intended to use the WRITER-managed version

Form will not save

If the Add model form does not save:
  • Clear either the Credentials name dropdown or the new credential fields so only one path is filled
  • Confirm all required fields for the selected authentication method are complete

Next steps