Overview - Amazon Bedrock (original) (raw)
Amazon Bedrock is a fully managed service that provides secure, enterprise-grade access to high-performing foundation models from leading AI companies, enabling you to build and scale generative AI applications.
Quickstart
Read the Quickstart to write your first API call using Amazon Bedrock in under five minutes.
Messages API
import anthropic
client = anthropic.Anthropic()
response = client.messages.create(
model="anthropic.claude-opus-4-7",
max_tokens=1024,
messages=[{"role": "user", "content": "Can you explain the features of Amazon Bedrock?"}]
)
print(response)Responses API
from openai import OpenAI
client = OpenAI()
response = client.responses.create(
model="openai.gpt-oss-120b",
input="Can you explain the features of Amazon Bedrock?"
)
print(response)Chat Completions API
from openai import OpenAI
client = OpenAI()
response = client.chat.completions.create(
model="openai.gpt-oss-120b",
messages=[{"role": "user", "content": "Can you explain the features of Amazon Bedrock?"}]
)
print(response)Converse API
import boto3
client = boto3.client('bedrock-runtime', region_name='us-east-1')
response = client.converse(
modelId='anthropic.claude-opus-4-7',
messages=[
{
'role': 'user',
'content': [{'text': 'Can you explain the features of Amazon Bedrock?'}]
}
]
)
print(response)Invoke API
import json
import boto3
client = boto3.client('bedrock-runtime', region_name='us-east-1')
response = client.invoke_model(
modelId='anthropic.claude-opus-4-7',
body=json.dumps({
'anthropic_version': 'bedrock-2023-05-31',
'messages': [{ 'role': 'user', 'content': 'Can you explain the features of Amazon Bedrock?'}],
'max_tokens': 1024
})
)
print(json.loads(response['body'].read()))Supported models
Bedrock supports 100+ foundation models from industry-leading providers, including Amazon, Anthropic, DeepSeek, Moonshot AI, MiniMax, and OpenAI.
Amazon Nova |
Claude |
DeepSeek |
Kimi |
MiniMax |
OpenAI |
|---|
What's new?
- OpenAI GPT-5.5 and GPT-5.4 now available in Amazon Bedrock: OpenAI's frontier models for complex professional work, agentic coding, reasoning, and long-running tasks are now available through the Responses API on Amazon Bedrock. See the GPT-5.5 and GPT-5.4 model cards for details.
- Claude Opus 4.7 now available in Amazon Bedrock: Anthropic's most capable Opus model to date, delivering improvements across agentic coding, professional work, and long-running tasks.
- Claude Mythos Preview (Gated Research Preview): Anthropic's most advanced AI model with state-of-the-art capabilities across cybersecurity, software coding, and complex reasoning tasks. Available in gated preview in US East (N. Virginia).
- Cost allocation by IAM user and role: Amazon Bedrock now supports cost allocation by IAM principal in AWS Cost and Usage Report 2.0 and Cost Explorer, enabling customers to attribute model inference costs across users, teams, and projects.
Amazon Nova
Claude
DeepSeek
Kimi
MiniMax
OpenAI