View a markdown version of this page

Claude Opus 4.8 - Amazon Bedrock

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

Claude Opus 4.8

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

模型詳細資訊

Claude Opus 4.8 是針對企業工作流程中的編碼、代理程式和更深入推理最佳化的 Anthropic Opus 模型。

  • 模型啟動日期:2026 年 5 月 28 日

  • 模型 EOL 日期:不適用

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

  • 模型生命週期:作用中

  • 內容視窗:1M個字符

  • 最大輸出字符:128K

  • 原因:支援

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

  • Marketplace 產品 ID: prod-bk5rjg4eo2pke

輸入模態 輸出模式 支援的 APIs 支援的端點
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. ResponsesGreen circle with white checkmark icon. bedrock-runtime
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. Chat CompletionsGreen circle with white checkmark icon. bedrock-mantle
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. Invoke
Green circle with white checkmark icon. 文字Green circle with white checkmark icon. 文字Green circle with white checkmark icon. Converse
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. Messages

功能和功能

Bedrock 功能

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

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

提示快取

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

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

使用 bedrock-runtimebedrock-mantle端點的電腦使用

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

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

定價

如需定價,請參閱 Amazon Bedrock 定價頁面。

程式設計存取

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

端點 模型 ID 區域端點 URL 地理推論 ID 全域推論 ID
bedrock-runtime anthropic.claude-opus-4-8 N/A

us.anthropic.claude-opus-4-8

eu.anthropic.claude-opus-4-8

jp.anthropic.claude-opus-4-8

au.anthropic.claude-opus-4-8

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

例如,如果區域是 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存取,無需任何承諾。優先順序透過以時間為基礎的承諾提供更高的輸送量。Flex 為彈性、non-time-sensitive工作負載提供較低成本的存取。預留提供專用輸送量,並承諾可預測工作負載的期限。如需詳細資訊,請參閱 服務方案

標準 優先順序 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.

區域可用性

區域可用性一目了然

Bedrock 提供三種推論選項:

  • 區域內 會將請求保留在單一區域內,以確保嚴格合規。

  • 地理跨區域路由到地理內的區域 (美國、歐洲等),以提高輸送量,同時遵守資料駐留。

  • 全球跨區域路由到全球各地,以便在沒有居留限制時達到最大輸送量。

如需詳細資訊,請參閱 依模型的區域可用性頁面。

區域 區域內 地理 全域
us-east-1 (維吉尼亞北部)Green circle with white checkmark icon.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.
us-gov-west-1 (GovCloud 西部)Green circle with white checkmark icon.Green circle with white checkmark icon.Red circle with white X icon indicating error, cancel, or close action.
us-gov-east-1 (GovCloud 東部)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.
eu-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.
eu-central-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.
eu-north-1 (斯德哥爾摩)Green circle with white checkmark icon.Green circle with white checkmark icon.Green circle with white checkmark icon.
eu-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.
eu-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.
eu-west-1 (愛爾蘭)Green circle with white checkmark icon.Green circle with white checkmark icon.Green circle with white checkmark icon.
eu-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.
eu-west-3 (巴黎)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-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 (東京)Green circle with white checkmark icon.Green circle with white checkmark icon.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.Green circle with white checkmark icon.Green circle with white checkmark icon.
ap-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.
ap-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.
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.Green circle with white checkmark icon.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 (墨爾本)Green circle with white checkmark icon.Green circle with white checkmark icon.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.
mx-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.

地理推論詳細資訊

地理:美國

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

來源區域 目的地區域
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-8

來源區域 目的地區域
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-8

來源區域 目的地區域
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-8

來源區域 目的地區域
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-8
  • 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.8 的預設配額為 20M 輸入 TPM 和 4M 輸出 TPM on,bedrock-mantle以及bedrock-runtime每個支援區域的 30M TPM on。Claude Opus 4.8 沒有requests-per-minute數 (RPM) 配額;限流僅受上述token-per-minute(TPM) 配額控制。

範例程式碼

步驟 1 - AWS 帳戶:如果您已經有 AWS 帳戶,請略過此步驟。如果您是初次使用 AWS,請註冊 AWS 帳戶

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

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

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-8", 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-8', 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-8', messages=[ { 'role': 'user', 'content': [{'text': 'Can you explain the features of Amazon Bedrock?'}] } ] ) print(response)