OpenAI Moderation API: How a Score Becomes a Decision

The OpenAI moderation API returns flags and scores; a platform's decision adds thresholds, policy, human review and a per-decision record.

OpenAI Moderation API: How a Score Becomes a Decision
Written by TechnoLynx Published on 12 Jun 2026

Content moderation AI turns a written policy into a decision on one piece of content in stages, and the classifier is only one of those stages. A call to the OpenAI moderation API returns a flagged boolean, a dictionary of per-category categories flags and a dictionary of category_scores between 0 and 1. OpenAI’s own guidance is to treat those scores as signals for your application’s policy, not as an automatic blocking decision. Turning that signal into a removal, a review or a pass is the application’s job, under its own policy. That gap between score and decision is what this article covers, because a moderation system is defended one decision at a time.

How content moderation AI works, from a written policy to a decision on one post

Researchers describing the policy-as-prompt approach split moderation into operationalisation and enforcement. Operationalisation turns abstract policy into working protocols: annotation guidelines, training datasets, model prediction thresholds and annotator training. Enforcement then applies those artefacts to guide decisions by both human reviewers and algorithmic systems. In a running system, one item moves through the stages below.

The path of a single item, in order

  1. Policy. A written rule, with its exceptions (for example, nudity allowed for medical or awareness purposes).
  2. Encoding. The rule becomes a label taxonomy and training data, a threshold, or a policy prompt read by a language model.
  3. Detection. One or more models score the item per category.
  4. Decision layer. Rules map scores to categories and categories to actions. A raw score of “0.91 explicit” is not an action until a policy turns it into “mute” or “flag”.
  5. Routing. High-confidence items are actioned automatically, a middle band goes to a human, and the rest pass.
  6. Review and appeal. A person decides the uncertain cases, and disputed decisions go back to a human.
  7. Record. The flagged item, its transcript, the model scores and the review status go to a log that can be queried later.

What the OpenAI moderation API returns, and what it leaves to you

OpenAI’s moderation models classify text and images. You can call the standalone moderation endpoint or ask for moderation scores alongside a generated response, and OpenAI suggests using the results to filter content, send a request for review, or take action on accounts that submit flagged content. In each category_scores entry, higher values mean the model is more confident the input contains that category. The response also says which input types each category score applies to. OpenAI recommends flagged for a first-pass decision, then categories and category_scores for logging, routing, audit trails and human-review queues.

Several details matter in production. A refusal or other safety-aware response can still be flagged if it discusses harmful content. If a moderation step cannot complete, the field can hold an error instead of scores. Categories marked text-only return a score of 0 when omni-moderation-latest receives only an image. A zero there means the category is unsupported for that input, not that the image is clean.

OpenAI plans to keep upgrading the endpoint’s underlying model, so custom policies built on category_scores may need recalibrating over time. That makes the model identifier worth logging next to every score.

The score and the decision are different objects

A score is the model’s confidence. A decision is the platform’s action under its policy. Hive’s documentation shows the step between them clearly: each model returns confidence scores per detection class, and a category threshold (for example general_suggestive >= 0.9) classifies the post into a moderation category, which moderation rules then use as their signal. Thresholds can combine conditions with AND, OR and NOT and can be nested. When content matches several thresholds, every matching category applies, with no priority order. Our page on NSFW image detection and what it returns works through the same pattern for images.

How the OpenAI endpoint compares with other moderation APIs

Moderation APIs differ in how much of the decision they own. Stream’s API comparison asks whether you get one strictness dial or per-category thresholds and whether record-keeping is built in, and its vendor entries differ on whether human review is staffed or left to you. Hive’s dashboard lets teams configure thresholds and manage review queues, though Hive supplies no review workforce of its own. WebPurify offers staffed human review around the clock. Sightengine’s position is that flagged content can be moderated without any human seeing it. OpenAI’s guidance treats its scores as signals for your own policy, to be used for logging, routing and human-review queues. OpenAI’s own safety stack uses models like those behind the Moderation API as small, fast, high-recall classifiers that decide which content falls inside a domain of interest, and then passes that content to a reasoning model for review.

How is a moderation policy translated into model behaviour, such as labels, thresholds or prompts?

A policy reaches model behaviour through labelled data, thresholds or a policy prompt.

Labels and a taxonomy. In this route, human experts label content against guidelines, and a model trained on those labels flags new content. OpenAI’s paper behind the moderation endpoint (Markov et al., 2022) says success depends on a chain of steps: content taxonomies and labelling instructions, data quality control, active learning to capture rare events, and methods to keep the model robust. The policy lives in the labelled data, so a policy change means retraining, which the prompt route avoids.

