Product Image Moderation API for E-commerce
Automatically screen seller-uploaded product images for prohibited and unsafe content before a listing goes live.
Published 2026-05-15 · Updated 2026-10-26

TL;DR. To moderate product images automatically, route every seller upload through an image moderation API before the listing publishes. Pixicular returns content-moderation labels (nudity, violence, drugs, and more) and object labels in one call, so your pipeline can approve clean listings at once, check that each photo matches its category, and escalate only the rest.
Why do marketplaces need automated image screening?
On any marketplace where sellers upload their own product photos, some of those images will be a problem: explicit content disguised as a legitimate listing, weapons and regulated goods, graphic violence, or photos that do not show the product at all. Manual pre-screening does not keep up — a trust-and-safety team cannot review every photo on a platform that takes in tens of thousands of new listings a day, and buyers see the bad ones long before a human does.
Automated screening flips the default. Instead of publishing first and reacting to reports, every image is checked by an API as it is uploaded. Pixicular's image analysis API gives you two services that matter here: content moderation for unsafe imagery and label detection for what is actually in the photo. Listings with clean results go live with no human in the loop; reviewers spend their time on the ambiguous and the dangerous. Some problems need other signals: Pixicular does not detect counterfeit products or identify brands, so pair image screening with listing text, seller history, and rights-holder reports.
How does the moderation pipeline work?
A typical product image moderation pipeline has four stages: a seller uploads a listing photo, your backend sends it to the API, the API returns moderation and label results with confidence scores, and your service makes an approve / review / reject decision against thresholds your policy owns.

POST /v1/detect call feeds your routing logic.The decision step is yours, not the API's. The API returns scored signals; your trust-and-safety policy decides what confidence in which category means reject, what means review, and what passes. That separation keeps moderation behaviour under your control and auditable, which matters for the regulatory obligations covered below.
What do the moderation and label services return?
The detect-moderation service returns detected (true when it finds anything) and a list of moderation labels, each with a name, the parentName of its category, and a confidence percentage. A clean product photo comes back with "detected": false and an empty list. The detect-labels service returns the objects and scenes in the image, each with a name, a confidence percentage, and categories. Together they cover what an e-commerce trust-and-safety team screens for:
| What you screen for | Pixicular service | Example on a listing |
|---|---|---|
| Explicit nudity & sexual content | detect-moderation | Lingerie or swimwear listings used as a vector for explicit imagery |
| Suggestive / borderline content | detect-moderation | Borderline imagery that needs a human reviewer, not an auto-block |
| Violence & weapons | detect-moderation | Weapons or graphic injury in a product shot |
| Drugs, tobacco, alcohol & gambling | detect-moderation | Restricted substances, paraphernalia, or gambling content in the photo |
| Hate symbols | detect-moderation | Extremist symbols printed on clothing or memorabilia |
| Policy-restricted objects | detect-labels | Objects your marketplace restricts, matched against label names you choose |
| Wrong-category or irrelevant photos | detect-labels | A lamp listing whose photo is labelled Shoe, or a photo with no product in it |
A request for both services on a clean listing photo returns one JSON document with a key per service under services:
{
"success": true,
"requestId": "req_T5mWq8ZcN2rLx4VbHs",
"services": {
"detect-moderation": { "detected": false, "labels": [] },
"detect-labels": {
"labels": [
{ "name": "Backpack", "confidence": 99.3, "categories": ["Apparel and Accessories"] },
{ "name": "Bag", "confidence": 98.1, "categories": ["Apparel and Accessories"] }
]
}
},
"photo": { "id": "photo_Qf7nYc3KsW9tLb2RmX", "status": "COMPLETED" },
"creditCost": 2,
"processingTimeMs": 1250,
"processedAt": "2026-10-26T09:30:00.000Z"
}A flagged image instead returns entries such as { "name": "Female Swimwear Or Underwear", "parentName": "Suggestive", "confidence": 90.5 }. That example shows why thresholds belong to you: on a swimwear listing a Suggestive label is expected, while on a toy listing it is not. Set thresholds per moderation category and, where it matters, per product category.

