View a markdown version of this page

Claude Sonnet 4 - Amazon Bedrock

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

Claude Sonnet 4

Orange rounded square icon with white radial loading spinner design. Anthropic — Claude Sonnet 4

モデルの詳細

Claude Sonnet 4 は Anthropic のバランスの取れたモデルで、強力なコーディングと推論機能、指示に従う改善、ツールの使用による思考の拡張を備えています。モデルの開発とパフォーマンスの詳細については、モデル/サービスカードを参照してください。

  • モデル開始日: 2025 年 5 月 23 日

  • モデル終了日: 2026 年 10 月 14 日

  • エンドユーザーライセンス契約と利用規約: 表示

  • モデルライフサイクル: レガシー (特定のリージョン)

  • コンテキストウィンドウ: 200K トークン

  • 最大出力トークン: 64K

  • 理由: サポート対象

  • ナレッジカットオフ: 2025 年 3 月

  • Marketplace 製品 ID: prod-4pmewlybdftbs

入力モダリティ 出力モダリティ サポートされている 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 CompletionsRed circle with white X icon indicating error, cancel, or close action. 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. のビデオ
ヒント

可能な限り、新しいアプリケーションには bedrock-runtimeエンドポイントを使用することをお勧めします。詳細については、「Amazon Bedrock でサポートされているエンドポイント」を参照してください。

機能と機能

Bedrock の機能

bedrock-runtimeエンドポイントを使用してサポートされる機能

bedrock-runtimeエンドポイントを使用したプロンプトキャッシュ

詳細については、「モデル推論を高速化するためのプロンプトキャッシュ」を参照してください。

サポートされているプロンプトキャッシュ キャッシュチェックポイントあたりの最小トークン リクエストあたりの最大キャッシュチェックポイント サポートされている TTL プロンプトキャッシュチェックポイントを受け入れるフィールド
はい 1,024 4 5 分 systemmessages、および tools

料金

料金情報については、Amazon Bedrock の料金ページを参照してください。

プログラムによるアクセス

次のモデル IDs とエンドポイント URLsを使用して、このモデルにプログラムでアクセスします。使用可能な APIs「サポートされている APIs」と「サポートされているエンドポイント」を参照してください。

Endpoint モデル ID リージョン内エンドポイント URL 地理推論 ID グローバル推論 ID
bedrock-runtime anthropic.claude-sonnet-4-20250514-v1:0 該当なし

us.anthropic.claude-sonnet-4-20250514-v1:0

eu.anthropic.claude-sonnet-4-20250514-v1:0

apac.anthropic.claude-sonnet-4-20250514-v1:0

global.anthropic.claude-sonnet-4-20250514-v1:0

たとえば、リージョンが us-east-1 (バージニア北部) の場合、bedrock-runtime エンドポイント URL は「https://bedrock-runtime.us-east-1.amazonaws.com」になります。

サービス階層

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 には 3 つの推論オプションがあります。In-Region は、厳格なコンプライアンスのために 1 つのリージョン内にリクエストを保持します。Geo Cross-Region は、データレジデンシーを尊重しながら、1 つのリージョン (米国、欧州、APAC など) 間でルーティングします。Global Cross-Region は、レジデンシーの制約がない世界中のどこにでもルーティングします。詳細については、モデル別のリージョンの可用性「」ページを参照してください。

リージョン リージョン内 地域 グローバル
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.Red circle with white X icon indicating error, cancel, or close action.
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.
eu-central-1 (フランクフルト)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-north-1 (ストックホルム)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-south-1 (ミラノ)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-south-2 (スペイン)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-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-west-3 (パリ)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.
il-central-1 (テルアビブ)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.
ap-east-2 (台北)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.
ap-northeast-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-northeast-2 (ソウル)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.
ap-northeast-3 (大阪)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.
ap-south-1 (ムンバイ)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.
ap-south-2 (ハイデラバード)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.
ap-southeast-1 (シンガポール)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.
ap-southeast-2 (シドニー)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.
ap-southeast-3 (ジャカルタ)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.
ap-southeast-4 (メルボルン)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.
ap-southeast-5 (マレーシア)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.
ap-southeast-7 (タイ)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.

地理推論の詳細

地域: 米国

地理推論 ID: us.anthropic.claude-sonnet-4-20250514-v1:0

ソースリージョン 送信先リージョン
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 (オレゴン)

地域: EU

地理推論 ID: eu.anthropic.claude-sonnet-4-20250514-v1:0

ソースリージョン 送信先リージョン
eu-central-1 (フランクフルト)eu-central-1 (フランクフルト)、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-3 (パリ)eu-central-1 (フランクフルト)、eu-north-1 (ストックホルム)、eu-south-1 (ミラノ)、eu-south-2 (スペイン)、eu-west-1 (アイルランド)、eu-west-3 (パリ)
il-central-1 (テルアビブ)eu-central-1 (フランクフルト)、eu-north-1 (ストックホルム)、eu-south-1 (ミラノ)、eu-south-2 (スペイン)、eu-west-1 (アイルランド)、eu-west-3 (パリ)、il-central-1 (テルアビブ)

