Amazon Bedrock RuntimeのGrok 4.6を AWS CLIで試してみた

Amazon Bedrock RuntimeのGrok 4.6を AWS CLIで試してみた

Amazon Bedrock で利用可能になった Grok 4.6 を、AWS CLI の aws bedrock-runtime converse から IAM 認証だけで呼び出してみました。Bearer Token の発行は不要で、Global と US Geo の推論プロファイルの使い分けも確認します。
2026.08.21

はじめに

2026年8月、Amazon Bedrock で xAI の Grok 4.6 が利用できるようになりました。

https://aws.amazon.com/about-aws/whats-new/2026/08/amazon-bedrock-grok-4-6/

先に公開した記事では、Grok 4.6 を bedrock-mantle エンドポイントで試した結果を紹介しています。

https://dev.classmethod.jp/articles/grok-4-6-amazon-bedrock-mantle-iam/

本記事では、AWS CLI の aws bedrock-runtime converse を使い、bedrock-runtime エンドポイントで Grok 4.6 を IAM 認証だけで利用できるか確認しました。

検証内容

検証環境

項目
OS・アーキテクチャ Linux 7.1.6-400.asahi.fc44.aarch64+16k aarch64
AWS CLIバージョン aws-cli/2.36.25

Global推論プロファイル

まず、Global 推論プロファイル global.xai.grok-4.6 が使用可能な状態かを東京リージョンから確認しました。

$ aws bedrock get-inference-profile \
  --region ap-northeast-1 \
  --inference-profile-identifier global.xai.grok-4.6
{
    "inferenceProfileName": "Global xAI Grok 4.6",
    "description": "Routes requests to Grok 4.6 globally across all supported AWS Regions.",
    "createdAt": "2026-08-18T23:30:25.922000+00:00",
    "updatedAt": "2026-08-18T23:30:25.922000+00:00",
    "inferenceProfileArn": "arn:aws:bedrock:ap-northeast-1:<account-id>:inference-profile/global.xai.grok-4.6",
    "models": [
        {
            "modelArn": "arn:aws:bedrock:::foundation-model/xai.grok-4.6"
        },
        {
            "modelArn": "arn:aws:bedrock:ap-northeast-1::foundation-model/xai.grok-4.6"
        }
    ],
    "inferenceProfileId": "global.xai.grok-4.6",
    "status": "ACTIVE",
    "type": "SYSTEM_DEFINED"
}

status は ACTIVE でした。プロファイルは利用可能な状態にあり、実際に呼び出せるかは次節で確認します。アカウント ID は <account-id> に置き換えています。

Converse実行

続いて、aws bedrock-runtime converse で実際に推論リクエストを送りました。

$ aws bedrock-runtime converse \
  --region ap-northeast-1 \
  --model-id global.xai.grok-4.6 \
  --messages '[{"role":"user","content":[{"text":"動作確認です。日本語で「Grok 4.6 on Amazon Bedrock は利用可能です」と一文だけ返してください。"}]}]'
{
    "output": {
        "message": {
            "role": "assistant",
            "content": [
                {
                    "reasoningContent": {
                        "redactedContent": "<base64、記事には転記しない>"
                    }
                },
                {
                    "text": "Grok 4.6 on Amazon Bedrock は利用可能です"
                }
            ]
        }
    },
    "stopReason": "end_turn",
    "usage": {
        "inputTokens": 58,
        "outputTokens": 222,
        "totalTokens": 280,
        "cacheReadInputTokens": 0
    },
    "metrics": {
        "latencyMs": 23082
    }
}

stopReason は end_turn で正常終了し、日本語のプロンプトに日本語で応答しました。使ったのは aws configure 済みのデフォルトプロファイル、または aws sso login で取得した一時認証情報だけです。Bearer Token(APIキー)の発行も、AWS CLI 以外のツール導入も必要ありませんでした。応答には、推論内容が暗号化された reasoningContent.redactedContent が含まれます。

CloudTrailの記録

Converse 呼び出しが CloudTrail にどう記録されるか、とくに Global 推論プロファイルがどのリージョンへリクエストをルーティングしたかを確認しました。

$ aws cloudtrail lookup-events \
  --region ap-northeast-1 \
  --lookup-attributes AttributeKey=EventName,AttributeValue=Converse \
  --max-results 10

取得したイベントのうち、前節の Converse 実行に対応する部分を抜粋します。

{
  "eventName": "Converse",
  "awsRegion": "ap-northeast-1",
  "requestParameters": {
    "modelId": "global.xai.grok-4.6"
  },
  "additionalEventData": {
    "inferenceRegion": "us-west-2",
    "inputTokens": 58,
    "outputTokens": 222
  },
  "managementEvent": true,
  "eventCategory": "Management"
}

