View a markdown version of this page

克劳德 Opus 4.7 - Amazon Bedrock

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

克劳德 Opus 4.7

Anthropic — 克劳德作品 4.7

模型详细信息

Claude Opus 4.7 是 Anthropic 最强大的通用模型,它提高了编码、企业工作流程和长期运行的代理任务的性能。

  • 模型发布日期:2026 年 4 月 16 日

  • 型号停产日期: N/A

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

  • 模型生命周期:活跃

  • 上下文窗口:100 万个代币

  • 最大输出代币:12.8K

  • 推理:支持(thinking.type: "adaptive"仅限)

  • 知识截止日期:2026 年 1 月

  • Marketplace 产品编号:prod-d2ik6zgct5hxi

重要

Claude Opus 4.7 仅thinking.type: "adaptive"支持扩展思维。与 Claude Opus 4.6 不同,thinking.type: "enabled"budget_tokens不支持 with,并且会返回 400 错误。如果您要从 Opus 4.6 迁移,请更新您的使用thinking.type: "adaptive"请求。有关更多信息,请参阅 适应性思维

输入模式 输出模式 支持的 API 支持的终端节点
音频嵌入 Responses bedrock-runtime
图片图片 Chat Completions bedrock-mantle
演讲演讲 Invoke
文本文本 Converse
视频视频 Messages

功能和特点

基岩特征

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

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

使用bedrock-runtime端点提示缓存

有关更多信息,请参阅提示缓存以加快模型推断速度。

支持提示缓存 每个缓存检查点的最小令牌数 每个请求的最大缓存检查点数 支持的 TTL 接受提示缓存检查点的字段
4,096 4 5 分钟 1 小时 systemmessagestools

定价

有关定价,请参阅 Amazon Bedrock 定价页面。

以编程方式访问

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

Endpoint 型号 In-Region 端点网址 地理推理 ID 全局推理 ID
bedrock-runtime anthropic.claude-opus-4-7 N/A

us.anthropic.claude-opus-4-7

eu.anthropic.claude-opus-4-7

jp.anthropic.claude-opus-4-7

au.anthropic.claude-opus-4-7

global.anthropic.claude-opus-4-7
bedrock-mantle anthropic.claude-opus-4-7 https://bedrock-mantle.{region}.api.aws/anthropic/v1/messages N/A N/A

例如,如果区域为 us-east-1(弗吉尼亚北部),则基岩运行时端点 URL 将为 “”,基岩地幔的 URL 将https://bedrock-runtime.us-east-1.amazonaws.com为 “”。https://bedrock-mantle.us-east-1.api.aws/anthropic/v1/messages

服务等级

Amazon Bedrock 提供多个服务等级,以满足您的工作负载要求。标准版提供按令牌付费的访问权限,无需任何承诺。P@@ ri ority 通过基于时间的承诺提供更高的吞吐量。Flex 为灵活、非时间敏感型工作负载提供更低成本的访问权限。Reserved 为可预测的工作负载提供@@ 专用吞吐量和定期承诺。有关更多信息,请参阅服务等级

Standard 优先级 Flex 已保留

区域可用性

地区供应情况一览

Bedrock 提供三种推断选项:In-Region将请求保留在单个区域内以实现严格合规;在尊重数据驻留的情况下跨地理区域(美国、欧盟等)进行地理路 Cross-Region由,以提高吞吐量;以及全球任何地方的全球 Cross-Region路由,在没有居住限制的情况下实现最大吞吐量。有关更多详细信息,请参阅该区域可用性页面。

区域 In-Region 地理 Global
us-east-1(弗吉尼亚北部)
us-east-2(俄亥俄州)
us-west-1(加利福尼亚北部)
us-west-2(俄勒冈州)
ca-central-1(加拿大)
ca-west-1(卡尔加里)
eu-central-1(法兰克福)
eu-central-2(苏黎世)
eu-north-1(斯德哥尔摩)
eu-south-1(米兰)
eu-south-2(西班牙)
eu-west-1(爱尔兰)
eu-west-2(伦敦)
eu-west-3(巴黎)
ap-east-2(台北)
ap-northeast-1(东京)
ap-northeast-2(首尔)
ap-northeast-3(大阪)
ap-south-1(孟买)
ap-south-2(海得拉巴)
ap-southeast-1(新加坡)
ap-southeast-2(悉尼)
ap-southeast-3(雅加达)
ap-southeast-4(墨尔本)
ap-southeast-5(马来西亚)
ap-southeast-6(新西兰)
ap-southeast-7(泰国)
il-central-1(特拉维夫)
me-central-1(阿联酋)
me-south-1(巴林)
af-south-1(开普敦)
sa-east-1(圣保罗)
mx-central-1(墨西哥)

地理推断详情

地理位置:美国

地理推理 ID:us.anthropic.claude-opus-4-7

来源区域 目的地区域
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:eu.anthropic.claude-opus-4-7

