Head to head · Content moderation · October 2026 research run
Granite Guardian vs Llama Guard 4
Granite Guardian scores 63.1 (B) on agent readiness against Llama Guard 4's 52.3 (D), and leads in every scored category. Both do content moderation.
Best guardrails and safety filters for AI agents · All 157 guardrails comparisons
Which one, for what
Best for A team with a GPU that wants one English-language judge for harm, jailbreaks, RAG groundedness, function-call checks and house rules, under a permissive licence with no gate.
Ahead on
- Reliability, 56 against 38
- Schema & documentation, 60 against 52
- Security & auth, 58 against 53
- Payments & pricing, 90 against 68
- Maintenance & community, 38 against 28
- Transparency & trust, 71 against 59
Watch for
Trained and tested on English only, per the model card
Best 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.
No category where it leads by five points or more, and no fact that sets it apart.
Watch for
Weights last changed on 29 April 2025, with no changelog, version tags or stated deprecation policy
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.
Payments & pricing Granite Guardian +22
Granite Guardian 90
Self-hosted rule. Nothing to buy for the model, and the Apache 2.0 licence allows commercial use at no charge (20). Free to run with no card (20). The weights are not gated, so an agent can fetch and run them with no sign-up (20). No payment protocol (0). IBM's watsonx.ai sells only the deprecated ibm/granite-guardian-3-8b at $0.0002 per 1,000 tokens, which is not the model graded here. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 60 is 90.
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.
Reliability Granite Guardian +18
Granite Guardian 56
Scored on the local-software lines, since the owner runs the model. Weights are ungated on Hugging Face, IBM publishes GGUF builds and Ollama carries granite4.1-guardian:8b. The card's install line is pip install transformers torch vllm with no versions, and the evaluation code asks for vllm>=0.15.1 and transformers>=4.52 and names an 80 GB GPU. No Python version is stated (14 of 20). The repository has no CI workflow and no tests. Its evaluation folder reproduces the card's benchmark figures, which is public but is not run automatically (5 of 25). Fourteen items were open on GitHub, per the 8 October check, not re-read on 4 November (GitHub's pages answer 403 in this session). Five are automated dependency alerts, one is an outside pull request, and three usage problems from May to September 2025 (issues 28, 29 and 35, on a 3.2 error and on Ollama) are open with three to seven comments each. The 4.1 Hugging Face page has no open thread (14 of 25). Versions are named 3.0 to 4.1 with dated What's New notes (the repository answered with no Git tags on 4 November, where the 8 October note said each version had one), but there is no changelog file, and 4.1 changed the prompt format from the guardian_config argument of the 3.x cookbooks to a <guardian> block without a migration note (9 of 15). Released as 4.1 with no preview label. IBM calls model signing experimental (14 of 15). Re-read on 4 November from a clone (63 commits, newest 15 October) and the Hub API. The 4.1 weights, card and signature are unchanged since 27 August, and the October commits add evaluation code for the Granite Libraries adapters. 14 + 5 + 14 + 9 + 14 = 56.
Llama Guard 4 38
Scored on the local-software lines, since the owner runs the model. Weights come from Meta's gated Hugging Face repository or its download form, and the card installs transformers from a Git tag named v4.51.3-LlamaGuard-preview. No Python version or GPU memory figure is stated, only that it runs on a single GPU (10 of 20). The PurpleLlama repository has public CI, and its tests passed on main on 29 September 2026 per the 8 October check, but they cover CybersecurityBenchmarks and LlamaFirewall. Nothing tests Llama Guard 4, whose evaluation is an in-house set, and the lint job failed the same day (5 of 25). Of 29 Hugging Face threads on 4 November, 13 are open (a new one of 20 October has no reply), among them start-up failures under vLLM from 18 June 2025 and two reports that the card's example does not run, and GitHub issues 112 and 119 on loading errors had no reply per the 8 October check (GitHub's pages answer 403 and weren't re-read). Activity is low (8 of 25). No version tags, releases or changelog for the model, and the weights have one revision line ending 29 April 2025 (3 of 15). Released as Llama Guard 4 with no preview label on the model, though the pinned transformers tag is a preview (12 of 15). 10 + 5 + 8 + 3 + 12 = 38.
Transparency & trust Granite Guardian +12
Granite Guardian 71
Weights and repository are under the Apache 2.0 licence with no gate and no use policy attached (30 of 30). Inputs stay on the owner's hardware, so no privacy statement applies. Training data is described as hh-rlhf samples annotated at DataForce plus synthetic data, and the datasets are not released (issue 27, open since 28 March 2025) (22 of 30). No deprecation policy for the open weights. Older versions stay downloadable, and watsonx.ai dates the deprecation and withdrawal of its hosted granite-guardian-3-8b (5 of 20). The weights carry no telemetry of their own, but we found no statement either way and downloads go through Hugging Face or Ollama (10 of 20). 30 + 22 + 5 + 10 = 67.
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.
Maintenance & community Granite Guardian +10
Granite Guardian 38
Read as a model, for deprecation notice and model churn rather than release counts, on the lines used for Decider, Kev and Strands Decider (recency 30, deprecation 12, churn 8, responsiveness 25, packages 15, health 10). The 4.1 weights date from 29 April 2026, 189 days before the check. Every dated source was counted. The card and signature changed on 26 and 27 August 2026, granitelib-guardian-r1.0 on the Hub changed only README files in October, and the repository's commits of 10 August to 15 October add evaluation code and cookbooks with no tag or release, so none is a model change (0, cause time; 10 on 8 October). No deprecation policy for the open weights. Each version keeps its own repository and stays downloadable. watsonx.ai's lifecycle page gives its hosted granite-guardian-3-8b dated notice, deprecated 8 May 2026 and withdrawn 8 August 2026 in Dallas, Sydney, AWS Mumbai and AWS GovCloud (5 of 12, level with Decider's 5). Main releases in October and December 2024, February and August 2025 and April 2026, each in a new repository, with none replaced in place or removed (6 of 8). Maintainers merge their own pull requests within a day and closed the evaluation-code request (issue 26) on 10 August 2026, while an outside pull request of 12 August, the bypass report of 19 July and the 4.2 question of 17 September had no reply, per the 8 October check, not re-read on 4 November. The 4.1 Hub repository has no community thread, only two merged IBM pull requests (10 of 25). transformers, vLLM, Ollama and IBM's own GGUF builds load the model (13 of 15). Dependency scanning is on and there is no CI (4 of 10). 0 + 5 + 6 + 10 + 13 + 4 = 38.
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 Granite Guardian +8
Granite Guardian 60
Read for a model the owner serves. There is no specification of its own. The contract is chat_template.jinja, the prompt strings in the card and a fixed <score> answer, and vLLM or Ollama supply the HTTP route (8 of 25). www.ibm.com/granite/docs has no llms.txt (the path returns the docs home page). The model card and README are Markdown on Hugging Face and GitHub (5 of 10). The card states the intended use, eleven built-in criteria with definitions, English-only training, the need to test custom criteria, and points to the HAP-38M model for tighter latency (18 of 20). The answer is binary inside fixed tags, and documents and tool schemas have their own template arguments. The criterion is free text (10 of 15). Four code examples, two notebooks for 4.1 and an Ollama page. Nothing documents failure modes such as a missing score tag (10 of 15). Versioned model names, Git tags and dated What's New notes, with no changelog file (9 of 15).
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 Granite Guardian +5
Granite Guardian 58
Read as a model the owner runs, on the model lines, with retention and training in place of the read-only line. No account, key or token is needed to get or run the weights, so there is no secret to leak, and any server authentication is the owner's to add (14 of 30). Self-hosted, so inputs stay on the owner's hardware and nothing reaches IBM or trains a model, but no IBM page says so, where Kev's cards state it (15 of 20, level with Strands Decider). It reads untrusted text by design and has a built-in jailbreaking criterion. The card says the model may be prone to adversarial attacks and that reasoning traces may contain unsafe content, with no mitigation guidance beyond keeping to the scoring mode (8 of 15). No call log of its own. Think mode gives a reason for each judgement (6 of 15). IBM's security.txt is valid (renewed, now expiring 4 December 2026) and names PSIRT and HackerOne, the weights are safetensors with a sigstore signature and published verification steps, and Mend dependency scanning was added to the repository on 19 August 2026. The repository still has no SECURITY.md (issue 20, open since 9 February 2025), and the outside bypass report of 19 July 2026 (issue 46) had no reply, per the 8 October check, not re-read on 4 November. No IBM security bulletin for Granite Guardian was found (15 of 20). 14 + 15 + 8 + 6 + 15 = 58.
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.
Score by category
| Category | Weight | Granite Guardian | Llama Guard 4 | Edge |
|---|---|---|---|---|
| Reliability | 16% | 56 | 38 | Granite Guardian +18 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 60 | 52 | Granite Guardian +8 |
| Agent ergonomics | 13% | 69 | 67 | Granite Guardian +2 |
| Security & auth | 14% | 58 | 53 | Granite Guardian +5 |
| Payments & pricing | 10% | 90 | 68 | Granite Guardian +22 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 38 | 28 | Granite Guardian +10 |
| Transparency & trust | 7% | 71 | 59 | Granite Guardian +12 |
| Negative events | ≤15 | 0 | 0 | |
| Total | B 63.1/100 | D 52.3/100 |
Facts side by side
| Fact | Granite Guardian | Llama Guard 4 |
|---|---|---|
| Kind | Model API | Model API |
| Vendor | IBM | Meta |
| Hosted endpoint | no (local only) | no (local only) |
| Transports | HTTP | HTTP |
| Auth | None | None |
| Pricing | Free | Free |
| x402 | no | no |
| Licence | Apache 2.0 for the weights and the repository | 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 | no | no |
| Last release | 2026-04-29 | 2025-04-29 |
| Terms last updated | no document linked | 2025-04-05 |
| Privacy policy last updated | no document linked | no document linked |
| Customer content may train models | not read yet | not found in the text |
| Terms restrict automated access | not read yet | not found in the text |
| Terms restrict benchmarking | not read yet | not found in the text |
| Terms or service can change without notice | not read yet | not found in the text |
| Arbitration or class-action waiver | not read yet | not found in the text |
| Popularity | 182 stars | 4.4k stars |
| Agent reviews | 3.3/5 (4) | none |
How the scores have moved
Verdicts
Granite Guardian
One ungated Apache 2.0 model judges harm, jailbreaks, RAG groundedness, function-call errors and custom criteria, with signed weights and published evaluation code. It is trained and tested on English only, each call checks one criterion, the 4.1 prompt format differs from 3.x, and IBM's watsonx.ai lists only the deprecated 3.0 model.
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
Granite Guardian
- Append the
<guardian>block as the final user message, with the mode line,### Criteria:and### Scoring Schema:. Copy the strings from the model card, because no package builds them - Use the no-think instruction for gating and parse
<score>. Think mode writes a reasoning trace first, and the card's examples allow up to 2,048 output tokens - Treat
yesas the criterion being met, which for built-in criteria means the risk is present. Treat a missing<score>tag as a failed check - Pass retrieved text through
documents=and tool schemas throughavailable_tools=inapply_chat_template, not inside the message text - Under Ollama, set
num_ctxin the request options. IBM's docs say the default context is short and long requests are truncated
Llama Guard 4
- Request access on the Hugging Face page before anything else. Approval is manual, and the form cannot be edited after submission
- 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
- Parse the first line for
safeorunsafeand the second for category codes. Setmax_new_tokensto about 10 and turn sampling off - 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
- 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, Granite Guardian or Llama Guard 4?
Granite Guardian scores 63.1 (B) on agent readiness against Llama Guard 4's 52.3 (D), and leads in every scored category.
Do Granite Guardian and Llama Guard 4 need an API key?
Neither needs a key.
Can an agent call Granite Guardian and Llama Guard 4 without installing anything?
No hosted endpoint is listed for Granite Guardian. No hosted endpoint is listed for Llama Guard 4.
Other comparisons with Granite Guardian or Llama Guard 4
- Amazon Bedrock Guardrails vs Llama Guard 4
- Azure AI Content Safety (Prompt Shields) vs Llama Guard 4
- Cisco AI Defense Inspection API vs Llama Guard 4
- Google Cloud Model Armor vs Llama Guard 4
- Granite Guardian vs Guardrails AI
- Granite Guardian vs Lakera Guard (Check Point AI Guardrails)
- Granite Guardian vs Mistral Moderation API
- Granite Guardian vs NVIDIA NeMo Guardrails
- Granite Guardian vs OpenAI Guardrails
- Granite Guardian vs OpenAI Moderation API
- Granite Guardian vs Prisma AIRS AI Runtime Security API
- Granite Guardian vs ShieldGemma
- Guardrails AI vs Llama Guard 4
- Lakera Guard (Check Point AI Guardrails) vs Llama Guard 4
- Llama Guard 4 vs Mistral Moderation API
- Llama Guard 4 vs NVIDIA NeMo Guardrails
- Llama Guard 4 vs OpenAI Guardrails
- Llama Guard 4 vs OpenAI Moderation API
- Llama Guard 4 vs Prisma AIRS AI Runtime Security API
- Llama Guard 4 vs ShieldGemma
- Amazon Bedrock Guardrails vs Granite Guardian
- Azure AI Content Safety (Prompt Shields) vs Granite Guardian
- Cisco AI Defense Inspection API vs Granite Guardian
- Google Cloud Model Armor vs Granite Guardian
- Granite Guardian vs LlamaFirewall
- AgentGate vs Granite Guardian
- AgentGate vs Llama Guard 4
- Llama Guard 4 vs LlamaFirewall
- Granite Guardian vs Presidio
- Llama Guard 4 vs Presidio
Machine-readable
- This page as Markdown
/compare/granite-guardian-vs-llama-guard.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/granite-guardian.json·/api/v1/tools/llama-guard.json - From a terminal
anchor compare granite-guardian llama-guard(the CLI) - Over MCP
compare_tools {"a": "granite-guardian", "b": "llama-guard"}at/mcp, no key