# Datadog AI Guard vs Llama Guard 4

> Datadog AI Guard scores 63.6 (B) to Llama Guard 4's 52.3 (D) for policy enforcement. Prices, MCP, x402, uptime and agent notes side by side.

- Canonical: https://www.anchorterminal.com/compare/datadog-ai-guard-vs-llama-guard
- Markdown: https://www.anchorterminal.com/compare/datadog-ai-guard-vs-llama-guard.md (~5,850 tokens)
- Slim: https://www.anchorterminal.com/compare/datadog-ai-guard-vs-llama-guard.min.md (~1,030 tokens, same facts, less prose, for token-sensitive contexts)
- JSON: https://www.anchorterminal.com/compare/datadog-ai-guard-vs-llama-guard.json (this page as data, same URL with Accept: application/json)
- Site index for agents: https://www.anchorterminal.com/llms.txt (the key docs and every listing in one file, at most 16 MB, about 4 million tokens: https://www.anchorterminal.com/llms-full.txt)
- API: https://www.anchorterminal.com/api/v1/index.json
- MCP: https://www.anchorterminal.com/mcp (the whole catalogue as tools, no key)
- DNS: dig +short TXT <slug>.grade.anchorterminal.com (the grade as a DNS TXT record, for a sandbox with no HTTP where names still resolve; also top., best.<category>. and <a>.vs.<b>. under the zone, and the same under grade.letme.dev)
- Licence: CC BY 4.0, credit Anchor Terminal and link this page (https://www.anchorterminal.com/terms/#data)
- Updated: 2026-11-23

Datadog AI Guard scores 63.6 (B) on agent readiness against Llama Guard 4's 52.3 (D), and leads in 5 of 7 scored categories. Llama Guard 4 leads on payments & pricing. Both do policy enforcement.

- Datadog AI Guard: grade B, 63.6/100, rank #670 of 1654. Markdown https://www.anchorterminal.com/tools/datadog-ai-guard.md · JSON https://www.anchorterminal.com/api/v1/tools/datadog-ai-guard.json
- Llama Guard 4: grade D, 52.3/100, rank #1163 of 1654. Markdown https://www.anchorterminal.com/tools/llama-guard.md · JSON https://www.anchorterminal.com/api/v1/tools/llama-guard.json
- Best guardrails and safety filters for AI agents: https://www.anchorterminal.com/best/guardrails/index.md
- All 175 guardrails comparisons: https://www.anchorterminal.com/compare/guardrails/index.md

## Which one, for what

### Datadog AI Guard (B)

Good 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 52
- Agent ergonomics, 74 against 67
- Security & auth, 83 against 53
- Maintenance & community, 84 against 28
- Transparency & trust, 71 against 59

Also in its favour:
- A hosted endpoint, with nothing to install

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

### Llama Guard 4 (D)

Good for: A team outside the EU with a GPU that wants content moderation of text and images on its own hardware, against a fixed 14-category policy it can edit in the prompt.

Ahead on:
- Payments & pricing, 68 against 45

Also in its favour:
- No key needed to call it
- No incidents deducted, where Datadog AI Guard loses 3 points for them

Watch for: Weights last changed on 29 April 2025, with no changelog, version tags or stated deprecation policy


## Why the edge

### Maintenance & community: Datadog AI Guard +56

- 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.
- Llama Guard 4 (28): Read for an open-weight model. The weights and model card were last changed on 29 April 2025, more than 17 months ago (0 of 30). No model revision since, and no successor or retirement announced that we found. Stability earns part of the line under the model reading (8 of 20). Meta staff answered Hugging Face threads in April and May 2025. Threads opened since June 2025, including one of 20 October 2026, have no Meta reply on 4 November, two pull requests from January and August 2026 are still open, and GitHub issue 108 on missed threats in Italian was forwarded on 28 May 2025 with nothing after (6 of 25). `transformers`, vLLM and SGLang load it per the Hugging Face page on 8 October, and Meta's cookbook has a notebook (10 of 15). PurpleLlama had commits on 29 September, 12 October and 30 October 2026, all type-check or benchmark-dataset housekeeping, with tests passing and lint failing on 29 September per the 8 October check (4 of 10). 0 + 8 + 6 + 10 + 4 = 28. The 20-point line is read for a model (notice periods and churn), as for muse-spark-open.

### Schema & documentation: Datadog AI Guard +32

- 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.
- Llama Guard 4 (52): Read for a model the owner serves. There is no specification of its own. The contract is `chat_template.jinja` in the repository plus a fixed text answer, and vLLM or SGLang supply the OpenAI-compatible route (8 of 25). No llms.txt for the Llama docs, and dev.meta.ai/llms.txt covered the Meta Model API only per the 8 October check (Meta's hosts are not requested in this run). The model card is Markdown on GitHub (5 of 10). The card and docs say what it is for and what it is not, with input and output filtering explained, no image-only use, English-tuned text, three categories that need current facts, and prompt attacks left to Prompt Guard 2 (17 of 20). Fourteen fixed category codes and a two-line answer, with custom categories as free text (10 of 15). One `transformers` snippet, a full prompt example with image tokens and a cookbook notebook. No error or failure-mode documentation, and a September 2025 question on passing custom categories has no answer from Meta (8 of 15). Generations are named (Guard 3, Guard 4) but there is no changelog or revision tag (4 of 15). 8 + 5 + 17 + 10 + 8 + 4 = 52.

### Security & auth: Datadog AI Guard +30

- 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.
- Llama Guard 4 (53): Read as software the owner runs. No account is needed to run it. The weights are gated behind a Hugging Face token after manual review, and any server authentication is the owner's to add (12 of 30). A classifier with no write actions (15 of 20). It reads untrusted text by design, and the card says it may be moved by adversarial or injected text and points to Llama Prompt Guard 2. No mitigation guidance beyond that (8 of 15). No call log of its own. Visibility depends on the serving stack (5 of 15). PurpleLlama's CONTRIBUTING.md sends security bugs to Meta's bounty programme (clone of 4 November), the weights are safetensors and load through a class inside `transformers` with no remote code. No security.txt on dev.meta.ai per the 8 October check, and no SECURITY.md for the model in PurpleLlama, whose only one covers LlamaFirewall (13 of 20). 12 + 15 + 8 + 5 + 13 = 53.

### Payments & pricing: Llama Guard 4 +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.
- Llama Guard 4 (68): Self-hosted rule, with one departure. Nothing to buy from Meta, and the licence allows commercial use at no charge (20). Free to run with no card (20). The rule would give 20 for use without sign-up, but the weights sit behind a form reviewed by hand that asks for a legal name and date of birth, and two threads in May and June 2026 report rejections, so an agent cannot get access alone (5 of 20). No payment protocol (0). DeepInfra's hosted copy cost $0.18 per 1M tokens per the 8 October check and needs its own account; Hugging Face lists it as the one live provider on 4 November. 20 + 20 + 5 + 0 = 45. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 45 is 68.

### Transparency & trust: Datadog AI Guard +12

- 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.
- Llama Guard 4 (59): Weights are downloadable under the Llama 4 Community Licence, which is clear but not an OSI licence. It carries attribution and naming conditions, an acceptable use policy, and no grant for multimodal models to individuals or companies based in the European Union (17 of 30). Inputs stay on the owner's hardware. No privacy statement covers the model, the access form's details go to Meta under its general privacy policy, and training data is described only in outline (20 of 30). No deprecation policy or dates. The docs say Guard 4 replaces Guard 3 8B and 11B and that Guard 3 1B stays useful on edge devices (5 of 20). Weights carry no telemetry, but we found no statement either way and downloads go through Hugging Face (10 of 20). 17 + 20 + 5 + 10 = 52. Licence and use-policy text read in the PurpleLlama clone (Llama-Guard4/12B/LICENSE and USE_POLICY.md); the dev.meta.ai copies per the 8 October check.

### Agent ergonomics: Datadog AI Guard +7

- 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.
- Llama Guard 4 (67): Read as a classifier an agent calls. The answer is `safe`, or `unsafe` and category codes, and the card's snippet caps it at 10 new tokens (23 of 25). The category list is part of the prompt, the template takes `categories` and `excluded_category_keys`, and the role checked follows from whether the last turn is the user's or the model's (14 of 20). The model has no error responses of its own and returns no score or confidence in the documented path, so a caller parses two lines of text (6 of 20). Calls are stateless, the snippet turns sampling off, and a check can be repeated safely (16 of 20). One `transformers` class or one `vllm serve` command once access is granted, but it needs a GPU for 12B parameters, manual approval and a pinned preview tag in the card (8 of 15). 23 + 14 + 6 + 16 + 8 = 67.

## Score by category

| Category | Weight | Datadog AI Guard | Llama Guard 4 | Edge |
| --- | --- | --- | --- | --- |
| Reliability | 16% | 36 | 38 | Llama Guard 4 +2 |
| Performance | 10%, pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 84 | 52 | Datadog AI Guard +32 |
| Agent ergonomics | 13% | 74 | 67 | Datadog AI Guard +7 |
| Security & auth | 14% | 83 | 53 | Datadog AI Guard +30 |
| Payments & pricing | 10% | 45 | 68 | Llama Guard 4 +23 |
| Task success | 10%, pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 84 | 28 | Datadog AI Guard +56 |
| Transparency & trust | 7% | 71 | 59 | Datadog AI Guard +12 |
| Negative events | ≤15 | -3 | 0 | |
| **Total** | | **63.6 · B** | **52.3 · D** | |

## Facts side by side

| Fact | Datadog AI Guard | Llama Guard 4 |
| --- | --- | --- |
| Kind | HTTP API | Model API |
| Vendor | Datadog | Meta |
| Hosted endpoint | `https://api.datadoghq.com/api/v2/ai-guard/evaluate` | no (local only) |
| Transports | HTTP | HTTP |
| Auth | API key | None |
| Pricing | Pay per use | Free |
| x402 | no | no |
| Licence | Proprietary 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) | Llama 4 Community Licence (source-available weights, not an OSI licence), with the Llama 4 acceptable use policy |
| Read-only variant documented | no | no |
| llms.txt | yes | no |
| Last release | 2026-11-19 | 2025-04-29 |
| Terms last updated | no date given | 2025-04-05 |
| Privacy policy last updated | no date given | no document linked |
| Customer content may train models | not found in the text | not found in the text |
| Terms restrict automated access | not found in the text | not found in the text |
| Terms restrict benchmarking | not found in the text | not found in the text |
| Terms or service can change without notice | not found in the text | not found in the text |
| Arbitration or class-action waiver | not found in the text | not found in the text |
| Popularity | 654 stars | 4.4k stars |

## How the scores have moved

### Datadog AI Guard

No score change since it was listed.

### Llama Guard 4

- +2.8 on 13 November 2026: checklist
- +0.4 on 27 October 2026: checklist

## 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.

**Llama Guard 4.** A single self-hosted model classifies text and multi-image prompts against 14 MLCommons-aligned hazard categories and answers in a few tokens. The weights have not changed since 29 April 2025, download access needs Meta's manual approval, and the licence withholds the grant from individuals and companies based in the European Union.

## 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

### Llama Guard 4

1. Request access on the Hugging Face page before anything else. Approval is manual, and the form cannot be edited after submission
2. Send only the user turn to check an input, and the user turn plus the model's answer to check an output. The template picks the role from the message count
3. Parse the first line for `safe` or `unsafe` and the second for category codes. Set `max_new_tokens` to about 10 and turn sampling off
4. Do not send an image with no text. Meta says the model is not an image-only classifier, and S14 is skipped when an image is present
5. Pair it with a prompt-attack detector. The card says the model can itself be moved by adversarial or injected text

## Questions

### Which is better for AI agents, Datadog AI Guard or Llama Guard 4?

Datadog AI Guard scores 63.6 (B) on agent readiness against Llama Guard 4's 52.3 (D), and leads in 5 of 7 scored categories. Llama Guard 4 leads on payments & pricing.

### Do Datadog AI Guard and Llama Guard 4 need an API key?

Datadog AI Guard needs an API key. Llama Guard 4 needs no key.

### Can an agent call Datadog AI Guard and Llama Guard 4 without installing anything?

Datadog AI Guard has a hosted endpoint at https://api.datadoghq.com/api/v2/ai-guard/evaluate. No hosted endpoint is listed for Llama Guard 4.


## For agents

- This comparison as JSON: https://www.anchorterminal.com/compare/datadog-ai-guard-vs-llama-guard.json, and with the fewest tokens: https://www.anchorterminal.com/compare/datadog-ai-guard-vs-llama-guard.min.md
- Over MCP at https://www.anchorterminal.com/mcp (no key): `compare_tools {"a": "datadog-ai-guard", "b": "llama-guard"}`. From a terminal: `anchor compare datadog-ai-guard llama-guard`
- Each listing in full: https://www.anchorterminal.com/api/v1/tools/datadog-ai-guard.json and https://www.anchorterminal.com/api/v1/tools/llama-guard.json

## Other comparisons with Datadog AI Guard or Llama Guard 4

- [Amazon Bedrock Guardrails vs Datadog AI Guard](https://www.anchorterminal.com/compare/amazon-bedrock-guardrails-vs-datadog-ai-guard.md)
- [Azure AI Content Safety (Prompt Shields) vs Datadog AI Guard](https://www.anchorterminal.com/compare/azure-ai-content-safety-vs-datadog-ai-guard.md)
- [Cisco AI Defense Inspection API vs Datadog AI Guard](https://www.anchorterminal.com/compare/cisco-ai-defense-inspection-vs-datadog-ai-guard.md)
- [Datadog AI Guard vs Google Cloud Model Armor](https://www.anchorterminal.com/compare/datadog-ai-guard-vs-google-model-armor.md)
- [Datadog AI Guard vs Granite Guardian](https://www.anchorterminal.com/compare/datadog-ai-guard-vs-granite-guardian.md)
- [Datadog AI Guard vs Guardrails AI](https://www.anchorterminal.com/compare/datadog-ai-guard-vs-guardrails-ai.md)
- [Datadog AI Guard vs Lakera Guard (Check Point AI Guardrails)](https://www.anchorterminal.com/compare/datadog-ai-guard-vs-lakera-guard.md)
- [Datadog AI Guard vs LlamaFirewall](https://www.anchorterminal.com/compare/datadog-ai-guard-vs-llamafirewall.md)
- [Datadog AI Guard vs NVIDIA NeMo Guardrails](https://www.anchorterminal.com/compare/datadog-ai-guard-vs-nemo-guardrails.md)
- [Datadog AI Guard vs OpenAI Guardrails](https://www.anchorterminal.com/compare/datadog-ai-guard-vs-openai-guardrails.md)
- [Datadog AI Guard vs Prisma AIRS AI Runtime Security API](https://www.anchorterminal.com/compare/datadog-ai-guard-vs-prisma-airs.md)
- [Amazon Bedrock Guardrails vs Llama Guard 4](https://www.anchorterminal.com/compare/amazon-bedrock-guardrails-vs-llama-guard.md)
- [Azure AI Content Safety (Prompt Shields) vs Llama Guard 4](https://www.anchorterminal.com/compare/azure-ai-content-safety-vs-llama-guard.md)
- [Cisco AI Defense Inspection API vs Llama Guard 4](https://www.anchorterminal.com/compare/cisco-ai-defense-inspection-vs-llama-guard.md)
- [Google Cloud Model Armor vs Llama Guard 4](https://www.anchorterminal.com/compare/google-model-armor-vs-llama-guard.md)
- [Granite Guardian vs Llama Guard 4](https://www.anchorterminal.com/compare/granite-guardian-vs-llama-guard.md)
- [Guardrails AI vs Llama Guard 4](https://www.anchorterminal.com/compare/guardrails-ai-vs-llama-guard.md)
- [Lakera Guard (Check Point AI Guardrails) vs Llama Guard 4](https://www.anchorterminal.com/compare/lakera-guard-vs-llama-guard.md)
- [Llama Guard 4 vs Mistral Moderation API](https://www.anchorterminal.com/compare/llama-guard-vs-mistral-moderation.md)
- [Llama Guard 4 vs NVIDIA NeMo Guardrails](https://www.anchorterminal.com/compare/llama-guard-vs-nemo-guardrails.md)
- [Llama Guard 4 vs OpenAI Guardrails](https://www.anchorterminal.com/compare/llama-guard-vs-openai-guardrails.md)
- [Llama Guard 4 vs OpenAI Moderation API](https://www.anchorterminal.com/compare/llama-guard-vs-openai-moderation.md)
- [Llama Guard 4 vs Prisma AIRS AI Runtime Security API](https://www.anchorterminal.com/compare/llama-guard-vs-prisma-airs.md)
- [Llama Guard 4 vs ShieldGemma](https://www.anchorterminal.com/compare/llama-guard-vs-shieldgemma.md)
- [AgentGate vs Datadog AI Guard](https://www.anchorterminal.com/compare/agentgate-vs-datadog-ai-guard.md)
- [AgentGate vs Llama Guard 4](https://www.anchorterminal.com/compare/agentgate-vs-llama-guard.md)
- [Datadog AI Guard vs ShieldGemma](https://www.anchorterminal.com/compare/datadog-ai-guard-vs-shieldgemma.md)
- [Llama Guard 4 vs LlamaFirewall](https://www.anchorterminal.com/compare/llama-guard-vs-llamafirewall.md)
- [Datadog AI Guard vs Presidio](https://www.anchorterminal.com/compare/datadog-ai-guard-vs-microsoft-presidio.md)
- [Datadog AI Guard vs Mistral Moderation API](https://www.anchorterminal.com/compare/datadog-ai-guard-vs-mistral-moderation.md)
- [Llama Guard 4 vs Presidio](https://www.anchorterminal.com/compare/llama-guard-vs-microsoft-presidio.md)
- [Datadog AI Guard vs OpenAI Moderation API](https://www.anchorterminal.com/compare/datadog-ai-guard-vs-openai-moderation.md)

---

Query this catalogue directly over MCP: https://www.anchorterminal.com/mcp (Streamable HTTP, no key). How: https://www.anchorterminal.com/agents/#mcp
