

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

# 概述
<a name="what-is-bedrock"></a>

Amazon Bedrock 是一项完全托管的服务，可让您安全地访问领先的人工智能公司的[高性能基础模型](models.md)，使您能够构建和扩展生成式 AI 应用程序。

## 快速入门
<a name="quickstart"></a>

阅读[快速入门](getting-started.md)以在不到五分钟的时间内使用 Amazon Bedrock 编写你的第一个 API 调用。对于新应用程序，我们建议使用[`bedrock-runtime`](endpoints.md)终端节点。

------
#### [ Messages API ]

```
from anthropic import Anthropic
from aws_bedrock_token_generator import provide_token

token = provide_token(region="us-east-1")

client = Anthropic(
    base_url="https://bedrock-runtime.us-east-1.amazonaws.com/anthropic",
    api_key=token,
)

response = client.messages.create(
    model="global.anthropic.claude-opus-4-7",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Can you explain the features of Amazon Bedrock?"}]
)
print(response)
```

------
#### [ Responses API ]

```
from openai import OpenAI

client = OpenAI()

response = client.responses.create(
    model="global.openai.gpt-5.6-sol",
    input="Can you explain the features of Amazon Bedrock?"
    )
print(response)
```

------
#### [ Chat Completions API ]

```
from openai import OpenAI

client = OpenAI()

response = client.chat.completions.create(
    model="global.openai.gpt-5.6-sol",
    messages=[{"role": "user", "content": "Can you explain the features of Amazon Bedrock?"}]
    )
print(response)
```

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

```
import boto3

client = boto3.client('bedrock-runtime', region_name='us-east-1')
response = client.converse(
    modelId='anthropic.claude-opus-4-7',
    messages=[
        {
            'role': 'user',
            'content': [{'text': 'Can you explain the features of Amazon Bedrock?'}]
        }
    ]
)
print(response)
```

------
#### [ Invoke API ]

```
import json
import boto3

client = boto3.client('bedrock-runtime', region_name='us-east-1')
response = client.invoke_model(
    modelId='anthropic.claude-opus-4-7',
    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()))
```

------

## 支持的模型
<a name="featured-models"></a>

Amazon Bedrock 支持来自行业领先提供商的 [100 多种基础模型](models.md)，包括亚马逊Anthropic、DeepSeek、、Moonshot AI、MiniMaxOpenAI、和。xAI


|  |  |  |  |  |  |  | 
| --- |--- |--- |--- |--- |--- |--- |
| ![亚马逊徽标。](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/what-is/nova2pro.png)**亚马逊 Nova** | ![人类标志。](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/models/claude.png)**克劳德** | ![DeepSeek 徽标。](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/what-is/deepseek.png)**DeepSeek** | ![Moonshot AI 徽标](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/what-is/kimik2.5.png)**Kimi** | ![MiniMax 徽标。](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/what-is/minimax2.1.png)**MiniMax** | ![OpenAI 徽标。](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/models/openai.png)**OpenAI** | ![xAi 徽标。](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/models/xai.png)**xAi** | 

