Head to head · Prompt injection detection · October 2026 research run

Azure AI Content Safety (Prompt Shields) vs Datadog AI Guard

Azure AI Content Safety (Prompt Shields) scores 68 (B) on agent readiness against Datadog AI Guard's 63.6 (B), and leads in 4 of 7 scored categories. Datadog AI Guard leads on schema & documentation, payments & pricing and maintenance & community. Both do prompt injection detection.

Best guardrails and safety filters for AI agents · All 175 guardrails comparisons

Which one, for what

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

  • Reliability, 75 against 36
  • Transparency & trust, 83 against 71

Also in its favour

  • No incidents deducted, where Datadog AI Guard loses 3 points for them

Watch for

Needs an Azure subscription with a card, a resource and a region that has the feature, before the first call

Datadog AI Guard B

Best for Teams already on Datadog APM who want inline checks of prompts and tool calls, with spans and signals in the same place.

Ahead on

  • Schema & documentation, 84 against 74
  • Payments & pricing, 45 against 23
  • Maintenance & community, 84 against 35

Watch for

The HTTP evaluation endpoint is marked preview and subject to change in the API reference, although the product is generally available

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 Datadog AI Guard +49

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.

Datadog AI Guard 84

The AI Guard SDK ships in the tracers. dd-trace-py 4.17.2 was published on 19 November 2026, and the GA post on 2 November (30). Eleven dd-trace-py releases on PyPI between 28 October and 19 November alone, with AI Guard release notes for LangChain, Anthropic, OpenAI, LiteLLM and Strands (20). Closed service with Datadog support. Release notes are public in the tracer repositories, and GitHub issue pages weren't readable (12 of 15). Official SDKs in Python, Node.js, Java and Ruby, current (15). dd-trace-py has CI configuration in the repository and release candidates before each minor. CI results weren't read (7 of 10). 30+20+12+15+7 = 84.

Reliability Azure AI Content Safety (Prompt Shields) +39

Azure AI Content Safety (Prompt Shields) 75

Azure status page with a post-incident review history (20). In the 90 days from 5 August the history holds two reviews and none after 30 September. The 29 September review covers intermittent failures and latency for Azure OpenAI, Foundry and Azure AI services in Sweden Central from 10:03 to 15:58 UTC, one region and a share of requests, so partial and minor, as the Azure Speech, Translator, Document Intelligence and Foundry fine-tuning listings read it. The 30 September to 1 October gateway review names networking services, not Content Safety. The 23 July West US review counted on 1 October has left the window. Minor only (20, was 10). Rate limits per feature and tier in the overview (updated 28 October), 5 a second on F0 and 1,000 per 10 seconds on S0 for text, images and Prompt Shields (15). No 429 or backoff guidance in the Content Safety docs (0). The November 2026 Online Services SLA has a Foundry Content Safety level, measured on authenticated requests to the Content Safety API, 99.9 per cent with 10 per cent credit and 99 per cent with 25 per cent, so it covers the API itself (10, was 0). Text analysis, image analysis and Prompt Shields are GA on api-version 2024-09-01 (10). 20 + 20 + 15 + 0 + 10 + 10 = 75.

Datadog AI Guard 36

Read with the hosted lines, for the evaluation service. status.datadoghq.com answered its robots.txt with 403, so whether it has an AI Guard component is unread (0) and the 90-day incident history is unread (5). The docs and the OpenAPI document give 700 requests and 14 million tokens a minute per organisation (15). Over a limit the API returns 429, the SDK raises AIGuardClientError for the caller to handle and the automatic integrations let the call proceed unevaluated. No Retry-After or backoff guidance was found, though evaluations change nothing and are safe to repeat (8 of 15). No SLA found (0). AI Guard is generally available for custom agents since 2 November 2026, but the HTTP endpoint is still marked preview in the API reference and coding-agent protection is in Preview (8 of 10). 0+5+15+8+0+8 = 36.

Payments & pricing Datadog AI Guard +22

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.

Datadog AI Guard 45

No x402, MPP or L402 (0). $0.80 per million input tokens billed annually or $1.20 on demand, on the pricing page without a login, with failed evaluations not billed (30). A free trial is offered, 14 days per Datadog's blog of 3 February 2026, but the pages read don't say whether it needs a card, so half (15). A person makes a Datadog account and creates the keys in a browser (0). 0+30+15+0 = 45.

Transparency & trust Azure AI Content Safety (Prompt Shields) +12

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.

Datadog AI Guard 71

Closed service under Datadog's terms. The tracers that carry the SDK are open source, dd-trace-py under BSD-3-Clause or Apache-2.0 (18 of 30). The docs say evaluations are processed in the US, indexed spans follow APM retention (15 days by default), external model providers run under zero data retention, Datadog doesn't train on customer data and traffic is TLS-encrypted. The providers aren't named and the privacy policy and DPA weren't re-read (22 of 30). The SDK's move from ddtrace.appsec.ai_guard to ddtrace.aiguard was announced as a deprecation with removal in 5.0.0, and the change of AIGuardAbortError to a BaseException came in an upgrade note. The HTTP endpoint carries no deprecation policy and is 'subject to change' (10 of 20). US processing for every site is disclosed, while the evaluating model providers and the subprocessor list weren't found on public pages (10 of 20). 18+22+10+10 = 60.

Schema & documentation Datadog AI Guard +10

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.

Datadog AI Guard 84

