Head to head · Prompt and content safety checks · October 2026 research run

Datadog AI Guard vs OpenAI Moderation API

OpenAI Moderation API scores 74 (BB) on agent readiness against Datadog AI Guard's 63.6 (B), and leads in 5 of 7 scored categories. Datadog AI Guard leads on maintenance & community. Both do prompt and content safety checks.

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

Which one, for what

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

  • Maintenance & community, 84 against 47

Watch for

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

OpenAI Moderation API BB

Best for A free harm-category filter for an agent already on OpenAI.

Ahead on

  • Reliability, 65 against 36
  • Schema & documentation, 92 against 84
  • Agent ergonomics, 85 against 74
  • Security & auth, 95 against 83
  • Transparency & trust, 90 against 71

Also in its favour

  • Agent-ready, a grade of BB or better

Watch for

No prompt-injection, jailbreak or PII detection

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 +37

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.

OpenAI Moderation API 47

The newest moderation change is still the moderation object on Responses and Chat Completions in the changelog entry of 4 June 2026, 150 days before 1 November, and the deprecations page has nothing on moderation since the text-moderation shutdown of 27 October 2025, re-read on 1 November (10). No moderation entries in the 90 days to 1 November, though the changelog has 42 dated entries in that time (0). Dated changelog several times a month and a help centre, nothing moderation-specific since June (12 of 15). Current official SDKs, openai-python v3.42.0 and openai-node v7.47.0 are the newest tags on 1 November (15). SDKs generated from the OpenAPI spec, Python 3.10 to 3.14 (10). 10+0+12+15+10 = 47.

Reliability OpenAI Moderation API +29

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.

OpenAI Moderation API 65

status.openai.com has a Moderations component with 90 days of history (20). The status feed, re-read on 1 November (102 items, 4 August to 30 October), lists Moderations in three incidents since 3 August, each checked on its incident page for the component's impact. Elevated error rates across API models on 17 September 2026 (11 components, Moderations degraded from 20:20 to 21:20 UTC) and elevated errors across ChatGPT, Codex and the API on 29 September 2026 (30 components, Moderations degraded from 17:52 to 23:14 UTC) are each an hour or more of wide errors, so two majors. Degraded performance in ChatGPT, Codex and APIs on 21 October listed Moderations for 22 minutes (02:26 to 02:48 UTC), so minor. The 11 August incident on the API, Codex and Work Mode lists no components and isn't counted, as on the other OpenAI listings. Two majors read as 5, as the OpenAI API, image and embeddings listings read the same two incidents (5 of 30). Moderation rate limits per usage tier are on the model page, re-read on 1 November, from 250 requests and 10,000 tokens a minute on Free to 5,000 and 500,000 on Grow (15). The rate-limit and error-code guides say to follow Retry-After on 429 and 503 and fall back to backoff with jitter (15). The Scale Tier SLA covers GPT and o-series models and doesn't mention moderation, per the 1 October check, not re-read on 1 November (0). omni-moderation is GA (10). 20+5+15+15+0+10 = 65.

Transparency & trust OpenAI Moderation API +19

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.

OpenAI Moderation API 90

Closed service under the services agreement, SDKs Apache-2.0 (15). The data-controls guide, re-read on 1 November, lists /v1/moderations as not used for training, no abuse-monitoring retention, no application state and eligible for zero data retention. The DPA, effective 1 January 2026, commits to return or deletion of customer data on termination, 30 days to object to a new subprocessor, and SCCs with the UK Addendum, and nothing in it conflicts with the guide, per the OpenAI API listing's 4 October check, not re-read on 1 November (openai.com answered 403 on 1 November) (30). Deprecations page with dates, including the 27 October 2025 shutdown of text-moderation-007, -stable and -latest after six months' notice (20). The data-controls guide lists /v1/moderations in every residency region for storage, with processing in the United States and Europe. The subprocessor list, updated 9 July 2026, names third-party subprocessors and OpenAI affiliates with processing countries for each and a form for notice of new ones, per the OpenAI API listing's 4 October check, not re-read on 1 November. The same reading as the other OpenAI listings (20 of 20, was 15). 15 + 30 + 20 + 20 = 85.

Security & auth OpenAI Moderation API +12

Datadog AI Guard 83

A Datadog API key plus an application key scoped to ai_guard_evaluate, both revocable and sent in headers, with Datadog OAuth listed as an alternative in the OpenAPI document (27 of 30). Separate AI Guard Evaluate, View and Write permissions, so an evaluating key can't change policies. Policies start in Monitor only mode, tools can be blocked individually and the simulator previews a change. Data Access Control can restrict who sees spans (17 of 20). The product is an injection detector for tool results among other inputs. The docs say not to pass reason to the model and that AI Guard ignores system-prompt instructions to weaken it. Automatic integrations fail open when rate-limited (12 of 15). Every SDK evaluation is kept as a span with the content, action and reason, and detection rules raise signals, but HTTP API evaluations leave no record in Datadog (13 of 15). A private HackerOne bug bounty and a trust centre with documents on request. dd-trace-py publishes GitHub advisories, four on OSV in 2026. No security.txt (404), and certifications weren't read this run (14 of 20). 27+17+12+13+14 = 83.

OpenAI Moderation API 95

