Introduction
The Bedrock Chat API provides programmatic access to conversational AI powered by Amazon Bedrock. This RESTful API allows you to create conversations, manage bots, and integrate chat functionality into your applications.Base URL
All API requests should be made to your deployed API Gateway endpoint:Authentication
The Bedrock Chat API uses two authentication methods depending on the endpoint:1. Cognito JWT Authentication
For regular application endpoints, authentication is done using AWS Cognito JWT tokens. Required Headers:- Algorithm: RS256
- Audience: Must match the Cognito Client ID
- Valid signature from Cognito
2. API Key Authentication
For published bot APIs, authentication uses API keys created through the bot publication flow. Required Headers:Request Format
All POST and PATCH requests must include:Response Format
All responses are returned in JSON format:Error Handling
The API uses standard HTTP status codes:| Status Code | Description |
|---|---|
| 200 | Success |
| 400 | Bad Request - Invalid parameters |
| 401 | Unauthorized - Invalid or missing authentication |
| 403 | Forbidden - Insufficient permissions |
| 404 | Not Found - Resource doesn’t exist |
| 409 | Conflict - Resource state conflict |
| 500 | Internal Server Error |
Rate Limiting
For published APIs, rate limiting can be configured per bot with:- Quota: Request limits per time period (DAY/WEEK/MONTH)
- Throttle: Rate limit (requests per second) and burst limit
Health Check
You can verify API availability using the health check endpoint:Available Models
The API supports the following models:Claude Models
claude-v4-opusclaude-v4.1-opusclaude-v4.5-opusclaude-v4-sonnetclaude-v4.5-sonnetclaude-v4.5-haikuclaude-v3.5-sonnetclaude-v3.5-sonnet-v2claude-v3.7-sonnetclaude-v3.5-haikuclaude-v3-haikuclaude-v3-opus
Mistral Models
mistral-7b-instructmixtral-8x7b-instructmistral-largemistral-large-2
Amazon Nova Models
amazon-nova-proamazon-nova-liteamazon-nova-micro
Other Models
deepseek-r1llama3-3-70b-instructllama3-2-1b-instructllama3-2-3b-instructllama3-2-11b-instructllama3-2-90b-instructgpt-oss-20bgpt-oss-120b
Content Types
The API supports multiple content types in messages:- text: Plain text content
- image: Base64-encoded images (Claude 3+ only)
- attachment: File attachments
- toolUse: Tool invocation requests
- toolResult: Tool execution results
- reasoning: Reasoning traces (for reasoning-enabled models)
Next Steps
Conversations
Learn about conversation management endpoints
Bots
Explore bot creation and management
Bot Store
Discover bot store and search functionality
Published APIs
Publish and share bot APIs