Build vs Buy Content Moderation Classifier 2026: Cost per 1,000 Decisions, OpenAI Free API to Llama Guard
Which moderation option fits which platform, what each costs at 100,000 to 10 million decisions a month on list prices, and the label count at which training your own starts to win.
Buy if your policy fits standard harm categories: OpenAI's omni-moderation-latest is free and handles text and images, within tier rate limits. Prompt an open-weight guard model such as gpt-oss-safeguard, ShieldGemma or Llama Guard if your policy is custom and you have no labelled data yet. Train your own small classifier once you hold tens of thousands of your own labelled decisions, need more capacity or data residency than an API gives, or cannot risk a vendor shutting down the way Perspective API is. On list prices, a classifier on one GPU undercuts per-call APIs from roughly 250,000 to 1.7 million decisions a month, depending on the API.
How to choose: four questions
Four facts about your platform decide this, in order.
Does your policy match a vendor's categories? OpenAI's moderation guide lists a fixed set: harassment, hate, illicit activity, self-harm, sexual content, sexual content involving minors and violence, each with a 0-to-1 score and a flagged flag. It does not describe a way to add categories. If your rules are "no hate speech, no sexual content," that is enough. If they are "no asking buyers to pay off-platform" or "trash talk is fine, doxxing is not," it is not.
Do you have labels? A policy-reading guard model needs none; a trained classifier needs many. OpenAI's own gpt-oss-safeguard report puts the crossover at "tens of thousands of high-quality labeled samples," the point where a trained classifier "can still perform better" than the guard model reasoning from the policy.
What is your volume? OpenAI's free endpoint is capped by tier: 250 requests a minute and 5,000 a day on Free (10,000 tokens a minute), 500 requests and 20,000 tokens on Build, 2,000 and 250,000 on Launch, 5,000 and 500,000 on Grow. At an assumed 100 tokens per item and even traffic, that is roughly 150,000 items a month on Free, 8.6 million on Build, 86 million on Launch and 216 million on Grow. OpenAI's support staff wrote on its forum in September 2026 that "RPM and TPM both matter, even when there's no daily cap," and gave "no timeline" for paid extra capacity.
Can content leave your network, and for how long will the vendor exist? Perspective API shows the second risk. Its site says it shuts on December 31, 2026, took its last usage requests in February, and "will not be offering direct migration support." A paper by David Hartmann and nine co-authors, first posted to arXiv on April 28, 2026 and accepted at EMNLP Findings, says the closure removes "the de facto standard for toxicity measurement." A team that built on it has six weeks to replace a dependency it never controlled.
The options by situation
Standard policy, modest volume: the free OpenAI API. The model page calls moderation models "free models designed to detect harmful content," and the current snapshot, omni-moderation-2024-09-26, scores text and images. Image inputs are scored only for the self-harm, sexual and violence families. Your policy is a set of thresholds, which OpenAI says "may need recalibration over time."
Standard policy, more volume or a second vendor: a per-call API. AWS Comprehend's toxicity detection costs $0.0001 per 100-character unit with a three-unit minimum, so at least $0.0003 a decision, dropping to $0.00005 a unit above 10 million units a month. Sightengine charges $99 a month for 40,000 operations on its Pro plan and $0.002 for each one after.
Custom policy, no labels: a prompted guard model. OpenAI's gpt-oss-safeguard-20b (Apache 2.0) is trained "to reason from a provided policy," fits on a 16 GB GPU, and in OpenAI's October 29, 2025 report scored an F1 of 79.9% on ToxicChat and 82.9% on OpenAI's 2022 moderation set. Google's ShieldGemma (2B, 9B, 27B text; 4B image) takes the policy as a description in the prompt and returns a violation probability; the 2B card reports 0.704 F1 on ToxicChat. Meta's Llama Guard 3 1B takes custom categories in its chat template and reports 0.899 English F1 at a 9% false-positive rate. The caveat is custom categories far from ordinary harms: in a 2024 thread, Meta said Llama Guard 2's generalisation to them "could still be limited." OpenAI also warns that its guard model "can be time and compute-intensive," so it suits the uncertain slice of traffic better than all of it.
Custom policy, tens of thousands of labels: train your own. A small encoder such as ModernBERT-large (395 million parameters, Apache 2.0, 8,192-token context) is fine-tuned with standard BERT recipes and is small enough to serve from one 24 GB L4 GPU. If you would rather not run the GPU, AWS Comprehend's custom classification trains at $3 an hour and serves asynchronously at $0.0005 per 100-character unit. The only published comparison with a custom model is small and from a vendor: Nyckel trained on 5,000 tweets in April 2023 and scored 93 of 100 test tweets correctly, against 86 for Perspective.
Residency, very high volume or sunset risk: own the model. Running weights you control is the only option here that a vendor cannot withdraw or rate-limit.
Parsec, a small language model lab that sells custom models, fits the situation of a team that wants a trained model without running the training: its inference page describes tracing requests, building datasets and evaluations the customer approves, fine-tuning and serving a compact model with downloadable weights, and routing low-confidence requests to a closed frontier model. It says a first model takes about four weeks, without a stated baseline. It publishes no moderation results and no price, its custom models run on a shared cluster, and its pages do not mention VPC hosting for this service, so it does not answer the residency case.
What each option costs per 1,000 decisions
The table uses list prices, an assumed 300 characters per item (three AWS units), a 730-hour month for GPUs, and one GPU per self-hosted model. Labelling costs are not included.
| Option | 100,000 a month | 1 million a month | 10 million a month |
|---|---|---|---|
| OpenAI omni-moderation | $0 (Free tier) | $0 (Build tier) | $0 (Launch tier) |
| AWS Comprehend toxicity | $0.30 | $0.30 | $0.20 |
| Sightengine Pro plus overage | $2.19 | $2.02 | $2.00 |
| AWS Comprehend custom, async | $1.50 | $1.50 | $1.50 |
| Own classifier, RunPod L4 ($0.69/h) | $5.04 | $0.50 | $0.05 |
| Own classifier, Hugging Face L4 endpoint ($0.80/h) | $5.84 | $0.58 | $0.06 |
The self-hosted rows are flat monthly costs ($504 and $584) divided by volume, which is why they fall so steeply. A $504 GPU matches Sightengine's $0.002 rate at about 252,000 decisions a month and Comprehend's $0.0003 minimum at about 1.7 million. Against OpenAI's free endpoint it never wins on price, only on fit, capacity, residency and control.
Two things the table cannot show have not been measured: whether one L4 carries peak traffic for a 395M classifier at 10 million decisions a month (about 3.8 a second on average), and p95 latency for any of these options under comparable conditions.
Worked example: a layered stack at 10 million decisions a month
Most platforms end up layering, and OpenAI describes doing it itself: it uses "smaller and faster classifiers to determine which content to assess" before its reasoning model sees content. Here is the cost of that pattern for a platform with a custom policy, under these assumptions: 10 million items a month at 300 characters; 5% of items scored as uncertain by the first layer; 0.5% sent on to humans. The shares are assumptions, because no source has published measured traffic splits for a layered stack.
- Layer 1, every item: OpenAI's free endpoint on the Launch tier, $0. A team that has trained its own classifier would instead pay about $504 on one RunPod L4.
- Layer 2, 500,000 uncertain items: gpt-oss-safeguard-20b with the written policy, on a second RunPod L4, about $504. That is $1.01 per 1,000 escalated items. Whether one L4 handles about 0.19 reasoning calls a second on average has not been measured.
- Layer 3, 50,000 items: human review, at whatever your reviewers cost; no source used prices it.
Machine cost is about $504 to $1,008 a month, against about $2,000 for sending everything to Comprehend's toxicity API or about $20,000 for Sightengine, though neither of those applies your custom policy. The 50,000 human decisions a month are also the training set: at that rate the "tens of thousands" of labels OpenAI's report describes accumulate within about a month, if reviewers record each decision with the item and the policy version.
How to test before you commit
No one has published a large-sample test of these options against a custom policy, or a learning curve showing at 500, 1,000, 5,000 or 20,000 labels where a trained model overtakes the API and the guard models. You can run a small version yourself. Label a few thousand of your own items against your written policy, then score each option on precision, recall and false-positive rate per category, with the guard-model prompt fixed before the run. Two public sets make useful cross-checks: ToxicChat (about 5,000 test prompts, 7.33% toxic, CC-BY-NC) and OpenAI's MIT-licensed 2022 moderation test set with eight categories. Re-run the comparison each time your labelled set grows.
One duty is outside every option. Under 18 U.S.C. 2258A, a US provider with actual knowledge of apparent child sexual exploitation must report it to NCMEC's CyberTipline "as soon as reasonably possible," with fines up to $600,000 for a first knowing failure at providers under 100 million monthly users. Classifiers flag material; reporting needs its own process.
Bottom line
| Your situation | Choose |
|---|---|
| Standard categories, volume within OpenAI's tiers | Free omni-moderation behind your own interface |
| Standard categories, more headroom than your tier allows | A per-call API such as Comprehend, or your own classifier past about 1.7M a month |
| Custom policy, no labels yet | gpt-oss-safeguard, ShieldGemma or Llama Guard with the policy in the prompt |
| Tens of thousands of your own labels | Train a small classifier; keep a guard model and reviewers behind it |
| Residency limits or vendor-sunset risk | Own the weights and the serving |
Whichever row you are in today, log every human decision, so the move to the row below it is made on your own data.
Sources
- OpenAI, omni-moderation-latest model page: https://developers.openai.com/api/docs/models/omni-moderation-latest
- OpenAI, Moderation guide: https://developers.openai.com/api/docs/guides/moderation
- OpenAI Developer Community, Rate limits for omni-moderation based on tier: https://community.openai.com/t/rate-limits-for-omni-moderation-based-on-tier/1377984
- OpenAI, Technical report on gpt-oss-safeguard (October 29, 2025): https://cdn.openai.com/pdf/08b7dee4-8bc6-4955-a219-7793fb69090c/Technical_report__Research_Preview_of_gpt_oss_safeguard.pdf
- Hugging Face, openai/gpt-oss-safeguard-20b: https://huggingface.co/openai/gpt-oss-safeguard-20b
- Google, ShieldGemma: https://gemma.ai/models/shieldgemma/
- Hugging Face, google/shieldgemma-2b: https://huggingface.co/google/shieldgemma-2b
- Hugging Face, meta-llama/Llama-Guard-3-1B: https://huggingface.co/meta-llama/Llama-Guard-3-1B
- Hugging Face, Llama Guard 2 custom categories discussion: https://huggingface.co/meta-llama/Meta-Llama-Guard-2-8B/discussions/9
- Hugging Face, answerdotai/ModernBERT-large: https://huggingface.co/answerdotai/ModernBERT-large
- Nyckel, Blacklists vs. Pre-Trained ML vs. Custom ML benchmark: https://www.nyckel.com/blog/kaggle-toxicity/
- AWS, Amazon Comprehend pricing: https://aws.amazon.com/comprehend/pricing/
- Sightengine, Pricing: https://sightengine.com/pricing
- RunPod, Pricing: https://www.runpod.io/pricing
- Hugging Face, Inference Endpoints pricing: https://huggingface.co/docs/inference-endpoints/pricing
- Perspective API: https://perspectiveapi.com/
- Hartmann et al., Bye Bye Perspective API (arXiv 2604.25580): https://arxiv.org/abs/2604.25580
- Hugging Face, lmsys/toxic-chat: https://huggingface.co/datasets/lmsys/toxic-chat
- OpenAI, moderation-api-release: https://github.com/openai/moderation-api-release
- 18 U.S.C. 2258A (Cornell LII): https://www.law.cornell.edu/uscode/text/18/2258A
- Parsec, Inference: https://parseclab.ai/inference/
- Parsec vs routers: https://parseclab.ai/compare/routers/
- Parsec vs your own GPUs: https://parseclab.ai/compare/own-gpus/