View a markdown version of this page

Claude Opus 4.7 - Amazon Bedrock

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

Claude Opus 4.7

Orange rounded square icon with white radial loading or progress indicator symbol. Anthropic — Claude Opus 4.7

模型詳細資訊

Claude Opus 4.7 是一種 Anthropic Opus 模型,專為編碼、企業工作流程和長時間執行的代理程式任務而打造。

  • 模型啟動日期:2026 年 4 月 16 日

  • EOL 不得早於:2027 年 4 月 16 日

  • 舊版期間:至少 6 個月

  • 模型生命週期政策:模型生命週期 (適用於 2026 年 9 月 7 日之前啟動的模型)

  • 模型 EOL 日期:不適用

  • 最終使用者授權合約和使用條款:檢視

  • 模型生命週期:作用中

  • 內容視窗:1M個字符

  • 最大輸出字符:128K

  • 原因:支援 (thinking.type: "adaptive"僅限 )

  • 知識截止日:2026 年 1 月

  • Marketplace 產品 ID: prod-d2ik6zgct5hxi

重要

Claude Opus 4.7 僅支援thinking.type: "adaptive"延伸思考。與 Claude Opus 4.6 不同,budget_tokens不支援 thinking.type: "enabled" 搭配 ,並會傳回 400 錯誤。如果您要從 Opus 4.6 遷移,請更新您的請求以使用 。 thinking.type: "adaptive"如需詳細資訊,請參閱適應性思維。

輸入模式 輸出模式
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. 影片

支援的端點和 APIs

下表顯示 Claude Opus 4.7 支援哪些端點和 APIs。如需詳細資訊,請參閱Amazon Bedrock 支援的 APIs及Amazon Bedrock 支援的端點。

端點支援

端點 支援的
bedrock-runtime supported
bedrock-mantle supported

bedrock-runtime端點上支援的 APIs

訊息 回應 聊天完成 Converse Invoke
supported not-supported not-supported supported supported

bedrock-mantle端點上支援的 APIs

訊息 回應 聊天完成 Converse Invoke
supported not-supported not-supported not-supported not-supported
提示

我們建議您盡可能將bedrock-runtime端點用於新應用程式。如需詳細資訊,請參閱 Amazon Bedrock 支援的端點。

功能和功能

Bedrock 功能

使用bedrock-mantle端點支援的功能

使用bedrock-runtime端點支援的功能

使用 和 bedrock-mantle端點的隱含bedrock-runtime和明確提示快取

如需詳細資訊,請參閱提示快取以取得更快速的模型推論。

支援明確提示快取 每個快取檢查點的字符數量下限 每個請求的快取檢查點上限 支援的 TTL 接受提示快取檢查點的欄位
是 4,096 4 5 分鐘、1 小時 system、messages 與 tools

使用 bedrock-runtime和 bedrock-mantle端點的電腦使用

如需詳細資訊,請參閱電腦使用。

工具類型 Beta 標頭
computer_20251124 computer-use-2025-11-24

定價

此模型是透過 AWS Marketplace 提供和計費的第三方模型。費用會顯示在模型提供者下的 AWS 帳單和 in AWS Cost Explorer 中 (不在 Amazon Bedrock 下)。如需定價,請參閱 Amazon Bedrock 定價頁面。

程式設計存取

使用以下模型 IDs和端點 URLs以程式設計方式存取此模型。如需可用 APIs和端點的詳細資訊,請參閱支援的 APIs和支援的端點。

端點 模型 ID 區域端點 URL 地理推論 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

例如,如果 region 是 us-east-1 (維吉尼亞北部),則 bedrock-runtime 端點 URL 將為 "https://bedrock-runtime.us-east-1.amazonaws.com",bedrock-mantle 則為 "https://bedrock-mantle.us-east-1.api.aws/anthropic/v1/messages"。

服務層

Amazon Bedrock 提供多種服務層,以符合您的工作負載需求。Standard 提供pay-per-token存取 (設定"service_tier": "default"或省略 欄位)。Priority 提供價格溢價最快的回應時間 (設定 "service_tier": "priority")。Flex 為彈性、non-time-sensitive的工作負載提供較低成本的存取 (設定 "service_tier": "flex")。預留會提供專用輸送量與可預測工作負載的期限承諾;它會在帳戶層級設定,而不是根據請求設定 (請聯絡您的 AWS 帳戶團隊啟用)。如需詳細資訊,請參閱 服務方案。

標準 優先順序 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 提供三種推論選項:為嚴格合規,區域內將請求保留在單一區域內、在遵守資料駐留時跨區域 (例如美國、歐洲和亞太區域) 的地理跨區域路由,以及在沒有駐留限制的情況下在全球任何地方進行全球跨區域路由。如需詳細資訊,請參閱 依模型的區域可用性頁面。

