OpenAI Moderation API vs Moderation API.
What to add when the free endpoint is not enough.

OpenAI's moderation endpoint is free and returns scores for 13 harm categories in text and images. Moderation API is a full moderation product: those categories plus spam, personal data, your own rules, a review queue, and audio and video, in 120+ languages.

Free plan · No credit card · Switch in one request

Protecting 1000+ product teams

Disney logo
Zapier logo
HubSpot logo
Nextdoor logo
Skillshare logo
Beatport logo
Gaia logo
SVT logo
Pleo logo
PostHog logo
OLX logo
Newegg logo
Side by side

The same harm categories, and the parts OpenAI leaves to you.

OpenAI scores 13 fixed categories and stops there. Moderation API covers those, adds spam and personal data, and lets you set your own rules.

CapabilityOpenAI ModerationModeration API
Harassment and hate
Self-harm
Sexual content
Violence
Spam and scams
Personal data (emails, phone numbers, addresses)
Your own rules, written in plain language
Allow and block wordlists
Custom models trained on your examples
Conversation contextEach input on its own
Images6 of 13 categories
Audio and video
LanguagesNot stated120+
Review queue and dashboard
Author moderation for repeat offenders
Rules engine and webhooks
PriceFreeFree plan, paid from $79/month

OpenAI capabilities are taken from OpenAI's moderation guide and API reference. Last checked .

Switch

Switch in one request.

From OpenAIopenai.ts
import OpenAI from 'openai';

const openai = new OpenAI();

const moderation = await openai.moderations.create({
  model: 'omni-moderation-latest',
  input: 'You are an idiot',
});

if (moderation.results[0].flagged) {
  // Block or review
}
To Moderation APImoderation-api.ts
import ModerationAPI from '@moderation-api/sdk';

const moderationApi = new ModerationAPI();

const result = await moderationApi.content.submit({
  content: { type: 'text', text: 'You are an idiot' },
});

// Simple boolean check
if (result.evaluation.flagged) {
  // Block, review, or use result.recommendation.action
}
Installnpm install @moderation-api/sdk

Full request and response fields: API reference

Why switch

A score is only the first step.

With OpenAI's endpoint you get a score and build the rest yourself. Moderation API gives you the rest.

Your own rules

Write guidelines in plain language and the AI enforces them. Add allow and block wordlists, or train a custom model on your own examples. OpenAI's categories are fixed.

Spam, scams and personal data

None of OpenAI's 13 categories covers spam, scam links, or emails and phone numbers posted in public. On most platforms these are most of what moderators remove.

Review queue and author moderation

Borderline content goes to a moderation queue for your team. Author moderation handles users who keep breaking the rules, and webhooks send every decision back to your app.

Audio, video and 120+ languages

Check text, images, video and audio from one API, in more than 120 languages. Data stays in the EU by default, with a signed DPA.

Testimonials

What the best product teams says about Moderation API

It’s a big improvement from OpenAI. Brilliant platform for moderating across all our media types - text, audio, and images!

Andrew Whisker
Andrew Whisker
Founder
Ridlme

We're using Moderation API and super happy with it. So much so that we're doubling our quota. It's become a core part of how we keep our platform safe as we scale.

Elliot Brock
Elliot Brock
CTO
Starla Digital

We needed a moderation solution that could handle 50+ languages and scale with our global market. Moderation API delivered on both.

Paul Dariye
Paul Dariye
VP of Product
Meridian

Moderation API has been a huge help with helping to keep corporate information within our secure environment. Moderation API has made being aware of sensitive conversations within our Slack application easy.

Jason Riley
Jason Riley
VP of Technology
Gaia

The moderation API plugin has been game-changing for my company. We no longer have to spend hours a week moderating comments on our articles. Chris has been a pleasure to work with and he’s helped us every step of the way. 100% recommend!

Matthew Ustby
Matthew Ustby
Digital Marketing Manager
FiveZero Media

As a CPAAS platform, we deal with messages at massive scale. Moderation API handles our peak traffic without breaking a sweat, and the custom models let us fine-tune for specific context.

William Craig
William Craig
Founder
Signal House
How it works

Three steps to switch

Test it on your own content first, then change the call in production.

1

Sign up and get an API key

Create a free account, no card needed. Generate a key in the dashboard and save it as MODAPI_SECRET_KEY.

2

Change the endpoint

Replace the call to /v1/moderations with a POST to https://api.moderationapi.com/v1/moderate. Send the text in content.text.

3

Read the result

Read evaluation.flagged instead of results[0].flagged, or act on recommendation.action to allow, review or reject.

FAQ

Frequently asked questions

What teams ask when they compare OpenAI's moderation endpoint with Moderation API.

What is the OpenAI Moderation API?

It is an endpoint in the OpenAI API that checks text and images for harmful content. You send the content to /v1/moderations and get back flagged, a true or false value for each category, and a score from 0 to 1 for each category. The default model is omni-moderation-latest. See OpenAI's moderation guide.

Is the OpenAI Moderation API free?

Yes. OpenAI's guide says the moderation endpoint is free to use. Moderation API has a free Hobby plan with 100 messages a month and no credit card. Paid plans start at $79 a month. See pricing.

Which categories does OpenAI moderation detect?

Thirteen: harassment, harassment/threatening, hate, hate/threatening, illicit, illicit/violent, self-harm, self-harm/intent, self-harm/instructions, sexual, sexual/minors, violence and violence/graphic. Only six of them also work on images: the three self-harm categories, sexual, violence and violence/graphic. The others score 0 when you send only an image.

What does Moderation API detect that OpenAI does not?

Spam and scams, and personal data such as emails, phone numbers and addresses. You can also add your own rules: write guidelines in plain language, add allow and block wordlists, or train a custom model on your own examples. OpenAI's endpoint has a fixed list of 13 categories.

When is the OpenAI moderation endpoint enough?

When the 13 categories cover what you need to catch, the content is text or images, and you will build the rest yourself: the thresholds, the logs, a place for people to review flagged content, and what to do about users who keep breaking the rules. If you need more than that, Moderation API gives it to you without building it.

Can OpenAI moderation check audio or video?

No. OpenAI's guide says the endpoint does not classify audio, and it accepts only text and images. Moderation API checks text, images, video and audio from the same API.

How do I switch from OpenAI moderation to Moderation API?

Change one request. Replace the call to /v1/moderations with a POST to https://api.moderationapi.com/v1/moderate, send your Moderation API key in the Authorization header, and read evaluation.flagged instead of results[0].flagged. The code samples above show the change in TypeScript, Python, Ruby, PHP and cURL.

Which languages are supported?

Moderation API supports more than 120 languages, with no setup per language. OpenAI's moderation guide does not list the languages it supports.

Where is data hosted?

Moderation API uses the EU as the default region. It is GDPR, CCPA and DSA compliant, and a signed data processing agreement is available.

Need more than a score?

Sign up free and send your first moderation request in minutes.