Skip to main content

Amazon Bedrock Provider

The Amazon Bedrock provider enables you to use various foundation models from Amazon and third-party providers through a unified API.

Installation

Setup

Configure your AWS credentials:

Usage

Basic Text Generation

Streaming Responses

Structured Output

Configuration

Custom Provider Instance

Provider Options

  • region: AWS region for API calls
  • accessKeyId: AWS access key ID
  • secretAccessKey: AWS secret access key
  • sessionToken: Optional session token

Available Models

Anthropic Claude

  • anthropic.claude-3-5-sonnet-20241022-v2:0 - Most capable Claude model
  • anthropic.claude-3-haiku-20240307-v1:0 - Fast and cost-effective

Amazon Titan

  • amazon.titan-text-premier-v1:0 - Amazon’s text model
  • amazon.titan-embed-text-v2:0 - Text embeddings

Meta Llama

  • meta.llama3-70b-instruct-v1:0 - Llama 3 70B
  • meta.llama3-8b-instruct-v1:0 - Llama 3 8B

Mistral AI

  • mistral.mistral-large-2407-v1:0 - Mistral Large
  • mistral.mistral-small-2402-v1:0 - Mistral Small

Advanced Features

Guardrails

Vision (Claude Models)

PDF Support

Embeddings

Model Capabilities

Resources