可用性因端點而異。

使用bedrock-runtime端點的可用性

區域 區域內 地理 全域
us-east-1 (維吉尼亞北部)not-supportedsupportedsupported
us-east-2 (俄亥俄)not-supportedsupportedsupported
us-west-1 (加利佛尼亞北部)not-supportedsupportedsupported
us-west-2 (奧勒岡)not-supportedsupportedsupported
ca-central-1 (加拿大)not-supportedsupportedsupported
ca-west-1 (卡加利)not-supportedsupportedsupported
eu-central-1 (法蘭克福)not-supportedsupportedsupported
eu-central-2 (蘇黎世)not-supportedsupportedsupported
eu-north-1 (斯德哥爾摩)not-supportedsupportedsupported
eu-south-1 (米蘭)not-supportedsupportedsupported
eu-south-2 (西班牙)not-supportedsupportedsupported
eu-west-1 (愛爾蘭)not-supportedsupportedsupported
eu-west-2 (倫敦)not-supportedsupportedsupported
eu-west-3 (巴黎)not-supportedsupportedsupported
ap-east-2 (台北)not-supportednot-supportedsupported
ap-northeast-1 (東京)not-supportedsupportedsupported
ap-northeast-2 (首爾)not-supportednot-supportedsupported
ap-northeast-3 (大阪)not-supportedsupportedsupported
ap-south-1 (孟買)not-supportednot-supportedsupported
ap-south-2 (海德拉巴)not-supportednot-supportedsupported
ap-southeast-1 (新加坡)not-supportednot-supportedsupported
ap-southeast-2 (雪梨)not-supportedsupportedsupported
ap-southeast-3 (雅加達)not-supportednot-supportedsupported
ap-southeast-4 (墨爾本)not-supportedsupportedsupported
ap-southeast-5 (馬來西亞)not-supportednot-supportedsupported
ap-southeast-6 (紐西蘭)not-supportednot-supportedsupported
ap-southeast-7 (泰國)not-supportednot-supportedsupported
il-central-1 (特拉維夫)not-supportednot-supportedsupported
me-central-1 (阿拉伯聯合大公國)not-supportednot-supportedsupported
me-south-1 (巴林)not-supportednot-supportedsupported
af-south-1 (開普敦)not-supportednot-supportedsupported
sa-east-1 (聖保羅)not-supportednot-supportedsupported
mx-central-1 (墨西哥)not-supportednot-supportedsupported

使用bedrock-mantle端點的可用性

區域 區域內 地理 全域
us-east-1 (維吉尼亞北部)supportednot-supportednot-supported
eu-north-1 (斯德哥爾摩)supportednot-supportednot-supported
eu-west-1 (愛爾蘭)supportednot-supportednot-supported
ap-northeast-1 (東京)supportednot-supportednot-supported
ap-southeast-4 (墨爾本)supportednot-supportednot-supported

地理推論詳細資訊

地理:美國

地理推論 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 (巴黎)

地理:JP

地理推論 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 (大阪)

地理:AU

地理推論 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-4-7
  • 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。指派給帳戶的預設配額可能會根據區域因素、付款歷史記錄、詐騙使用量和/或配額增加請求的核准而更新。如需詳細資訊,請參閱 Amazon Bedrock 的配額 文件並參閱模型的限制。

Claude Opus 4.7 的預設配額為 20M 輸入 TPM 和 4M 輸出 TPM on,bedrock-mantle以及bedrock-runtime每個支援區域的 30M TPM on。Claude Opus 4.7 沒有requests-per-minute數 (RPM) 配額;限流僅受上述token-per-minute(TPM) 配額控制。

不再支援取樣參數

從 Claude Opus 4.7 開始,不再支援 top_p、 temperature和 top_k 參數。建議的遷移路徑是完全從您的請求中省略這些參數,並使用提示來引導模型的行為。如果您之前倚賴溫度 = 0 進行確定性輸出,請注意,此設定不保證跨調用進行相同的回應。

範例程式碼

步驟 1 - AWS 帳戶:如果您已經有 AWS 帳戶,請略過此步驟。如果您是新手 AWS,請註冊 AWS 帳戶。

步驟 2 - API 金鑰:前往 Amazon Bedrock 主控台並產生長期 API 金鑰。

步驟 3 - 取得 SDK:若要使用此入門指南,您必須已安裝 Python。然後,根據您使用的 APIs相關軟體。

Messages API
pip install -U anthropic aws-bedrock-token-generator
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 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)
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)