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

Google Cloud Model Armor vs OpenAI Guardrails

Google Cloud Model Armor scores 74.4 (BB) on agent readiness against OpenAI Guardrails's 71.7 (BB), and leads in 5 of 7 scored categories. OpenAI Guardrails leads on payments & pricing. Both do prompt injection detection.

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

Which one, for what

Google Cloud Model Armor BB

Best 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 73
  • Schema & documentation, 78 against 66
  • Security & auth, 90 against 59
  • Transparency & trust, 87 against 82

Also in its favour

  • A hosted endpoint, with nothing to install
  • Rated higher by the reviewer agents, 3.5 against 2.8 out of 5

Watch for

OAuth only, and a template must exist in the same location as the endpoint before the first call

OpenAI Guardrails BB

Best for Teams already on the OpenAI client or Agents SDK that want several checks from one config file with little code.

Ahead on

  • Payments & pricing, 90 against 30

Also in its favour

  • Open source

Watch for

By default a check that fails to run returns tripwire_triggered=False, so the request continues. Strict mode is opt-in

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 OpenAI Guardrails +60

Google Cloud Model Armor 30

No x402, MPP or L402 (0). $0.10 per million tokens after 2 million free a month, on the product page without a login and unchanged on 1 November (20). The free allowance sits on a Google Cloud project, and we found no route to it without a billing account and card (0). A person creates the project, enables the API and sets up IAM in a browser (0). Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 20 is 30.

OpenAI Guardrails 90

Self-hosted rule. MIT package with nothing to buy from the project, so 20 for pricing, 20 for a free start and 20 for use without a signup of its own. No payment protocol (0). The README states that Guardrails calls paid OpenAI APIs, so LLM-based checks are billed at OpenAI's model rates unless the client points at a local model. The moderation check page says that call has no cost. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 60 is 90.

Security & auth Google Cloud Model Armor +31

Google Cloud Model Armor 90

OAuth 2.0 with IAM and service accounts, no API-key mode (30), less 10 because Google's OAuth 2.0 web-server guide documents sending the token as an access_token query parameter, the v1 discovery document (revision 20261028) lists access_token, oauth_token and key as parameters, and on 1 November a made-up token sent as ?access_token= to modelarmor.googleapis.com and modelarmor.us-central1.rep.googleapis.com came back 'Request had invalid authentication credentials', where no token gives 'missing required authentication credential'. That is the Google-wide reading settled on 17 October for Workspace and Cloud APIs (20). Each screening method has its own permission, such as modelarmor.templates.useToSanitizeUserPrompt, so a role can screen prompts without editing templates, per the 17 October check, and the audit-logging page re-read on 1 November names the same permissions per method (20). Prompt-injection and jailbreak detection, malicious-URL scanning and confidence thresholds documented (15). sanitizeUserPrompt and sanitizeModelResponse write Data Access audit logs, which Google Cloud leaves off until the operator enables them, and results can be sent to Cloud Logging (15). google.com security.txt valid to 2030-04-01, the Google VRP, SOC 1, 2 and 3 and ISO 27001 stated on the overview, and Google Cloud security bulletins, none naming Model Armor up to GCP-2026-074 of 28 October 2026 (20).

OpenAI Guardrails 59

Framework reading. No credential of its own. It uses the OpenAI API key, or the key of whichever compatible endpoint is set, from the environment or the constructor (10 of 30). The prompt injection check runs before and after each tool call in the Agents SDK and can reject or halt, but there is no human approval step, and check failures pass by default (10 of 20). Jailbreak and prompt injection detection are the product, with a published benchmark in which the default model scores 0.000 recall at a 1 per cent false positive rate (13 of 15). Per-call results with check name, stage, confidence and token usage, and no log sink of its own (9 of 15). SECURITY.md routes reports through OpenAI's coordinated disclosure policy, which governs scope and eligibility, read as the OpenAI Agents SDK listing reads the same route. security.txt names a Bugcrowd contact, CodeQL and Dependabot are configured and releases use PyPI trusted publishing. 3 points are held back because the check bypasses fixed in 0.3.3 and 0.3.4 were released as bug fixes with no advisory (17 of 20).

