View a markdown version of this page

Claude Soneto 5 - Amazon Bedrock

As traduções são geradas por tradução automática. Em caso de conflito entre o conteúdo da tradução e da versão original em inglês, a versão em inglês prevalecerá.

Claude Soneto 5

Ícone quadrado arredondado laranja com carregamento radial branco ou símbolo indicador de progresso. Antrópico — Claude Sonnet 5

Detalhes do modelo

O Claude Sonnet 5 é o modelo Sonnet mais eficiente da Anthropic, criado para programação, agentes e trabalho profissional em grande escala. Ele traz inteligência quase Opus para o modelo que as equipes administram todos os dias, com o mesmo equilíbrio de capacidade, custo e velocidade para os quais as equipes já confiam no Sonnet.

  • Data de lançamento do modelo: 30 de junho de 2026

  • Data EOL do modelo: N/A

  • Contratos de licença de usuário final e termos de uso: termos Third-party modelo

  • Ciclo de vida do modelo: Ativo

  • Janela de contexto: 1 milhão de tokens

  • Tokens de saída máximos: 128K

  • Raciocínio: suportado (o pensamento adaptativo está sempre ativo e não pode ser desativado; o nível de esforço é configurável)

  • Limite de conhecimento: janeiro de 2026

  • ID do produto do Marketplace: prod-4ezhkeia6k2cs

Modalidades de entrada Modalidades de saída APIs suportadas Endpoints suportados
Red circle with white X icon indicating error, cancel, or close action.ÁudioRed circle with white X icon indicating error, cancel, or close action.IncorporaçãoRed circle with white X icon indicating error, cancel, or close action. ResponsesGreen circle with white checkmark icon. bedrock-runtime
Green circle with white checkmark icon.ImagemRed circle with white X icon indicating error, cancel, or close action.ImagemRed circle with white X icon indicating error, cancel, or close action. Chat CompletionsGreen circle with white checkmark icon. bedrock-mantle
Red circle with white X icon indicating error, cancel, or close action.DiscursoRed circle with white X icon indicating error, cancel, or close action.DiscursoGreen circle with white checkmark icon. Invoke
Green circle with white checkmark icon.TextoGreen circle with white checkmark icon.TextoGreen circle with white checkmark icon. Converse
Red circle with white X icon indicating error, cancel, or close action.VídeoRed circle with white X icon indicating error, cancel, or close action.VídeoGreen circle with white checkmark icon. Messages
dica

Sempre que possível, recomendamos usar o bedrock-runtime endpoint para novos aplicativos. Para mais detalhes, consulte Endpoints compatíveis com o Amazon Bedrock.

Capacidades e características

Características do Bedrock

Recursos compatíveis com o uso do bedrock-runtime endpoint

Recursos compatíveis com o uso do bedrock-mantle endpoint

Armazenamento imediato em cache

Para obter mais informações, consulte Armazenamento em cache imediato para uma inferência de modelo mais rápida.

Suporte para cache imediato Número mínimo de tokens por ponto de verificação de cache Máximo de pontos de verificação de cache por solicitação TTL suportado Campos que aceitam pontos de verificação de cache instantâneos
Sim 4.096 4 5 minutos, 1 hora system, messages, e tools

Uso do computador usando bedrock-runtime bedrock-mantle terminais

Para obter mais informações, consulte Uso do computador.

Tipo de ferramenta Cabeçalho beta
computer_20251124 computer-use-2025-11-24

Preços

Para saber os preços, consulte a página de preços do Amazon Bedrock.

Acesso programático

Use os seguintes IDs de modelo e URLs de endpoint para acessar esse modelo de forma programática. Para obter mais informações sobre as APIs e endpoints disponíveis, consulte APIs suportadas e Endpoints suportados.

Endpoint ID do modelo In-Region URL do endpoint ID de inferência geográfica ID de inferência global
bedrock-runtime anthropic.claude-sonnet-5 N/A

us.anthropic.claude-sonnet-5

eu.anthropic.claude-sonnet-5

au.anthropic.claude-sonnet-5

global.anthropic.claude-sonnet-5
bedrock-mantle anthropic.claude-sonnet-5 https://bedrock-mantle.{region}.api.aws/anthropic/v1/messages N/A N/A

Por exemplo, se a região for us-east-1 (Norte da Virgínia), a URL do endpoint bedrock-runtime será "" e a URL do endpoint bedrock-mantle será https://bedrock-runtime.us-east-1.amazonaws.com "”. https://bedrock-mantle.us-east-1.api.aws/anthropic/v1/messages

Níveis de serviço

O Amazon Bedrock oferece vários níveis de serviço para atender às suas necessidades de carga de trabalho. O Standard fornece acesso pago por token sem compromisso (defina "service_tier": "default" ou omita o campo). O Priority oferece os tempos de resposta mais rápidos por um preço premium (conjunto"service_tier": "priority"). O Flex fornece acesso de baixo custo para cargas de trabalho flexíveis e não sensíveis ao tempo (conjunto). "service_tier": "flex" O Reserved fornece uma taxa de transferência dedicada com um compromisso de prazo para cargas de trabalho previsíveis; ela é definida no nível da conta e não por solicitação (entre em contato com sua equipe de contas da AWS para habilitar). Para obter mais informações, consulte os níveis bedrock/latest/userguide/service-tiers-inference.html de serviço.

Padrão Priority Flexionar Reservado
Green circle with white checkmark icon. Red circle with white X icon indicating error, cancel, or close action. Red circle with white X icon indicating error, cancel, or close action. Red circle with white X icon indicating error, cancel, or close action.

