View a markdown version of this page

Claude Sonnet 5 - Amazon Bedrock

Le traduzioni sono generate tramite traduzione automatica. In caso di conflitto tra il contenuto di una traduzione e la versione originale in Inglese, quest'ultima prevarrà.

Claude Sonnet 5

Icona quadrata arrotondata arancione con simbolo radiale bianco di caricamento o indicatore di avanzamento. Antropico — Claude Sonnet 5

Dettagli del modello

Claude Sonnet 5 è il modello Sonnet più capace di Anthropic, progettato per la codifica, gli agenti e il lavoro professionale su larga scala. Fornisce un'intelligenza quasi all'Opus ai modelli che i team gestiscono ogni giorno, con lo stesso equilibrio tra capacità, costi e velocità per cui i team si affidano già a Sonnet.

  • Data di lancio del modello: 30 giugno 2026

  • Data EOL del modello: N/A

  • Contratti di licenza con l'utente finale e condizioni d'uso: termini Third-party modello

  • Ciclo di vita del modello: attivo

  • Finestra contestuale: 1 milione di token

  • Token di uscita massimi: 128K

  • Ragionamento: supportato (il pensiero adattivo è sempre attivo e non può essere disabilitato; il livello di impegno è configurabile)

  • Chiusura delle conoscenze: gennaio 2026

  • ID prodotto Marketplace: prod-4ezhkeia6k2cs

Modalità di immissione Modalità di output API supportate Endpoint supportati
Red circle with white X icon indicating error, cancel, or close action.AudioRed circle with white X icon indicating error, cancel, or close action.IncorporamentoRed 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.ImmagineRed circle with white X icon indicating error, cancel, or close action.ImmagineRed 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.DiscorsoRed circle with white X icon indicating error, cancel, or close action.DiscorsoGreen circle with white checkmark icon. Invoke
Green circle with white checkmark icon.TestoGreen circle with white checkmark icon.TestoGreen circle with white checkmark icon. Converse
Red circle with white X icon indicating error, cancel, or close action.VideoRed circle with white X icon indicating error, cancel, or close action.VideoGreen circle with white checkmark icon. Messages
Suggerimento

Quando possibile, consigliamo di utilizzare l'bedrock-runtimeendpoint per nuove applicazioni. Per informazioni dettagliate, vedi Endpoint supportati da Amazon Bedrock.

Funzionalità e caratteristiche

Caratteristiche di Bedrock

Funzionalità supportate tramite endpoint bedrock-runtime

Funzionalità supportate tramite endpoint bedrock-mantle

Memorizzazione nella cache rapida

Per ulteriori informazioni, consulta Prompt caching per una più rapida inferenza del modello.

La memorizzazione nella cache rapida è supportata Numero minimo di token per checkpoint della cache Numero massimo di checkpoint della cache per richiesta TTL supportato Campi che accettano i checkpoint della cache con prompt
4,096 4 5 minuti, 1 ora system, messages e tools

Uso del computer, utilizzo bedrock-runtime ed bedrock-mantle endpoint

Per ulteriori informazioni, vedere Uso bedrock/latest/userguide/computer-use.html del computer.

Tipo di strumento Intestazione beta
computer_20251124 computer-use-2025-11-24

Prezzi

Per i prezzi, consulta la pagina dei prezzi di Amazon Bedrock.

Accesso programmatico

Utilizzate i seguenti ID del modello e URL degli endpoint per accedere a questo modello a livello di codice. Per ulteriori informazioni sulle API e sugli endpoint disponibili, consulta API supportate ed Endpoint supportati. bedrock/latest/userguide/endpoints.html

Endpoint ID del modello In-Region URL dell'endpoint ID di geo-inferenza ID di inferenza globale
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

Ad esempio, se la regione è us-east-1 (Virginia settentrionale), l'URL dell'endpoint bedrock-runtime è "" e l'URL dell'endpoint bedrock-mantle è https://bedrock-runtime.us-east-1.amazonaws.com "». https://bedrock-mantle.us-east-1.api.aws/anthropic/v1/messages

Livelli di servizio

Amazon Bedrock offre diversi livelli di servizio per soddisfare i requisiti del carico di lavoro. Standard fornisce l'accesso pay-per-token senza impegno (imposta o ometti il campo). "service_tier": "default" Priority offre i tempi di risposta più rapidi a un prezzo superiore (impostato). "service_tier": "priority" Flex offre un accesso a basso costo per carichi di lavoro flessibili e non sensibili al fattore tempo (set). "service_tier": "flex" Reserved offre un throughput dedicato con un impegno a termine per carichi di lavoro prevedibili; è impostato a livello di account anziché su richiesta (contatta il team del tuo account AWS per abilitare). Per ulteriori informazioni, consulta i livelli di servizio.

Standard Priorità Flex Riservato
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à regionale

La disponibilità regionale a colpo d'occhio

Amazon Bedrock offre tre opzioni di inferenza:

  • In-Regionmantiene le richieste all'interno di una singola regione per una rigorosa conformità.

  • Indirizzi Cross-Region geografici tra le regioni all'interno di un'area geografica (come Stati Uniti, UE e APAC) rispettando la residenza dei dati.

  • Cross-RegionPercorsi globali in tutto il mondo quando non ci sono vincoli di residenza.

Per maggiori dettagli, consulta la pagina. Disponibilità regionale per modelli

Region In-Region Geo Globale
us-east-1(Virginia del 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(California del 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(Francoforte)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(Zurigo)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(Stoccolma)Green circle with white checkmark icon.Green circle with white checkmark icon.Green circle with white checkmark icon.
eu-south-1(Milano)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(Spagna)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(Londra)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(Parigi)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(Tokyo)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(Singapore)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(Giacarta)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(Malesia)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(Nuova 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(Thailandia)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(Emirati Arabi Uniti)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(Città del Capo)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(San Paolo)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(Messico)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 Ovest)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.

Residenza dei dati

  • US geo (us.anthropic.claude-sonnet-5): conserva i dati all'interno delle regioni degli Stati Uniti e del Canada.

  • EU geo (eu.anthropic.claude-sonnet-5): conserva i dati all'interno delle regioni dell'UE.

  • AU geo (au.anthropic.claude-sonnet-5): conserva i dati all'interno delle regioni dell'Australia.

  • Global (global.anthropic.claude-sonnet-5): rotte in tutto il mondo senza vincoli di residenza.

Quote e limiti

Il tuo AWS account ha delle quote predefinite per Amazon Bedrock. Queste quote potrebbero cambiare in base a fattori regionali, alla cronologia dei pagamenti o all'approvazione di una richiesta di aumento delle quote. Per maggiori dettagli, consulta Quote per Amazon Bedrock la sezione dedicata general/latest/gr/bedrock.html#limits_bedrock ai limiti del modello.

Codice di esempio

Fase 1 - AWS Account: Se hai già un AWS account, salta questo passaggio. Se non conosci AWS, crea un account https://portal.aws.amazon.com/billing/signup AWS.

Passaggio 2 - Chiave API: apri la console Amazon Bedrock e genera una chiave API a lungo termine.

Passaggio 3 - Scarica l'SDK: per utilizzare questa guida introduttiva, devi avere Python già installato. Quindi installa il software pertinente in base alle API che stai utilizzando.

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

Passaggio 4 - Impostazione delle variabili di ambiente: configura il tuo ambiente per utilizzare la chiave API per l'autenticazione.

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

Fase 5 - Esegui la tua prima richiesta di inferenza: salva il file con nome 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)