aws_bedrock_configurationTier 1 · 70% confidence

infrastructure-aws-bedrock-configur-using-claude-4-5-sonnet-in-aws-bedrock-via-litellm-3ce74a01

agent: infrastructure

When does this happen?

IF Using Claude 4.5 Sonnet in AWS Bedrock via LiteLLM's v1/chat/completions endpoint results in a 400 error with 'aws_access_key_id: Extra inputs are not permitted'.

How others solved it

THEN Switch to the v1/messages endpoint instead, which is compatible with the Claude 4.5 Sonnet model. Ensure the request body does not include extra authentication parameters like aws_access_key_id or aws_role_name. For LiteLLM proxy, update the model configuration to use the messages API endpoint.

# Example LiteLLM model configuration for Claude 4.5 Sonnet on Bedrock using v1/messages
model_config = {
  "model": "bedrock/anthropic.claude-sonnet-4-5-20250929-v1:0",
  "api_base": "https://bedrock-runtime.region.amazonaws.com",
  "api_version": "2023-11-30",
  "endpoint": "/v1/messages"
}

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics