UGC Image Moderation for Social Platforms
Pre-publish scanning, post-publish sweeps, and an appeals workflow for user-generated content, built around one API call that returns content-moderation and label results as JSON.
Published 2026-05-20 · Updated 2026-10-26

TL;DR. To moderate user-uploaded images at scale, route every upload through Pixicular's image analysis API with detect-moderation and detect-labels in one call. Your backend publishes clean uploads, blocks high-confidence violations, and sends the borderline middle to a human reviewer, with a post-publish sweep and an appeals path that you build on top.
What is UGC image moderation?
User-generated-content (UGC) image moderation is how a social platform decides whether an image a user submits may appear, stay, or must be removed: the pipeline between a user pressing "post" and other users seeing the image. At any real scale, people alone cannot keep up with the volume, and harmful images do damage for every minute they stay up.
The job has three phases. Pre-publish checks run when an upload is submitted and decide whether it enters the feed. Post-publish checks revisit live content when policy, user reports, or the detection model change. Appeals handle false positives and give users a path back through a human reviewer. Each step should write structured evidence to an audit log.
Pixicular sits in the detection slot. The API returns moderation labels and object labels; your code applies policy, keeps the audit trail, and routes borderline cases to reviewers. The API supplies inputs, not verdicts.
How does the pre-publish moderation pipeline work?
When a user submits a post, save it as pending and start three jobs in parallel: the moderation call (POST /v1/detect with services=detect-moderation,detect-labels), thumbnailing, and storing the original. When the moderation result arrives, your code decides to publish the post, send it to review, or block it. Only then does the post appear in other users' feeds.