Disponibilidade regional

Visão geral da disponibilidade regional

O Amazon Bedrock oferece três opções de inferência:

  • In-Regionmantém as solicitações em uma única região para conformidade estrita.

  • Cross-RegionRoteia geograficamente entre regiões dentro de uma geografia (como EUA, UE e APAC), respeitando a residência dos dados.

  • Cross-RegionRotas globais em qualquer lugar do mundo, quando não há restrições de residência.

Para obter mais detalhes, consulte a Disponibilidade regional por modelos página.

Região In-Region Geo Global
us-east-1(Norte da Virgínia)Green circle with white checkmark icon.Green circle with white checkmark icon.Green circle with white checkmark icon.
us-east-2(Ohio)Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.Green circle with white checkmark icon.
us-west-1(Norte da Califórnia)Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.Green circle with white checkmark icon.
us-west-2(Oregon)Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.Green circle with white checkmark icon.
ca-central-1(Canadá)Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.Green circle with white checkmark icon.
ca-west-1(Calgary)Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.Green circle with white checkmark icon.
eu-central-1(Frankfurt)Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.Green circle with white checkmark icon.
eu-central-2(Zurique)Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.Green circle with white checkmark icon.
eu-north-1(Estocolmo)Green circle with white checkmark icon.Green circle with white checkmark icon.Green circle with white checkmark icon.
eu-south-1(Milão)Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.Green circle with white checkmark icon.
eu-south-2(Espanha)Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.Green circle with white checkmark icon.
eu-west-1(Irlanda)Green circle with white checkmark icon.Green circle with white checkmark icon.Green circle with white checkmark icon.
eu-west-2(Londres)Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.Green circle with white checkmark icon.
eu-west-3(Paris)Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.Green circle with white checkmark icon.
ap-east-2(Taipé)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
ap-northeast-1(Tóquio)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
ap-northeast-2(Seul)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
ap-northeast-3(Osaka)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
ap-south-1(Mumbai)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
ap-south-2(Hyderabad)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
ap-southeast-1(Cingapura)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
ap-southeast-2(Sidney)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
ap-southeast-3(Jacarta)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
ap-southeast-4(Melbourne)Green circle with white checkmark icon.Green circle with white checkmark icon.Green circle with white checkmark icon.
ap-southeast-5(Malásia)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
ap-southeast-6(Nova Zelândia)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
ap-southeast-7(Tailândia)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
il-central-1(Telavive)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
me-central-1(EMIRADOS ÁRABES UNIDOS)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
me-south-1(Bahrein)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
af-south-1(Cidade do Cabo)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
sa-east-1(São Paulo)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
mx-central-1(México)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
us-gov-west-1(GovCloud Oeste)Green circle with white checkmark icon.Green circle with white checkmark icon.Red circle with white X icon indicating error, cancel, or close action.
us-gov-east-1(GovCloud Leste)Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.Red circle with white X icon indicating error, cancel, or close action.

Residência de dados

  • US geo (us.anthropic.claude-sonnet-5): mantém os dados nas regiões dos EUA e Canadá.

  • EU geo (eu.anthropic.claude-sonnet-5): mantém os dados nas regiões da UE.

  • AU geo (au.anthropic.claude-sonnet-5): mantém os dados nas regiões da Austrália.

  • Global (global.anthropic.claude-sonnet-5): rotas em todo o mundo sem restrições de residência.

Cotas e limites

Sua AWS conta tem cotas padrão para o Amazon Bedrock. Essas cotas podem mudar dependendo de fatores regionais, histórico de pagamentos ou aprovação de uma solicitação de aumento de cota. Para obter mais detalhes, consulte Cotas do Amazon Bedrock e os limites do modelo.

Código de exemplo

Etapa 1 - AWS Conta: Se você já tem uma AWS conta, pule esta etapa. Se você não conhece AWS, cadastre-se em uma conta da AWS.

Etapa 2 - Chave de API: abra o console do Amazon Bedrock e gere uma chave de API de longo prazo.

Etapa 3 - Obtenha o SDK: para usar este guia de introdução, você deve ter o Python já instalado. Em seguida, instale o software relevante, dependendo das APIs que você está usando.

Messages API
pip install -U "anthropic[bedrock]"
Invoke/Converse API
pip install boto3

Etapa 4 - Definir variáveis de ambiente: configure seu ambiente para usar a chave de API para autenticação.

Messages API
AWS_BEARER_TOKEN_BEDROCK="<provide your Bedrock API key>"
Invoke/Converse API
AWS_BEARER_TOKEN_BEDROCK="<provide your Bedrock API key>"

Etapa 5 - Execute sua primeira solicitação de inferência: salve o arquivo como bedrock-first-request.py

Messages API
from anthropic import AnthropicBedrockMantle client = AnthropicBedrockMantle(aws_region="us-east-1") message = client.messages.create( model="anthropic.claude-sonnet-5", max_tokens=1024, messages=[{"role": "user", "content": "Can you explain the features of Amazon Bedrock?"}], ) print(message.content[0].text)
Invoke API
import json import boto3 client = boto3.client('bedrock-runtime', region_name='us-east-1') response = client.invoke_model( modelId='anthropic.claude-sonnet-5', 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()))
Converse API
import boto3 client = boto3.client('bedrock-runtime', region_name='us-east-1') response = client.converse( modelId='anthropic.claude-sonnet-5', messages=[ { 'role': 'user', 'content': [{'text': 'Can you explain the features of Amazon Bedrock?'}] } ] ) print(response)