View a markdown version of this page

Grok 4.7 - 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à.

Grok 4.7

Logo AxI. AxI — Grok 4.7

Dettagli del modello

Grok 4.7 è il modello xAI di frontiera, creato per la programmazione, le attività agentiche e il knowledge work, con supporto per l'immissione di testo e immagini. Si basa sulle generazioni precedenti di Grok, con particolare attenzione agli agenti di lunga data e al lavoro interattivo più ambizioso. Offre una finestra contestuale di 524.288 token condivisa tra input e output e sforzi di ragionamento configurabili (low, medium, high, xhigh).

  • Data di lancio del modello: 28 settembre 2026

  • EOL non prima del: 28 settembre 2027

  • Periodo ereditario: almeno 6 mesi

  • Politica sul ciclo di vita del modello: ciclo di vita del modello

  • Data EOL del modello: N/A

  • Contratti di licenza con l'utente finale e condizioni d'uso: Visualizza

  • Ciclo di vita del modello: attivo

  • Finestra contestuale: 524.288 token, condivisi tra input e output

  • Numero massimo di token di output: 524.288 meno i token di input

  • Ragionamento: supportato (configurabile: basso, medio, alto, xalto)

Modalità di input 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.IncorporamentoGreen circle with white checkmark icon. 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.ImmagineGreen circle with white checkmark icon. Chat CompletionsRed circle with white X icon indicating error, cancel, or close action. 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. Converse
Green circle with white checkmark icon.TestoGreen circle with white checkmark icon.TestoGreen circle with white checkmark icon. Invoke
Red circle with white X icon indicating error, cancel, or close action.VideoRed circle with white X icon indicating error, cancel, or close action.Video

Funzionalità e caratteristiche

Caratteristiche di base

Funzionalità supportate tramite endpoint bedrock-runtime

Prezzi

La tabella seguente mostra i prezzi su richiesta per Grok 4.7 in base all'opzione di inferenza.

Opzione di inferenza Input Output Lettura nella cache
Geo CRIS2,20$$6,60$0,55
CRIS globale$2,00$6,00$0,50

Tutti i prezzi si intendono per 1 milione di token. I prezzi indicati si riferiscono al livello Standard.

Supporto di livello Priority e Flex: oltre a Standard, Grok 4.7 supporta i livelli di servizio Priority e Flex sulle Responses API e. Chat Completions Invoke L'API Converse supporta il livello Standard solo per questo modello; la richiesta o tramite Converse restituisce un errore di convalida. priority flex Priority viene fatturata a 1,75 volte la tariffa Standard per token (un premio del 75%) e Flex a 0,5 volte la tariffa Standard (uno sconto del 50%). Applica questi moltiplicatori alle tariffe Standard mostrate sopra. Per i dettagli su ciascun livello di servizio, consulta i livelli di servizio.

Accesso programmatico

Utilizza i seguenti ID di 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 e Endpoint supportati.

Endpoint ID del modello In-Region URL dell'endpoint ID di inferenza geografica ID di inferenza globale
bedrock-runtime xai.grok-4.7 Non supportata us.xai.grok-4.7 global.xai.grok-4.7

Sìbedrock-runtime, l'URL di base è "https://bedrock-runtime.{region} .amazonaws. com/openai/v1 "e le richieste devono indicare come modello l'ID di inferenza geografico interregionale us.xai.grok-4.7 o l'ID di inferenza globale tra regioni. global.xai.grok-4.7

Livelli di servizio

Amazon Bedrock offre diversi livelli di servizio per soddisfare i tuoi requisiti di carico di lavoro. Standard fornisce l'accesso pay-per-token senza impegno (imposta o ometti il campo). "service_tier": "default" Priority offre un'elaborazione più rapida e prioritaria a un prezzo superiore (set). "service_tier": "priority" Flex offre un accesso a basso costo per carichi di lavoro flessibili e non urgenti (set). "service_tier": "flex" Per questo modello, Priority e Flex sono disponibili solo sulle API ResponsesChat Completions, e l'InvokeAPI Converse supporta solo Standard. Per ulteriori informazioni, consulta i livelli di servizio.

Standard Priorità Flex riservato
Green circle with white checkmark icon. Green circle with white checkmark icon. Green circle with white checkmark icon. Red circle with white X icon indicating error, cancel, or close action.

Disponibilità regionale

Disponibilità regionale a colpo d'occhio

Amazon Bedrock offre tre opzioni di inferenza: In-Regionmantiene le richieste all'interno di una singola regione per garantire una conformità rigorosa, instradamenti Cross-Regiongeografici tra regioni all'interno di un'area geografica (ad esempio Stati Uniti, UE e APAC) rispettando la residenza dei dati e Cross-Region percorsi globali ovunque in tutto il mondo quando non ci sono vincoli di residenza. Consulta la pagina per maggiori dettagli. Disponibilità regionale per modello

Grok 4.7 è disponibile sull'bedrock-runtimeendpoint utilizzando l'inferenza Geo (US) e Global Cross-region. La tabella seguente mostra la disponibilità per regione.

Region In-Region Geo Globale
us-east-1(Virginia settentrionale)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-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 settentrionale)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.Red circle with white X icon indicating error, cancel, or close action.
eu-north-1(Stoccolma)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.
eu-west-1(Irlanda)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.
eu-west-2(Londra)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.
eu-west-3(Parigi)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.
eu-central-1(Francoforte)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.
eu-central-2(Zurigo)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.
eu-south-1(Milano)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.
eu-south-2(Spagna)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)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-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-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.
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.
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.
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.
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.
us-gov-east-1(AWS GovCloud (US-East))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.
us-gov-west-1(AWS GovCloud (US-West))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.