リクエスト先の awsRegion は ap-northeast-1 です。additionalEventData.inferenceRegion は us-west-2 で、Global 推論プロファイルがこのリクエストをオレゴンにルーティングしたことが分かります。eventCategory が Management、managementEvent が true であることから、この呼び出しは管理イベントとして記録され、追加のデータイベント設定は不要でした。additionalEventData のトークン数は前節の usage と一致しており、同一呼び出しの記録であることを確認できます。本セッションで試した Converse の呼び出しは、いずれも inferenceRegion が us-west-2 でした。

CloudTrailイベント全文(秘匿情報はマスク)
{
  "eventVersion": "1.11",
  "userIdentity": "<masked>",
  "eventTime": "2026-08-21T11:20:00Z",
  "eventSource": "bedrock.amazonaws.com",
  "eventName": "Converse",
  "awsRegion": "ap-northeast-1",
  "sourceIPAddress": "<masked>",
  "userAgent": "aws-cli/2.36.25 md/awscrt#0.36.2 ua/2.1 os/linux#7.1.6-400.asahi.fc44.aarch64+16k ... md/command#bedrock-runtime.converse",
  "requestParameters": {
    "modelId": "global.xai.grok-4.6"
  },
  "responseElements": null,
  "additionalEventData": {
    "inferenceRegion": "us-west-2",
    "inputTokens": 58,
    "outputTokens": 222
  },
  "requestID": "<masked>",
  "eventID": "<masked>",
  "readOnly": true,
  "resources": [
    {
      "accountId": "<masked>",
      "type": "AWS::Bedrock::Model",
      "ARN": "arn:aws:bedrock:ap-northeast-1::foundation-model/xai.grok-4.6"
    }
  ],
  "eventType": "AwsApiCall",
  "managementEvent": true,
  "recipientAccountId": "<masked>",
  "eventCategory": "Management",
  "tlsDetails": {
    "tlsVersion": "TLSv1.3",
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "bedrock-runtime.ap-northeast-1.amazonaws.com"
  }
}

US Geo推論プロファイル

Global が問題なく動いたので、もう1つの選択肢である US Geo 推論プロファイル us.xai.grok-4.6 も同じ手順で通るか見ていきます。

$ aws bedrock get-inference-profile \
  --region us-east-1 \
  --inference-profile-identifier us.xai.grok-4.6
{
    "inferenceProfileName": "US xAI Grok 4.6",
    "description": "Routes requests to Grok 4.6 in us-east-1, us-east-2, us-west-2.",
    "createdAt": "2026-08-18T23:28:38.594000+00:00",
    "updatedAt": "2026-08-18T23:28:38.594000+00:00",
    "inferenceProfileArn": "arn:aws:bedrock:us-east-1:<account-id>:inference-profile/us.xai.grok-4.6",
    "models": [
        {
            "modelArn": "arn:aws:bedrock:us-east-1::foundation-model/xai.grok-4.6"
        },
        {
            "modelArn": "arn:aws:bedrock:us-east-2::foundation-model/xai.grok-4.6"
        },
        {
            "modelArn": "arn:aws:bedrock:us-west-2::foundation-model/xai.grok-4.6"
        }
    ],
    "inferenceProfileId": "us.xai.grok-4.6",
    "status": "ACTIVE",
    "type": "SYSTEM_DEFINED"
}

status は ACTIVE でした。description と models から、このプロファイルは us-east-1・us-east-2・us-west-2 の3リージョンにリクエストをルーティングする設定だと分かります。

US Geoでの実行

Global と同じ流れで Converse を実行し、CloudTrail の記録も見ておきます。

$ aws bedrock-runtime converse \
  --region us-east-1 \
  --model-id us.xai.grok-4.6 \
  --messages '[{"role":"user","content":[{"text":"動作確認です。日本語で「Grok 4.6 on Amazon Bedrock は利用可能です」と一文だけ返してください。"}]}]'
{
    "output": {
        "message": {
            "role": "assistant",
            "content": [
                {
                    "reasoningContent": {
                        "redactedContent": "<base64、記事には転記しない>"
                    }
                },
                {
                    "text": "Grok 4.6 on Amazon Bedrock は利用可能です"
                }
            ]
        }
    },
    "stopReason": "end_turn",
    "usage": {
        "inputTokens": 58,
        "outputTokens": 213,
        "totalTokens": 271,
        "cacheReadInputTokens": 0
    },
    "metrics": {
        "latencyMs": 3783
    }
}

stopReason は end_turn で、us-east-1 から US Geo 推論プロファイル経由でも Global と同じく IAM 認証だけで Converse が動作しました。

対応する CloudTrail イベントの抜粋です。

$ aws cloudtrail lookup-events \
  --region us-east-1 \
  --lookup-attributes AttributeKey=EventName,AttributeValue=Converse \
  --max-results 10
{
  "eventName": "Converse",
  "awsRegion": "us-east-1",
  "requestParameters": {
    "modelId": "us.xai.grok-4.6"
  },
  "additionalEventData": {
    "inferenceRegion": "us-west-2",
    "inputTokens": 58,
    "outputTokens": 213
  },
  "managementEvent": true,
  "eventCategory": "Management"
}

