> ## Documentation Index
> Fetch the complete documentation index at: https://docs.portkey.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Amazon Bedrock Mantle

> OpenAI-compatible AWS Bedrock inference via the Mantle engine

[Amazon Bedrock Mantle](https://docs.aws.amazon.com/bedrock/latest/userguide/bedrock-mantle.html) is AWS's OpenAI-compatible inference engine for Bedrock models. The `bedrock-mantle` provider in Portkey routes requests to `bedrock-mantle.{region}.api.aws`, giving you access to Bedrock models via:

* `/v1/chat/completions` (OpenAI Chat Completions)
* `/v1/responses` (OpenAI Responses)
* `/v1/messages` (Anthropic-native, via `bedrock-mantle.{region}.api.aws/anthropic/v1`)

> [!NOTE]
>
> Use `bedrock-mantle` when you want OpenAI-compatible access to Bedrock. For the classic Bedrock runtime (Converse / InvokeModel), use the [`bedrock`](https://docs.portkey.ai/docs/integrations/llms/bedrock/aws-bedrock) provider.

## Quick Start

```python Python theme={"system"}
from portkey_ai import Portkey

portkey = Portkey(api_key="PORTKEY_API_KEY")

response = portkey.chat.completions.create(
    model="@bedrock-mantle-provider/anthropic.claude-sonnet-4-5-20250929-v1:0",
    messages=[{"role": "user", "content": "Say this is a test"}]
)

print(response.choices[0].message.content)
```

```javascript NodeJS theme={"system"}
import Portkey from 'portkey-ai';

const portkey = new Portkey({ apiKey: "PORTKEY_API_KEY" });

const response = await portkey.chat.completions.create({
    model: "@bedrock-mantle-provider/anthropic.claude-sonnet-4-5-20250929-v1:0",
    messages: [{ role: "user", content: "Say this is a test" }]
});

console.log(response.choices[0].message.content);
```

```sh cURL theme={"system"}
curl https://api.portkey.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "x-portkey-api-key: $PORTKEY_API_KEY" \
  -H "x-portkey-provider: @bedrock-mantle-provider" \
  -d '{
    "model": "anthropic.claude-sonnet-4-5-20250929-v1:0",
    "messages": [{"role": "user", "content": "Say this is a test"}]
  }'
```

## Add Provider in Model Catalog

Configure a new provider with **Bedrock Mantle** as the provider type. Choose one of the supported auth modes:

| Auth Mode | Required Fields |
| - | - |
| **API Key** | `apiKey` (Amazon Bedrock API key / bearer token) |
| **Assumed Role** | `awsRoleArn`, `awsExternalId`, `awsRegion` |
| **Service Role** (EKS / IRSA) | `awsRegion` (credentials are resolved from the pod's service role) |

`awsRegion` determines which regional endpoint is used (e.g., `us-east-1` → `bedrock-mantle.us-east-1.api.aws`).

## Anthropic Messages API

Requests to `/v1/messages` or chat completions with `anthropic.*` models are routed to the Mantle Anthropic base path (`/anthropic/v1`). Pass the Anthropic version via the `anthropic-version` header or `anthropic_version` in the request body (defaults to `2023-06-01`).

## Related Resources

> [card] [Amazon Bedrock Mantle Documentation](https://docs.aws.amazon.com/bedrock/latest/userguide/bedrock-mantle.html)
>
> Official AWS documentation for Bedrock Mantle endpoints, supported regions, and models.

***

> [card] [Portkey is now PRISMA AIRS AI Gateway. See it in action.](https://www.paloaltonetworks.in/ai-security/ai-gateway?utm_source=portkey\&utm_medium=referral\&utm_campaign=prisma_airs\&utm_content=docs_nav#contact)
>
> Contact Us


## Related topics

- [Enterprise Gateway](https://docs.portkey.ai/docs/changelog/enterprise.md)
- [May](https://docs.portkey.ai/docs/changelog/2026/may.md)
- [Claude Code with Amazon Bedrock](https://docs.portkey.ai/docs/integrations/libraries/claude-code-bedrock.md)
- [Connect Bedrock with Amazon Assumed Role](https://docs.portkey.ai/docs/product/model-catalog/connect-bedrock-with-amazon-assumed-role.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.