View a markdown version of this page

GPT-5.6 露娜 - Amazon Bedrock

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

GPT-5.6 露娜

OpenAI 徽标。 OpenAI — 露娜 GPT-5.6

模型详细信息

GPT-5.6 Luna 是 OpenAI 推出的快速且经济实惠的机型。使用 Luna 执行高容量推理任务,例如分类、汇总、路由和实时应用程序,在这些任务中,延迟和每个令牌的成本最为重要。有关模型开发和性能的更多信息,请参阅model/service 卡片。

  • 模型发布日期:2026 年 7 月 13 日

  • EOL 不早于:202 7 年 7 月 13 日

  • 遗产期:至少 6 个月

  • 模型生命周期政策:模型生命周期(适用于2026年9月7日之前发布的车型)

  • 型号停产日期: N/A

  • 最终用户许可协议和使用条款:查看

  • 模型生命周期:活跃

  • 上下文窗口:1,05 万个代币

  • 最大输出代币:128,00 0

  • Marketplace 产品编号:prod-bpeu2ptegwjfa

输入模式 输出模式
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.图片Red circle with white X icon indicating error, cancel, or close action.图片
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.文本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.视频

支持的终端节点和 API

下表显示了 GPT-5.6 Luna 支持哪些端点和 API。有关更多信息,请参阅Amazon Bedrock 支持的 API和Amazon Bedrock 支持的推理终端节点。

端点支持

Endpoint 支持的
bedrock-runtime supported
bedrock-mantle supported

bedrock-runtime终端节点支持的 API

消息 响应 聊天完成次数 Converse Invoke
not-supported supported supported supported not-supported

bedrock-mantle终端节点支持的 API

消息 响应 聊天完成次数 Converse Invoke
not-supported supported supported not-supported not-supported
注意

开启bedrock-mantle,两个 API 都使用/openai/v1基本路径,而不是/v1。在此模型中使用任一 API:

  • 对于响应,请使用/openai/v1/responses。

  • 对于 “聊天完成”,请使用/openai/v1/chat/completions。

提示

只要有可能,我们建议在新应用程序中使用bedrock-runtime终端节点。有关详细信息,请参阅Amazon Bedrock 支持的推理终端节点。

功能和特点

基岩特征

使用bedrock-runtime端点支持的功能

支持的 不支持

使用bedrock-mantle端点支持的功能

支持的 不支持

基岩运行时的 JSON 架构输出

使用 JSON 架构设置模型响应的格式。这些设置适用于bedrock-runtime终端节点上的非直播呼叫。从编程访问权限中选择个人资料 ID。

  • 对于 “聊天完成”,请设置response_format.type为。json_schema放入name、schema、然后放strict: true入response_format.json_schema。

  • 对于 “响应”,设置text.format.type为json_schema。放入name、schema、然后放strict: true入text.format。

  • 对于匡威,请设置outputConfig.textFormat.type为。json_schema在outputConfig.textFormat.structure.jsonSchema、设置name和schema。将架构编码为 JSON 字符串。然后设置additionalModelRequestFields.text.format.strict为true。

使用对象架构。把所有字段都放进去required。将 additionalProperties 设置为 false。在发送架构之前,请对其进行验证。在解析输出之前,请检查是否有拒绝或不完整的响应。

重要

对于使用 Converse API 的 JSON 架构输出true,additionalModelRequestFields.text.format.strict除了在中指定架构外,还必须将设置为。outputConfig在您的请求中包含以下字段。

{ "additionalModelRequestFields": { "text": { "format": { "strict": true } } } }

匡威内容块

在bedrock-runtime终端上,Converse 接受text用户消息中的image内容块。此模型不接受document内容块,也不接受内部的image内容块toolResult。包含其中任何一个的请求都会被拒绝ValidationException。要向此模型发送文档,请改为使用带有input_file内容部分的响应 API。

定价

标准等级的所有价格均以每100万个代币的美元为单位。

输入 — 30 分钟缓存写入列是写入提示缓存的每 100 万个令牌的价格。30 分钟的数字是缓存的提示前缀保留多长时间,而不是令牌的数量。有关更多信息,请参阅提示缓存。

商业 In-Region 价格包括比OpenAI费率高出10%的费用。您无需添加此费用。

此型号不支持优先级和 Flex 级别。

商业区域-简短上下文(27.2万个输入令牌或更少)