リクエスト先の awsRegion は us-east-1、inferenceRegion は us-west-2 でした。Global 実行時と同じ結果で、3リージョンのどれに振られるかは実行のタイミング次第です。

CloudTrailイベント全文(秘匿情報はマスク)
{
  "eventVersion": "1.11",
  "userIdentity": "<masked>",
  "eventTime": "2026-08-21T12:28:40Z",
  "eventSource": "bedrock.amazonaws.com",
  "eventName": "Converse",
  "awsRegion": "us-east-1",
  "sourceIPAddress": "<masked>",
  "userAgent": "aws-cli/2.36.28 md/awscrt#0.36.2 ua/2.1 os/linux#7.1.6-400.asahi.fc44.aarch64+16k ... md/command#bedrock-runtime.converse",
  "requestParameters": {
    "modelId": "us.xai.grok-4.6"
  },
  "responseElements": null,
  "additionalEventData": {
    "inferenceRegion": "us-west-2",
    "inputTokens": 58,
    "outputTokens": 213
  },
  "requestID": "<masked>",
  "eventID": "<masked>",
  "readOnly": true,
  "resources": [
    {
      "accountId": "<masked>",
      "type": "AWS::Bedrock::Model",
      "ARN": "arn:aws:bedrock:us-east-1::foundation-model/xai.grok-4.6"
    }
  ],
  "eventType": "AwsApiCall",
  "managementEvent": true,
  "recipientAccountId": "<masked>",
  "eventCategory": "Management",
  "tlsDetails": {
    "tlsVersion": "TLSv1.3",
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "bedrock-runtime.us-east-1.amazonaws.com"
  }
}

この実行の前に、AWS CLI を aws-cli/2.36.28 にアップデートしています。

データ保持設定

データ保持モードによってはモデルの利用可否が変わるため、US Geo 推論プロファイルを実行した us-east-1 で、アカウントのデータ保持モードを確認しました。

$ aws bedrock get-account-data-retention --region us-east-1
{
    "mode": "provider_data_share",
    "updatedAt": "2026-06-09T23:46:41.595000+00:00"
}

このリージョンでは、アカウントのデータ保持モードは provider_data_share でした。続いて、Converse リクエストの additional-model-request-fieldsdata_retention_mode として none を指定し、ゼロデータ保持モードで実行できるか確認しました。

$ aws bedrock-runtime converse \
  --region us-east-1 \
  --model-id us.xai.grok-4.6 \
  --messages '[{"role":"user","content":[{"text":"ゼロデータ保持モードの動作確認です。日本語で「成功」とだけ返してください。"}]}]' \
  --additional-model-request-fields '{"data_retention_mode":"none"}'

stopReasonend_turn で、応答として「成功」を取得できました。

対応機能の違い

bedrock-runtime エンドポイントでサポートされる機能は、Grok 4.6 のモデルカードの「Capabilities and Features」節に記載があります。

bedrock-runtime エンドポイントでのサポート状況

Supported:
- Projects (default project only)
- Invocation logs
- Response streaming
- Prompt caching
- Reasoning

Not Supported:
- Server-side tool use
- Intelligent prompt routing
- Count tokens
- Structured outputs
- Application inference profiles

同じ節には、Mantle 先行記事で扱った bedrock-mantle エンドポイント側の対応状況も並んでいます(参考・比較用の引用です)。

bedrock-mantle エンドポイントでのサポート状況

Supported:
- Client-side tool calling
- Reasoning
- Projects
- Abuse detection
- Response streaming
- Structured outputs
- Prompt caching

モデルカードの記載では、bedrock-runtime エンドポイントで Server-side tool use と Structured outputs は Not Supported とされています。bedrock-mantle のみサポートする機能を利用する場合は、bedrock-mantle を利用してください。

料金の違い

Global と US Geo は料金も異なります。モデルカードの「Pricing」節に、Standard ティアの1Mトークンあたりの価格が載っています。

Inference option Input Output Cache read
In-Region $2.20 $6.60 $0.55
Geo CRIS $2.20 $6.60 $0.55
Global CRIS $2.00 $6.00 $0.50

In-Region と Geo CRIS(us.xai.grok-4.6)は同額で、Global CRIS(global.xai.grok-4.6)が入力・出力・キャッシュ読み取りのいずれも約1割安くなっています。

まとめ

Grok 4.3 は bedrock-mantle のみのサポートでした。Grok 4.6 では bedrock-runtime も選択可能になり、AWS CLI や SDK から IAM 認証を用いたシンプルな実装で利用できるようになりました。

また、Bedrock Runtime で OpenAI や Anthropic のモデルを利用しているワークロードにも、Grok 4.6 を組み込みやすくなりました。xAI によると、Grok 4.6 は Fabble5 や GPT5.6 Sol に匹敵するベンチマーク性能を、Sonnet や Terra 相当のコストで利用できるとされています。ぜひ一度お試しください。

この記事をシェアする

AWSのお困り事はクラスメソッドへ

関連記事