来源区域 目的地区域
eu-central-1 (法兰克福)eu-central-1(法兰克福)、eu-north-1(斯德哥尔摩)、eu-south-1(米兰)、eu-south-2(西班牙)、eu-west-1(爱尔兰)、eu-west-3(巴黎)
eu-central-2(苏黎世)eu-central-1(法兰克福)、eu-central-2(苏黎世)、eu-north-1(斯德哥尔摩)、eu-south-1(米兰)、eu-south-2(西班牙)、eu-west-1(爱尔兰)、eu-west-3(巴黎)
eu-north-1(斯德哥尔摩)eu-central-1(法兰克福)、eu-north-1(斯德哥尔摩)、eu-south-1(米兰)、eu-south-2(西班牙)、eu-west-1(爱尔兰)、eu-west-3(巴黎)
eu-south-1(米兰)eu-central-1(法兰克福)、eu-north-1(斯德哥尔摩)、eu-south-1(米兰)、eu-south-2(西班牙)、eu-west-1(爱尔兰)、eu-west-3(巴黎)
eu-south-2(西班牙)eu-central-1(法兰克福)、eu-north-1(斯德哥尔摩)、eu-south-1(米兰)、eu-south-2(西班牙)、eu-west-1(爱尔兰)、eu-west-3(巴黎)
eu-west-1 (爱尔兰)eu-central-1(法兰克福)、eu-north-1(斯德哥尔摩)、eu-south-1(米兰)、eu-south-2(西班牙)、eu-west-1(爱尔兰)、eu-west-3(巴黎)
eu-west-2 (伦敦)eu-central-1(法兰克福)、eu-north-1(斯德哥尔摩)、eu-south-1(米兰)、eu-south-2(西班牙)、eu-west-1(爱尔兰)、eu-west-2(伦敦)、eu-west-3(巴黎)
eu-west-3(巴黎)eu-central-1(法兰克福)、eu-north-1(斯德哥尔摩)、eu-south-1(米兰)、eu-south-2(西班牙)、eu-west-1(爱尔兰)、eu-west-3(巴黎)

地理位置:日本

地理推理 ID:jp.anthropic.claude-opus-4-7

来源区域 目的地区域
ap-northeast-1 (东京)ap-northeast-1(东京)、ap-northeast-3(大阪)
ap-northeast-3(大阪)ap-northeast-1(东京)、ap-northeast-3(大阪)

地理位置:澳大利亚

地理推理 ID:au.anthropic.claude-opus-4-7

来源区域 目的地区域
ap-southeast-2 (悉尼)ap-southeast-2(悉尼)、ap-southeast-4(墨尔本)
ap-southeast-4(墨尔本)ap-southeast-2(悉尼)、ap-southeast-4(墨尔本)

全局推理详情

全局推理 ID 美洲 EMEA 亚太地区
global.anthropic.claude-opus-
  • us-east-1(弗吉尼亚州北部)

  • us-east-2(俄亥俄州)

  • us-west-1(加利福尼亚北部)

  • us-west-2 (俄勒冈)

  • ca-central-1(加拿大)

  • ca-west-1(卡尔加里)

  • sa-east-1(圣保罗)

  • mx-central-1(墨西哥)

  • eu-central-1 (法兰克福)

  • eu-central-2(苏黎世)

  • eu-north-1(斯德哥尔摩)

  • eu-south-1(米兰)

  • eu-south-2(西班牙)

  • eu-west-1 (爱尔兰)

  • eu-west-2 (伦敦)

  • eu-west-3(巴黎)

  • il-central-1(特拉维夫)

  • me-central-1(阿联酋)

  • me-south-1(巴林)

  • af-south-1(开普敦)

  • ap-east-2(台北)

  • ap-northeast-1 (东京)

  • ap-northeast-2 (首尔)

  • ap-northeast-3(大阪)

  • ap-south-1(孟买)

  • ap-south-2(海得拉巴)

  • ap-southeast-1 (新加坡)

  • ap-southeast-2 (悉尼)

  • ap-southeast-3(雅加达)

  • ap-southeast-4(墨尔本)

  • ap-southeast-5(马来西亚)

  • ap-southeast-6(新西兰)

  • ap-southeast-7(泰国)

配额和限制

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

Claude Opus 4.7 的默认配额为每个支持的区域开启 1000 万 TPMbedrock-mantle,开启 1500 万 TPM。bedrock-runtime

不再支持采样参数

从 Claude Opus 4.7 开始 temperaturetop_p,不再支持top_k参数。建议的迁移路径是在请求中完全省略这些参数,并使用提示来指导模型的行为。如果您以前依赖温度 = 0 来获得确定性输出,请注意此设置并不能保证每次调用的响应都相同。

示例代码

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

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

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

Messages API
pip install -U "anthropic[bedrock]"
Invoke/Converse API
pip install boto3

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

Messages API
AWS_BEARER_TOKEN_BEDROCK="<provide your Bedrock API key>"
Invoke/Converse API
AWS_BEARER_TOKEN_BEDROCK="<provide your Bedrock API key>"

第 5 步-运行您的第一个推理请求:将文件另存为 bedrock-first-request.py

Messages API
from anthropic import AnthropicBedrockMantle client = AnthropicBedrockMantle(aws_region="us-east-1") message = client.messages.create( model="anthropic.claude-opus-4-7", max_tokens=1024, messages=[{"role": "user", "content": "Can you explain the features of Amazon Bedrock?"}], ) print(message.content[0].text)
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()))
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)