推理选项 输入 输入 — 30 分钟缓存写入 输入 — 缓存读取 输出
In-Region0.22 美元0.275 美元0.022 美元1.32 美元
Geo CRIS0.22 美元0.275 美元0.022 美元1.32 美元
全球CRIS0.20 美元0.25 美元0.02 美元1.20 美元

商业区域-长期背景(超过27.2万个输入令牌)

推理选项 输入 输入 — 30 分钟缓存写入 输入 — 缓存读取 输出
In-Region0.44 美元0.55 美元0.044 美元1.98 美元
Geo CRIS0.44 美元0.55 美元0.044 美元1.98 美元
全球CRIS0.40 美元0.50 美元0.04 美元1.80 美元

AWS GovCloud (US-East 和 US-West)

简短的上下文(27.2 万个或更少的输入标记)

推理选项 输入 输入 — 30 分钟缓存写入 输入 — 缓存读取 输出
In-Region0.27 美元0.3375 美元0.027 美元1.62 美元

长上下文(超过 27.2 万个输入标记)

推理选项 输入 输入 — 30 分钟缓存写入 输入 — 缓存读取 输出
In-Region0.54 美元0.675 美元0.054 美元2.43 美元

以编程方式访问

使用以下模型 ID 和端点 URL 以编程方式访问此模型。有关可用 API 和终端节点的更多信息,请参阅支持的 API 和支持的终端节点。

Endpoint 型号标识 In-Region 端点网址 地理推理 ID 全局推理 ID
bedrock-mantle openai.gpt-5.6-luna https://bedrock-mantle.{region}.api.aws/openai/v1 不支持 不支持
bedrock-runtime openai.gpt-5.6-luna 不支持 us.openai.gpt-5.6-luna在广告in.openai.gpt-5.6-luna中 AWS 区域,在印度地区 global.openai.gpt-5.6-luna

例如,如果区域为 us-east-1(弗吉尼亚北部),则基岩地幔端点 URL 将是 “”。https://bedrock-mantle.us-east-1.api.aws/openai/v1打开bedrock-runtime,基本网址为 “https://bedrock-runtime.{region} .amazonaws。 com/openai/v1 “和请求必须将地理跨区域推理 ID us.openai.gpt-5.6-luna 命名为模型。

服务等级

Amazon Bedrock 提供多个服务等级,以满足您的工作负载要求。标准版提供按令牌付费的访问权限,无需承诺(设置"service_tier": "default"或省略该字段)。P@@ ri ority 以更高的价格(套装"service_tier": "priority")提供最快的响应时间。Flex 为灵活、非时间敏感型工作负载(套装)提供低成本的访问权限。"service_tier": "flex"Reserved 为可预测的工作负载提供@@ 专门的吞吐量和定期承诺;它是在账户级别而不是根据请求设置的(请联系您的 AWS 账户团队以启用)。有关更多信息,请参阅服务等级。

Standard 优先级 Flex 已保留
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. Red circle with white X icon indicating error, cancel, or close action.

区域可用性

地区供应情况一览

Amazon Bedrock 提供三种推断选项:将请求In-Region保留在单个区域内以严格合规;在尊重数据驻留的情况下跨地理区域(例如美国、欧盟和亚太地区)进行地理 Cross-Region路由;以及没有居住限制的全球任何地方的全球路由。 Cross-Region有关更多详细信息,请参阅该各型号的地区供货情况页面。

可用性因端点而异。

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

区域 In-Region 地理 Global
us-east-1(弗吉尼亚北部)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-east-2(俄亥俄州)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-west-2(俄勒冈州)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-west-1(GovCloud 西)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 东)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.

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

区域 In-Region 地理 Global
us-east-1(弗吉尼亚北部)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(俄亥俄州)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(加利福尼亚北部)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(俄勒冈州)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(加拿大)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(卡尔加里)Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.Green circle with white checkmark icon.
eu-central-1(法兰克福)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(苏黎世)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(斯德哥尔摩)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(米兰)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(西班牙)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(爱尔兰)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(伦敦)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(巴黎)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(台北)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(东京)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(首尔)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(大阪)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(孟买)Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.Green circle with white checkmark icon.
ap-south-2(海得拉巴)Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.Green circle with white checkmark icon.
ap-southeast-1(新加坡)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(悉尼)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(雅加达)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(墨尔本)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(马来西亚)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(新西兰)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(泰国)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(特拉维夫)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(阿联酋)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(巴林)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(开普敦)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(圣保罗)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.

