

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
<a name="model-card-anthropic-claude-sonnet-5"></a>

## ![Icona quadrata arrotondata arancione con simbolo radiale bianco di caricamento o indicatore di avanzamento.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/models/claude.png) Antropico — Claude Sonnet 5
<a name="model-card-anthropic-claude-sonnet-5-header"></a>

## Dettagli del modello
<a name="model-card-anthropic-claude-sonnet-5-details"></a>

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 ](https://aws.amazon.com/legal/bedrock/third-party-models/)
+ **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 ](bedrock/latest/userguide/apis.html) ** | **[Endpoint supportati ](bedrock/latest/userguide/endpoints.html) ** | 
| --- | --- | --- | --- | 
| ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png)Audio | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png)Incorporamento | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) Responses | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) bedrock-runtime | 
| ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png)Immagine | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png)Immagine | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) Chat Completions | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) bedrock-mantle | 
| ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png)Discorso | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png)Discorso | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) Invoke |  | 
| ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png)Testo | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png)Testo | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) Converse |  | 
| ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png)Video | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png)Video | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) Messages |  | 

**Suggerimento**  
Quando possibile, consigliamo di utilizzare l'`bedrock-runtime`endpoint per nuove applicazioni. Per informazioni dettagliate, vedi [Endpoint supportati da Amazon Bedrock](endpoints.md).

## Funzionalità e caratteristiche
<a name="model-card-anthropic-claude-sonnet-5-capabilities"></a>

**Caratteristiche di Bedrock **

**Funzionalità supportate tramite endpoint `bedrock-runtime` **


| **Supportato ** | **Non supportato ** | 
| --- | --- | 
|  + ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png)[Streaming di risposta ](bedrock/latest/APIReference/API_runtime_InvokeModelWithResponseStream.html)<br />+ ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png)[rilevamento degli abusi ](bedrock/latest/userguide/abuse-detection.html)<br />+ ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png)[Guardrail ](bedrock/latest/userguide/guardrails.html)<br />+ ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png)[Ottimizzazione tempestiva ](bedrock/latest/userguide/prompt-management-optimize.html)<br />+ ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png)[Base di conoscenza ](bedrock/latest/userguide/knowledge-base.html)<br />+ ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png)[Valutazione del modello ](bedrock/latest/userguide/evaluation.html)<br />+ ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png)[Gestione tempestiva ](bedrock/latest/userguide/prompt-management.html)<br />+ ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png)[Flussi ](bedrock/latest/userguide/flows.html)<br />+ ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png)[Agenti ](bedrock/latest/userguide/agents.html)<br />+ ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png)[Uso del computer ](bedrock/latest/userguide/computer-use.html)  |  + ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png)[Routing rapido intelligente ](bedrock/latest/userguide/prompt-routing.html)<br />+ ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png)[Conta i gettoni ](bedrock/latest/userguide/count-tokens.html)<br />+ ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png)[Output strutturati ](bedrock/latest/userguide/structured-outputs.html)  | 

**Funzionalità supportate tramite endpoint `bedrock-mantle` **


| **Supportato ** | **Non supportato ** | 
| --- | --- | 
|  + ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png)[Streaming di risposta ](bedrock/latest/APIReference/API_runtime_InvokeModelWithResponseStream.html)<br />+ ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png)[rilevamento degli abusi ](bedrock/latest/userguide/abuse-detection.html)<br />+ ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png)[Conta i gettoni ](bedrock/latest/userguide/count-tokens.html)<br />+ ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png)[Uso del computer ](bedrock/latest/userguide/computer-use.html)  |  + ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png)[Guardrail ](bedrock/latest/userguide/guardrails.html)<br />+ ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png)[Ottimizzazione tempestiva ](bedrock/latest/userguide/prompt-management-optimize.html)<br />+ ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png)[Base di conoscenza ](bedrock/latest/userguide/knowledge-base.html)<br />+ ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png)[Valutazione del modello ](bedrock/latest/userguide/evaluation.html)<br />+ ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png)[Gestione tempestiva ](bedrock/latest/userguide/prompt-management.html)<br />+ ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png)[Flussi ](bedrock/latest/userguide/flows.html)<br />+ ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png)[Agenti ](bedrock/latest/userguide/agents.html)<br />+ ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png)[Routing rapido intelligente ](bedrock/latest/userguide/prompt-routing.html)<br />+ ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png)[Output strutturati ](bedrock/latest/userguide/structured-outputs.html)  | 

