

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# Grok 4.6
<a name="model-card-xai-grok-4-6"></a>

## ![显示 xAi 徽标的图标。](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/models/xai.png) xAi — Grok 4.6
<a name="model-card-xai-grok-4-6-header"></a>

## 模型详细信息
<a name="model-card-xai-grok-4-6-details"></a>

Grok 4.6 是 xAi 的前沿模型，专为编码、代理任务和知识工作而构建。它建立在前几代Grok的基础上，特别关注长期运营的代理和更雄心勃勃的互动工作。它提供500K上下文窗口和可配置的推理工作（低、中、高、高）。
+ **模型发布日期：2026 ** 年 8 月 18 日
+ **EOL 不早于：2027 ** 年 8 月 18 日
+ **遗产期：至**少 6 个月
+ **模型生命周期政策：**[模型生命周期（适用于 2026 年 9 月 7 日之前发布的模型）](model-lifecycle-legacy.md)
+ **模特停产日期：** N/A
+ **最终用户许可协议和使用条款：**[查看 ](https://aws.amazon.com/legal/bedrock/third-party-models/)
+ **模型生命周期：**活跃
+ **上下文窗口：**500K 代币
+ **推理：**支持（可配置：低、中、高、高）


| **输入模式 ** | **输出模式 ** | **[支持的 API ](apis.html) ** | **[支持的终端节点 ](endpoints.html) ** | 
| --- | --- | --- | --- | 
| ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png)音频 | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png)嵌入 | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) Responses | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) bedrock-runtime | 
| ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png)图片 | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png)图片 | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) Chat Completions | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) bedrock-mantle | 
| ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png)演讲 | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png)演讲 | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) Converse |  | 
| ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png)文本 | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png)文本 | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) Invoke |  | 
| ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png)视频 | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png)视频 |  |  | 

## 能力和特性
<a name="model-card-xai-grok-4-6-capabilities"></a>

***基岩特征 * **

**使用`bedrock-runtime`终端节点支持的功能 **


