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 modelanthropic.claude-3-haiku-20240307-v1:0- Fast and cost-effective
Amazon Titan
amazon.titan-text-premier-v1:0- Amazon’s text modelamazon.titan-embed-text-v2:0- Text embeddings
Meta Llama
meta.llama3-70b-instruct-v1:0- Llama 3 70Bmeta.llama3-8b-instruct-v1:0- Llama 3 8B
Mistral AI
mistral.mistral-large-2407-v1:0- Mistral Largemistral.mistral-small-2402-v1:0- Mistral Small
Advanced Features
Guardrails
Vision (Claude Models)
PDF Support
Embeddings
Model Capabilities
| Model | Vision | Tools | Structured Output |
|---|---|---|---|
| anthropic.claude-3-5-sonnet-v2 | ✓ | ✓ | ✓ |
| anthropic.claude-3-haiku | ✓ | ✓ | ✓ |
| amazon.titan-text-premier | ✗ | ✗ | ✓ |
| meta.llama3-70b-instruct | ✗ | ✓ | ✓ |