Image moderation you can train on your own policy and past decisions: six options and their limits
Rekognition adapters and Hive AutoML train on your own images, but each has a catch. Azure, ShieldGemma 2 and gpt-oss-safeguard take your policy in other ways. Here is how each one learns and which fits.
Two hosted APIs train an image moderation model on your own labeled images: Amazon Rekognition Custom Moderation adapters and Hive AutoML. Rekognition adapters only re-tune the moderation labels that AWS already defines, and Hive AutoML needs training images at publicly accessible URLs. Google's ShieldGemma 2 accepts a custom policy written as text, but you host it yourself. Azure's image custom categories match examples without any training and retire on April 30, 2027. OpenAI's gpt-oss-safeguard applies your own policy, but only to text.
A moderation model can learn your policy in three different ways
The options differ less in accuracy claims than in how your policy gets into the model. That choice decides what data you need and what happens when the policy changes.
The first way is training on labeled images. You give the service images with the decisions that your reviewers made, and it adjusts a model to match them. Rekognition and Hive work like this. The model learns from what your team actually did, including judgment calls that the written policy never spelled out. The cost is that a policy change means new labels and a new training run.
The second way is reading the policy as text at run time. ShieldGemma 2 and gpt-oss-safeguard take a written policy as part of each request. A policy change is an edit to the text, with no retraining. The weakness is that the model follows the words, not the history of your decisions, and Google warns that ShieldGemma 2 is sensitive to how those words are written.
The third way is matching new content against examples. Azure's custom categories (rapid) store example images for an "incident" and flag new images that look similar. This is fast to set up, but nothing is trained on your policy.
Rekognition adapters re-tune the labels that AWS already defines
Amazon Rekognition's DetectModerationLabels API returns labels from a fixed moderation taxonomy, such as explicit nudity, violence, alcohol and drugs. Custom Moderation adds an adapter, which AWS describes as a modular component added to its existing model. You train the adapter on your own images, then pass its ID in the ProjectVersion field of the normal call.
The training labels come from the same fixed list. In AWS's console tutorial, you assign each image a label "from a drop-down list of labels supported by Rekognition Moderation." An adapter can therefore move the line on what counts as "suggestive" for your platform. It cannot add a category that AWS does not have, such as a ban on screenshots of private messages.
The data requirement is small. AWS's October 13, 2023 announcement says that an adapter can be trained "with as few as twenty annotated images in less than hour." Its best-practice page asks for at least 50 false-negative samples or 20 false-positive samples for training, plus at least 20 for testing. AWS also recommends including images that the base model already gets right.
Past decisions can be used in two ways, according to AWS's tutorial:
- You can upload images with a manifest file of ground-truth labels, which is required when training through the SDK, or import them from an Amazon S3 bucket.
- You can run Bulk analysis with the base model over an archive, then mark each prediction as correct or incorrect and train on the verified results.
Training images can be imported from your own S3 bucket, and you can set your own AWS KMS encryption key. The API also accepts a HumanLoopConfig that sends images to a human review flow.
One operational detail matters for any platform that must explain decisions later. AWS's adapter page says that an adapter trained on an older base model becomes deprecated and expires within 60 to 90 days of a new base model release. An expired adapter in a request is ignored, and the result comes from the latest base model instead. The response then omits the ProjectVersion field, so a team that logs that field can detect the change.
On AWS's pricing page, adapter training costs $5 per hour, billed by the minute. Inference with an adapter costs $0.0012 per image for the first million images a month in US East.
Hive AutoML can add new categories, but its training images must be public
Hive's AutoML fine-tunes its Visual Moderation model, which has "45+ subclasses" according to Hive's January 2024 blog post. Unlike Rekognition, it can also add entirely new heads. That makes it the hosted option for a category that exists only in your policy.
Training data is a CSV file with an image column and one column per head. Hive's dataset documentation defines the image column as "a URL that points to a publicly accessible image." The page does not mention uploads or signed URLs. For a moderation archive full of reported or removed images, a public URL is a real obstacle, and some teams will rule Hive out on that basis alone.
Hive's AutoML documentation sets a minimum of 50 examples per class for the Visual Moderation base model. Hive says that a visual model "will be ready within 20 minutes." The model page shows precision, recall, balanced accuracy, F1, a precision-recall curve and a confusion matrix, which is more evaluation detail than the other hosted options show.
The product name is also changing. Hive's AutoML page now says "Hive is now Deploy," and its pricing now sits at deploy.com. On that page, AutoML training and inference for image moderation are listed as "Contact Sales."
Azure's trained custom categories were text only and retired on September 1, 2026
Microsoft offered two kinds of custom categories in Azure AI Content Safety. The standard version trained a model on your samples, but Microsoft's documentation says that it "works on text content, not image content." That version retired on September 1, 2026.
The rapid version handles images. You create an incident, upload up to 1,000 example images or text samples, and deploy it. Microsoft says that "No training step is needed," because an LLM and an embedding search compare new content with the samples. The response indicates whether a new image is an instance of the incident.
Rapid is useful for a sudden wave of one kind of abuse. It is not a model trained on a policy, and it is capped at 100 incidents per resource. Microsoft's page, updated October 20, 2026, says that rapid, "including text and image detection," retires on April 30, 2027.
ShieldGemma 2 reads your policy text and returns a probability for each image
ShieldGemma 2 is a 4-billion-parameter image safety classifier that Google built on Gemma 3. It takes an image plus a policy definition and returns the probability of a "Yes" or "No" answer. "Yes" means that the image violates the policy. Google's model card says that both scores are given "to enable classification metrics and calibration."
The model ships with three default policies: sexually explicit content, dangerous content, and violence or gore. The Hugging Face Transformers library lets you add your own with a custom_policies argument, so a request can check one image against several of your rules at once.
The weakness is wording. Google's model card says that the model is "highly sensitive to the specific user-provided description of safety principles," and that it "might perform unpredictably" where nuance matters. In practice, your past decisions become a test set for tuning the policy text. You run the model yourself, under Google's terms and prohibited use policy, and you pay for your own GPUs.
gpt-oss-safeguard applies your written policy to text, not to images
OpenAI released gpt-oss-safeguard on October 29, 2025, in 120b and 20b sizes under Apache 2.0. It reads a developer's policy at inference time and reasons about whether content breaks it. The Hugging Face model card says that the models "classify text content," and OpenAI's announcement describes messages, completions and chats. Neither mentions image input, so it can moderate captions and comments but not the images themselves.
OpenAI's announcement also makes a point that applies to every option here. It says that "classifiers trained on tens of thousands of high-quality labeled samples can still perform better." A team with a large archive of past decisions holds the kind of data that OpenAI says can beat a policy-reading model.
Parsec's decision model ranks your own list of moderation actions
Parsec, a small language model lab, offers a different shape of model. Its TOD model reads text and images together with a policy, and it ranks a list of allowed actions that you supply. For moderation, that list could be allow, blur, age-gate, remove and escalate. The public release returns one probability per option, summing to 1, and a confidence gate passes unsure cases unchanged to the parent model that TOD sits in front of. Parsec's TOD page lists $0.30 per 1,000 decisions. Its decision-models page says that it tunes these models on a customer's own decisions and that this "often needs only a few thousand examples," with no baseline given. Parsec publishes no price for that tuning work. Its published evaluations cover support tasks and image question answering, not moderation, and its pages do not describe a human-review queue.
Each option fits a different moderation situation
The right choice follows from how far your policy sits from standard categories and from where your images may go. The table compares the five vendor options on the points that most often rule one out.
| Option | Learns from | Your own categories | Main limit |
|---|---|---|---|
| Rekognition Custom Moderation | Your labeled images | No, AWS labels only | Adapter expires after base model updates |
| Hive AutoML | Your labeled images | Yes, new heads | Training images must be at public URLs |
| Azure custom categories (rapid) | Example images, no training | Yes, as incidents | Retires April 30, 2027 |
| ShieldGemma 2 | Policy text that you write | Yes, custom policies | You host it, and wording changes results |
| gpt-oss-safeguard | Policy text that you write | Yes | Text only |
The situations below follow from those limits.
- Choose Rekognition Custom Moderation if your rules map onto AWS's labels and your problem is where the lines fall, for example too many false positives on art or medical content. Training images can stay in S3, and AWS asks for 20 to 50 examples per label to start.
- Choose Hive AutoML if you need categories that no fixed taxonomy has, and you can expose training images at public URLs.
- Choose ShieldGemma 2 if your policy changes often, you want the model on your own hardware, and you can spend time tuning policy wording against past decisions.
- Use Azure custom categories (rapid) only for short-lived incidents, since it retires on April 30, 2027.
- Use gpt-oss-safeguard for the text around an image, such as captions, alongside one of the image options.
- Consider Parsec if your decision is a choice among several actions rather than a yes or no label, and you accept that it has published no moderation results.
Your past decisions become both the training set and the test set
Every option above needs the same raw material, which is a record of what your reviewers decided. A useful export from a review queue or moderation log has one row per image with these fields:
- Store a private reference to the image, such as an S3 or Azure blob path, rather than a copy of the file.
- Record the action that was taken, using your real action names rather than a vendor's labels.
- Add the policy version that was in force on the decision date, so that old decisions can be filtered after a rule change.
- Keep the date and whether the decision was appealed or reversed, because reversed decisions show where the line actually sits.
Rare categories need special care. Rekognition and Hive both set minimums of 20 to 50 examples per label, so a category with a dozen past cases will not train well. One sensible approach is to merge it into a broader action, such as escalate, until enough examples exist. When the policy changes, label-trained options need a new training run on relabeled data, while ShieldGemma 2 needs only an edit to its policy text.
Hold back a slice of recent decisions that no model sees in training. Splitting by date rather than at random gives a fairer test, because it resembles the images that will arrive next month.
A threshold on the scores decides how many images reach human reviewers
The image models above return a score, and the threshold that you set on it controls the workload for your reviewers. Rekognition returns a confidence from 0 to 100 for each label and, by default, only returns labels at 50 or above. ShieldGemma 2 returns a probability of violation.
A threshold works in two directions. A conservative setting auto-resolves only images that the model is very sure about and sends the rest to people. An aggressive setting auto-resolves more images but makes more mistakes. To pick one, run your held-out decisions through each candidate and record three numbers at each threshold:
- Measure the precision and recall for each action, so that a strong result on "allow" does not hide weak results on "remove."
- Count the share of images that are auto-resolved, since the remainder sets the size of your review queue.
- Plot a calibration chart that compares predicted probabilities with how often the model was right, so that a score of 0.9 means about nine correct calls in ten.
Running the same held-out set against every vendor is the only fair comparison, because each vendor's published accuracy figures come from its own data. No side-by-side calibration test of these options on the same images has been published. Latency for image moderation has not been measured on a common basis either, so it belongs in the same test.
Sources
- Amazon Rekognition, Enhancing accuracy with Custom Moderation: https://docs.aws.amazon.com/rekognition/latest/dg/moderation-custom-moderation.html
- Amazon Rekognition, Custom Moderation adapter tutorial: https://docs.aws.amazon.com/rekognition/latest/dg/using-adapters-tutorial.html
- Amazon Rekognition, Managing adapters with the AWS CLI and SDKs: https://docs.aws.amazon.com/rekognition/latest/dg/managing-adapters.html
- Amazon Rekognition, Best practices for training adapters: https://docs.aws.amazon.com/rekognition/latest/dg/using-adapters-best-practices.html
- Amazon Rekognition, DetectModerationLabels API reference: https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DetectModerationLabels.html
- AWS, Custom Moderation announcement (October 13, 2023): https://aws.amazon.com/about-aws/whats-new/2023/10/accuracy-pre-trained-rekognition-moderation-model-custom-moderation
- AWS, Amazon Rekognition pricing: https://aws.amazon.com/rekognition/pricing/
- Hive, Customizing Hive moderation models with AutoML: https://thehive.ai/blog/customizing-hive-moderation-models-with-automl
- Hive, AutoML: https://thehive.ai/solutions/auto-ml
- Hive docs, AutoML datasets: https://docs.thehive.ai/docs/automl-datasets.md
- Hive docs, AutoML image classification: https://docs.thehive.ai/docs/automl-image-classification.md
- Deploy, Pricing: https://deploy.com/pricing
- Microsoft Learn, Custom categories in Azure AI Content Safety: https://learn.microsoft.com/en-us/azure/ai-services/content-safety/concepts/custom-categories
- Microsoft Learn, Use the custom categories (rapid) API: https://learn.microsoft.com/en-us/azure/ai-services/content-safety/how-to/custom-categories-rapid
- Google, ShieldGemma 2 model card: https://gemma.ai/models/shieldgemma/model-card-v2/
- Hugging Face Transformers, ShieldGemma 2: https://huggingface.co/docs/transformers/model_doc/shieldgemma2
- ShieldGemma 2: Robust and Tractable Image Content Moderation: https://arxiv.org/html/2504.01081v2
- OpenAI, Introducing gpt-oss-safeguard: https://openai.com/index/introducing-gpt-oss-safeguard/
- Hugging Face, openai/gpt-oss-safeguard-20b: https://huggingface.co/openai/gpt-oss-safeguard-20b
- Parsec, TOD: https://parseclab.ai/tod/
- Parsec, Decision models: https://parseclab.ai/solutions/decision-models/
- Parsec, TOD model card: https://huggingface.co/parsecai/tod