POST /api/v2/ai-guard/evaluate is in Datadog's public OpenAPI document with typed request and response schemas, a role enum, an action enum and per-category confidence thresholds (25). Every docs page has a Markdown version and docs.datadoghq.com/llms.txt exists, though its index doesn't list the AI Guard pages (10). The docs say when to use the HTTP API rather than the SDK, what each of the eleven attack categories covers, that documents aren't parsed and what each integration method can and cannot do (17 of 20). Messages, roles and tool calls are typed and messages is the one required field. Tool arguments are a JSON string, and the guide lists ALLOW and DENY while the OpenAPI enum adds ABORT (12 of 15). Curl and JSON examples for prompts, tool calls and tool results, a response field table, and 400, 401, 403, 408, 413 and 429 responses in the OpenAPI document, with JSON:API error bodies (12 of 15). The path is versioned /api/v2, but the endpoint is flagged 'in preview and is subject to change', and there is no AI Guard changelog beyond the tracers' release notes (8 of 15). 25+10+17+12+12+8 = 84.

Score by category

CategoryWeightAzure AI Content Safety (Prompt Shields)Datadog AI GuardEdge
Reliability16%7536Azure AI Content Safety (Prompt Shields) +39
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%7484Datadog AI Guard +10
Agent ergonomics13%7874Azure AI Content Safety (Prompt Shields) +4
Security & auth14%8683Azure AI Content Safety (Prompt Shields) +3
Payments & pricing10%2345Datadog AI Guard +22
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%3584Datadog AI Guard +49
Transparency & trust7%8371Azure AI Content Safety (Prompt Shields) +12
Negative events≤150-3
TotalB 68/100B 63.6/100

Facts side by side

FactAzure AI Content Safety (Prompt Shields)Datadog AI Guard
KindHTTP APIHTTP API
VendorMicrosoftDatadog
Hosted endpointhttps://{resource}.cognitiveservices.azure.com/contentsafety/text:shieldPrompthttps://api.datadoghq.com/api/v2/ai-guard/evaluate
TransportsHTTPHTTP
AuthOAuth or keyAPI key
PricingFreemiumPay per use
x402nono
LicencenoneProprietary service under Datadog's terms. The tracer SDKs that carry it, such as dd-trace-py, are open source (BSD-3-Clause or Apache-2.0)
Read-only variant documentednono
llms.txtnoyes
Last release2026-08-282026-11-19
Terms last updatedcouldn't be readno date given
Privacy policy last updated2026-09-01no date given
Customer content may train modelsyesnot found in the text
Terms restrict automated accesscouldn't be readnot found in the text
Terms restrict benchmarkingcouldn't be readnot found in the text
Terms or service can change without noticecouldn't be readnot found in the text
Arbitration or class-action waivercouldn't be readnot found in the text
Popularity17k npm/wk, 218k PyPI/wk654 stars
Agent reviews3/5 (2)none

How the scores have moved

Verdicts

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.

Datadog AI Guard

A public per-token price, a typed OpenAPI contract, scoped application keys and per-service policies that start in monitor-only mode. The HTTP endpoint is still marked preview, rate-limited calls through the automatic integrations proceed unevaluated, and a request-body blocking bypass fixed in July 2026 got no advisory.

Before you call either

Azure AI Content Safety (Prompt Shields)

  1. Send retrieved pages and tool results in the documents array of shieldPrompt, not in userPrompt, so document attacks are reported separately
  2. 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
  3. Keep each request under 10,000 characters across prompt and documents, and split long tool results
  4. Create the resource in a region that lists Prompt Shields, since not every region has it
  5. On F0 you get 5 requests a second. Queue checks or move to S0 before load testing
  6. Don't build on groundedness detection, multimodal analysis or rapid custom categories. They retire on 30 April 2027

Datadog AI Guard

  1. Send the whole conversation in data.attributes.messages. AI Guard judges the last message and uses the rest as context
  2. If the action is DENY and is_blocking_enabled is true, stop and return a safe answer. The HTTP API never blocks by itself
  3. Treat ABORT as a stop for the whole workflow. The OpenAPI document lists it, although the guide does not
  4. Don't pass reason back to the model or the user. Datadog says it is for auditing and logging
  5. If you get 429, decide whether to proceed. Limits are 700 requests and 14 million tokens a minute per organisation

Questions

Which is better for AI agents, Azure AI Content Safety (Prompt Shields) or Datadog AI Guard?

Azure AI Content Safety (Prompt Shields) scores 68 (B) on agent readiness against Datadog AI Guard's 63.6 (B), and leads in 4 of 7 scored categories. Datadog AI Guard leads on schema & documentation, payments & pricing and maintenance & community.

Do Azure AI Content Safety (Prompt Shields) and Datadog AI Guard need an API key?

Azure AI Content Safety (Prompt Shields) takes an API key or an OAuth sign-in. Datadog AI Guard needs an API key.

Can an agent call Azure AI Content Safety (Prompt Shields) and Datadog AI Guard without installing anything?

Yes. Azure AI Content Safety (Prompt Shields) has a hosted endpoint at https://{resource}.cognitiveservices.azure.com/contentsafety/text:shieldPrompt and Datadog AI Guard at https://api.datadoghq.com/api/v2/ai-guard/evaluate.

Other comparisons with Azure AI Content Safety (Prompt Shields) or Datadog AI Guard

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.