| **支持的 ** | **不支持 ** | 
| --- | --- | 
|  + ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png)[项目（仅限默认项目）](projects.html)<br />+ ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png)[调用日志 ](model-invocation-logging.html)<br />+ ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png)[回复直播 ](bedrock/latest/APIReference/API_runtime_InvokeModelWithResponseStream.html)<br />+ ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png)[应用程序推理配置文件](cost-mgmt-application-inference-profiles.html)（`Invoke`仅限 [ Converse ](conversation-inference.html) API；不支持响应或聊天完成 API）<br />+ ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png)[隐式提示缓存 ](prompt-caching.html#prompt-caching-implicit)<br />+ ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png)[推理 ](reasoning.html)  |  + ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png)[Server-side 工具的使用 ](tool-use.html)<br />+ ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png)[智能提示路由 ](prompt-routing.html)<br />+ ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png)[数代币 ](count-tokens.html)<br />+ ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png)[结构化输出 ](structured-output.html)  | 

**使用`bedrock-mantle`终端节点支持的功能 **


| **支持的 ** | **不支持 ** | 
| --- | --- | 
|  + ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png)[Client-side 工具调用 ](tool-use.html)<br />+ ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png)[推理 ](reasoning.html)<br />+ ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png)[项目 ](projects.html)<br />+ ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png)滥用检测<br />+ ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png)回复直播<br />+ ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png)结构化输出<br />+ ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png)[隐式提示缓存 ](prompt-caching.html#prompt-caching-implicit)  |  + ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png)[应用程序推理配置文件](cost-mgmt-application-inference-profiles.html)（仅限响应和聊天完成 API）  | 

## 定价
<a name="model-card-xai-grok-4-6-pricing"></a>


| **推理选项 ** | **输入** | **输出** | **缓存读取 ** | 
| --- | --- | --- | --- | 
| In-Region | 2.20 美元 | 6.60 美元 | 0.55 美元 | 
| Geo CRIS | 2.20 美元 | 6.60 美元 | 0.55 美元 | 
| 全球CRIS | 2.00 美元 | 6.00 美元 | 0.50 美元 | 

*所有价格均为每100万个代币。显示的定价适用于标准套餐。*

**优先级和弹性级别支持：**除标准级别外，Grok 4.6 还支持优先级和灵活服务等级。优先级按每个代币标准费率的 ** 1.75倍**（75％的溢价）计费，Flex按标准费率的 ** 0.5倍**（50％的折扣）计费；将这些乘数应用于上面显示的标准费率。有关每个服务等级的详细信息，请参阅[服务等级](service-tiers-inference.html)。

## 以编程方式访问
<a name="model-card-xai-grok-4-6-programmatic-access"></a>

使用以下模型 ID 和端点 URL 以编程方式访问此模型。有关可用 API 和终端节点的更多信息，请参阅支持[的 API ](apis.html) 和支持的[终端节点](endpoints.html)。


| **Endpoint** | **模特 ID ** | **In-Region 端点 URL ** | **地理推断 ID ** | **全局推理 ID ** | 
| --- | --- | --- | --- | --- | 
| bedrock-mantle | xai.grok-4.6 | https://bedrock-mantle.{region}.api.aws/openai/v1 | 不支持 | 不支持 | 
| bedrock-runtime | xai.grok-4.6 | 不支持 | us.xai.grok-4.6 | global.xai.grok-4.6 | 

*例如，如果区域为 us-west-2（俄勒冈州），则基岩地堡终端节点 URL 将为 “”。https://bedrock-mantle.us-west-2.api.aws/openai/v1开启`bedrock-runtime`，基本网址是 “https://bedrock-runtime.{区域} .amazonaws。com/openai/v1” 和请求必须将地理跨区域推断 ID 命名`us.xai.grok-4.6`或`global.xai.grok-4.6`命名为模型。*

## 服务等级
<a name="model-card-xai-grok-4-6-tiers"></a>

Amazon Bedrock 提供多个服务等级以满足您的工作负载要求。**Standard ** 提供按代币付费的访问权限，无需承诺（设置`"service_tier": "default"`或省略该字段）。****Priority 可以提供更快、按优先顺序排列的处理，但价格溢价（套装`"service_tier": "priority"`）。**Flex ** 为灵活、非时间敏感的工作负载（套装）提供更低成本的访问权限。`"service_tier": "flex"`有关更多信息，请参阅[服务等级](service-tiers-inference.html)。


| **Standard** | **优先级** | **Flex ** | **已保留 ** | 
| --- | --- | --- | --- | 
| ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | 

## 区域可用性
<a name="model-card-xai-grok-4-6-regional-availability"></a>

***区域可用性一览 * **

Amazon Bedrock 提供三种推理选项：将请求**In-Region**保留在单一区域内以确保严格合规；在尊重数据驻留的前提下跨地理区域（例如美国、欧盟和亚太地区）进行地理路由；在没有居住限制的情况下，**全球 Cross-Region**路由到全球任何地方。** Cross-Region **有关更多详细信息，请参阅该[按型号划分的区域可用性](models-region-compatibility.md)页面。

可用性因端点而异。

**使用`bedrock-mantle`终端节点的可用性 **


| **区域** | **In-Region** | **地理 ** | **Global** | 
| --- | --- | --- | --- | 
| us-west-2（俄勒冈州） | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | 
| us-gov-east-1（GovCloud 东） | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | 

**使用`bedrock-runtime`终端节点的可用性 **


| **区域** | **In-Region** | **地理 ** | **Global** | 
| --- | --- | --- | --- | 
| us-east-1（弗吉尼亚北部） | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| us-east-2（俄亥俄州） | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| us-west-1（加利福尼亚北部） | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| us-west-2（俄勒冈） | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| us-gov-west-1（GovCloud 西部） | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | 
| us-gov-east-1（GovCloud 东部） | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | 
| ca-central-1（加拿大） | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| ca-west-1（卡尔加里） | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| eu-central-1（法兰克福） | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| eu-central-2（苏黎世） | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| eu-north-1（斯德哥尔摩） | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| eu-south-1（米兰） | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| eu-south-2（西班牙） | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| eu-west-1（爱尔兰） | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| eu-west-2（伦敦） | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| eu-west-3（巴黎） | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| ap-east-2（台北） | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| ap-northeast-1（东京） | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| ap-northeast-2（首尔） | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| ap-northeast-3（大阪） | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| ap-south-1（孟买） | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| ap-south-2（海得拉巴） | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| ap-southeast-1（新加坡） | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| ap-southeast-2（悉尼） | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| ap-southeast-3（雅加达） | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| ap-southeast-4（墨尔本） | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| ap-southeast-5（马来西亚） | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| ap-southeast-6（新西兰） | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| ap-southeast-7（泰国） | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| il-central-1（特拉维夫） | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| me-central-1（阿联酋） | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| me-south-1（巴林） | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| af-south-1（开普敦） | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | 
| sa-east-1（圣保罗） | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/icons/icon-yes.png) | 

