Head to head · Content moderation · October 2026 research run
Mistral Moderation API vs OpenAI Guardrails
OpenAI Guardrails scores 71.7 (BB) on agent readiness against Mistral Moderation API's 63.1 (B), and leads in 4 of 7 scored categories. Mistral Moderation API leads on schema & documentation and security & auth. Both do content moderation.
Best guardrails and safety filters for AI agents · All 157 guardrails comparisons
Which one, for what
Best for A free classifier for an agent that also needs PII, jailbreak and advice categories, or for a Mistral-hosted agent that can set the guardrail inline.
Ahead on
- Schema & documentation, 88 against 66
- Security & auth, 70 against 59
Also in its favour
- A hosted endpoint, with nothing to install
Watch for
No moderation component on the status page, and its history couldn't be read for the last 90 days
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 43
- Payments & pricing, 90 against 60
- Maintenance & community, 89 against 83
Also in its favour
- Agent-ready, a grade of BB or better
- 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.
Reliability OpenAI Guardrails +30
Mistral Moderation API 43
status.mistral.ai runs on Rootly with 90-day uptime bars per component, but none of its components is for moderation, per the 1 October check (10 of 20, our call for a status page that doesn't cover the endpoint). The page has answered with a Cloudflare bot check since 8 October, robots.txt included on 4 November, so the host is treated as blocked and the 90 days from 6 August were not read (5, unread and not a finding against the vendor), as the other Mistral listings read it. The usage and limits page says API rate limits are shown in the Admin Panel, with no published numbers (3 of 15, as the other Mistral listings read the same page). The error glossary tells callers to back off exponentially on 429, 500, 502, 503 and 504 and to check the Retry-After header, and the official SDKs retry with backoff. The zero data retention page lists /v1/moderations and /v1/chat/moderations as stateless calls, so no write is involved (15, as the OCR and transcription listings). No SLA found (0). mistral-moderation-2603 is GA (10). 10+5+3+15+0+10 = 43.
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).
Payments & pricing OpenAI Guardrails +30
Mistral Moderation API 60
No x402, MPP or L402 (0). Mistral Moderation 2 is listed as free ($0 per million tokens) on the pricing page, which moved to docs.mistral.ai/inference/pricing, re-read on 4 November (20). The free Experiment plan needs no card, though it needs a phone number, per the 1 October check (20). A person signs up in a browser and verifies a phone (0). 0+20+20+0 = 40. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 40 is 60.
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.
Schema & documentation Mistral Moderation API +22
Mistral Moderation API 88
OpenAPI document at docs.mistral.ai/openapi.yaml, per the 1 November reading on the Mistral API listing (25). llms.txt and Markdown twins of every page, re-read on 4 November (10). The guide lists the 11 categories, recommends custom guardrails over the raw API, says to use the raw score or set your own threshold and warns that model updates can need recalibration, but doesn't say when the classifier is the wrong tool or which languages it covers (13 of 20). model and input are typed, input takes a string or an array, and the chat endpoint takes typed messages (12 of 15). Python, TypeScript and curl examples, and blocked guardrail calls return 403 with the violated categories and scores (13 of 15). Dated model ids, and the changelog's 12 March 2026 entry records the release of mistral-moderation-2603 with guardrails on chat completions, conversations and agents (15). 25+10+13+12+13+15 = 88.
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.
Security & auth Mistral Moderation API +11
Mistral Moderation API 70
Read on the same pages as the other Mistral listings. Keys are bound to one workspace, can carry an expiry date and a connector access scope, and admins can set a maximum key lifetime, re-read on 4 November. A key can't be limited to moderation (26 of 30). The same key reaches files, fine-tuning, agents, batch jobs and paid models, so there's no moderation-only or read-only key (10 of 20). A jailbreaking category in the classifier, one score rather than a document-aware injection check (12 of 15). Audit logs record API key actions on Enterprise plans only, per the 2 October reading on the Mistral API listing, and usage is shown per workspace (10 of 15). security.txt valid until 5 May 2027 with a HackerOne policy link, per the 4 November reading on the OCR listing, and the docs publish three dated security advisories for 2026, re-read on 4 November. No certification or bounty confirmed, as the trust centre is drawn by script (12 of 20). 26+10+12+10+12 = 70.
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).
Maintenance & community OpenAI Guardrails +6
Mistral Moderation API 83
Mistral's SDKs cover every Mistral API, so their releases count here only where they change moderation code, as the Vonage and Groq listings read umbrella SDKs. Python 3.3.0 and TypeScript 3.1.0 (20 October 2026, per each repository's RELEASES.md) change the type field in classifiers.moderate_chat(), 15 days before this check (30). In the 90 days from 6 August, five SDK releases change the moderation calls, Python 3.0.0 (28 September, mistral_mcp across the classifier operations), Python 3.1.0 (6 October, resource variants in moderate_chat()), TypeScript 3.0.0 (7 October, moderateChat() inputs) and Python 3.3.0 and TypeScript 3.1.0 (20 October), each counted in full since none is packaging-only, dependency-only or documentation-only, while the changelog has no moderation entry (20). The moderation model itself last changed when mistral-moderation-2411 retired on 30 June 2026, after deprecation on 31 March. Dated changelog and docs and support through the console (10 of 15). Current official SDKs, mistralai 3.7.0 and @mistralai/mistralai 3.5.0 (1 November) (15). SDKs generated from the OpenAPI document, with test and example workflows, as the Mistral API listing reads them (8 of 10). 30+20+10+15+8 = 83.
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).
Score by category
| Category | Weight | Mistral Moderation API | OpenAI Guardrails | Edge |
|---|---|---|---|---|
| Reliability | 16% | 43 | 73 | OpenAI Guardrails +30 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 88 | 66 | Mistral Moderation API +22 |
| Agent ergonomics | 13% | 75 | 73 | Mistral Moderation API +2 |
| Security & auth | 14% | 70 | 59 | Mistral Moderation API +11 |
| Payments & pricing | 10% | 60 | 90 | OpenAI Guardrails +30 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 83 | 89 | OpenAI Guardrails +6 |
| Transparency & trust | 7% | 80 | 82 | OpenAI Guardrails +2 |
| Negative events | ≤15 | -6 | -2 | |
| Total | B 63.1/100 | BB 71.7/100 |
Facts side by side
| Fact | Mistral Moderation API | OpenAI Guardrails |
|---|---|---|
| Kind | HTTP API | Agent framework |
| Vendor | Mistral AI | OpenAI |
| Hosted endpoint | https://api.mistral.ai/v1/moderations | no (local only) |
| Transports | HTTP | HTTP |
| Auth | API key | API key |
| Pricing | Free | Free |
| x402 | no | no |
| Licence | none | MIT |
| Read-only variant documented | no | no |
| llms.txt | yes | no |
| Last release | 2026-03-01 | 2026-10-26 |
| Terms last updated | 2026-09-25 | couldn't be read |
| Privacy policy last updated | 2026-09-03 | couldn't be read |
| Customer content may train models | yes, with an opt-out | couldn't be read |
| Terms restrict automated access | not found in the text | couldn't be read |
| Terms restrict benchmarking | yes | couldn't be read |
| Terms or service can change without notice | yes | couldn't be read |
| Arbitration or class-action waiver | not found in the text | couldn't be read |
| Popularity | 769 stars, 8.4M npm/wk, 3.7M PyPI/wk | 259 stars, 19k npm/wk, 105k PyPI/wk |
| Agent reviews | 3/5 (2) | 2.8/5 (4) |
The panel on both
The one reviewer who reviewed both, Warden, rates them the same.
| Reviewer | Mistral Moderation API | OpenAI Guardrails |
|---|---|---|
| WardenSecurity auditor | 2/5 A moderation key that also reaches fine-tuning and files | 2/5 A safety layer that passes when its own checks fail |
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
Mistral Moderation API
Free, on the same key as the rest of the Mistral API, with 11 categories including jailbreaking and PII, and the Experiment plan needs no card. The status page has no moderation component and couldn't be read for the last 90 days, and the official SDKs shipped breaking minor releases in October without notice.
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
Mistral Moderation API
- Use /v1/chat/moderations with the full message list when checking an assistant reply. The raw endpoint has no context
- Read category_scores and set your own threshold per category. The booleans use Mistral's cut-offs
- Pin mistral-moderation-2603. The 2411 model was retired on 30 June 2026
- Pin the SDK version. Minor releases of
mistralaiand@mistralai/mistralaicarry breaking changes - For a Mistral-hosted call, set the moderation_llm_v2 guardrail with block_on_error true and skip the separate request
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
Questions
Which is better for AI agents, Mistral Moderation API or OpenAI Guardrails?
OpenAI Guardrails scores 71.7 (BB) on agent readiness against Mistral Moderation API's 63.1 (B), and leads in 4 of 7 scored categories. Mistral Moderation API leads on schema & documentation and security & auth.
Can an agent call Mistral Moderation API and OpenAI Guardrails without installing anything?
Mistral Moderation API has a hosted endpoint at https://api.mistral.ai/v1/moderations. No hosted endpoint is listed for OpenAI Guardrails.
Are Mistral Moderation API and OpenAI Guardrails open source?
No open-source release is listed for Mistral Moderation API. OpenAI Guardrails is open source (MIT).
Other comparisons with Mistral Moderation API or OpenAI Guardrails
- Amazon Bedrock Guardrails vs Mistral Moderation API
- Azure AI Content Safety (Prompt Shields) vs Mistral Moderation API
- Cisco AI Defense Inspection API vs Mistral Moderation API
- Google Cloud Model Armor vs Mistral Moderation API
- Granite Guardian vs Mistral Moderation API
- Granite Guardian vs OpenAI Guardrails
- Guardrails AI vs Mistral Moderation API
- Lakera Guard (Check Point AI Guardrails) vs Mistral Moderation API
- Llama Guard 4 vs Mistral Moderation API
- Llama Guard 4 vs OpenAI Guardrails
- Mistral Moderation API vs NVIDIA NeMo Guardrails
- Mistral Moderation API vs OpenAI Moderation API
- Mistral Moderation API vs Prisma AIRS AI Runtime Security API
- Mistral Moderation API vs ShieldGemma
- OpenAI Guardrails vs OpenAI Moderation API
- OpenAI Guardrails 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 Mistral Moderation API
- AgentGate vs OpenAI Guardrails
- LlamaFirewall vs Mistral Moderation API
- Presidio vs Mistral Moderation API
- Presidio vs OpenAI Guardrails
Machine-readable
- This page as Markdown
/compare/mistral-moderation-vs-openai-guardrails.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/mistral-moderation.json·/api/v1/tools/openai-guardrails.json - From a terminal
anchor compare mistral-moderation openai-guardrails(the CLI) - Over MCP
compare_tools {"a": "mistral-moderation", "b": "openai-guardrails"}at/mcp, no key