LLM Reference
AWS Bedrock

Claude Sonnet 5 on AWS Bedrock

Claude 5 · Anthropic

Serverless

Last refreshed 2026-06-30. 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$3.00$15.00
AWS Bedrock
GCP Vertex AI$3.00$15.00
OpenRouter$2.00$10.00
Microsoft Foundry

Capabilities

VisionMultimodalReasoningFunction CallingTool 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.

FAQ

What is the context window for Claude Sonnet 5 on AWS Bedrock?

Claude Sonnet 5 supports a 1m token context window on AWS Bedrock.

How does AWS Bedrock compare to other Claude Sonnet 5 providers?

Claude Sonnet 5 is available from 5 providers. The cheapest input pricing is $2/1M tokens from OpenRouter.

What API model ID do I use for Claude Sonnet 5 on AWS Bedrock?

Use the model ID anthropic.claude-sonnet-5 when calling AWS Bedrock's API.

Who created Claude Sonnet 5?

Claude Sonnet 5 was created by Anthropic as part of the Claude 5 model family.

Is Claude Sonnet 5 open source?

Claude Sonnet 5 is not open source; the seed data lists it as proprietary.

Get Started

Model Specs

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