Claude 2.1 on AWS Bedrock

Claude 2 · Anthropic

Serverless

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

Why use Claude 2.1 on AWS Bedrock?

AWS Bedrock offers Claude 2.1 with pay-as-you-go pricing at $8.00/1M input tokens. 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 2.1 across 2 providers to find the best fit for your use case
Input / 1M
$8.00
Output / 1M
$24.00
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="claude-2.1",
Model ID
claude-2.1

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="claude-2.1",
    messages=[{
        "role": "user",
        "content": [{"text": "Hello"}]
    }]
)
print(response["output"]["message"]["content"][0]["text"])

Gotchas

  • 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 2.1 Across Providers

ProviderInput (per 1M)Output (per 1M)
AWS Bedrock$8.00$24.00
Anthropic$8.00$24.00

Pricing

TypePrice (per 1M)
Input tokens$8.00
Output tokens$24.00

Capabilities

Structured Outputs

About Claude 2.1

Claude 2.1, developed by Anthropic, is a cutting-edge large language AI model that significantly advances conversational AI. It features an impressive 200,000-token context window, allowing for the processing of extensive documents, surpassing the capabilities of many rivals. A notable improvement in Claude 2.1 is the reduction in hallucination rates, halving false statements compared to Claude 2.0, resulting in more accurate outputs. Additionally, it offers enhanced comprehension and summarization abilities, particularly for complex texts. The model includes a beta API integration feature, increasing its utility in various workflows. While its progress is notable, ongoing enhancements and user feedback remain vital.

Get Started

Model Specs

Released2023-11-21
Context200k
ArchitectureDecoder Only
Knowledge cutoff2023-01

Related Models on AWS Bedrock