View a markdown version of this page

Claude Sonnet 5 - Amazon Bedrock

Les traductions sont fournies par des outils de traduction automatique. En cas de conflit entre le contenu d'une traduction et celui de la version originale en anglais, la version anglaise prévaudra.

Claude Sonnet 5

Icône carrée arrondie orange avec symbole blanc de chargement radial ou d'indicateur de progression. Anthropique — Claude Sonnet 5

Détails du modèle

Claude Sonnet 5 est le modèle Sonnet le plus performant d'Anthropic, conçu pour le codage, les agents et le travail professionnel à grande échelle. Il apporte une intelligence proche de celle de la technologie OPUS aux équipes chargées de la modélisation, avec le même équilibre entre capacités, coûts et rapidité que les équipes utilisent déjà Sonnet.

  • Date de lancement du modèle : 30 juin 2026

  • Date de fin de vie du modèle : N/A

  • Contrats de licence et conditions d'utilisation pour l'utilisateur final : termes Third-party types

  • Cycle de vie du modèle : actif

  • Fenêtre contextuelle : 1 million de jetons

  • Nombre maximum de jetons de sortie : 128 K

  • Raisonnement : soutenu (la pensée adaptative est toujours activée et ne peut pas être désactivée ; le niveau d'effort est configurable)

  • Limite des connaissances : janvier 2026

  • Identifiant du produit Marketplace : prod-4ezhkeia6k2cs

Modalités de saisie Modalités de sortie API prises en charge Points de terminaison pris en charge
Red circle with white X icon indicating error, cancel, or close action.AudioRed circle with white X icon indicating error, cancel, or close action.InsertionRed 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.ImageRed circle with white X icon indicating error, cancel, or close action.ImageRed 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.DiscoursRed circle with white X icon indicating error, cancel, or close action.DiscoursGreen circle with white checkmark icon. Invoke
Green circle with white checkmark icon.TexteGreen circle with white checkmark icon.TexteGreen circle with white checkmark icon. Converse
Red circle with white X icon indicating error, cancel, or close action.VidéoRed circle with white X icon indicating error, cancel, or close action.VidéoGreen circle with white checkmark icon. Messages
Astuce

Dans la mesure du possible, nous vous recommandons d'utiliser le bedrock-runtime point de terminaison pour les nouvelles applications. Consultez Points de terminaison pris en charge par Amazon Bedrock pour plus de détails.

Capacités et fonctionnalités

Caractéristiques de Bedrock

Fonctionnalités prises en charge via bedrock-runtime Endpoint

Fonctionnalités prises en charge via bedrock-mantle Endpoint

Mise en cache rapide

Pour plus d'informations, voir Mise en cache rapide pour une inférence de modèle plus rapide.

Mise en cache rapide prise en charge Nombre minimal de jetons par point de contrôle du cache Nombre maximum de points de contrôle du cache par demande TTL pris en charge Champs acceptant les points de contrôle rapides du cache
Oui 4 096 4 5 minutes, 1 heure system, messages et tools

Utilisation de l'ordinateur bedrock-runtime et bedrock-mantle terminaux

Pour plus d'informations, consultez la section Utilisation de l'ordinateur.

Type d'outil En-tête bêta
computer_20251124 computer-use-2025-11-24

Tarification

Pour connaître les tarifs, consultez la page de tarification d'Amazon Bedrock.

Accès programmatique

Utilisez les ID de modèle et les URL de point de terminaison suivants pour accéder à ce modèle par programmation. Pour plus d'informations sur les API et les points de terminaison disponibles, consultez les sections API prises en charge et Points de terminaison pris en charge.

Point de terminaison ID du modèle In-Region URL du terminal ID d'inférence géographique ID d'inférence 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

Par exemple, si la région est us-east-1 (Virginie du Nord), l'URL du point de terminaison du cœur d'exécution est « » et l'URL du point de terminaison du manteau rocheux est https://bedrock-runtime.us-east-1.amazonaws.com « ». https://bedrock-mantle.us-east-1.api.aws/anthropic/v1/messages

Niveaux de service

Amazon Bedrock propose plusieurs niveaux de service pour répondre à vos exigences en matière de charge de travail. Standard fournit un accès au paiement par jeton sans engagement (définissez "service_tier": "default" ou omettez le champ). Priority offre les temps de réponse les plus rapides pour un prix plus élevé (fixe"service_tier": "priority"). Flex fournit un accès à moindre coût pour des charges de travail flexibles et non sensibles au facteur temps (set). "service_tier": "flex" Reserved fournit un débit dédié assorti d'un engagement à terme pour des charges de travail prévisibles ; il est défini au niveau du compte plutôt que par demande (contactez l'équipe responsable de votre compte AWS pour l'activer). Pour plus d'informations, consultez la section Niveaux de service.

Standard Priorité Flexible Réservé
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.

Disponibilité par région

La disponibilité régionale en un coup d'œil

Amazon Bedrock propose trois options d'inférence :

  • In-Regionconserve les demandes au sein d'une seule région pour une stricte conformité.

  • Cross-RegionRoutes géographiques à travers les régions d'une même zone géographique (États-Unis, UE et APAC, par exemple) tout en respectant la résidence des données.

  • Des Cross-Region itinéraires internationaux partout dans le monde lorsqu'il n'y a aucune contrainte de résidence.

Pour plus de détails, consultez la Disponibilité régionale par modèle page.

Région In-Region Géo Solution internationale
us-east-1(Virginie du Nord)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(Californie du Nord)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(Canada)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(Francfort)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(Stockholm)Green circle with white checkmark icon.Green circle with white checkmark icon.Green circle with white checkmark icon.
eu-south-1(Milan)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(Espagne)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(Irlande)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(Taipei)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ōkyō)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(Séoul)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(Singapour)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(Sydney)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(Jakarta)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(Malaisie)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(Nouvelle-Zélande)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(Thaïlande)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(Émirats arabes unis)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(Bahreïn)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(Le Cap)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(Mexique)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 Ouest)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 Est)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.

Résidence des données

  • Géographie des États-Unis (us.anthropic.claude-sonnet-5) : conserve les données dans les régions des États-Unis et du Canada.

  • Géographie de l'UE (eu.anthropic.claude-sonnet-5) : conserve les données dans les régions de l'UE.

  • Géographie au (au.anthropic.claude-sonnet-5) : conserve les données dans les régions de l'Australie.

  • Global (global.anthropic.claude-sonnet-5) : itinéraires dans le monde entier sans contraintes de résidence.

Quotas et limites

Votre AWS compte possède des quotas par défaut pour Amazon Bedrock. Ces quotas peuvent changer en fonction de facteurs régionaux, de l'historique des paiements ou de l'approbation d'une demande d'augmentation de quota. Pour plus de détails, reportez-vous à la section Quotas pour Amazon Bedrock et aux limites du modèle.

Exemple de code

Étape 1 - AWS Compte : Si vous avez déjà un AWS compte, ignorez cette étape. Si vous êtes nouveau sur AWS AWS, créez un compte AWS.

Étape 2 - Clé API : ouvrez la console Amazon Bedrock et générez une clé API à long terme.

Étape 3 - Téléchargez le SDK : pour utiliser ce guide de démarrage, Python doit déjà être installé. Installez ensuite le logiciel approprié en fonction des API que vous utilisez.

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

Étape 4 - Définissez les variables d'environnement : configurez votre environnement pour utiliser la clé API pour l'authentification.

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

Étape 5 - Exécutez votre première demande d'inférence : enregistrez le fichier sous 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)