View a markdown version of this page

Claude Sonnet 5 - Amazon Bedrock

Las traducciones son generadas a través de traducción automática. En caso de conflicto entre la traducción y la version original de inglés, prevalecerá la version en inglés.

Claude Sonnet 5

Icono cuadrado redondeado de color naranja con un símbolo blanco de carga radial o indicador de progreso. Antrópico — Claude Sonnet 5

Detalles del modelo

Claude Sonnet 5 es el modelo Sonnet más capaz de Anthropic, creado para la programación, los agentes y el trabajo profesional a gran escala. Aporta una inteligencia cercana a la de las demás al modelo que los equipos utilizan todos los días, con el mismo equilibrio entre capacidad, coste y velocidad en el que los equipos ya confían en Sonnet.

  • Fecha de lanzamiento del modelo: 30 de junio de 2026

  • Fecha de fin de vida útil del modelo: N/A

  • Acuerdos de licencia de usuario final y condiciones de uso: términos Third-party modelo

  • Ciclo de vida del modelo: activo

  • Ventana de contexto: 1 millón de tokens

  • Tokens de salida máximos: 128 K

  • Razonamiento: compatible (el pensamiento adaptativo está siempre activo y no se puede desactivar; el nivel de esfuerzo es configurable)

  • Límite de conocimiento: enero de 2026

  • ID del producto de Marketplace: prod-4ezhkeia6k2cs

Modalidades de entrada Modalidades de salida API compatibles Endpoints compatibles
Red circle with white X icon indicating error, cancel, or close action.AudioRed circle with white X icon indicating error, cancel, or close action.IncrustaciónRed 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.ImagenRed circle with white X icon indicating error, cancel, or close action.ImagenRed 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
sugerencia

Siempre que sea posible, recomendamos usar el bedrock-runtime punto final para aplicaciones nuevas. Para obtener más información, consulte Terminales compatibles con Amazon Bedrock.

Capacidades y características

Características de Bedrock

Funciones compatibles con el punto final bedrock-runtime

Funciones compatibles con el bedrock-mantle punto final

Almacenamiento en caché rápido

Para obtener más información, consulte Almacenamiento rápido en caché para una inferencia más rápida del modelo.

Se admite el almacenamiento rápido en caché Número mínimo de tokens por punto de control de caché Número máximo de puntos de control de caché por solicitud TTL compatible Campos que aceptan puntos de control de caché rápidos
4.096 4 5 minutos, 1 hora system, messages, y tools

Uso del ordenador bedrock-runtime y puntos bedrock-mantle finales

Para obtener más información, consulte Uso del ordenador.

Tipo de herramienta Encabezado beta
computer_20251124 computer-use-2025-11-24

Precios

Para ver los precios, consulte la página de precios de Amazon Bedrock.

Acceso programático

Utilice los siguientes ID de modelo y URL de punto final para acceder a este modelo mediante programación. Para obtener más información sobre las API y los puntos de conexión disponibles, consulte las API compatibles y los puntos de conexión compatibles. bedrock/latest/userguide/endpoints.html

Punto de conexión ID del modelo In-Region URL de punto final ID de inferencia geográfica ID de inferencia 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 ejemplo, si la región es us-east-1 (norte de Virginia), la URL del punto final de bedrock-runtime es "» y la URL del punto final de bedrock-mantle es https://bedrock-runtime.us-east-1.amazonaws.com "». https://bedrock-mantle.us-east-1.api.aws/anthropic/v1/messages

Niveles de servicio

Amazon Bedrock ofrece varios niveles de servicio para adaptarse a sus requisitos de carga de trabajo. La versión estándar proporciona acceso de pago por token sin compromiso (defina "service_tier": "default" u omita el campo). Priority ofrece los tiempos de respuesta más rápidos por un precio superior (fijo). "service_tier": "priority" Flex proporciona un acceso de menor costo para cargas de trabajo flexibles y que no requieren tiempo (conjunto). "service_tier": "flex" Reserved proporciona un rendimiento dedicado con un compromiso temporal para cargas de trabajo predecibles; se establece a nivel de cuenta y no por solicitud (póngase en contacto con su equipo de cuentas de AWS para habilitarlo). Para obtener más información, consulte los niveles de servicio.

Estándar Priority (Prioridad) Flex 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.

Disponibilidad regional

La disponibilidad regional de un vistazo

Amazon Bedrock ofrece tres opciones de inferencia:

  • In-Regionmantiene las solicitudes dentro de una sola región para garantizar un cumplimiento estricto.

  • Cross-RegionRutas geográficas a través de regiones dentro de una geografía (como EE. UU., UE y APAC) respetando la residencia de los datos.

  • Cross-RegionRutas globales a cualquier parte del mundo cuando no hay restricciones de residencia.

Para obtener más información, consulta la Disponibilidad regional por modelos página.

Region In-Region Geo Global
us-east-1(Virginia del Norte)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 de California)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(Oregón)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(Fráncfort)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(Zúrich)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án)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(España)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(París)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éi)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(Tokio)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(Seúl)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(Bombay)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(Singapur)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(Sídney)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(Yakarta)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(Malasia)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(Nueva Zelanda)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(Tailandia)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(Tel Aviv)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(EMIRATOS Á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(Bahréin)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(Ciudad del 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 Este)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.

Residencia de datos

  • US geo (us.anthropic.claude-sonnet-5): mantiene los datos dentro de las regiones de EE. UU. y Canadá.

  • EU geo (eu.anthropic.claude-sonnet-5): guarda los datos dentro de las regiones de la UE.

  • AU geo (au.anthropic.claude-sonnet-5): guarda los datos dentro de las regiones de Australia.

  • Global (global.anthropic.claude-sonnet-5): rutas por todo el mundo sin restricciones de residencia.

Cuotas y límites

Su AWS cuenta tiene cuotas predeterminadas para Amazon Bedrock. Estas cuotas pueden cambiar según los factores regionales, el historial de pagos o la aprobación de una solicitud de aumento de cuota. Para obtener más información, consulta la sección Cuotas para Amazon Bedrock y general/latest/gr/bedrock.html#limits_bedrock los límites del modelo.

Código de muestra

Paso 1: AWS Cuenta: Si ya tienes una AWS cuenta, omite este paso. Si es la primera vez que lo AWS hace, regístrese para obtener una cuenta de AWS.

Paso 2: clave de API: abra la consola de Amazon Bedrock y genere una clave de API a largo plazo.

Paso 3: Obtenga el SDK: para utilizar esta guía de introducción, debe tener Python ya instalado. A continuación, instale el software correspondiente en función de las API que esté utilizando.

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

Paso 4: Configure las variables de entorno: configure su entorno para usar la clave de API para la autenticación.

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

Paso 5: Ejecute su primera solicitud de inferencia: guarde el archivo 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)