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

# ERR_NGROK_AI_GATEWAY_BEDROCK_ROLE_KEY_MODEL_UNSUPPORTED: Model MODELID runs on the Bedrock OpenAI-compatible endpoint, and a Bedrock key with an IAM role can't call it

> ERR_NGROK_AI_GATEWAY_BEDROCK_ROLE_KEY_MODEL_UNSUPPORTED: Model MODELID runs on the Bedrock OpenAI-compatible endpoint, and a Bedrock key with an IAM role can't call it. Learn why ngrok returns this error and how to fix it.

## What does ERR\_NGROK\_AI\_GATEWAY\_BEDROCK\_ROLE\_KEY\_MODEL\_UNSUPPORTED mean?

ngrok returns ERR\_NGROK\_AI\_GATEWAY\_BEDROCK\_ROLE\_KEY\_MODEL\_UNSUPPORTED with this message:

```text theme={"theme":{"light":"css-variables","dark":"css-variables"}}
Model <MODELID> runs on the Bedrock OpenAI-compatible endpoint, and a Bedrock key with an IAM role can't call it. Add a Bedrock API key to use the model.
```

> [!TIP]
>
> Troubleshoot ERR\_NGROK\_AI\_GATEWAY\_BEDROCK\_ROLE\_KEY\_MODEL\_UNSUPPORTED with your AI agent.
> Connect it to the [ngrok MCP server](https://ngrok.com/docs/mcp-server.md), then ask what caused the error and how to fix it.

## Where can I get more help with ERR\_NGROK\_AI\_GATEWAY\_BEDROCK\_ROLE\_KEY\_MODEL\_UNSUPPORTED?

Email [support@ngrok.com](mailto:support@ngrok.com?subject=Help%20with%20ERR_NGROK_AI_GATEWAY_BEDROCK_ROLE_KEY_MODEL_UNSUPPORTED) and include the error code.


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