LIVE · Thursday 3 December

Cheaper GPT-4 Alternatives for Content Moderation: What 1 Million Items Costs on Each Option

OpenAI's omni-moderation is free for standard harms. For your own rules, gpt-oss-safeguard and small models cost about $62 to $73 per million items, against $17,850 at GPT-4's old list price.

By Surya10 min read

The cheapest alternative to GPT-4 for content moderation is OpenAI's Moderation API with omni-moderation-latest, which costs nothing and covers 13 fixed harm categories. For platform-specific rules, the open-weight gpt-oss-safeguard-20b takes a written policy as input and costs about $73 per million short items on Groq. Small models such as Gemini 2.5 Flash-Lite and GPT-6 Luna cost about $62 per million items when they return only a label. At GPT-4's old price of $30 per million input tokens, the same million items cost $17,850.

The figures below come from each provider's own pricing page as of November 24, 2026. They assume a short text item of about 300 characters and a written policy of 500 tokens. Accuracy is a separate question, and no one has yet compared these options on the same test set.

GPT-4 itself was shut down on October 23, 2026, so its price is now only a reference point

OpenAI's deprecations page lists gpt-4, gpt-4-0613 and gpt-4-turbo with a shutdown date of October 23, 2026. The same notice retired gpt-4.1-nano, which had been one of the cheapest OpenAI models for prompted moderation. GPT-4o and GPT-4.1 follow on January 14, 2027, with gpt-6-luna named as the replacement.

GPT-4's model page still shows its price of $30 per million input tokens and $60 per million output tokens. That price is useful for one reason. It shows how far moderation costs have fallen for teams that built their first filter on GPT-4.

Moderation cost depends on tokens per item, so a per-item price is more useful than a per-token price

A moderation call is short on output and long on input. The model returns a label or a score, but it has to read the item and, for prompted models, the whole policy every time. The policy is usually the larger part of the bill.

OpenAI's rule of thumb is that one token is about four characters of English. A 300-character comment is therefore about 75 tokens. OpenAI's user guide for gpt-oss-safeguard says that the best policy length is "between 400-600 tokens," so this article uses 500. Each prompted call then has about 575 input tokens and about 10 output tokens for a label.

The table that follows multiplies those assumptions by each provider's list price. It covers one million items at standard rates, without batch discounts.

Option What it checks Cost per 1M items
OpenAI omni-moderation 13 fixed categories $0
Gemini 2.5 Flash-Lite Your prompt $61.50
GPT-6 Luna, reasoning off Your prompt $62.50
gpt-oss-safeguard-20b on Groq Your written policy $73.13
Llama Guard 4 on DeepInfra 14 fixed hazard categories $105.30
GPT-4 at its last list price Your prompt $17,850

The gpt-oss-safeguard row assumes 100 output tokens, because the model reasons before it answers. The real length of that reasoning at low effort has not been measured. Claude Haiku 5.5 costs about $81 per million items on the same assumptions. That figure includes the roughly 30% more tokens that Anthropic says its newer tokenizer produces. Claude Haiku 4.5 costs about $625.

The free Moderation API is the right first layer when your rules match its 13 categories

OpenAI's announcement says that omni-moderation-latest "is free to use for all developers through the Moderation API." Its help center adds that usage "doesn't count towards your monthly usage limits." The model accepts text and images and returns a score from 0 to 1 for each category.

The categories are fixed. They cover harassment, hate, illicit activity, self-harm, sexual content and violence, with their subcategories. OpenAI's moderation guide does not mention custom categories, so it gives no way to add a rule such as "no links to competing marketplaces."

Rate limits are the practical ceiling. The model page lists 500 requests per minute on the Build tier and 2,000 on the Launch tier. One million items a day at one item per request is about 694 requests per minute. That volume needs at least the Launch tier.

OpenAI also says that its scores are calibrated to reflect the likelihood that content matches a category. Its guide warns that custom policies that rely on category_scores "may need recalibration over time" as the model is upgraded.

Open-weight safety classifiers cost only compute, but they check fixed lists of harms

Llama Guard 4 and ShieldGemma are models that you can download and run yourself. Both classify content against a built-in set of harms rather than an arbitrary policy.

Meta's model card describes Llama Guard 4 as a 12B model pruned from Llama 4 Scout. It handles text and multiple images, and it answers "safe" or "unsafe" with the codes of the violated categories. It uses 14 hazard categories, from violent crimes to code interpreter abuse. The card says that it "can be run on a single GPU" and does not mention custom categories. On Meta's own English test set, it reports 69% recall, an 11% false positive rate and 61% F1.

Fewer hosts now serve it. Groq deprecated Llama Guard 4 on March 5, 2026 "in favor of" gpt-oss-safeguard-20b. DeepInfra still lists it at $0.18 per million tokens.

Google's ShieldGemma comes in 2B, 9B and 27B sizes on Gemma 2. It supports English only and checks four harms: sexually explicit content, dangerous content, hate speech and harassment. It answers Yes or No, and it is meant to be run in scoring mode so that you get a probability. Google's model card warns that it is "highly sensitive to the specific user-provided description of safety principles." No provider pricing page lists a hosted ShieldGemma, so its cost is the cost of your own GPU.

gpt-oss-safeguard is the cheapest option that follows a policy you write yourself

