Endpoint
Python
Supported Route Groups
ModRouter’s Bedrock integration includes:POST /bedrock/model/{modelId}/conversePOST /bedrock/model/{modelId}/converse-streamPOST /bedrock/model/{modelId}/invokePOST /bedrock/model/{modelId}/invoke-with-response-streamPOST /bedrock/model/{modelId}/count-tokensPOST /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.