Thresholds. This route sets the score at which each policy category triggers an action. AWS’s guidance for Rekognition uses a default threshold of 50 and tells platforms to adjust it to their own needs. Raising the minimum confidence makes detections more reliable but lets more content through untagged. AWS’s walkthrough runs the API at several thresholds (for example 70%, 75% and 80%) and compares true and false positives at each.

Policy as prompt. In this route, a language model reads the policy text directly. OpenAI reported in 2023 that using GPT-4 this way cut the policy-change cycle from months to hours and produced more consistent labels. OpenAI’s gpt-oss-safeguard takes a policy and the content as two inputs and returns a conclusion with its reasoning, and developers decide how to use that conclusion. The trade-off is sensitivity to prompt structure. The policy-as-prompt paper (2025) cites studies showing that minor formatting choices, such as bullet points instead of paragraphs, or even capitalisation and whitespace, can change model performance. It also found that prompt variants with similar overall accuracy produced different predictions for the same samples, a problem known as predictive multiplicity. Larger models were less sensitive, but the sensitivity did not disappear.

For anyone defending decisions later, the policy prompt becomes a distinct artefact. The paper sketches a “prompt genealogy” recording each change to a prompt’s structure, formatting and phrasing, with the reason for it, on the model of version control for code. Without one, it becomes hard to tell whether a bad outcome came from the policy wording, the model’s reading of it, or the interaction between the two.

Where AI triage stops and a human reviewer takes over

In a common two-tier setup, high-confidence items are actioned automatically and low scores take no action. Humans handle the middle band and the appeals. Published routing setups put numbers on that middle band.

Source Automatic action Human review No action
Trembit live-video guide above roughly 0.95 confidence roughly 0.70 to 0.95 below the review band
Livestream system (arXiv 2512.03553) thresholds tuned at P90 precision P70 to P85 precision bands, verified before enforcement not stated
Amazon A2I with Rekognition set by your flow definition when a label’s confidence falls within a defined range outside the defined conditions

Trembit adds that these cutoffs are a policy choice, not a technical constant: a platform that would rather over-block lowers the bar for automatic action, and one that fears false positives raises it and relies more on the human queue.

Reviewer capacity also shapes the routing. AWS frames it this way: if the API flags 3% of images, 97% of content has already been filtered out, and a human workforce reviewing the flagged share is much cheaper than reviewing everything. AWS also suggests sizing that workforce from the observed true and false positives. In our view the review band is set by the queue a team can actually staff, then checked against the miss rate it can tolerate, and not the other way round. Our page on how AI content moderation workflows combine human review with model triage covers queue design in more depth.

Why not trust a high threshold on its own? In a 2022 CHI study on conditional delegation, a toxicity model applied to out-of-distribution Reddit data reached only 0.58 precision even at a 0.93 probability threshold. That is roughly two false positives for every three true positives. The authors’ alternative is to let humans define “trustworthy regions” before deployment and let the model act only inside them, with everything else going to manual review or another model. The Oversight Board also called for human checks on automated enforcement. Reviewing an Instagram breast-cancer awareness post that an automated nudity classifier removed in error, the Board recommended that users be able to appeal automated decisions to a human and that a representative sample of automated removals be audited.

How does AI moderation of video and live streams differ from moderation of text and images on media platforms?

Live moderation checks are sorted by deadline, not by content type. Stream’s architecture write-up splits it into a fast, shallow blocking path that acts before content ships and a slower, deeper correcting path that acts after viewers may have seen it. The delivery protocol sets the size of the window: WebRTC’s sub-second delivery leaves almost no time to block, while LL-HLS’s few seconds of delay leave room to work. A check that finishes inside the window blocks the content before anyone sees it. A check that finishes outside it can only correct the decision.

Trembit defines the coverage window as frame extraction interval plus moderation model inference latency plus action delivery time. At 1 frame per second and 80ms inference, that comes to roughly 1,080ms before action delivery (1,000ms worst-case wait for the next sample plus 80ms scoring). Trembit reports about 2 fps as the balance between cost and a sub-second window. Video moderation scores sampled frames, not every frame.

Context is the second difference. Blocking-path checks look at one track at a time, so they miss harm that exists only in combination: a chat message aimed at the person on screen passes the text check because the text check cannot see the screen. The correcting path can afford multimodal fusion and human review. The production livestream system in arXiv 2512.03553 splits streams into 20-second clips with audio, ASR transcripts and key frames. Our page on how H.265 encoding fits a media moderation pipeline explains how the codec shapes clip and frame extraction. Its classification branch averaged about 0.4 seconds per clip and its reference-matching branch about 4 seconds.