## 有什么新内容？
<a name="whats-new"></a>
+ [OpenAI GPT-6 Astra现已在亚马逊Bedrock上正式上市](https://aws.amazon.com/about-aws/whats-new/2026/09/openai-gpt-6-astra-on-amazon-bedrock/)：A GPT-6 stra是最新、OpenAI功能最强大的机型。它可以通过业务任务中的艰难选择来推理。它可以编写和设计精美的内容。它还可以使用计算机和网络浏览器。该模型在输入和输出之间共享一个 1,050,000 个令牌的上下文窗口，最多有 128,000 个输出令牌。有关详细信息，请参阅 [GPT-6 Astra](model-card-openai-gpt-6-astra.md) 模型卡。
+ [Grok 4.6 xAI 现已在 Amazon Bedrock 中推出](https://aws.amazon.com/about-aws/whats-new/2026/08/amazon-bedrock-grok-4-6/)：最新的xAI旗舰机型，专为长期运行的代理、编码和知识工作而打造，具有 500K 上下文窗口和可配置的推理工作（低、中、高、xhigh）。适用于所有提供 Amazon Bedrock 的 AWS 区域。有关详细信息，请参阅 [Grok 4.6](model-card-xai-grok-4-6.md) 型号卡。
+ [Amazon Bedrock 扩展了 API 支持，为OpenAI模型添加了跨区域推理](https://aws.amazon.com/about-aws/whats-new/2026/08/amazon-bedrock-cross-region-openai-v2/)：OpenAI GPT-5.6 Sol、Terra 和 Luna 现已通过响应、Converse 和 Chat Completions API 在[`bedrock-runtime`](endpoints.md)终端上可用，现在支持全球和跨区域推理，以实现更高的吞吐量和更低的每个令牌成本（包括新的美国地理 CRI）。有关详细信息 [Cross-Region ，请参阅推理](cross-region-inference.md)。
+ [Daybreak Red 和 Daybreak Blue OpenAI 现已在 Amazon Bedrock 上市（限量供应）](https://aws.amazon.com/about-aws/whats-new/2026/08/openai-daybreak-red-and-blue-on-amazon-bedrock/)：Daybreak 计划中的专业网络安全模型，可供符合条件OpenAI的客户使用。Daybreak Red（GPT-5.6 Cyber）经过专门培训，可以进行漏洞研究、漏洞再现和缓解开发。Daybreak Blue（GPT-5.6 Sol）已针对防御性网络安全工作进行了校准的保障措施。有关详细信息，请参阅 [Daybreak Red： GPT-5.6 Cyber](model-card-openai-gpt-56-cyber.md) 和 [Daybreak Blue： GPT-5.6 Sol](model-card-openai-gpt-daybreak-blue-56-sol.md) 模型卡。
+ [网络搜索现已在 Amazon Bedrock](https://aws.amazon.com/about-aws/whats-new/2026/08/amazon-bedrock-web/) 中推出：这是一款内置的服务器端工具，它通过响应 API 中的单个工具使用参数将当前的网络知识建立在 Amazon Bedrock 上的 OpenAI GPT 模型，无需第三方搜索供应商加入。搜索使用 AWS托管的 Web 索引，Fetch 可以选择在显式 IAM 控制下从外部网站检索。在美国东部（弗吉尼亚北部）、美国东部（俄亥俄州）和美国西部（俄勒冈）提供。有关详细信息，请参阅 [Web 搜索](web-search.md)。
+ [OpenAI GPT-5.6 Sol、Terra 和 Luna 现已在 Amazon Bedrock](https://aws.amazon.com/about-aws/whats-new/2026/07/openai-gpt-sol-terra/) 中推出：从OpenAI高级推理到快速、具有成本效益的推理等一系列模型，现在可通过亚马逊 Bedrock 上的 Responses API 获得。有关详细信息，请参阅 [GPT-5.6 Sol](model-card-openai-gpt-56-sol.md)、[GPT-5.6 Terra](model-card-openai-gpt-56-terra.md) 和 [GPT-5.6 Luna](model-card-openai-gpt-56-luna.md) 模型卡。

## 开始构建
<a name="start-building"></a>


|  |  | 
| --- |--- |
|  ![带有双向箭头的云图标，表示同步或数据传输。](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/what-is/apis.jpg)  | 探索 Amazon Bedrock 支持的 [API](apis.md) 和[终端节点](endpoints.md)。 | 
|  ![紫色背景上的扳手和螺丝刀图标。](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/what-is/build.jpg)  | 使用 Amazon Bedrock 提供的[提出推理请求](inference.md)操作进行构建。 | 
|  ![Amazon Bedrock 模型定制选项包括微调、持续预训练和提炼。](https://docs.aws.amazon.com/zh_cn/bedrock/latest/userguide/images/what-is/customize.png)  | [针对使用案例自定义模型以提高其性能](custom-models.md) | 