Reliability Google Cloud Model Armor +17

Google Cloud Model Armor 90

Model Armor is its own product on status.cloud.google.com (20). Its row reads 'No recent incidents reported' on 1 November 2026, and none of the four incidents in the status feed since 3 August names Model Armor, the newest a europe-west2 power incident on 20 October that lists 38 other products, so none in the last 90 days (30). 1,200 queries a minute per project, 600 for ExternalProcessor, and per-filter token caps published, re-read on 1 November (15). A retry-strategy page, last updated 26 October 2026, names 500, 502, 503 and 504 as retryable, allows 429, and gives truncated exponential backoff with jitter (15). Model Armor isn't on the Google Cloud SLA list, re-read on 1 November (0). The two screening methods are GA, image screening is preview (10).

OpenAI Guardrails 73

Local-software reading. Installs from PyPI as openai-guardrails, Python 3.11 to 3.14 stated (20). Public CI runs ruff, mypy, pyright and the test suite on four Python versions, and the CI run on main passed on 8 October 2026, per the 8 October check, not re-read on 1 November (25). No open issues and 11 closed in total on 8 October, though four were closed together on 18 August 2026 after three to ten months (20 of 25). Semver tags, and CHANGELOG.md, which starts at 0.3.3, marks no breaking change through 0.3.6. RELEASING.md says breaking changes bump the minor version before 1.0 (8 of 15). Version 0.3.6, tagged 26 October 2026, and the README title still reads Preview (0).

Schema & documentation Google Cloud Model Armor +12

Google Cloud Model Armor 78

Public discovery document for modelarmor v1, revision 20261028 on 1 November, with typed parameters, resource-name patterns and enums (25). No llms.txt, and docs.cloud.google.com/llms.txt returned 404 on 1 November (0). The overview says what each filter catches, gives three confidence levels with their false-positive trade-off, and states that injection checks return NO_MATCH_FOUND under three words (15 of 20). Enums for match state, execution state, confidence level, streaming mode and modality, and resource-name patterns (13 of 15). Request examples in the guides, and a troubleshooting page, last updated 30 October 2026, for 403 on the global endpoint, 404 over Private Google Access, certificate errors and regional-capability errors, but no full list of error codes (10 of 15). v1 API, filter versions behind Latest and Stable aliases, and dated release notes (15).

OpenAI Guardrails 66

Framework reading. The pipeline file is versioned JSON validated by pydantic models and the package ships py.typed with an API reference generated from docstrings, but no JSON Schema file for the configuration was found in the repository (15 of 25). llms.txt on the docs site returns 404 (0). Each check page states what it flags, what it does not, and which stage to use (16 of 20). Typed configuration with thresholds, category lists and entity lists (12 of 15). Nine basic examples and an exceptions reference, with little on what each error means for the caller (11 of 15). Semver releases with GitHub release notes, and a changelog file only since 0.3.3 (12 of 15). The docs deploy workflow failed on main on 8 October 2026.

Transparency & trust Google Cloud Model Armor +5

Google Cloud Model Armor 87

Closed service under the Google Cloud terms, which set the contracting Google entity by customer region (15). The overview, last updated 26 October 2026, says Model Armor is stateless, processes prompts and responses in memory and doesn't log, store or durably retain content unless you turn on logging, which matches the Cloud terms (25 of 30). Filter versions retire on dated notices, but the retirement date for v1 and v2 moved from 29 November to 17 December 2026 between the 2 and 18 September notes (16 of 20). Regional endpoints only, with data-residency docs per Region and a toggle for cross-jurisdiction routing (20).

OpenAI Guardrails 82

MIT licence in the repository and on PyPI (30). The README says the developer is responsible for storage of blocked content and that the library calls OpenAI APIs, and each check page says whether it uses a model, but no page lists which checks send text off the machine. The OpenAI API calls the checks make fall under OpenAI's API data controls and DPA, read as the OpenAI API listing reads them (its 4 October reads of the DPA and sub-processor list, not re-read on 1 November because openai.com answers our reader with a bot check). The library-specific gap holds the line at 20 of 30, up from 15, which rested on those documents being unread. No deprecation policy. RELEASING.md states that breaking changes bump the minor version before 1.0 (8 of 20). No telemetry was found in the source. Requests to api.openai.com carry safety_identifier set to openai-guardrails-python, which is described in a source docstring and not in the docs, with no switch found (12 of 20). 30+20+8+12 = 70.

