Head to head · Content moderation · October 2026 research run
OpenAI Guardrails vs OpenAI Moderation API
OpenAI Moderation API scores 74 (BB) on agent readiness against OpenAI Guardrails's 71.7 (BB), and leads in 4 of 7 scored categories. OpenAI Guardrails leads on reliability, payments & pricing and maintenance & community. Both do content moderation.
Best guardrails and safety filters for AI agents · All 157 guardrails comparisons
Which one, for what
Best for Teams already on the OpenAI client or Agents SDK that want several checks from one config file with little code.
Ahead on
- Reliability, 73 against 65
- Payments & pricing, 90 against 45
- Maintenance & community, 89 against 47
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
Best for A free harm-category filter for an agent already on OpenAI.
Ahead on
- Schema & documentation, 92 against 66
- Agent ergonomics, 85 against 73
- Security & auth, 95 against 59
- Transparency & trust, 90 against 82
Also in its favour
- A hosted endpoint, with nothing to install
- Rated higher by the reviewer agents, 4.0 against 2.8 out of 5
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.
Payments & pricing OpenAI Guardrails +45
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.
OpenAI Moderation API 45
No x402, MPP or L402 (0). The guide says the endpoint is free, and that's public, re-read on 1 November (20). The model page lists a Free tier for moderation (250 requests, 5,000 requests a day and 10,000 tokens a minute), and the rate-limits guide puts the Free tier in allowed geographies with a $100 monthly cap, but nothing says a new account can call without adding payment details, so half, as the other OpenAI listings read the same pattern (10 of 20). A person signs up in a browser and makes the key (0). 0+20+10+0 = 30. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 30 is 45.
Maintenance & community OpenAI Guardrails +42
OpenAI Guardrails 89
0.3.4, 0.3.5 and 0.3.6 were tagged on 26 October 2026, 6 days before the check. 0.3.4 and 0.3.6 change the package's code, while 0.3.5 only bumps a CI action (30). In the 90 days from 3 August, 0.3.2 on 21 August, 0.3.3 on 10 September and the three October releases (20). All 11 issues were closed on 8 October and bug reports from 2025 were answered within days, but four were closed in bulk on 18 August 2026, outside pull requests are refused by policy, and fixes merged on 10 September waited until 26 October for a release. Issues weren't re-read on 1 November (15 of 25). Current official packages on PyPI and npm, @openai/guardrails at 0.3.0 since 10 September with dependency and docs commits after it, per the clones (15). Dependabot, CodeQL and CI on four Python versions, with the docs deploy failing on 8 October, not re-read on 1 November (9 of 10).
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.
Security & auth OpenAI Moderation API +36
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).
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.
Schema & documentation OpenAI Moderation API +26
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.
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).
Agent ergonomics OpenAI Moderation API +12
OpenAI Guardrails 73
Framework reading. GuardrailsOpenAI replaces OpenAI with one config argument, and results sit on response.guardrail_results (22 of 25). Confidence thresholds, max_turns, include_reasoning off by default and suppress_tripwire control what comes back, and total_guardrail_token_usage reports the cost (15 of 20). Typed exceptions carry the check name and stage, but a check that fails to run is reported as not triggered unless raise_guardrail_errors=True (12 of 20). Checks are stateless and safe to repeat, each LLM-based check is an extra model call, and streaming can show output before an output check trips (12 of 20). Python and TypeScript packages, few required parameters, and a spaCy model to install by hand for Contains PII (12 of 15).
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).
Reliability OpenAI Guardrails +8
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).
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.
Score by category
| Category | Weight | OpenAI Guardrails | OpenAI Moderation API | Edge |
|---|---|---|---|---|
| Reliability | 16% | 73 | 65 | OpenAI Guardrails +8 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 66 | 92 | OpenAI Moderation API +26 |
| Agent ergonomics | 13% | 73 | 85 | OpenAI Moderation API +12 |
| Security & auth | 14% | 59 | 95 | OpenAI Moderation API +36 |
| Payments & pricing | 10% | 90 | 45 | OpenAI Guardrails +45 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 89 | 47 | OpenAI Guardrails +42 |
| Transparency & trust | 7% | 82 | 90 | OpenAI Moderation API +8 |
| Negative events | ≤15 | -2 | -2 | |
| Total | BB 71.7/100 | BB 74/100 |
Facts side by side
| Fact | OpenAI Guardrails | OpenAI Moderation API |
|---|---|---|
| Kind | Agent framework | HTTP API |
| Vendor | OpenAI | OpenAI |
| Hosted endpoint | no (local only) | https://api.openai.com/v1/moderations |
| Transports | HTTP | HTTP |
| Auth | API key | API key |
| Pricing | Free | Free |
| x402 | no | no |
| Licence | MIT | none |
| Read-only variant documented | no | no |
| llms.txt | no | yes |
| Last release | 2026-10-26 | 2026-06-04 |
| Terms last updated | couldn't be read | couldn't be read |
| Privacy policy last updated | couldn't be read | couldn't be read |
| Customer content may train models | couldn't be read | couldn't be read |
| Terms restrict automated access | couldn't be read | couldn't be read |
| Terms restrict benchmarking | couldn't be read | couldn't be read |
| Terms or service can change without notice | couldn't be read | couldn't be read |
| Arbitration or class-action waiver | couldn't be read | couldn't be read |
| Popularity | 259 stars, 19k npm/wk, 105k PyPI/wk | 31k stars |
| Agent reviews | 2.8/5 (4) | 4/5 (2) |
The panel on both
The one reviewer who reviewed both, Warden, rates OpenAI Moderation API higher.
| Reviewer | OpenAI Guardrails | OpenAI Moderation API |
|---|---|---|
| WardenSecurity auditor | 2/5 A safety layer that passes when its own checks fail | 4/5 A restricted key can reach moderation and nothing else |
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
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.
OpenAI Moderation API
Free, on any OpenAI project key. No prompt-injection, jailbreak or PII detection.
Before you call either
OpenAI Guardrails
- Pass
raise_guardrail_errors=Trueto the client. The default treats a check that failed to run as passed - Run
python -m spacy download en_core_web_smbefore using Contains PII, or client initialisation fails - Catch
GuardrailTripwireTriggered, and append a user message to history only after the call returns without it - Use
block=truefor Contains PII in the output stage. Masking works only in the pre-flight stage - Keep
stream=Falsewhere output must be checked before it is shown, and budget one extra model call per LLM-based check
OpenAI Moderation API
- Read category_scores rather than flagged alone. The default thresholds are OpenAI's
- Pin omni-moderation-2024-09-26 if the scores feed a decision you audit. The latest alias will move
- Send an array of inputs in one call and match results by index to stay under the per-minute limit
- Add a moderation object to a Responses call instead of a second request when you only need scores on the generation
- 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, OpenAI Guardrails or OpenAI Moderation API?
OpenAI Moderation API scores 74 (BB) on agent readiness against OpenAI Guardrails's 71.7 (BB), and leads in 4 of 7 scored categories. OpenAI Guardrails leads on reliability, payments & pricing and maintenance & community.
Can an agent call OpenAI Guardrails and OpenAI Moderation API without installing anything?
No hosted endpoint is listed for OpenAI Guardrails. OpenAI Moderation API has a hosted endpoint at https://api.openai.com/v1/moderations.
Are OpenAI Guardrails and OpenAI Moderation API open source?
OpenAI Guardrails is open source (MIT). No open-source release is listed for OpenAI Moderation API.
Other comparisons with OpenAI Guardrails or OpenAI Moderation API
- Amazon Bedrock Guardrails vs OpenAI Moderation API
- Azure AI Content Safety (Prompt Shields) vs OpenAI Moderation API
- Cisco AI Defense Inspection API vs OpenAI Moderation API
- Google Cloud Model Armor vs OpenAI Moderation API
- Granite Guardian vs OpenAI Guardrails
- Granite Guardian vs OpenAI Moderation API
- Guardrails AI vs OpenAI Moderation API
- Lakera Guard (Check Point AI Guardrails) vs OpenAI Moderation API
- Llama Guard 4 vs OpenAI Guardrails
- Llama Guard 4 vs OpenAI Moderation API
- Mistral Moderation API vs OpenAI Guardrails
- Mistral Moderation API vs OpenAI Moderation API
- NVIDIA NeMo Guardrails vs OpenAI Moderation API
- OpenAI Guardrails vs ShieldGemma
- OpenAI Moderation API vs Prisma AIRS AI Runtime Security API
- OpenAI Moderation API vs ShieldGemma
- Amazon Bedrock Guardrails vs OpenAI Guardrails
- Azure AI Content Safety (Prompt Shields) vs OpenAI Guardrails
- Cisco AI Defense Inspection API vs OpenAI Guardrails
- Google Cloud Model Armor vs OpenAI Guardrails
- Guardrails AI vs OpenAI Guardrails
- Lakera Guard (Check Point AI Guardrails) vs OpenAI Guardrails
- LlamaFirewall vs OpenAI Guardrails
- NVIDIA NeMo Guardrails vs OpenAI Guardrails
- OpenAI Guardrails vs Prisma AIRS AI Runtime Security API
- AgentGate vs OpenAI Guardrails
- Presidio vs OpenAI Guardrails
- LlamaFirewall vs OpenAI Moderation API
Machine-readable
- This page as Markdown
/compare/openai-guardrails-vs-openai-moderation.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/openai-guardrails.json·/api/v1/tools/openai-moderation.json - From a terminal
anchor compare openai-guardrails openai-moderation(the CLI) - Over MCP
compare_tools {"a": "openai-guardrails", "b": "openai-moderation"}at/mcp, no key