View a markdown version of this page

概觀 - Amazon Bedrock

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

概觀

Amazon Bedrock 是一項全受管服務,提供來自領導 AI 公司的高效能基礎模型的安全企業級存取權,讓您能夠建置和擴展生成式 AI 應用程式。

快速指南

閱讀 快速指南,在五分鐘內使用 Amazon Bedrock 撰寫您的第一個 API 呼叫。

Messages API
import anthropic client = anthropic.Anthropic() response = 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(response)
Responses API
from openai import OpenAI client = OpenAI() response = client.responses.create( model="openai.gpt-oss-120b", 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="openai.gpt-oss-120b", 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()))

Bedrock 支援來自業界領導供應商的 100 多種基礎模型,包括 Amazon、Anthropic、DeepSeek、Moonshot AI、MiniMax 和 OpenAI。

Amazon 標誌具有從 A 到 Z 的彎曲箭頭,形成微笑。

Amazon Nova

橘色圓角方形圖示,搭配白色放射載入微調器設計。

Claude

DeepSeek

表面具有水平條紋或區段的球狀圖示。

金比

代表音訊或語音活動的紅色波形圖示。

MiniMax

OpenAI

新增內容

  • OpenAI GPT-5.5 和 GPT-5.4 現已在 Amazon Bedrock 中提供:適用於複雜專業工作、代理程式編碼、推理和長時間執行任務的 OpenAI 前沿模型現在可透過 Amazon Bedrock 上的回應 API 提供。如需詳細資訊,請參閱 GPT-5.5GPT-5.4 模型卡。

  • Claude Opus 4.7 現已在 Amazon Bedrock 中提供:Anthropic 迄今為止功能最強大的 Opus 模型,可改善代理程式編碼、專業工作和長時間執行的任務。

  • Claude Mythos Preview (Gated Research Preview):Anthropic 最進階的 AI 模型,具有網路安全、軟體編碼和複雜推理任務等state-of-the-art功能。適用於美國東部 (維吉尼亞北部) 的門控預覽。

  • IAM 使用者和角色的成本分配:Amazon Bedrock 現在支援 AWS Cost and Usage Report 2.0 和 Cost Explorer 中 IAM 主體的成本分配,讓客戶能夠將模型推論成本歸因於使用者、團隊和專案。

開始建置

具有雙向箭頭的雲端圖示,指出同步或資料傳輸。

探索 Amazon Bedrock 支援的 APIs和 Amazon Bedrock Amazon Bedrock 支援的端點支援的 。

紫色背景上的扳手和螺絲起子圖示。

使用 Amazon Bedrock 提供的提出推論請求操作建置 。

自訂您的模型以改善效能和品質。 自訂模型,以改善其針對使用案例的效能