地理推断详情

地理推理配置文件可用的目标区域取决于源区域。要检索当前的路由配置,请GetInferenceProfile从来源区域致电。

地理位置:美国

地理推断 ID:us.openai.gpt-5.6-luna

来源区域 目的地区域
us-east-1(弗吉尼亚州北部)us-east-1(弗吉尼亚北部)、us-east-2(俄亥俄州)、us-west-2(俄勒冈州)
us-east-2(俄亥俄州)us-east-1(弗吉尼亚北部)、us-east-2(俄亥俄州)、us-west-2(俄勒冈州)
us-west-1(加利福尼亚北部)us-east-1(弗吉尼亚北部)、us-east-2(俄亥俄州)、us-west-1(加利福尼亚北部)、us-west-2(俄勒冈州)
us-west-2 (俄勒冈)us-east-1(弗吉尼亚北部)、us-east-2(俄亥俄州)、us-west-2(俄勒冈州)
ca-central-1(加拿大)ca-central-1(加拿大)、us-east-1(弗吉尼亚北部)、us-east-2(俄亥俄州)、us-west-2(俄勒冈州)
ca-west-1(卡尔加里)ca-west-1(卡尔加里)、us-east-1(弗吉尼亚北部)、us-east-2(俄亥俄州)、us-west-2(俄勒冈州)

地理:印度

地理推断 ID:in.openai.gpt-5.6-luna

来源区域 目的地区域
ap-south-1(孟买)ap-south-1(孟买)、ap-south-2(海得拉巴)
ap-south-2(海得拉巴)ap-south-1(孟买)、ap-south-2(海得拉巴)

配额和限制

您的 AWS 账户具有默认配额,以保持服务性能并确保适当使用 Amazon Bedrock。分配给账户的默认配额可能会根据地区因素、付款历史记录、欺诈性使用情况、增加配额请求的 and/or 批准而更新。有关更多信息,请参阅Amazon Bedrock 的配额文档并查看模型的限制。

在 Amazon Bedrock 上,每个请求最多可以包含 100 张图片输入。

在bedrock-runtime端点上,限制以每分钟令牌 (TPM) 的形式进行管理,消耗率为 10 倍,其中 1 个输出令牌消耗 10 个代币。

示例代码

第 1 步- AWS 账户:如果您已经有 AWS 账户,请跳过此步骤。如果您不熟悉 AWS,请注册 A WS 账户。

第 2 步-API 密钥:前往 Amazon Bedrock 控制台生成长期 API 密钥。

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

对于这两个 API,请选择 OpenAI SDK 选项卡。

OpenAI SDK
pip install openai

步骤 4-设置环境变量

将您的环境配置为使用 API 密钥进行身份验证。

bedrock-mantle
OPENAI_API_KEY="<provide your Bedrock API key>" OPENAI_BASE_URL="https://bedrock-mantle.us-east-1.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.openai.gpt-5.6-luna。global.openai.gpt-5.6-luna此模型不适用于该终端节点上的区域内推理。除了推理配置文件外,您的 IAM 身份还需要bedrock:InvokeModel在账户的默认项目 (arn:aws:bedrock:{region}:{account-id}:project/default) 中。

第 5 步-运行您的第一个推理请求

将文件另存为 bedrock-first-request.py

基岩披风

使用步骤 4-设置环境变量中的设置。选择 bedrock-mantle 选项卡。聊天选项卡使用聊天完成 API。

Responses API
from openai import OpenAI client = OpenAI() response = client.responses.create( model="openai.gpt-5.6-luna", input="Can you explain the features of Amazon Bedrock?" ) print(response)
Chat
from openai import OpenAI client = OpenAI() response = client.chat.completions.create( model="openai.gpt-5.6-luna", messages=[{"role": "user", "content": "Can you explain the features of Amazon Bedrock?"}] ) print(response)

基岩运行时:OpenAI SDK

使用步骤 4-设置环境变量中的设置。选择 bedrock-runtime 选项卡。使用响应 API 发送您的请求。

Responses API
from openai import OpenAI client = OpenAI() response = client.responses.create( model="us.openai.gpt-5.6-luna", input="Can you explain the features of Amazon Bedrock?" ) print(response)