Endpoint

For S3-compatible file operations used by the Bedrock integration:

Python

The dummy AWS credentials satisfy the SDK’s signer. ModRouter uses provider keys configured on the server side.

Supported Route Groups

ModRouter’s Bedrock integration includes:
  • POST /bedrock/model/{modelId}/converse
  • POST /bedrock/model/{modelId}/converse-stream
  • POST /bedrock/model/{modelId}/invoke
  • POST /bedrock/model/{modelId}/invoke-with-response-stream
  • POST /bedrock/model/{modelId}/count-tokens
  • POST /bedrock/rerank
  • Bedrock model invocation job routes
  • S3-compatible file routes under /bedrock/files

Custom Headers

If you need ModRouter headers with boto3, attach them through botocore events before signing:

Notes

  • Bedrock SDK routes use Bedrock request and response shapes, not OpenAI shapes.
  • For OpenAI SDK files and batches, use /openai.
  • For Anthropic inline message batches, use /anthropic.