[▲ Vercel Community](/) · [Categories](/categories) · [Latest](/latest) · [Top](/top) · [Live](/live)

[AI SDK](/c/ai-sdk/62)

# How to use AWS Bedrock Guardrails with streamText in the Vercel AI SDK

24 views · 0 likes · 1 post


MountainMan (@warwickbaileywork-71) · 2026-03-13

Great to see all the support for `AWS Bedrock` and `Guardrails` in the `AI SDK`:

[https://sdk.vercel.ai/providers/ai-sdk-providers/amazon-bedrock#guardrails](https://sdk.vercel.ai/providers/ai-sdk-providers/amazon-bedrock#guardrails)

The documentation shows how to configure for guardrails using the `generateText({…})` invocation. Please let me know if the `streamText({…})` can be used with the same configuration for guardrails, or if there is difference with `streamText({…})` .

Thank you!