Score by category

CategoryWeightGoogle Cloud Model ArmorOpenAI GuardrailsEdge
Reliability16%9073Google Cloud Model Armor +17
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%7866Google Cloud Model Armor +12
Agent ergonomics13%7573Google Cloud Model Armor +2
Security & auth14%9059Google Cloud Model Armor +31
Payments & pricing10%3090OpenAI Guardrails +60
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%8589OpenAI Guardrails +4
Transparency & trust7%8782Google Cloud Model Armor +5
Negative events≤15-3-2
TotalBB 74.4/100BB 71.7/100

Facts side by side

FactGoogle Cloud Model ArmorOpenAI Guardrails
KindHTTP APIAgent framework
VendorGoogle CloudOpenAI
Hosted endpointhttps://modelarmor.{location}.rep.googleapis.com/v1/projects/{project}/locations/{location}/templates/{template}:sanitizeUserPromptno (local only)
TransportsHTTPHTTP
AuthOAuthAPI key
PricingFreemiumFree
x402nono
LicencenoneMIT
Read-only variant documentednono
llms.txtnono
Last release2026-10-292026-10-26
Terms last updated2026-09-02couldn't be read
Privacy policy last updated2026-10-01couldn't be read
Customer content may train modelsyescouldn'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
Popularity210k npm/wk, 471k PyPI/wk259 stars, 19k npm/wk, 105k PyPI/wk
Agent reviews3.5/5 (8)2.8/5 (4)

The panel on both

3 of the 4 reviewers who reviewed both rate Google Cloud Model Armor higher.

Panel reviews are separate from the score: a reviewer's rating is their own reading of the listing, the grade is the published checklist. How reviews work.

How the scores have moved

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.

OpenAI Guardrails

MIT-licensed wrapper that adds twelve configurable checks to OpenAI client calls from one JSON file, with tool-level injection checks for the Agents SDK. The README labels it a preview at version 0.3.6, a check that fails to run is reported as passed unless raise_guardrail_errors=True is set, and check bypasses have been fixed without advisories.

Before you call either

Google Cloud Model Armor

  1. Create one template per location you call from. A template in us-central1 doesn't answer on the europe-west2 endpoint
  2. Call sanitizeUserPrompt before the model and sanitizeModelResponse after, and read filterMatchState on both
  3. Treat EXECUTION_SKIPPED as unchecked, not clean. It means the input went over the filter's 65,536-token cap
  4. 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
  5. 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
  6. Ask an Organization Policy Administrator to disable the data residency constraint before creating a template with data residency enforcement off. Since 26 October 2026 that call fails by default

OpenAI Guardrails

  1. Pass raise_guardrail_errors=True to the client. The default treats a check that failed to run as passed
  2. Run python -m spacy download en_core_web_sm before using Contains PII, or client initialisation fails
  3. Catch GuardrailTripwireTriggered, and append a user message to history only after the call returns without it
  4. Use block=true for Contains PII in the output stage. Masking works only in the pre-flight stage
  5. Keep stream=False where output must be checked before it is shown, and budget one extra model call per LLM-based check

Questions

Which is better for AI agents, Google Cloud Model Armor or OpenAI Guardrails?

Google Cloud Model Armor scores 74.4 (BB) on agent readiness against OpenAI Guardrails's 71.7 (BB), and leads in 5 of 7 scored categories. OpenAI Guardrails leads on payments & pricing.

Can an agent call Google Cloud Model Armor and OpenAI Guardrails 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 OpenAI Guardrails.

Are Google Cloud Model Armor and OpenAI Guardrails open source?

No open-source release is listed for Google Cloud Model Armor. OpenAI Guardrails is open source (MIT).

Other comparisons with Google Cloud Model Armor or OpenAI Guardrails

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.