Claude Sonnet 5 on AWS Bedrock

Claude 5 · Anthropic

Serverless

Last refreshed 2026-07-26. Next refresh: weekly.

Why use Claude Sonnet 5 on AWS Bedrock?

AWS Bedrock offers Claude Sonnet 5 with competitive pricing. AWS Bedrock is Amazon's fully managed foundation-model service, providing unified API access to top models from Anthropic, Meta, Mistral, and other leading AI labs with built-in tools for RAG, fine-tuning, and AI agent development.

Compare Claude Sonnet 5 across 5 providers to find the best fit for your use case
Input / 1M
-
Output / 1M
-
Cache
Not sourced
Batch
Not sourced

Setup recipe

Python + curl
Install
pip install boto3
Auth
export AWS_ACCESS_KEY_ID=...
Call
import boto3
client = boto3.client("bedrock-runtime", region_name="us-east-1")
response = client.converse(
    modelId="anthropic.claude-sonnet-5",
Model ID
anthropic.claude-sonnet-5

Request example

import boto3

# Reads AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_DEFAULT_REGION from env
client = boto3.client("bedrock-runtime", region_name="us-east-1")
response = client.converse(
    modelId="anthropic.claude-sonnet-5",
    messages=[{
        "role": "user",
        "content": [{"text": "Hello"}]
    }]
)
print(response["output"]["message"]["content"][0]["text"])

Gotchas

  • Use provider model ID "anthropic.claude-sonnet-5", not the LLMReference slug "claude-sonnet-5".
  • Use Amazon Bedrock model IDs, e.g. "anthropic.claude-3-opus-20240229-v1:0" for on-demand, or cross-region inference profile IDs like "us.anthropic.claude-opus-4-7-20251101-v1:0". These differ from the public model slug.
  • The endpoint template includes a region segment; set the same region in your SDK/client configuration.
  • The examples expect AWS_ACCESS_KEY_ID; rename it only if your application config maps the new variable.

Compare Claude Sonnet 5 Across Providers

ProviderInput (per 1M)Output (per 1M)
Anthropic$2.00$10.00
AWS Bedrock——
GCP Vertex AI$2.00$10.00
OpenRouter$2.00$10.00
Microsoft Foundry——

Capabilities

VisionMultimodalReasoningJSON / Tool useStructured OutputsCode ExecutionPrompt CachingBatch API

About Claude Sonnet 5

Claude Sonnet 5 is Anthropic's next-generation Sonnet model for agentic coding, tool use, computer use, and professional work. It is a proprietary decoder-only model with a 1M-token context window, 128K max output, multimodal vision, adaptive thinking, function calling, structured outputs, prompt caching, and Batch API support. It is available through the Claude API, AWS Bedrock, Google Cloud Vertex AI, Microsoft Foundry preview, and OpenRouter. Anthropic lists durable standard pricing at $3/1M input and $15/1M output tokens, with introductory $2/$10 pricing through 2026-08-31.

Get Started

Model Specs

Released2026-06-30
Context1m
ArchitectureDecoder Only
Knowledge cutoff2026-01

Related Models on AWS Bedrock