地域: APAC

地理推論 ID: apac.anthropic.claude-sonnet-4-20250514-v1:0

ソースリージョン 送信先リージョン
ap-northeast-1 (東京)ap-northeast-1 (東京)、ap-northeast-2 (ソウル)、ap-northeast-3 (大阪)、ap-south-1 (ムンバイ)、ap-south-2 (ハイデラバード)、ap-southeast-1 (シンガポール)、ap-southeast-2 (シドニー)、ap-southeast-4 (メルボルン)
ap-northeast-2 (ソウル)ap-northeast-1 (東京)、ap-northeast-2 (ソウル)、ap-northeast-3 (大阪)、ap-south-1 (ムンバイ)、ap-south-2 (ハイデラバード)、ap-southeast-1 (シンガポール)、ap-southeast-2 (シドニー)、ap-southeast-4 (メルボルン)
ap-northeast-3 (大阪)ap-northeast-1 (東京)、ap-northeast-2 (ソウル)、ap-northeast-3 (大阪)、ap-south-1 (ムンバイ)、ap-south-2 (ハイデラバード)、ap-southeast-1 (シンガポール)、ap-southeast-2 (シドニー)、ap-southeast-4 (メルボルン)
ap-south-1 (ムンバイ)ap-northeast-1 (東京)、ap-northeast-2 (ソウル)、ap-northeast-3 (大阪)、ap-south-1 (ムンバイ)、ap-south-2 (ハイデラバード)、ap-southeast-1 (シンガポール)、ap-southeast-2 (シドニー)、ap-southeast-4 (メルボルン)
ap-south-2 (ハイデラバード)ap-northeast-1 (東京)、ap-northeast-2 (ソウル)、ap-northeast-3 (大阪)、ap-south-1 (ムンバイ)、ap-south-2 (ハイデラバード)、ap-southeast-1 (シンガポール)、ap-southeast-2 (シドニー)、ap-southeast-4 (メルボルン)
ap-southeast-1 (シンガポール)ap-northeast-1 (東京)、ap-northeast-2 (ソウル)、ap-northeast-3 (大阪)、ap-south-1 (ムンバイ)、ap-south-2 (ハイデラバード)、ap-southeast-1 (シンガポール)、ap-southeast-2 (シドニー)、ap-southeast-4 (メルボルン)
ap-southeast-2 (シドニー)ap-northeast-1 (東京)、ap-northeast-2 (ソウル)、ap-northeast-3 (大阪)、ap-south-1 (ムンバイ)、ap-south-2 (ハイデラバード)、ap-southeast-1 (シンガポール)、ap-southeast-2 (シドニー)、ap-southeast-4 (メルボルン)

グローバル推論の詳細

グローバル推論 ID 南北アメリカ EMEA アジアパシフィック
global.anthropic.claude-sonnet-4-20250514-v1:0
  • us-east-1 (バージニア北部)

  • us-east-2 (オハイオ)

  • us-west-2 (オレゴン)

  • eu-west-1 (アイルランド)

  • ap-northeast-1 (東京)

クォータと制限

AWS アカウントには、サービスのパフォーマンスを維持し、Amazon Bedrock の適切な使用を確保するためのデフォルトのクォータがあります。アカウントに割り当てられたデフォルトのクォータは、リージョンの要因、支払い履歴、不正使用、および/またはクォータ引き上げリクエストの承認に応じて更新される場合があります。詳細については、Amazon Bedrock のクォータ「 ドキュメント」および「 モデルの制限」を参照してください。

サンプルコード

ステップ 1 - AWS アカウント: AWS アカウントがすでにある場合は、このステップをスキップします。を初めて使用する場合は AWS、AWS アカウントにサインアップします。

ステップ 2 - API キー: Amazon Bedrock コンソールに移動し、長期 API キーを生成します。

ステップ 3 - SDK を取得する: この入門ガイドを使用するには、Python がすでにインストールされている必要があります。次に、使用している APIs に応じて、関連するソフトウェアをインストールします。

pip install boto3

ステップ 4 - 環境変数を設定する: API キーを認証に使用するように環境を設定します。

AWS_BEARER_TOKEN_BEDROCK="<provide your Bedrock API key>"

ステップ 5 - 最初の推論リクエストを実行する: ファイルを として保存する bedrock-first-request.py

Invoke API
import json import boto3 client = boto3.client('bedrock-runtime', region_name='us-east-1') response = client.invoke_model( modelId='anthropic.claude-sonnet-4-20250514-v1:0', 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-sonnet-4-20250514-v1:0', messages=[ { 'role': 'user', 'content': [{'text': 'Can you explain the features of Amazon Bedrock?'}] } ] ) print(response)