AWS Bedrock Guardrails

AWS Bedrock Guardrails — Review, Pricing, Alternatives

Configurable safeguards to secure generative AI applications: content moderation, data protection, and hallucination detection.

AWS Bedrock Guardrails in brief

What is it?
AWS Bedrock Guardrails is an AI tool in the security category: Configurable safeguards to secure generative AI applications: content moderation, data protection, and hallucination detection.
Who is it for?
Development and compliance teams deploying generative AI applications on Bedrock or third-party models that need to enforce security and data protection policies.
Price
Paid, from $0.0015.
Best alternative
Metomic

Overview

Description

Amazon Bedrock Guardrails is a security service for generative AI applications that evaluates user inputs and model responses to detect and filter harmful content, protect sensitive information, and reduce hallucinations. The service relies on six configurable safeguard policies: content filters (text and image), prompt attack detection, denied topics, sensitive information filters (PII and custom regex), word filters, and contextual grounding checks. A sixth capability, automated reasoning checks, uses formal logic to validate response accuracy and detect factual errors. Guardrails works consistently across any foundation model, whether hosted on Amazon Bedrock or self-hosted, including third-party models such as OpenAI and Google Gemini. The ApplyGuardrail API allows evaluating content with preconfigured guardrails without invoking the foundation model, enabling real-time moderation. The service also integrates with Amazon Bedrock Agents, Amazon Bedrock Knowledge Bases, and agent frameworks such as Strands Agents and Amazon Bedrock AgentCore. During an inference call (InvokeModel, Converse, etc.), the input is evaluated in parallel against each configured policy. On a violation, a preconfigured blocked message is returned and the model inference is discarded. If the input passes, the model response is then evaluated; on a violation, it is overridden with blocked messaging or masking based on configuration. An account can host multiple guardrails, each tailored to a specific use case.

Strengths
  • Works with any foundation model (Bedrock, self-hosted, OpenAI, Gemini) via the ApplyGuardrail API, without invoking the model
  • Six configurable policies including automated reasoning checks based on formal logic, with reported accuracy up to 99%
  • Blocks up to 88% of harmful content and integrates natively with Bedrock Agents, Knowledge Bases, and Strands Agents
Weaknesses
  • Embedding, reranking, and image generation models do not support guardrails
  • Charges accumulate per policy and per text unit, which can grow quickly with multiple policies enabled
  • AWS automatically updates the underlying guardrail models, requiring continuous testing and validation by teams

Use cases

Developer securing a customer chatbot wired to a third-party LLM

Backend or full-stack developer in an enterprise

This developer maintains a customer support chatbot connected to a self-hosted OpenAI model outside Amazon Bedrock. It handles several thousand requests per day and must prevent customer data leakage and off-topic answers. The workflow: they configure a guardrail in the Bedrock console with content filters, denied topics, and PII filters, then call the ApplyGuardrail API before and after each model call, without invoking any Bedrock model. On pricing, each enabled policy is billed per text unit ($0.10 per 1,000 units for most), while word filters stay free; cost remains manageable as long as evaluated text volume is monitored. Keep in mind: embedding and image generation models are not covered by guardrails, and AWS automatically updates the underlying models, so regression tests must be rerun regularly.

Compliance officer masking PII in an internal HR assistant

Compliance officer, CISO, or DPO

This officer must deploy an HR assistant that answers employee questions about leave, payroll, and internal procedures while avoiding exposure of personal data. Volume is moderate (a few hundred requests per day) but regulatory risk is high. They configure a guardrail with sensitive information filters (PII and custom regex) and contextual grounding checks to limit hallucinations on internal policy texts. Integration happens through Amazon Bedrock Knowledge Bases, with the guardrail referenced during inference. The per-policy cost ($0.10 per 1,000 text units) is negligible at this volume. Important: grounding checks require a reliable, up-to-date reference source, otherwise legitimate answers may be wrongly blocked; a calibration phase and a human escalation channel are therefore necessary.

AI engineer protecting a conversational agent against prompt injection

AI/ML or MLOps engineer