Keep this step fast: request both services in one call and run it alongside thumbnailing, EXIF stripping, and storage. Every response reports processingTimeMs, so you can measure latency on your own traffic. Under heavy load the API can answer 202 and queue the request: keep the post pending, show it to the uploader as "processing", and poll for the result.
How do you decide what to publish, review, and block?
The detect-moderation service returns only the labels it finds, each with a confidence percentage and a parentName that places it in a hierarchy (for example, Female Swimwear Or Underwear under Suggestive). An empty list means it found nothing. Turning that into actions is a policy mapping: hard-block categories with a high cutoff, review for anything else that comes back, and publish when the list is empty. The more you send to review, the more reviewer hours you spend and the fewer wrong calls reach users.
![Decision rules for a detect-moderation response: a hard-block category at confidence >= 90 leads to Block, any other label leads to Review, and an empty list, labels: [], leads to Publish.](/_next/image?url=%2Flanding-pages%2Fugc-image-moderation-for-social-platforms%2Finfographic-2.webp&w=3840&q=75&dpl=dpl_7MeQwW947JDrnjJ8oxD2vUb8n1Dh)
A sensible starting point for an 18+ social platform that does not allow adult content: block explicit nudity and graphic violence at 90 or above, review any other moderation label, and publish when the list is empty. Stricter platforms can block at lower confidence; more permissive ones can allow categories such as suggestive content. Tune each category on its own, and check every week how many uploads land in each bucket.
Label detection is a useful cross-check. A photo of a knife in a kitchen may not trigger any moderation label, but detect-labels can still return a Knife label. If your policy restricts weapons regardless of context, act on that label.
Which Pixicular services should a social platform use?
Two services cover the core needs. The detect-moderation service returns labels for unsafe content; detect-labels returns the objects and scenes in the frame. Both run in one POST, and each is billed as one operation.
| What you screen for | Pixicular service | Signal on a user upload |
|---|---|---|
| Explicit nudity | detect-moderation | Exposed nudity. The usual hard-block category on general-audience platforms. |
| Sexual activity | detect-moderation | Explicit sexual acts, labelled separately from nudity so policy can act on each. |
| Suggestive imagery | detect-moderation | Swimwear, underwear, or provocative posing. Often sent to review rather than blocked. |
| Violence and weapons | detect-moderation | Graphic violence, injury, or weapons. Block at high confidence; review the rest. |
| Drugs, tobacco, and alcohol | detect-moderation | Drug use, paraphernalia, smoking, or drinking. Allowed in some contexts, not others. |
| Hate symbols and rude gestures | detect-moderation | Extremist insignia or offensive gestures. Context matters, so a person usually decides. |
| Weapons in frame | detect-labels | Gun or Knife object labels, a cross-check when moderation returns nothing. |
| Topical context | detect-labels | Object and scene labels for auto-tagging, search, and later re-checks. |
The two services work independently: a photo can return no moderation labels and still show a restricted object, or the other way round. Decide per signal, not on a combined score, and build your category lists from the label names you see on your own traffic.
Code: scan a UGC upload with fetch
One multipart POST to /v1/detect uploads the image and requests both services. Results are under services, keyed by service ID.
JavaScript / TypeScript — moderation plus label cross-check
// Check a user upload before it reaches a feed: one request, two services.
interface ModerationLabel {
name: string;
parentName: string; // "" for a top-level category
confidence: number; // percentage, e.g. 97.4
}
interface Label {
name: string;
confidence: number;
categories: string[];
}
type Decision =
| { action: "publish" }
| { action: "review"; reason: string }
| { action: "block"; reason: string }
| { action: "hold"; statusUrl: string };
// Policy you own: tune per platform and per category.
const BLOCK_CATEGORIES = new Set(["Explicit Nudity", "Violence"]);
const BLOCK_AT = 90;
const REVIEW_OBJECTS = new Set(["Weapon", "Gun", "Knife"]);
const REVIEW_OBJECTS_AT = 80;
const inCategory = (label: ModerationLabel, categories: Set<string>) =>
categories.has(label.name) || categories.has(label.parentName);
export async function moderateUpload(file: Blob): Promise<Decision> {
const body = new FormData();
body.append("file", file);
body.append("services", "detect-moderation,detect-labels");
const res = await fetch("https://api.pixicular.com/v1/detect", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.PIXICULAR_API_KEY}` },
body,
});
// 202: queued under load. Keep the post hidden and poll statusUrl (see the docs).
if (res.status === 202) {
const { statusUrl } = await res.json();
return { action: "hold", statusUrl };
}
// Never publish an upload that was not checked.
if (!res.ok) return { action: "review", reason: `api_error_${res.status}` };
const result = await res.json();
const flags: ModerationLabel[] = result.services["detect-moderation"]?.labels ?? [];
const labels: Label[] = result.services["detect-labels"]?.labels ?? [];
// 1. Block hard categories at high confidence.
const hard = flags.find(
(f) => inCategory(f, BLOCK_CATEGORIES) && f.confidence >= BLOCK_AT,
);
if (hard) return { action: "block", reason: hard.name };
// 2. Any other moderation label is borderline for this policy.
if (flags.length > 0) return { action: "review", reason: flags[0].name };
// 3. Cross-check objects: a weapon can appear with no moderation label.
const object = labels.find(
(l) => REVIEW_OBJECTS.has(l.name) && l.confidence >= REVIEW_OBJECTS_AT,
);
if (object) return { action: "review", reason: `label:${object.name}` };
// 4. Nothing flagged.
return { action: "publish" };
}Every rule in that function — the hard-block categories, the 90 cutoff, the object labels and their 80 cutoff — is policy you own. Tune them per platform.
Example response for a beach photo
{
"success": true,
"requestId": "req_e7C4f1Qm9TzXa2LwPk",
"services": {
"detect-moderation": {
"detected": true,
"labels": [
{ "name": "Suggestive", "parentName": "", "confidence": 93.1 },
{
"name": "Female Swimwear Or Underwear",
"parentName": "Suggestive",
"confidence": 93.1
}
]
},
"detect-labels": {
"labels": [
{ "name": "Person", "confidence": 99.4, "categories": ["People"] },
{ "name": "Beach", "confidence": 96.8, "categories": ["Nature"] },
{ "name": "Outdoors", "confidence": 95.2, "categories": ["Nature"] }
]
}
},
"photo": { "id": "photo_Rb8sK3vNq1YhJc6Dm0", "status": "COMPLETED" },
"creditCost": 2,
"processingTimeMs": 1390,
"processedAt": "2026-10-26T09:30:00.000Z"
}With the policy above, this upload goes to review: Suggestive is not a hard-block category, but a label came back. For the full schema, error codes, and rate limits, see the Pixicular API documentation.
Why do you also need post-publish scanning?
Pre-publish checks catch what the model recognises at upload time. Post-publish checks catch what changes later: policy updates, changes to the detection model, late user reports, and edge cases. Without them, a stricter rule introduced today does nothing about content that was already on the platform yesterday.
Store the moderation labels, their confidences, and the requestId with each post. When policy changes, re-run your rules against the stored labels in batch, with no new API call. When a user reports a post, check the image again and show the reviewer both results. A daily dashboard of blocks and overturns per category helps too: a spike in blocks can point to a coordinated campaign, and a spike in overturns to a threshold that is too tight.
How should an appeals workflow be built?
Even well-tuned thresholds produce false positives — swimwear, breastfeeding, classical art, and medical imagery are common examples — and a wrongful block costs user trust. An appeals workflow, which you build around the API, has four parts.
- Clear reasons. Tell the user why: "flagged for nudity," not "policy violation." A specific reason makes the appeal actionable.
- A one-click appeal path. Friction suppresses legitimate appeals; one tap should open a short form.
- Human review with the evidence visible. The reviewer sees the moderation labels, the object labels, and the rule that fired, next to the image.
- Audit logging. Store the API response, the decision, the appeal, and the outcome: the trail you need for regulator queries and threshold tuning.
What do the DSA and UK OSA expect from social platforms?
Social platforms serving users in the EU fall under the Digital Services Act (DSA). Hosting services must run notice-and-action for illegal content and give a statement of reasons when they remove or restrict content. Online platforms must also offer an internal complaint-handling system — your appeals workflow — whose decisions cannot be taken solely by automated means, and publish transparency reports. Very large online platforms also face risk assessments and independent audits. The DSA does not require automated detection, but platforms must disclose when they use it.
In the UK, the Online Safety Act (OSA) requires user-to-user services to assess and mitigate the risk of illegal content and, for services likely to be accessed by children, content harmful to children. Ofcom's codes of practice recommend measures that, for some services, include automated tools such as hash-matching for known child sexual abuse material.
Pixicular sits in the detection slot. It is not a compliance solution on its own — the workflow, audit log, appeals review, and transparency reporting are yours — but it supplies the signals they depend on. For more, see image moderation compliance under the DSA and UK OSA. This is general information, not legal advice; confirm your obligations with qualified counsel.
CSAM is out of scope for this API. If your service may carry content involving minors, report through the designated channels (NCMEC in the US, the IWF in the UK, or your national equivalent) and use a dedicated CSAM-detection tool — never rely on a general moderation API as the only control for that risk.
Pricing and getting started
Pixicular bills per operation — one service run on one image — so moderation plus labels is two operations per upload. The Developer plan includes 1,000 free operations a month, enough to build the integration and tune thresholds on real content before you pay. Credits are charged only when a request completes, and the pricing page lists each plan's operations and overage rate.
To start, sign up, create an API key, and send a real upload to /v1/detect. The API documentation covers authentication, the response schema, rate limits, and error codes. For related use cases, see image moderation for marketplaces and the NSFW / nudity detection API.
Frequently asked questions
How do you moderate user-uploaded images at scale on a social platform?
Send every upload to POST https://api.pixicular.com/v1/detect with services=detect-moderation,detect-labels before other users can see it. detect-moderation returns the unsafe-content labels it finds, such as nudity, suggestive content, violence, or drugs, each with a confidence percentage; detect-labels returns the objects and scenes in the frame. Your backend applies per-category rules to publish, review, or block the upload, so reviewers see only the cases your rules flag.
What is the difference between pre-publish and post-publish image moderation?
Pre-publish moderation checks an image at upload time and stops unsafe content before it reaches any feed. Post-publish moderation re-checks live content when policy changes, when a user reports a post, or when the detection model changes. Most social platforms run both: pre-publish stops the obvious cases as they arrive, and post-publish catches what changes later.
Does an API-based moderation pipeline satisfy DSA and UK Online Safety Act obligations?
It can support both, but neither law treats an API as compliance by itself. The EU Digital Services Act requires notice-and-action, statements of reasons, complaint handling for online platforms, and transparency reporting; it does not require automated detection. Under the UK Online Safety Act, Ofcom's codes of practice recommend automated tools for some services. Pixicular is the detection layer; the workflow, audit log, and human review around it are yours. This is general information, not legal advice.
How should an appeals workflow be designed for blocked or removed images?
Tell the user why an image was blocked, give them a one-click way to request human review, log the original moderation labels and the decision, and route the appeal to a reviewer who sees those labels next to the image. Track the overturn rate per category: a high rate means that category's threshold is too aggressive. Pixicular supplies the signals; the appeal flow is yours to build.
Can a single API call return both content-moderation flags and image labels?
Yes. Pixicular's /v1/detect endpoint accepts a comma-separated services field, so one multipart POST can request detect-moderation and detect-labels. The image is uploaded once and the results come back in one JSON document, keyed by service ID under services. Each service is billed as one operation, so the pair costs two operations per image.
Add UGC image moderation to your upload flow
The fastest way to evaluate Pixicular for social-platform moderation is to point a fetch request at it with a real upload from your platform. Pick a plan on the pricing page and follow the API documentation for authentication and the full response schema for detect-moderation and detect-labels.