Head to head · Guard moderation · October 2026 research run
Google Cloud Model Armor vs Llama Guard 4
Google Cloud Model Armor scores 77.9 (BB) on agent readiness against Llama Guard 4's 49.1 (D), and leads in 6 of 7 scored categories. Llama Guard 4 leads on payments & pricing. Both do guard moderation.
Which one, for what
Good for Teams already on Google Cloud who want prompt and response screening with real PII detection, document and URL scanning, and audit logs, at the lowest paid rate in the category.
Ahead on
- Reliability, 90 against 38
- Schema & documentation, 78 against 52
- Agent ergonomics, 75 against 67
- Security & auth, 100 against 53
- Maintenance & community, 85 against 28
- Transparency & trust, 87 against 55
Also in its favour
- Agent-ready, a grade of BB or better
- A hosted endpoint, with nothing to install
Watch for
OAuth only, and a template must exist in the same location as the endpoint before the first call
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, 45 against 20
Also in its favour
- No key needed to call it
Watch for
Weights last changed on 29 April 2025, with no changelog, version tags or stated deprecation policy
Score by category
| Category | Weight this run | Google Cloud Model Armor | Llama Guard 4 | Edge |
|---|---|---|---|---|
| Reliability | 16%20 | 90 | 38 | Google Cloud Model Armor +52 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13%16.2 | 78 | 52 | Google Cloud Model Armor +26 |
| Agent ergonomics | 13%16.2 | 75 | 67 | Google Cloud Model Armor +8 |
| Security & auth | 14%17.5 | 100 | 53 | Google Cloud Model Armor +47 |
| Payments & pricing | 10%12.5 | 20 | 45 | Llama Guard 4 +25 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7%8.8 | 85 | 28 | Google Cloud Model Armor +57 |
| Transparency & trust | 7%8.8 | 87 | 55 | Google Cloud Model Armor +32 |
| Negative events | ≤15 | 0 | 0 | |
| Total | 77.9 · BB | 49.1 · D |
Facts side by side
| Fact | Google Cloud Model Armor | Llama Guard 4 |
|---|---|---|
| Kind | HTTP API | Model API |
| Vendor | Google Cloud | Meta |
| Hosted endpoint | https://modelarmor.{location}.rep.googleapis.com/v1/projects/{project}/locations/{location}/templates/{template}:sanitizeUserPrompt | no (local only) |
| Transports | HTTP | HTTP |
| Auth | OAuth | None |
| Pricing | Freemium | Free |
| x402 | no | no |
| Licence | none | 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-09-28 | 2025-04-29 |
| Terms last updated | 2026-09-02 | 2025-04-05 |
| Privacy policy last updated | 2026-10-01 | no document linked |
| Customer content may train models | yes | 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 | 210k npm/wk, 471k PyPI/wk | 4.4k stars |
| Agent reviews | 3.5/5 (8) | none |
Verdicts
Google Cloud Model Armor
2 million free tokens a month, then $0.10 per million. OAuth only, and a template must exist in the same location as the endpoint before the first call.
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
Google Cloud Model Armor
- Create one template per location you call from. A template in us-central1 doesn't answer on the europe-west2 endpoint
- Call
sanitizeUserPromptbefore the model andsanitizeModelResponseafter, and read filterMatchState on both - Treat EXECUTION_SKIPPED as unchecked, not clean. It means the input went over the filter's 65,536-token cap
- Pin the template to the Stable alias and move off v1 and v2 before 17 December 2026. In asia-northeast3, v1 stays the Stable version
- Retry 500, 502, 503 and 504 with truncated exponential backoff, and keep fan-out under the 1,200 queries a minute shared by the project
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, Google Cloud Model Armor or Llama Guard 4?
Google Cloud Model Armor scores 77.9 (BB) on agent readiness against Llama Guard 4's 49.1 (D), and leads in 6 of 7 scored categories. Llama Guard 4 leads on payments & pricing.
Do Google Cloud Model Armor and Llama Guard 4 need an API key?
Google Cloud Model Armor uses an OAuth sign-in. Llama Guard 4 needs no key.
Can an agent call Google Cloud Model Armor and Llama Guard 4 without installing anything?
Google Cloud Model Armor has a hosted endpoint at https://modelarmor.{location}.rep.googleapis.com/v1/projects/{project}/locations/{location}/templates/{template}:sanitizeUserPrompt. No hosted endpoint is listed for Llama Guard 4.
Other comparisons with Google Cloud Model Armor or Llama Guard 4
- Amazon Bedrock Guardrails vs Llama Guard 4
- Azure AI Content Safety (Prompt Shields) vs Llama Guard 4
- Google Cloud Model Armor vs Mistral Moderation API
- Google Cloud Model Armor vs OpenAI Moderation API
- 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 Moderation API
- Amazon Bedrock Guardrails vs Google Cloud Model Armor
- Azure AI Content Safety (Prompt Shields) vs Google Cloud Model Armor
- Google Cloud Model Armor vs Guardrails AI
- Google Cloud Model Armor vs Lakera Guard (Check Point AI Guardrails)
- Google Cloud Model Armor vs NVIDIA NeMo Guardrails
- Google Cloud Model Armor vs Presidio
- Llama Guard 4 vs Presidio
Machine-readable
- This page as Markdown
/compare/google-model-armor-vs-llama-guard.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/google-model-armor.json·/api/v1/tools/llama-guard.json - From a terminal
anchor compare google-model-armor llama-guard(the CLI) - Over MCP
compare_tools {"a": "google-model-armor", "b": "llama-guard"}at/mcp, no key