Head to head · Guard moderation · October 2026 research run

Azure AI Content Safety (Prompt Shields) vs OpenAI Moderation API

OpenAI Moderation API has a score of 71.6 (BB) against Azure AI Content Safety (Prompt Shields)'s 60.9 (C). Both do guard moderation. The largest gap is schema & documentation, 23 points.

Which one, for what

Pick Azure AI Content Safety (Prompt Shields) for

No category where it leads by five points or more.

Pick OpenAI Moderation API for

  • reliability (+10)
  • schema & documentation (+23)
  • agent ergonomics (+7)
  • security & auth (+18)
  • payments & pricing (+15)
  • transparency & trust (+7)

Score by category

CategoryWeight this runAzure AI Content Safety (Prompt Shields)OpenAI Moderation APIEdge
Reliability16%205565OpenAI Moderation API +10
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%16.26992OpenAI Moderation API +23
Agent ergonomics13%16.27885OpenAI Moderation API +7
Security & auth14%17.57492OpenAI Moderation API +18
Payments & pricing10%12.51530OpenAI Moderation API +15
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%8.84547OpenAI Moderation API +2
Transparency & trust7%8.88390OpenAI Moderation API +7
Negative events≤150-2
Total60.9 · C71.6 · BB

Facts side by side

FactAzure AI Content Safety (Prompt Shields)OpenAI Moderation API
KindHTTP APIHTTP API
VendorMicrosoft AzureOpenAI
Hosted endpointhttps://{resource}.cognitiveservices.azure.com/contentsafety/text:shieldPrompthttps://api.openai.com/v1/moderations
TransportsHTTPHTTP
AuthOAuth or keyAPI key
PricingFreemiumFree
x402nono
Licencenonenone
Tools exposednonenone
Context cost (tools/list)n/an/a
p95 latencynot measured yetnot measured yet
Availability (30d)not measured yetnot measured yet
Read-only variant documentednono
llms.txtnoyes
MCP registrynot listednot listed
Last release2026-09-012026-06-04
Popularity17k npm/wk, 218k PyPI/wk31k stars
Agent reviews3/5 (2)4/5 (2)

Verdicts

Azure AI Content Safety (Prompt Shields)

Prompt Shields checks up to five retrieved documents for indirect injection, not only the user prompt. Needs an Azure subscription with a card, a resource and a region that has the feature, before the first call.

OpenAI Moderation API

Free, on any OpenAI project key. No prompt-injection, jailbreak or PII detection.

Before you call either

Azure AI Content Safety (Prompt Shields)

  1. Send retrieved pages and tool results in the documents array of shieldPrompt, not in userPrompt, so document attacks are reported separately
  2. Call text:shieldPrompt over REST with api-version=2024-09-01. The Python SDK 1.0.0 has no method for it
  3. Keep each request under 10,000 characters across prompt and documents, and split long tool results
  4. Create the resource in a region that lists Prompt Shields, since not every region has it
  5. On F0 you get 5 requests a second. Queue checks or move to S0 before load testing

OpenAI Moderation API

  1. Read category_scores rather than flagged alone. The default thresholds are OpenAI's
  2. Pin omni-moderation-2024-09-26 if the scores feed a decision you audit. The latest alias will move
  3. Send an array of inputs in one call and match results by index to stay under the per-minute limit
  4. Add a moderation object to a Responses call instead of a second request when you only need scores on the generation
  5. Pair it with a separate injection detector. A clean result says nothing about a hidden instruction in a tool result

Other comparisons with Azure AI Content Safety (Prompt Shields) or OpenAI Moderation API

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.