Note: Pixicular's AI-generated image detection service is currently disabled while accuracy is being improved. The content-moderation and label-detection services above are live and are what e-commerce platforms use for product image screening today.
Code: the moderation API call
One request asks for both services. The image goes up once as a file part of a multipart upload, and each service is billed as one operation, so this call costs two. The API accepts JPEG, PNG, WebP, AVIF, and TIFF images up to 10 MB and between 100×100 and 4096×4096 pixels.
curl
curl -X POST https://api.pixicular.com/v1/detect \
-H "Authorization: Bearer $PIXICULAR_API_KEY" \
-F "file=@./listing-photo.jpg" \
-F "services=detect-moderation,detect-labels"TypeScript — screen before publish
interface ModerationLabel {
name: string;
parentName: string;
confidence: number;
}
interface Label {
name: string;
confidence: number;
categories: string[];
}
// Categories and thresholds are your trust & safety policy, not the API's.
const REJECT_CATEGORIES = new Set(["Explicit Nudity", "Violence"]);
const REJECT_AT = 90;
const REVIEW_AT = 60;
// Screen a seller-uploaded product image before the listing goes live.
async function screenListingImage(file: Blob, expectedLabels: string[]) {
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 means the request was queued under load: poll its statusUrl (see the docs).
if (res.status === 202) return "pending";
if (!res.ok) throw new Error(`Pixicular returned ${res.status}`);
const { services } = await res.json();
const flags: ModerationLabel[] = services["detect-moderation"]?.labels ?? [];
const labels: Label[] = services["detect-labels"]?.labels ?? [];
// A sub-label carries its parent category in parentName.
const category = (f: ModerationLabel) => f.parentName || f.name;
const severe = flags.some(
(f) => REJECT_CATEGORIES.has(category(f)) && f.confidence >= REJECT_AT,
);
if (severe) return "reject";
if (flags.some((f) => f.confidence >= REVIEW_AT)) return "queue_for_review";
// Labels confirm the photo shows what the listing says it sells.
const matchesListing = labels.some(
(l) => expectedLabels.includes(l.name) && l.confidence >= 80,
);
return matchesListing ? "approve" : "queue_for_review";
}The categories and thresholds in this snippet are illustrative — your trust-and-safety policy owns them. See the Pixicular API documentation for the full response schema, authentication, and the moderation label hierarchy.
What does DSA Article 16 require from marketplaces?
The EU Digital Services Act puts marketplace image moderation inside a compliance perimeter. Article 16 requires hosting services, including e-commerce marketplaces, to operate a notice-and-action mechanism: anyone must be able to flag content they consider illegal, and the platform must process those notices in a timely, diligent, non-arbitrary, and objective way, then tell the reporter its decision and the available redress.
Automated image screening does not satisfy Article 16 on its own — the notice-and-action mechanism is a separate, mandatory channel. It helps in three ways. First, proactive detection reduces how much illegal imagery reaches a buyer, which shrinks the notice queue. Second, every screened listing carries stored moderation and label results, the evidence your team needs to act on a notice quickly and write the statement of reasons Article 17 requires. Article 17 also asks you to say whether automated means were used, so log which decisions came from thresholds and which from reviewers. Third, consistent, documented thresholds make decisions reproducible, which supports the diligent and non-arbitrary handling the law asks for. Pair the API with a human review queue for borderline cases. This is general information, not legal advice — confirm your obligations with counsel.
When should you auto-block, queue, or approve?
- Auto-reject on high-confidence labels in categories your policy never allows — explicit nudity or graphic violence above a strict threshold should not reach a buyer.
- Queue for review on borderline confidence, on categories that depend on context (such as
Suggestiveon swimwear), or when the labels do not match the listing — a human reviewer decides, with the results attached. - Approve when no moderation label crosses your thresholds and the labels match the expected product type — the listing publishes with no human in the loop.
- The same model extends to UGC image moderation for social platforms and other user-upload surfaces — see what image content moderation is for the broader picture.
Frequently asked questions
How do you moderate product images automatically?
Send each seller-uploaded image to an image moderation API before the listing publishes. Pixicular's detect-moderation service returns a label, with its parent category and a confidence percentage, for each kind of unsafe content it finds, such as explicit nudity or violence, and an empty list when it finds none. detect-labels returns the objects and scenes in the image. Your service compares those results with per-category thresholds and routes the listing to approve, review, or reject.
Which services should an e-commerce platform use to screen product images?
Two live Pixicular services cover most marketplace screening: detect-moderation for unsafe and restricted content (nudity, suggestive material, violence, drugs, tobacco, alcohol, gambling, and hate symbols) and detect-labels for the objects and scene in the photo, which lets you check that the image matches the listing's category. Both run in a single POST /v1/detect request, and each service is billed as one operation per image.
Can image moderation detect counterfeit or prohibited goods?
Not counterfeits. Pixicular does not detect counterfeit products or identify brands, so handle counterfeits with listing text, seller history, price signals, and rights-holder reports. For prohibited goods it helps: detect-moderation flags categories such as drugs, tobacco, alcohol, gambling, and weapons, and detect-labels names objects in the photo that your policy may restrict. Treat both as signals for review, not legal determinations.
Does automated image screening satisfy DSA Article 16 obligations?
No. DSA Article 16 requires hosting services, including online marketplaces, to operate a notice-and-action mechanism so anyone can report illegal content and get a timely, reasoned decision. Automated screening does not replace that mechanism, but it supports it: proactive detection reduces how much illegal imagery reaches buyers, and storing moderation results per listing gives your trust-and-safety team the evidence to act on notices and explain decisions. This is general information, not legal advice.
Is Pixicular's AI-generated image detection available for product photos?
Not yet. Pixicular's AI-generated image detection service is currently disabled while accuracy is being improved. The content-moderation and label-detection services described on this page are live today and are what e-commerce platforms use for product image screening. Do not depend on AI-generation detection for production moderation until it returns.
Add image moderation to your listing pipeline
The fastest way to evaluate Pixicular for product image screening is to point a curl request at it with a real listing photo. 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.