## 配额和限制
<a name="model-card-xai-grok-4-6-quotas"></a>

您的 AWS 账户有默认配额，以维持服务的性能并确保适当使用 Amazon Bedrock。分配给账户的默认配额可能会根据地区因素、付款历史记录、欺诈性使用、配额[增加请求的 and/or 批准情况进行更新](quotas-increase.html)。有关更多信息，请参阅[Amazon Bedrock 的配额](quotas.md)文档并查看模型[的](/general/latest/gr/bedrock.html#limits_bedrock)限制。

## 示例代码
<a name="model-card-xai-grok-4-6-sample-code"></a>

**第 1 步- AWS 账户：**如果您已经有 AWS 账户，请跳过此步骤。如果您是新手 AWS，请注册一个 A [ WS 账户](https://portal.aws.amazon.com/billing/signup)。

**第 2 步-API 密钥：**前往[亚马逊 Bedrock 控制台](https://console.aws.amazon.com/bedrock/home#/api-keys/long-term/create)并生成长期 API 密钥。

**注意**  
Grok 4.6 是一款 xAI 模型。亚马逊基岩通过 OpenAI-compatible 终端节点提供其响应和聊天完成API，因此这些示例使用OpenAI Python SDK作为客户端。使用您的亚马逊 Bedrock API 密钥和亚马逊 Bedrock 基础 URL 配置软件开发工具包，如下所示；这些请求调用亚马逊 Bedrock 上的 xAI 模型，不会发送到 OpenAI。

**第 3 步-获取 SDK：**要使用此入门指南，必须已安装 Python。然后根据您使用的 API 安装相关软件。

------
#### [ Responses API / Chat Completions API ]

```
pip install openai
```

------
#### [ Converse API ]

```
pip install boto3
```

------

**第 4 步-设置环境变量：将您的环境**配置为使用 API 密钥进行身份验证。

------
#### [ 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"
```

------

**注意**  
开启`bedrock-runtime`，将跨区域推理配置文件命名为模型，或。`us.xai.grok-4.6` `global.xai.grok-4.6`此模型不适用于该终端节点上的区域内推理。除了推理配置文件外，您的 IAM 身份还需要`bedrock:InvokeModel`您的账户的默认项目 (`arn:aws:bedrock:{region}:{account-id}:project/default`)。

**第 5 步-运行您的第一个推理请求：**将文件另存为 `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"])
```

------

## 使用注意事项和限制
<a name="model-card-xai-grok-4-6-considerations"></a>
+ **推理工作 ** — 默认情况下，推理始终处于活动状态。您可以通过以下`reasoning`参数配置工作量：`"low"`（默认）`"medium"`、`"high"`、或`"xhigh"`。推理内容是加密的，可以通过传`include: ["reasoning.encrypted_content"]`入响应 API 请求来返回。您可以在后续回合中将加密内容发送回去，为多回合对话提供推理背景。聊天完成 API 不返回推理令牌。

  ```
  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)
  ```