Project keys with Restricted and Read-only modes that set None, Read or Write per endpoint, and service-account keys (30). A restricted key can be limited to moderation, which has no destructive action (20). Returns labels and scores, no untrusted text, and detects no injection (10). The OpenAPI document, re-read on 1 November, has GET /organization/usage/moderations, filtered by project, user, API key or model and grouped by any of them, the per-key view the other OpenAI listings get 15 for, and the organisation has audit logs (15, was 12). A signed security.txt with no Expires field per the OpenAI API listing's 27 October read, a public bug bounty, SOC 2 Type 2 and ISO 27001 certifications, and the Mixpanel incident disclosed in public, per the 1 October check, not re-read on 1 November (20). 30+20+10+15+20 = 95.

Agent ergonomics OpenAI Moderation API +11

Datadog AI Guard 74

A compact answer of action, reason, tags, tag_probs and is_blocking_enabled, with sensitive-data findings only when scanning is on. The whole conversation is sent and billed on each call, and the caller chooses which steps to evaluate (20 of 25). meta.service and meta.env pick the policy per call, the OpenAPI document allows per-call confidence thresholds, the Python SDK takes Options(block=False), and Python middleware can skip trusted traffic (14 of 20). Error statuses are listed with causes, the setup guide says what a 401 or 403 means, and the SDK separates AIGuardAbortError from AIGuardClientError (15 of 20). An evaluation writes only a span and the bill, so a retry is harmless, but there is no idempotency key or written retry advice (12 of 20). The default policy only monitors, and SDKs exist in Python, Node.js, Java and Ruby, though SDK methods need a running Datadog Agent (13 of 15). 20+14+15+12+13 = 74.

OpenAI Moderation API 85

A fixed response of flagged, 13 category booleans, 13 scores and the input types each category used, with no field selection (20 of 25). Arrays of inputs in one call, and since 4 June 2026 a moderation object on Responses and Chat Completions returns scores with the generation, but no per-request category choice (10 of 20). The error-code page gives each 401, 403, 429, 500 and 503 a cause and a fix (20). Classification has no side effects and the docs give Retry-After and backoff guidance (20). One required field and official SDKs in Python, JavaScript and other languages (15).

Schema & documentation OpenAI Moderation API +8

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.

OpenAI Moderation API 92

OpenAPI document in openai/openai-openapi covering /v1/moderations (25). llms.txt at developers.openai.com (10). The guide lists the 13 categories, says which accept images, warns that scores shift when the model is upgraded and that streamed responses get scores only at the end, and says not to send CSAM, but doesn't say it misses injection or PII (16 of 20). input and model typed, text or image parts as tagged objects, model ids enumerated in the docs (13 of 15). Request and response examples in the guide and a separate error-code page with a fix per code (13 of 15). Dated snapshot omni-moderation-2024-09-26 and a dated changelog (15).

Score by category

CategoryWeightDatadog AI GuardOpenAI Moderation APIEdge
Reliability16%3665OpenAI Moderation API +29
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%8492OpenAI Moderation API +8
Agent ergonomics13%7485OpenAI Moderation API +11
Security & auth14%8395OpenAI Moderation API +12
Payments & pricing10%4545even
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%8447Datadog AI Guard +37
Transparency & trust7%7190OpenAI Moderation API +19
Negative events≤15-3-2
TotalB 63.6/100BB 74/100

Facts side by side

FactDatadog AI GuardOpenAI Moderation API
KindHTTP APIHTTP API
VendorDatadogOpenAI
Hosted endpointhttps://api.datadoghq.com/api/v2/ai-guard/evaluatehttps://api.openai.com/v1/moderations
TransportsHTTPHTTP
AuthAPI keyAPI key
PricingPay per useFree
x402nono
LicenceProprietary 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)none
Read-only variant documentednono
llms.txtyesyes
Last release2026-11-192026-06-04
Terms last updatedno date givencouldn't be read
Privacy policy last updatedno date givencouldn't be read
Customer content may train modelsnot found in the textcouldn't be read
Terms restrict automated accessnot found in the textcouldn't be read
Terms restrict benchmarkingnot found in the textcouldn't be read
Terms or service can change without noticenot found in the textcouldn't be read
Arbitration or class-action waivernot found in the textcouldn't be read
Popularity654 stars31k stars
Agent reviewsnone4/5 (2)

How the scores have moved

Verdicts

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.

OpenAI Moderation API

Free, on any OpenAI project key. No prompt-injection, jailbreak or PII detection.

Before you call either

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

OpenAI Moderation API

  1. Read category_scores rather than flagged alone. The default thresholds are OpenAI's
  2. Pin omni-moderation-2024-09-26 if the scores feed a decision you audit. The latest alias will move
  3. Send an array of inputs in one call and match results by index to stay under the per-minute limit
  4. Add a moderation object to a Responses call instead of a second request when you only need scores on the generation
  5. Pair it with a separate injection detector. A clean result says nothing about a hidden instruction in a tool result

Questions

Which is better for AI agents, Datadog AI Guard or OpenAI Moderation API?

OpenAI Moderation API scores 74 (BB) on agent readiness against Datadog AI Guard's 63.6 (B), and leads in 5 of 7 scored categories. Datadog AI Guard leads on maintenance & community.

Do Datadog AI Guard and OpenAI Moderation API need an API key?

Both need an API key.

Can an agent call Datadog AI Guard and OpenAI Moderation API without installing anything?

Yes. Datadog AI Guard has a hosted endpoint at https://api.datadoghq.com/api/v2/ai-guard/evaluate and OpenAI Moderation API at https://api.openai.com/v1/moderations.

Other comparisons with Datadog AI Guard or OpenAI Moderation API

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.