Dettagli di inferenza geografica

Le regioni di destinazione disponibili per un profilo di inferenza geografica dipendono dalla regione di origine. Per recuperare la configurazione di routing corrente, chiama GetInferenceProfiledalla regione di origine.

Geo: USA

ID di inferenza geografica: us.xai.grok-4.7

Regione di origine Regioni di destinazione
us-east-1 (Virginia settentrionale)us-east-1 (Virginia settentrionale), us-east-2 (Ohio), us-west-2 (Oregon)
us-east-2 (Ohio)us-east-1 (Virginia settentrionale), us-east-2 (Ohio), us-west-2 (Oregon)
us-west-1 (California settentrionale)us-east-1 (Virginia settentrionale), us-east-2 (Ohio), us-west-1 (California settentrionale), us-west-2 (Oregon)
us-west-2 (Oregon)us-east-1 (Virginia settentrionale), us-east-2 (Ohio), us-west-2 (Oregon)
ca-central-1 (Canada)ca-central-1 (Canada), us-east-1 (Virginia settentrionale), us-east-2 (Ohio), us-west-2 (Oregon)
ca-west-1 (Calgary)ca-west-1 (Calgary), us-east-1 (Virginia settentrionale), us-east-2 (Ohio), us-west-2 (Ohio), us-west-2 (Oregon)

Quote e limiti

Il tuo AWS account dispone di quote predefinite per mantenere le prestazioni del servizio e garantire un uso appropriato di Amazon Bedrock. Le quote predefinite assegnate a un account potrebbero essere aggiornate in base a fattori regionali, alla cronologia dei pagamenti, all'utilizzo fraudolento, all' and/or approvazione di una richiesta di aumento delle quote. Per ulteriori informazioni, consulta Quote per Amazon Bedrock la documentazione e consulta i limiti del modello.

Codice di esempio

Passaggio 1 - AWS Account: se hai già un AWS account, salta questo passaggio. Se sei nuovo AWS, registrati per un account AWS.

Fase 2 - Chiave API: vai alla console Amazon Bedrock e genera una chiave API a lungo termine.

Utilizzo degli OpenAI-compatible SDK con Assi Modelli  

Grok 4.7 è un modello. xAI Amazon Bedrock fornisce le sue API Responses e Chat Completions tramite OpenAI-compatible endpoint, quindi questi esempi utilizzano l'SDK Python OpenAI come client. Configura l'SDK con la tua chiave API Amazon Bedrock e un URL di base Amazon Bedrock come mostrato di seguito. Le richieste richiamano il xAI modello su Amazon Bedrock e non vengono inviate a OpenAI.

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.

Responses API / Chat Completions API
pip install openai
Converse API
pip install boto3

Passaggio 4 - Imposta le variabili di ambiente: configura l'ambiente per utilizzare la chiave API per l'autenticazione.

bedrock-runtime
OPENAI_API_KEY="<provide your Bedrock API key>" OPENAI_BASE_URL="https://bedrock-runtime.us-east-1.amazonaws.com/openai/v1"
Cross-Region profilo di inferenza richiesto

Attivatobedrock-runtime, assegna un profilo di inferenza interregionale come modello — o. us.xai.grok-4.7 global.xai.grok-4.7 Questo modello non è disponibile per l'inferenza interregionale su quell'endpoint. Oltre al profilo di inferenza, la tua identità IAM deve essere inserita bedrock:InvokeModel anche nel progetto predefinito del tuo account (arn:aws:bedrock:{region}:{account-id}:project/default).

Passaggio 5 - Esegui la tua prima richiesta di inferenza: salva il file con nome bedrock-first-request.py

Responses API (bedrock-runtime)
from openai import OpenAI client = OpenAI() response = client.responses.create( model="us.xai.grok-4.7", input="Can you explain the features of Amazon Bedrock?" ) print(response)
Chat Completions API (bedrock-runtime)
from openai import OpenAI client = OpenAI() response = client.chat.completions.create( model="us.xai.grok-4.7", messages=[ {"role": "user", "content": "Can you explain the features of Amazon Bedrock?"} ] ) print(response)
Converse API (bedrock-runtime)
import boto3 client = boto3.client("bedrock-runtime", region_name="us-east-1") response = client.converse( modelId="us.xai.grok-4.7", messages=[ {"role": "user", "content": [{"text": "Can you explain the features of Amazon Bedrock?"}]} ] ) print(response)

Considerazioni e limitazioni sull'utilizzo

  • Sforzo di ragionamento: il ragionamento è sempre attivo per impostazione predefinita. È possibile configurare lo sforzo tramite il reasoning parametro:"low","medium", "high" (impostazione predefinita) o. "xhigh" Il contenuto del ragionamento è crittografato e può essere restituito inviando include: ["reasoning.encrypted_content"] la richiesta dell'API Responses. Puoi inviare il contenuto crittografato nei turni successivi per fornire un contesto di ragionamento per conversazioni a turni multipli. L'API Chat Completions non restituisce token di ragionamento.

    response = client.responses.create( model="us.xai.grok-4.7", reasoning={"effort": "high"}, include=["reasoning.encrypted_content"], input="Explain quantum entanglement simply." ) print(response.output_text)