View a markdown version of this page

Graco 4.6 - 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.

Graco 4.6

Icono que muestra el logotipo de xAi. xAi — Versión 4.6

Detalles del modelo

Grok 4.6 es el modelo pionero de xAI creado para la codificación, las tareas de agencia y el trabajo de conocimiento. Se basa en las generaciones anteriores de Grok y se centra especialmente en los agentes de larga data y en un trabajo interactivo más ambicioso. Ofrece una ventana contextual de 500 000 segundos y métodos de razonamiento configurables (bajo, medio, alto, xalto).

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ónGreen circle with white checkmark icon. 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.ImagenGreen circle with white checkmark icon. 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. Converse
Green circle with white checkmark icon.TextoGreen circle with white checkmark icon.TextoGreen circle with white checkmark icon. Invoke
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ídeo

Capacidades y características

Características de Bedrock

Funciones compatibles con el punto final bedrock-runtime

Funciones compatibles con el bedrock-mantle punto final

Soportado No es compatible

Precios

Opción de inferencia Entrada Salida Caché leído
In-Region2,20 dólares6,60 dólares0,55 USD
CRIS geográfico2,20 dólares6,60 dólares0,55 USD
CRIS global2,00 dólares6,00 dólares0,50$

Todos los precios son por millón de fichas. Los precios que se muestran son para el nivel Estándar.

Soporte de los niveles Priority y Flex: Además de Standard, Grok 4.6 admite los niveles de servicio Priority y Flex. Priority se factura a 1,75 veces la tarifa estándar por token (una prima del 75%) y Flex a 0,5 veces la tarifa estándar (un descuento del 50%). Aplica estos multiplicadores a las tarifas estándar que se muestran arriba. Para obtener más información sobre cada nivel de servicio, consulta los niveles de servicio. service-tiers-inference.html

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. 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-mantle xai.grok-4.6 https://bedrock-mantle.{region}.api.aws/openai/v1 No admitido No admitido
bedrock-runtime xai.grok-4.6 No admitido us.xai.grok-4.6 global.xai.grok-4.6

Por ejemplo, si la región es us-west-2 (Oregón), la URL del punto final de Bedrock-mantle será "». https://bedrock-mantle.us-west-2.api.aws/openai/v1 Síbedrock-runtime, la URL base es "https://bedrock-runtime.{region} .amazonaws. com/openai/v1 "y las solicitudes deben incluir el ID us.xai.grok-4.6 de inferencia interregional geográfico o el nombre del modelo. global.xai.grok-4.6

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 un procesamiento más rápido y priorizado a cambio de una prima de precio (fija). "service_tier": "priority" Flex proporciona un acceso de menor costo para cargas de trabajo flexibles y que no requieren tiempo (conjunto). "service_tier": "flex" Para obtener más información, consulte los niveles de servicio. service-tiers-inference.html

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

Disponibilidad regional

La disponibilidad regional de un vistazo

Amazon Bedrock ofrece tres opciones de inferencia: In-Region mantiene las solicitudes en una sola región para garantizar un cumplimiento estricto, Cross-Region rutas geográficas entre regiones de una misma geografía (como EE. UU., UE y APAC) respetando la residencia de los datos, y Cross-Region rutas globales a cualquier parte del mundo cuando no hay restricciones de residencia. Consulte la Disponibilidad regional por modelos página para obtener más información.

La disponibilidad varía según el punto final.

La disponibilidad mediante el bedrock-mantle punto final

Region In-Region Geo Global
us-west-2(Oregón)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.
us-gov-east-1(GovCloud Este)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.

Disponibilidad mediante el bedrock-runtime punto final

Region In-Region Geo Global
us-east-1(Virginia del Norte)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(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.
us-gov-west-1(GovCloud Oeste)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-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.
ca-central-1(Canadá)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.
ca-west-1(Calgary)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(Fráncfort)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(Zúrich)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-north-1(Estocolmo)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(Milá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.
eu-south-2(España)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(Londres)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(París)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(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)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(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.

Cuotas y límites

Su AWS cuenta tiene cuotas predeterminadas para mantener el rendimiento del servicio y garantizar el uso adecuado de Amazon Bedrock. Las cuotas predeterminadas asignadas a una cuenta pueden actualizarse en función de factores regionales, el historial de pagos, el uso fraudulento y la and/or aprobación de una solicitud de aumento de cuota. Para obtener más información, consulta la Cuotas para Amazon Bedrock documentación y los límites del modelo.

Código de muestra

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

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

nota

Grok 4.6 es un modelo de xAI. Amazon Bedrock distribuye sus API de respuestas y finalización de chat a través de OpenAI-compatible puntos de enlace, por lo que esos ejemplos utilizan el SDK de Python de OpenAI como cliente. Configure el SDK con su clave de API de Amazon Bedrock y una URL base de Amazon Bedrock, tal y como se muestra a continuación; las solicitudes invocan el modelo xAI en Amazon Bedrock y no se envían a OpenAI.

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.

Responses API / Chat Completions API
pip install openai
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.

bedrock-mantle
OPENAI_API_KEY="<provide your Bedrock API key>" OPENAI_BASE_URL="https://bedrock-mantle.us-west-2.api.aws/openai/v1"
bedrock-runtime
OPENAI_API_KEY="<provide your Bedrock API key>" OPENAI_BASE_URL="https://bedrock-runtime.us-east-1.amazonaws.com/openai/v1"
nota

Enbedrock-runtime, nombre un perfil de inferencia interregional como modelo, us.xai.grok-4.6 o. global.xai.grok-4.6 Este modelo no está disponible para la inferencia dentro de una región en ese punto final. Su identidad de IAM también debe figurar bedrock:InvokeModel en el proyecto predeterminado de su cuenta (arn:aws:bedrock:{region}:{account-id}:project/default), además del perfil de inferencia.

Paso 5: ejecuta tu primera solicitud de inferencia: guarda el archivo como bedrock-first-request.py

Responses API (bedrock-mantle)
from openai import OpenAI client = OpenAI() response = client.responses.create( model="xai.grok-4.6", input="Can you explain the features of Amazon Bedrock?" ) print(response)
Responses API (bedrock-runtime)
from openai import OpenAI client = OpenAI() response = client.responses.create( model="us.xai.grok-4.6", input="Can you explain the features of Amazon Bedrock?" ) print(response)
Chat Completions API (bedrock-mantle)
from openai import OpenAI client = OpenAI() response = client.chat.completions.create( model="xai.grok-4.6", messages=[ {"role": "user", "content": "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.6", 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.6", messages=[ {"role": "user", "content": [{"text": "Can you explain the features of Amazon Bedrock?"}]} ] ) print(response["output"]["message"]["content"][0]["text"])

Consideraciones y limitaciones de uso

  • Esfuerzo de razonamiento: el razonamiento siempre está activo de forma predeterminada. Puede configurar el esfuerzo mediante el reasoning parámetro: "low" (predeterminado)"medium","high", o"xhigh". El contenido de Reasoning está cifrado y se puede devolver enviando include: ["reasoning.encrypted_content"] la solicitud a la API de respuestas. Puedes devolver el contenido cifrado en turnos posteriores para proporcionar un contexto de razonamiento para las conversaciones de varios turnos. La API Chat Completions no devuelve fichas de razonamiento.

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