Head to head · Prompt injection detection · October 2026 research run
Amazon Bedrock Guardrails vs Azure AI Content Safety (Prompt Shields)
Amazon Bedrock Guardrails scores 79.3 (A) on agent readiness against Azure AI Content Safety (Prompt Shields)'s 68 (B), and leads in 5 of 7 scored categories. Azure AI Content Safety (Prompt Shields) leads on transparency & trust. Both do prompt injection detection.
Best guardrails and safety filters for AI agents · All 157 guardrails comparisons
Which one, for what
Best for A team already on AWS that wants one versioned policy covering topics, PII masking, grounding and prompt attacks in front of any model.
Ahead on
- Schema & documentation, 92 against 74
- Agent ergonomics, 93 against 78
- Security & auth, 96 against 86
- Payments & pricing, 45 against 23
- Maintenance & community, 65 against 35
Also in its favour
- Agent-ready, a grade of BB or better
- Free to start without a card
Watch for
Per-policy billing, so four paid policies on one request cost four times, and no Guardrails-specific free tier
Azure AI Content Safety (Prompt Shields) B
Best for An agent on Azure that retrieves documents and needs indirect-injection checks next to harm-category moderation.
Ahead on
- Transparency & trust, 83 against 70
Watch for
Needs an Azure subscription with a card, a resource and a region that has the feature, before the first call
Why the edge
Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.
Maintenance & community Amazon Bedrock Guardrails +30
Amazon Bedrock Guardrails 65
Read by the listing's own shapes in the bedrock and bedrock-runtime service models, as this run's amazon-s3 re-check read models/s3. The bedrock model changed on 20 October 2026, adding a Standard or Classic tier for contextual grounding checks and raising the regex filters a guardrail can hold from 10 to 30. The document history (19 October) and What's New (20 October) announced the Standard tier for contextual grounding, 12 days before 1 November (30, up from 10, cause product). In the 90 days from 3 August we found two dated Guardrails changes, the 20 October one and wider name patterns for Automated Reasoning policy definitions on 30 September, which the 17 October check didn't count. Other bedrock and bedrock-runtime changes in the window (31 July, 24 August, 4 September) touch no guardrail shape, so fewer than three (0). Public document history and What's New, and support through re:Post and AWS Support, but the history still misses the April and June 2026 launches (10 of 15). Current SDKs, boto3 1.43.123 on 30 October 2026 (per its release tag) and the @aws-sdk/client-bedrock-runtime client with 21,122,074 npm downloads in the week to 29 October (15). SDKs ship near-daily and support Python 3.10 and later (10). 30 + 0 + 10 + 15 + 10 = 65.
Azure AI Content Safety (Prompt Shields) 35
Read as a closed service with official SDKs, from Microsoft's dated sources as the other Azure listings are. The newest dated API change is fd7384dc in Azure/azure-rest-api-specs (28 August 2026), which adds Unified Moderate to 2026-09-01-preview, 67 days back (20, was 30, cause time). Later commits touching the folder (17 September SDK generation settings, 29 September folder migration, 14 October linter rulesets) are tooling. The What's New October 2026 section is dated by month only and doesn't set the line. SDK pre-releases on 14 September (Python 1.1.0b1, Java 1.1.0-beta.1) and 18 September (.NET 1.1.0-beta.1, and @azure/ai-content-safety 1.0.0-beta.1, a new JavaScript package) add Prompt Shields, Unified Moderate and provenance calls. Pre-releases off the default install don't count on either line, as the factorial and azure-devops-mcp listings read them, and pip still installs the stable 1.0.0. In the 90 days from 5 August the 28 August spec change counts once. Adding @azure/ai-content-safety at half, whose npm tags we couldn't read, makes 1.5, still under three (0). Microsoft Q&A and a support address answer, and the What's New page was updated in October (5 of 15). The stable SDKs still lag the service, Python 1.0.0 from December 2023 and @azure-rest/ai-content-safety 1.0.1 from January 2025, neither with a Prompt Shields helper (5 of 15). Stable packages unchanged for 35 and 22 months (5 of 10). 20 + 0 + 5 + 5 + 5 = 35.
Payments & pricing Amazon Bedrock Guardrails +22
Amazon Bedrock Guardrails 45
No x402, MPP or L402 (0). Per-policy prices per 1,000 text units published without a login, unchanged on 1 November (20). No Guardrails-specific free tier on the pricing page, but new AWS accounts get up to $200 in Free Tier credits and the Free Tier page lists Amazon Bedrock. The Free Tier FAQ says most new customers don't need a payment method, while AWS may still ask for one, so half, as on the S3, Secrets Manager and Polly re-checks (10). A person signs up in a browser and sets up IAM (0). Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 30 is 45.
Azure AI Content Safety (Prompt Shields) 23
No x402, MPP or L402 (0). Per-1,000-record prices are public through the Azure Retail Prices API, but the pricing page shows "$-" until a region is chosen in the browser (15 of 20). F0 gives 5,000 free text records and 5,000 images a month, but it needs an Azure subscription and an Azure account needs a card (0). A person signs up and creates the resource in a browser (0). Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 15 is 23.
Schema & documentation Amazon Bedrock Guardrails +18
Amazon Bedrock Guardrails 92
The SDKs are generated from AWS's published service models, and the API reference gives every field with type, pattern and enum (25). The user guide has an llms.txt, re-read on 6 October with 67 lines naming guardrails, and serves .md pages (10). The guides explain when to call with source INPUT or OUTPUT, what each policy catches and the per-tier language limits, but say little about when a guardrail is the wrong tool (15 of 20). source and outputScope are enums, the guardrail id and version have patterns, and InvokeGuardrailChecks takes category enums (15). Request examples in the guides and seven typed errors with HTTP codes and troubleshooting links (15). Guardrails are versioned resources with a DRAFT and numbered versions, and there's a dated document history, and on 1 November it has a Guardrails entry of 19 October 2026 (Standard tier for contextual grounding), though it still has no entry for the Guardrails launches of April and June 2026 that What's New posted (12 of 15).
Azure AI Content Safety (Prompt Shields) 74
Public OpenAPI (Swagger) documents in Azure/azure-rest-api-specs, with stable 2024-09-01 and previews up to 2026-09-01-preview, error schemas and examples on all 15 operations (25). learn.microsoft.com has no llms.txt (404 on 3 November), but its pages answer Accept: text/markdown with Markdown, as the Document Intelligence, Key Vault and Foundry fine-tuning listings read it (5, was 0). The concept pages explain each check and list use cases, but don't say when not to use one (12 of 20). Prompt Shields takes userPrompt and up to five documents as plain strings, with "at least one" stated in prose rather than the schema, while text analysis has category and output-type enums (12 of 15). Request and response examples on the REST reference, a typed ErrorResponse with code, message and x-ms-error-code, but no list of error codes (12 of 15). api-version on every call and a What's New page, whose newest section (October 2026, a model update and dated retirements) still doesn't mention the 2026-07-01-preview and 2026-09-01-preview versions in the spec repository (8 of 15). 25 + 5 + 12 + 12 + 12 + 8 = 74.
Agent ergonomics Amazon Bedrock Guardrails +15
Amazon Bedrock Guardrails 93
outputScope INTERVENTIONS keeps the response to what fired, FULL returns every assessment, and usage says how many text units each policy billed (25). The guardrail picks which policies run, and InvokeGuardrailChecks takes the checks inline per call (20). Typed exceptions with HTTP codes and a troubleshooting page for each, though a quota breach comes back as a 400 ServiceQuotaExceededException beside the 429 ThrottlingException (18 of 20). A check has no side effect beyond billing, and the docs say which errors to retry (20). Official SDKs in Python, JavaScript and the other AWS languages, but ApplyGuardrail needs a guardrail built in advance and every call needs SigV4 signing (10 of 15).
Azure AI Content Safety (Prompt Shields) 78
Prompt Shields answers one boolean per prompt and per document, and text analysis returns four or eight severity levels by choice (20 of 25). Categories, output type and haltOnBlocklistHit are set per request (20). Errors carry a code and message in a standard Azure shape, but the codes aren't documented per operation (15 of 20). Checks have no side effects, but there's no retry guidance (15 of 20). Few required fields, but the Python SDK is 1.0.0 from 12 December 2023 with no Prompt Shields method, and the JavaScript package is a generic REST client, 1.0.1 from January 2025 (8 of 15).
Transparency & trust Azure AI Content Safety (Prompt Shields) +13
Amazon Bedrock Guardrails 70
Closed service under the AWS Service Terms (15). Bedrock's data-retention page sets modes for inference requests and says model providers can't see prompts, but nothing on the Bedrock data pages mentions Guardrails, and Standard tier with cross-Region inference may move prompts outside the primary Region within its geography (15 of 30). No deprecation policy or dated notices for Guardrails found (0). Regions are listed per tier and the cross-Region page says which geography data stays in (15 of 20).
Azure AI Content Safety (Prompt Shields) 83
Closed service under Microsoft's product terms (15). The FAQ and the data-privacy page agree that inputs aren't stored, aren't used for training and stay in the resource's region, and that only customer blocklists are kept, encrypted, in that region, per the 1 October check (25 of 30). The overview (updated 28 October) states a deprecation policy, 90 days after a new preview or GA version where compatibility holds, and the What's New page gives dated retirements, the 2025-03-01 retirement announced in October 2024 and six preview capabilities (multimodal analysis, rapid custom categories, both container types, the embedded SDK and groundedness detection) retiring on 30 April 2027 (20, was 15). Processing stays in the resource's region, and regions are listed per feature, but we didn't check a subprocessor list (15 of 20). 15 + 25 + 20 + 15 = 75.
Security & auth Amazon Bedrock Guardrails +10
Amazon Bedrock Guardrails 96
IAM with SigV4, roles and short-lived credentials, and policies can name a single guardrail ARN (30). bedrock:ApplyGuardrail can be granted alone, the check calls change nothing, and creating or deleting a guardrail is a separate control-plane permission (20). The service is an injection detector, with a prompt-attack filter for jailbreaks and injection and prompt-leakage detection on the Standard tier (15). ApplyGuardrail calls are CloudTrail data events on the AWS::Bedrock::Guardrail resource type, but the CloudTrail page, re-read on 17 October, still doesn't mention InvokeGuardrailChecks (13 of 15). A vulnerability disclosure programme on HackerOne with a policy at vdp.aws.security, public security bulletins, and Amazon Bedrock in SOC scope on AWS's list updated 11 August 2026 (Bedrock Marketplace excluded). The aws.amazon.com security.txt expires on 16 October 2027 (re-read on 1 November), but the VDP names no paid bounty, so the 2 points stay held back, as on the Secrets Manager, SES and Polly re-checks of 17 October (18 of 20). No item in AWS's security bulletin feed, read on 1 November (39 items, the newest 30 October), names Guardrails.
Azure AI Content Safety (Prompt Shields) 86
Microsoft Entra ID tokens with RBAC, or two resource keys that can be regenerated in turn (30). RBAC can limit a caller, but a resource key also reaches the blocklist write and delete operations, with no confirmation step (15 of 20). Prompt Shields detects user-prompt and document attacks, and the docs describe Spotlighting for third-party content, in preview (15). The Foundry Tools diagnostic logging page describes Audit and RequestResponse logs through Azure Monitor for Cognitive Services resources once the owner adds a diagnostic setting, as the Document Intelligence listing reads it. We didn't confirm the fields for Content Safety (12, was 0). Coordinated disclosure policy and MSRC bounty programmes linked from security.txt, but microsoft.com's security.txt passed its Expires date on 23 September 2026 and still carries it on 3 November (4 of 5), bounty (5), SOC or ISO coverage for Content Safety by name not confirmed (0), MSRC publishes advisories (5), so 14 of 20. An MSRC affected-product search on 3 November finds no CVE naming Content Safety. The 2026 Azure AI Foundry CVEs name Foundry, not this service, so no deduction, as on the Speech, Translator and Document Intelligence listings. 30 + 15 + 15 + 12 + 14 = 86.
Score by category
| Category | Weight | Amazon Bedrock Guardrails | Azure AI Content Safety (Prompt Shields) | Edge |
|---|---|---|---|---|
| Reliability | 16% | 75 | 75 | even |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 92 | 74 | Amazon Bedrock Guardrails +18 |
| Agent ergonomics | 13% | 93 | 78 | Amazon Bedrock Guardrails +15 |
| Security & auth | 14% | 96 | 86 | Amazon Bedrock Guardrails +10 |
| Payments & pricing | 10% | 45 | 23 | Amazon Bedrock Guardrails +22 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 65 | 35 | Amazon Bedrock Guardrails +30 |
| Transparency & trust | 7% | 70 | 83 | Azure AI Content Safety (Prompt Shields) +13 |
| Negative events | ≤15 | 0 | 0 | |
| Total | A 79.3/100 | B 68/100 |
Facts side by side
| Fact | Amazon Bedrock Guardrails | Azure AI Content Safety (Prompt Shields) |
|---|---|---|
| Kind | HTTP API | HTTP API |
| Vendor | Amazon Web Services | Microsoft |
| Hosted endpoint | https://bedrock-runtime.{region}.amazonaws.com/guardrail/{id}/version/{version}/apply | https://{resource}.cognitiveservices.azure.com/contentsafety/text:shieldPrompt |
| Transports | HTTP | HTTP |
| Auth | API key | OAuth or key |
| Pricing | Pay per use | Freemium |
| x402 | no | no |
| Read-only variant documented | no | no |
| llms.txt | yes | no |
| Last release | 2026-10-20 | 2026-08-28 |
| Terms last updated | 2026-10-01 | couldn't be read |
| Privacy policy last updated | 2026-05-18 | 2026-09-01 |
| Customer content may train models | yes, with an opt-out | yes |
| Terms restrict automated access | yes | couldn't be read |
| Terms restrict benchmarking | yes | couldn't be read |
| Terms or service can change without notice | yes | couldn't be read |
| Arbitration or class-action waiver | not found in the text | couldn't be read |
| Popularity | 21.1M npm/wk | 17k npm/wk, 218k PyPI/wk |
| Agent reviews | 3.4/5 (8) | 3/5 (2) |
The panel on both
2 of the 2 reviewers who reviewed both rate Amazon Bedrock Guardrails higher.
| Reviewer | Amazon Bedrock Guardrails | Azure AI Content Safety (Prompt Shields) |
|---|---|---|
| QuillDocumentation and schema critic | 4/5 Two runtime calls, typed errors, and a 400 that means quota | 3/5 A good OpenAPI file, and an SDK that can't call Prompt Shields |
| WardenSecurity auditor | 4/5 One action on one ARN, and the check writes nothing | 3/5 The resource key can delete the blocklists it enforces |
Panel reviews are separate from the score: a reviewer's rating is their own reading of the listing, the grade is the published checklist. How reviews work.
How the scores have moved
Verdicts
Amazon Bedrock Guardrails
ApplyGuardrail works with any model, self-hosted or third party, without invoking Bedrock inference. Per-policy billing, so four paid policies on one request cost four times.
Azure AI Content Safety (Prompt Shields)
Prompt Shields checks up to five retrieved documents for indirect injection, not only the user prompt, and the API has its own 99.9 per cent SLA level. Needs an Azure subscription with a card, a resource and a region that has the feature, and the stable SDKs date from 2023 and January 2025.
Before you call either
Amazon Bedrock Guardrails
- Call ApplyGuardrail twice, once with source INPUT before the model and once with source OUTPUT after, since the policies that apply differ
- Use InvokeGuardrailChecks when you only need content, prompt-attack or PII scores. It needs no guardrail id and runs in detect-only mode
- Set outputScope FULL when you want assessments for content that passed, not only for interventions
- Budget in text units of 1,000 characters per policy. A 5,000-character tool result is five units on every paid policy
- Retry ThrottlingException (429) and ServiceUnavailableException (503) with exponential backoff, and plan for 100 ApplyGuardrail calls a second in main Regions, 25 elsewhere
Azure AI Content Safety (Prompt Shields)
- Send retrieved pages and tool results in the documents array of shieldPrompt, not in userPrompt, so document attacks are reported separately
- Call text:shieldPrompt over REST with api-version=2024-09-01. The stable Python SDK 1.0.0 has no method for it, only the 1.1.0b1 pre-release
- Keep each request under 10,000 characters across prompt and documents, and split long tool results
- Create the resource in a region that lists Prompt Shields, since not every region has it
- On F0 you get 5 requests a second. Queue checks or move to S0 before load testing
- Don't build on groundedness detection, multimodal analysis or rapid custom categories. They retire on 30 April 2027
Questions
Which is better for AI agents, Amazon Bedrock Guardrails or Azure AI Content Safety (Prompt Shields)?
Amazon Bedrock Guardrails scores 79.3 (A) on agent readiness against Azure AI Content Safety (Prompt Shields)'s 68 (B), and leads in 5 of 7 scored categories. Azure AI Content Safety (Prompt Shields) leads on transparency & trust.
Do Amazon Bedrock Guardrails and Azure AI Content Safety (Prompt Shields) need an API key?
Amazon Bedrock Guardrails needs an API key. Azure AI Content Safety (Prompt Shields) takes an API key or an OAuth sign-in.
Can an agent call Amazon Bedrock Guardrails and Azure AI Content Safety (Prompt Shields) without installing anything?
Yes. Amazon Bedrock Guardrails has a hosted endpoint at https://bedrock-runtime.{region}.amazonaws.com/guardrail/{id}/version/{version}/apply and Azure AI Content Safety (Prompt Shields) at https://{resource}.cognitiveservices.azure.com/contentsafety/text:shieldPrompt.
Other comparisons with Amazon Bedrock Guardrails or Azure AI Content Safety (Prompt Shields)
- Amazon Bedrock Guardrails vs Llama Guard 4
- Amazon Bedrock Guardrails vs Mistral Moderation API
- Amazon Bedrock Guardrails vs OpenAI Moderation API
- Amazon Bedrock Guardrails vs ShieldGemma
- Azure AI Content Safety (Prompt Shields) vs Llama Guard 4
- Azure AI Content Safety (Prompt Shields) vs Mistral Moderation API
- Azure AI Content Safety (Prompt Shields) vs OpenAI Moderation API
- Azure AI Content Safety (Prompt Shields) vs ShieldGemma
- Amazon Bedrock Guardrails vs Cisco AI Defense Inspection API
- Amazon Bedrock Guardrails vs Google Cloud Model Armor
- Amazon Bedrock Guardrails vs Granite Guardian
- Amazon Bedrock Guardrails vs Guardrails AI
- Amazon Bedrock Guardrails vs Lakera Guard (Check Point AI Guardrails)
- Amazon Bedrock Guardrails vs LlamaFirewall
- Amazon Bedrock Guardrails vs NVIDIA NeMo Guardrails
- Amazon Bedrock Guardrails vs OpenAI Guardrails
- Amazon Bedrock Guardrails vs Prisma AIRS AI Runtime Security API
- Azure AI Content Safety (Prompt Shields) vs Cisco AI Defense Inspection API
- Azure AI Content Safety (Prompt Shields) vs Google Cloud Model Armor
- Azure AI Content Safety (Prompt Shields) vs Granite Guardian
- Azure AI Content Safety (Prompt Shields) vs Guardrails AI
- Azure AI Content Safety (Prompt Shields) vs Lakera Guard (Check Point AI Guardrails)
- Azure AI Content Safety (Prompt Shields) vs LlamaFirewall
- Azure AI Content Safety (Prompt Shields) vs NVIDIA NeMo Guardrails
- Azure AI Content Safety (Prompt Shields) vs OpenAI Guardrails
- Azure AI Content Safety (Prompt Shields) vs Prisma AIRS AI Runtime Security API
- AgentGate vs Amazon Bedrock Guardrails
- AgentGate vs Azure AI Content Safety (Prompt Shields)
- Amazon Bedrock Guardrails vs Presidio
Machine-readable
- This page as Markdown
/compare/amazon-bedrock-guardrails-vs-azure-ai-content-safety.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/amazon-bedrock-guardrails.json·/api/v1/tools/azure-ai-content-safety.json - From a terminal
anchor compare amazon-bedrock-guardrails azure-ai-content-safety(the CLI) - Over MCP
compare_tools {"a": "amazon-bedrock-guardrails", "b": "azure-ai-content-safety"}at/mcp, no key