**Memorizzazione nella cache rapida **

Per ulteriori informazioni, consulta [ Prompt caching per una più rapida inferenza del modello. ](bedrock/latest/userguide/prompt-caching.html)


| **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 ** | 
| --- | --- | --- | --- | --- | 
| Sì | 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](bedrock/latest/userguide/computer-use.html) del computer.


| **Tipo di strumento ** | **Intestazione beta ** | 
| --- | --- | 
| computer\_20251124 | computer-use-2025-11-24 | 

## Prezzi
<a name="model-card-anthropic-claude-sonnet-5-pricing"></a>

Per i prezzi, consulta la pagina dei prezzi [ di ](https://aws.amazon.com/bedrock/pricing/) Amazon Bedrock.

## Accesso programmatico
<a name="model-card-anthropic-claude-sonnet-5-programmatic-access"></a>

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/apis.html) [bedrock/latest/userguide/endpoints.html](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`<br />`eu.anthropic.claude-sonnet-5`<br />`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
<a name="model-card-anthropic-claude-sonnet-5-tiers"></a>

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. ](bedrock/latest/userguide/service-tiers-inference.html)


| **Standard** | **Priorità** | **Flex ** | **Riservato ** | 
| --- | --- | --- | --- | 
| ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | 

## Disponibilità regionale
<a name="model-card-anthropic-claude-sonnet-5-regional-availability"></a>

**La disponibilità regionale a colpo d'occhio **

Amazon Bedrock offre tre opzioni di inferenza:
+ **In-Region**mantiene 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-Region**Percorsi globali in tutto il mondo quando non ci sono vincoli di residenza.

Per maggiori dettagli, consulta la pagina. [Disponibilità regionale per modelli](models-region-compatibility.md)


| **Region** | **In-Region** | **Geo ** | **Globale** | 
| --- | --- | --- | --- | 
| us-east-1(Virginia del Nord) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| us-east-2(Ohio) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| us-west-1(California del Nord) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| us-west-2(Oregon) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| ca-central-1(Canada) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| ca-west-1(Calgary) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| eu-central-1(Francoforte) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| eu-central-2(Zurigo) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| eu-north-1(Stoccolma) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| eu-south-1(Milano) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| eu-south-2(Spagna) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| eu-west-1(Irlanda) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| eu-west-2(Londra) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| eu-west-3(Parigi) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| ap-east-2(Taipei) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| ap-northeast-1(Tokyo) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| ap-northeast-2(Seul) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| ap-northeast-3(Osaka) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| ap-south-1(Mumbai) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| ap-south-2(Hyderabad) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| ap-southeast-1(Singapore) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| ap-southeast-2(Sydney) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| ap-southeast-3(Giacarta) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| ap-southeast-4(Melbourne) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| ap-southeast-5(Malesia) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| ap-southeast-6(Nuova Zelanda) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| ap-southeast-7(Thailandia) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| il-central-1(Tel Aviv) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| me-central-1(Emirati Arabi Uniti) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| me-south-1(Bahrein) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| af-south-1(Città del Capo) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| sa-east-1(San Paolo) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| mx-central-1(Messico) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| us-gov-west-1(GovCloud Ovest) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | 
| us-gov-east-1(GovCloud Est) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/it_it/bedrock/latest/userguide/images/icons/icon-no.png) | 

**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
<a name="model-card-anthropic-claude-sonnet-5-quotas"></a>

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[. ](bedrock/latest/userguide/quotas-increase.html) Per maggiori dettagli, consulta [Quote per Amazon Bedrock](quotas.md) la sezione dedicata [general/latest/gr/bedrock.html#limits_bedrock](general/latest/gr/bedrock.html#limits_bedrock) ai limiti del modello.

## Codice di esempio
<a name="model-card-anthropic-claude-sonnet-5-sample-code"></a>

**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](https://portal.aws.amazon.com/billing/signup) AWS.

**Passaggio 2 - Chiave API: ** apri la console [ Amazon Bedrock ](https://console.aws.amazon.com/bedrock/home#/api-keys/long-term/create) 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)
```

------