What are the common failure modes of AI content moderation, and which are workflow problems rather than model-accuracy problems?

Some moderation failures are failures of the model and some are failures of the workflow around it, and they need different fixes.

Problem Type What the sources show
Model misreads context, such as text overlaid on an image Accuracy An automated classifier failed to recognise “Breast Cancer” written in Portuguese on an image
Performance drops on new data Accuracy F1 fell from about 0.8 to about 0.6 out of distribution
Different decisions from equivalent prompts Accuracy and versioning Prompt variants with similar overall accuracy diverge on the same samples
No appeal to a human Workflow The Board found that relying on automation without appeal failed the user’s right to an effective remedy
No reproducible reason for a decision Workflow Opaque models make a specific, reproducible reason hard to produce
Thresholds outdated after a model upgrade Workflow Custom score policies may need recalibrating
Harm shifts while aggregate drift looks flat Workflow (monitoring) Identity-harm drift triggered while global drift stayed below threshold
Escalation rate climbing Workflow (policy) Rising escalation usually points to ambiguous policy rather than a weak model
Review queue backs up behind a synchronous human step Workflow Human-in-the-loop latency is unbounded, so it cannot sit on a live path

A better model does not fix the workflow rows, because it does not create an appeal route, a version log or reviewer capacity.

Why moderation is judged decision by decision, not by overall accuracy

Ask a moderation vendor how good their system is and you will usually get one number back. That number cannot answer “why was this specific post taken down?”. Only a per-decision trail can. A regulator rarely asks how accurate the model is. A regulator asks for the trail behind one decision.

Aggregate accuracy also misleads on its own terms. Moderation data is heavily imbalanced, so a model can post high accuracy while missing most of the abuse. Stream recommends tracking precision, recall and F1 split by category and by language, because a system strong on spam can be weak on bullying. Eden AI’s 2026 comparison warns that vendor benchmarks built on different datasets, category definitions and thresholds are not directly comparable, and that teams should test on a representative sample of their own content. The policy-as-prompt results make the same point from another direction: two configurations can have the same overall accuracy and still decide individual items differently.

We treat production AI reliability as an engineering discipline separate from model accuracy. It produces artefacts such as task-specific evaluation harnesses, regression suites, drift detection and release-readiness reviews, which catch regressions before users do. In moderation, those artefacts are what let a team say which model, threshold and rule produced a given decision, and whether that combination has changed since. Our page on reliability artefacts a moderation triage pipeline needs beyond accuracy lists them.

What each step should leave behind: a checklist

  • Policy: the clause and policy version the decision was made under.
  • Encoding: the prompt version with its change history and the reason for each change.
  • Detection: the raw category_scores, or the error if scoring failed.
  • Media: for video, the clip, transcript and frames the model saw.
  • Decision layer: the automated decision itself, in an immutable log.
  • Review: reviewer outcome and status change, with the item kept as a labelled example.
  • Appeal: the human re-evaluation of any disputed case.

How does this workflow connect to the audit-evidence pack a trust team shows regulators?

Stream’s live-moderation write-up observes that compliance mostly asks for what a sound architecture already produces: an immutable log of every automated and human decision, which is the same event log the correcting path keeps for review queues and active learning. Under the EU Digital Services Act, platforms must report on moderation decisions in a standardised format and offer users a way to appeal. A system that stops at the score has none of these records to hand over.

Our page on the content moderation audit-evidence pack maps these records to the sections a trust team presents. The worked walkthrough of answering a regulator inquiry in days follows one decision through them. For the platform context where these decisions get defended, see our work on AI engineering for media, broadcast and telecom.

FAQ

Is the OpenAI moderation API free?

Eden AI reports that OpenAI’s moderation endpoint, including omni-moderation-latest, was free for all OpenAI API users as of July 2026, with no per-request charges but standard rate limits. Check OpenAI’s current pricing before you rely on this.

Can AI do content moderation on its own?

The Oversight Board accepts that automated technology is essential for detecting potentially violating content, but found that enforcement relying only on automation leads to over-enforcement. The policy-as-prompt authors note that LLM-based moderation typically runs in hybrid setups, with humans overseeing it.

What KPIs are used in content moderation?

Beyond precision and recall per category and language, Stream recommends tracking latency, peak throughput, review time per item, reviewer agreement rate and escalation rate.

Back See Blogs
arrow icon