An OpenAI Moderation API Alternative with Custom Rules

OpenAI's moderation endpoint (omni-moderation-latest) is free, fast, and a fine baseline classifier - if your needs stop at its fixed taxonomy, use it. The reason teams look further is what it does not do: no spam detection, no custom rules, no explanation of why content was flagged, and no single score you can threshold. This page compares it with ExoAPI's content moderation API, which is built for moderating real user communities rather than classifying text into a fixed list.

OpenAI Moderation vs ExoAPI at a Glance

OpenAI Moderation ExoAPI Content Moderation
Price Free (OpenAI account required) From $9/month for 1,000 requests/day
Categories 13 fixed (hate, harassment, violence…) Overall safety score + per-category scores
Spam detection No Yes (spamScore)
Custom rules No Yes - your own keyword categories per request
Explanations No - scores only Yes - a human-readable reason for every decision
Images Yes (subset of categories) Yes - text and image in the same call
Languages Strongest in English 100+ languages
Other APIs included Moderation only All ExoAPI APIs included in the same subscription

Pricing last checked November 2026 - always verify against the providers' official pricing pages.

Where the Fixed Taxonomy Runs Out

OpenAI's endpoint answers one question: does this text fall into one of our 13 harm categories? Community moderation usually needs more than that:

  • Spam is the #1 problem in most comment sections - promotional links, crypto scams, repeated posts - and it is not one of the 13 categories.
  • Every community has house rules the taxonomy cannot know: competitor names, leaked-content keywords, off-topic trading talk in a kids' game, profanity rules stricter or looser than the default.
  • Moderators need a "why". A score of 0.87 on harassment does not help a human reviewing an appeal; a sentence explaining the decision does.

ExoAPI returns an overall safetyScore you can threshold in one line, per-category scores (hate speech, harassment, dangerous content, sexually explicit, spam), keyword matches against your own categories, and a plain-language reason:

{
  "safetyScore": 0.2,
  "reason": "Promotional spam with a suspicious link.",
  "spamScore": 0.9,
  "harassmentScore": 0,
  "keywordMatches": { "competitors": ["examplebrand"] }
}

When OpenAI Moderation Is the Better Choice

  • It is free. If the fixed categories cover your policy, the price is unbeatable.
  • You are already moderating inputs and outputs of OpenAI models - it is designed for exactly that loop.
  • You only need a well-calibrated harm classifier in English, with no human review workflow attached.

When ExoAPI Is the Better Choice

  • Your problem is community content - comments, chat, reviews, marketplace listings - where spam and house rules matter as much as harm categories.
  • You want one thresholdable score plus an explanation your moderators (and users appealing a decision) can read.
  • Your audience writes in many languages.
  • You want text and image checked in one call, and the same subscription to also cover ExoAPI's other APIs (geocoding, HTML to PDF, barcodes and more).

What About Perspective API?

The other well-known free option, Google Jigsaw's Perspective API, is being retired: Jigsaw stopped accepting new sign-ups in early 2026 and has announced the service shuts down on December 31, 2026. If your moderation runs on Perspective today, the migration is due this year, and the mapping is straightforward:

  • Perspective's TOXICITY score (1 = toxic) maps onto ExoAPI's safetyScore (1 = safe) - invert your threshold.
  • Its per-attribute scores (INSULT, THREAT, IDENTITY_ATTACK…) correspond to ExoAPI's per-category scores (harassmentScore, dangerousContentScore, hateSpeechScore…).
  • What has no Perspective equivalent - spam detection, custom keyword rules, explanations, image checks - comes with the switch rather than needing to be rebuilt.

A Worked Example: Threshold, Queue, Appeal

Most moderation flows need three outcomes, not two: clearly fine, clearly out, and "a human should look at this". One call provides all three, and the reason field gives your moderators something better to review than a bare number:

import { ExoAPI } from "@flower-digital/exoapi-sdk";

const exoapi = new ExoAPI({ apiKey: "<your-api-key>" });

const result = await exoapi.contentModeration({
  text: comment,
  keywords: { competitors: ["examplebrand"], scams: ["free crypto"] },
});

if (result.safetyScore >= 0.7) {
  await publish(comment);
} else if (result.safetyScore >= 0.4) {
  // Grey zone: queue for human review with the explanation attached,
  // e.g. "Sarcastic but not directed at a person" - the moderator decides.
  await queueForReview(comment, result.reason);
} else {
  // Clear rejection - and when the user appeals, you can show them why.
  await reject(comment, result.reason);
}

The same call works across languages - no language parameter, no reduced category coverage outside English:

await exoapi.contentModeration({ text: "Ven a mi stream, regalo criptomonedas 🎁" });
// { "safetyScore": 0.1, "spamScore": 0.95, "reason": "Crypto giveaway spam in Spanish." }

Trying It

Start a free 14-day trial (no credit card required) and run a sample of your real user content through it - including the spam your current filter misses.


Get started building.

Sign up today and get access to our platform's easy-to-use APIs, all with just one subscription
No credit card required