Feature Request: Support anthropic_beta parameter for AWS Bedrock (Claude Opus 4.6 – 1M Context)

Feature Request: Support anthropic_beta parameter in AWS Bedrock node (1M Context Window)

Summary

The AWS Bedrock node doesn’t allow passing anthropic_beta in the request body, which is required to enable the 1M token context window for Claude Opus 4 models.

Without it, Bedrock enforces the default 200K limit:

prompt is too long: <N> tokens > 200000 maximum

AWS Bedrock requires this in the request body:

{
  "anthropic_version": "bedrock-2023-05-31",
  "anthropic_beta": ["context-1m-2025-08-07"],
  "messages": [...],
  "max_tokens": 1024
}

Environment

  • n8n version: <your_version>
  • Deployment: <Docker / Cloud / Self-hosted>
  • AWS Region: <region>
  • Model: Claude Opus 4 via AWS Bedrock

Reproduction Steps

  1. Use the AWS Bedrock node with Claude Opus 4
  2. Send input exceeding 200K tokens → fails with token limit error
  3. Send the same request via AWS SDK with anthropic_beta included → succeeds

Proposed Solution

Option 1 (Recommended): Add an “Additional Body Parameters” JSON field that merges arbitrary key-value pairs into the request body. This future-proofs the node for new beta features, model parameters, and vendor-specific extensions.

Option 2: Explicitly add anthropic_beta as a configurable multi-value string array field.

Why This Matters

1M context is critical for large codebase analysis, RAG pipelines, long document reasoning, and similar automation workflows. Without this, users are forced off the native node for a core Bedrock capability.

  • n8n version: 2.9.2

  • Deployment: docker

  • AWS Region: us-east-1

  • Model: Claude Opus 4.6 via AWS Bedrock