OpenAI released gpt-oss-safeguard on October 29, 2025, in 20b and 120b sizes under Apache 2.0. Its announcement says that the model takes "a policy and the content to classify" as two inputs. Because the policy arrives with each request, you can change a rule without retraining anything.

The 20b model has 21 billion total parameters, with 3.6 billion active per token. Its Hugging Face card says that it "fits into GPUs with 16GB of VRAM." It must be used with OpenAI's harmony prompt format. Groq hosts it at $0.075 per million input tokens and $0.30 per million output tokens. Groq lists it as a Preview model, which "may be discontinued at short notice."

OpenAI's technical report gives the only published accuracy figures, and OpenAI ran the tests itself. On its internal test, which counts an answer as correct only if every policy label matches, gpt-oss-safeguard-120b scored 46.3% and gpt-5-thinking scored 43.2%. On OpenAI's 2022 moderation dataset, both safeguard sizes scored 82.9% F1.

The same report states two limits plainly. Classifiers "trained on tens of thousands of high-quality labeled samples can still perform better." The model also "can be time and compute-intensive." OpenAI's user guide says that it "should not be called on every event."

Small general models cost about $62 per million items when they return only a label

Gemini 2.5 Flash-Lite costs $0.10 per million input tokens and $0.40 per million output tokens on Google's pricing page. Google's deprecations page says that it "remains available through the API until further notice." GPT-6 Luna costs $0.10 and $0.50, and its model page allows reasoning effort to be set to none. Both providers charge half price for batch jobs, which brings the cost to about $31 per million items.

These models follow any prompt, so they handle custom rules. Their weakness is cost control. Output prices are four to five times input prices, so a model that writes an explanation costs much more than one that returns a single word.

No one has published a test of these options on the same content

Every accuracy figure above was produced by the vendor of the model, on its own test set and with its own prompts. The numbers cannot be compared across vendors.

The closest thing to a shared test is Google's ShieldGemma model card. On the OpenAI moderation dataset, Google reports an optimal F1 of 0.812 for ShieldGemma 2B and 0.705 for GPT-4. That table uses an older version of OpenAI's Moderation API, not omni-moderation-latest. It was also run by Google on its own model. Precision, recall, calibration and latency for all of these options on one labelled set, under both standard and custom policies, have not been measured.

A layered setup sends only uncertain items to the expensive step

OpenAI describes the pattern that it uses itself. Small, fast classifiers decide which content needs a closer look, and the reasoning model reviews only that share. The steps of such a setup run in this order:

  1. Every item goes to the free Moderation API or a self-hosted classifier, which clears or blocks the clear cases.
  2. Items with scores in an uncertain band go to gpt-oss-safeguard-20b or a small model, along with your written policy.
  3. Items that the second step still cannot settle go to human reviewers, whose decisions become training labels.

The cost of the middle step depends on how wide the uncertain band is. At 30 million items a month, escalating 5% to gpt-oss-safeguard-20b on Groq costs about $110. Escalating 20% costs about $439. Sending everything costs about $2,194. Which escalation rate each threshold produces, and how accuracy changes with it, has not been measured.

A classifier trained on your reviewers' labels can outperform models that work from a written policy once you have enough labels

OpenAI's own guidance points to this step. Its user guide says that classifiers "trained on thousands of examples will likely perform better" on their task. Its technical report puts the threshold at tens of thousands of high-quality labels. How accuracy grows with 1,000, 10,000 or 50,000 labels on a custom policy has not been measured.

Parsec, a small language model lab, sells a decision model called TOD that ranks the next action from a supplied list against a policy. In moderation, that list could be allow, remove or escalate. According to Parsec's TOD page, it costs $0.30 per 1,000 decisions, flat regardless of context length. That is $300 per million items, more than the prompted small models at these item sizes. Parsec publishes no moderation result for TOD. On a public decision benchmark, its page reports 84.4% accuracy, below the untrained base model, and says that a fix is due. Parsec says that it also tunes decision models on a customer's own decisions, but it publishes no price for that work.

The right first choice depends on your policy, your volume and whether you have labels

Each situation points to a different starting option:

  • If your rules match standard harm categories, start with the free Moderation API and add a second layer only for the uncertain band.
  • If your rules are specific to your platform and you have no labels, use gpt-oss-safeguard-20b with a policy of 400 to 600 tokens, behind a free first layer.
  • If you need images checked against custom rules, use a small multimodal model such as GPT-6 Luna, because gpt-oss-safeguard is text-only.
  • If you process tens of millions of items a month, compare a dedicated GPU with per-token pricing. One H100 on Together costs $5.49 an hour, or about $3,953 for a 30-day month. Whether one GPU carries that load has not been measured.
  • If you already hold tens of thousands of reviewer labels, train a dedicated classifier and keep gpt-oss-safeguard for new rules.

Testing on your own content takes a labelled sample and one fixed prompt per model

Vendor numbers cannot settle the choice, so a short internal test is worth the effort. The steps below keep the comparison fair:

  1. Draw a sample of a few thousand real items, and have two reviewers label each one under your written policy.
  2. Write the policy once, between 400 and 600 tokens, and use the same text for every prompted model.
  3. Ask every model for the same output, either a single label or a label with a confidence score.
  4. Record precision, recall and F1 separately for standard harms and for your platform-specific rules.
  5. Record input and output tokens per item from each API response, and multiply them by the list price.
  6. Plot each model's stated confidence against its observed accuracy, so that you can set escalation thresholds from real data.

Sources

More in Models

All Models →