This engineer deploys an autonomous agent able to call internal tools (databases, business APIs) and fears prompt injection or jailbreak attacks that could hijack the agent. They use Amazon Bedrock Agents or a framework such as Strands Agents, and attach a guardrail configured with prompt attack detection and content filters. The guardrail evaluates the input in parallel across each policy to limit latency, then evaluates the model response. Billing applies per configured policy and per evaluated text unit, including when the input is blocked (model inference is then not billed). Worth noting: a guardrail does not replace application-level validation of tool calls; least-privilege permissions on the agent side and logging of interventions should be kept to audit attack attempts.

Product manager in a regulated sector validating assistant answers

Product manager or product owner in a regulated sector (health, finance, legal)

This product manager runs an assistant that answers regulated questions and must guarantee factual accuracy before production. They enable automated reasoning checks, which use formal logic to validate responses against a set of rules, detect hallucinations, and flag implicit assumptions. The workflow is to define the logical rules, attach the guardrail to Converse calls, then analyze validation reports. This policy is billed at $0.15 per 1,000 text units, a premium over the other $0.10 policies to factor into the budget. Real limitations: verification quality depends directly on how rigorously the logical rules are written; a poorly formulated rule produces false positives, and human review remains essential for ambiguous cases.

Frequently asked questions

Which foundation models can I use Amazon Bedrock Guardrails with?

Guardrails work consistently across any foundation model, whether hosted on Amazon Bedrock or self-hosted, including third-party models such as OpenAI and Google Gemini, via the ApplyGuardrail API. However, embedding, reranking, and image generation models do not support guardrails.

How is Amazon Bedrock Guardrails pricing calculated?

Charges are incurred only for the policies configured in the guardrail. If the guardrail blocks the input prompt, you are charged for the guardrail evaluation but not for foundation model inference. If it blocks the model response, you are charged for the evaluation of both the input and the response, plus the foundation model inference. If it blocks nothing, you are charged for the evaluation of the input and response, plus inference.

Can I use guardrails without invoking a foundation model?

Yes. The ApplyGuardrail API lets you evaluate content using preconfigured guardrails without invoking foundation models, enabling real-time content moderation for models hosted outside Amazon Bedrock.

Are guardrails compatible with Amazon Bedrock Agents and Knowledge Bases?

Yes. You can use guardrails with Amazon Bedrock Agents and Amazon Bedrock Knowledge Bases, as well as with agent frameworks such as Strands Agents, including agents deployed with Amazon Bedrock AgentCore.

What happens when an input or response triggers a guardrail intervention?

If the input evaluation results in a guardrail intervention, a configured blocked message response is returned and the foundation model inference is discarded. If the model response triggers an intervention, it is overridden with preconfigured blocked messaging or masking based on your policy configuration.

Do I need to test my guardrails after AWS updates?

Yes. AWS periodically updates the underlying guardrail models to extend functionality, address new attack vectors, and strengthen safety posture. These updates apply automatically and require no action, but AWS recommends continuing to test and validate your guardrails to confirm they meet your requirements.

Pricing (prices are indicative and may change regularly — check the official price on the publisher's website)

Popular
Content filters (text)
$0.10

$0.0001 per text unit

1,000 text units

  • Detection of harmful content (hate, insults, sexual, violence, misconduct)
  • Protection against prompt injection and jailbreaks
  • Charged only if the policy is configured
Denied topics
$0.10

$0.0001 per text unit

1,000 text units

  • Define application-specific unwanted topics
  • Block in user prompts and model responses
Sensitive information filters
$0.10

$0.0001 per text unit

1,000 text units

  • Block or mask PII
  • Custom regular expressions
Contextual grounding checks
$0.10

$0.0001 per text unit

1,000 text units

  • Hallucination detection via source grounding
  • Relevance evaluation against the user query
Automated reasoning checks
$0.15

$0.00015 per text unit

1,000 text units

  • Formal logic validation
  • Hallucination detection and correction suggestions
  • Highlighting of implicit assumptions
Word filters
Free
  • Block unwanted words, phrases, and profanity (exact match)
  • No charge for this policy
Image content filters
$0.0015

$0.0015 per image

image

  • Detection of harmful visual content
  • Charged per analyzed image

Comparisons

User reviews

Be the first to leave a review (no signup required)

No reviews yet.

Be the first to share your opinion!

Discussions

Chat about AWS Bedrock Guardrails

This space lets you connect with other users of the tool: ask questions, share tips and your experience to move forward together.

  • Discuss the tool and its features
  • Ask the community for help or advice
  • Share your experience and use cases