Image Moderation API for Marketplaces
Screen user-uploaded listing photos on classifieds, car-listing sites, and peer-to-peer marketplaces before they go live.
Published 2026-05-19 · Updated 2026-10-26

detect-moderation found nothing unsafe; your rules decide what happens to the photos it does flag.TL;DR. To screen images on a marketplace automatically, send every seller upload to an image moderation API before the listing publishes. Pixicular's image analysis API returns content-moderation labels (nudity, violence, weapons, drugs) and object labels in one call. Your code approves clean photos that match the listing, rejects clear violations, and sends the rest to a reviewer.
Why do marketplaces need automated listing photo screening?
On any classifieds site, car-listing platform, or peer-to-peer marketplace, some seller photos break the rules: explicit imagery posted as a product listing, weapons and regulated goods, photos that have nothing to do with the item, or phone numbers printed on the image to take the sale off-platform. A trust-and-safety team cannot look at every photo on a platform that takes in thousands of new listings a day, and if listings publish first, buyers see the bad ones before anyone else does.
Automated screening changes the default. Every photo is checked by an API at upload time, before the listing goes live. Photos that come back clean and match the listing publish without a person in the loop. Reviewers spend their time on the photos your rules flag as ambiguous or unsafe. See also product image moderation for e-commerce for how this differs from retail catalogue workflows.
How does a marketplace moderation pipeline work?
A listing photo pipeline has four steps. The seller uploads a photo. Your backend sends it to POST /v1/detect with services=detect-moderation,detect-labels. The API returns the moderation labels it found and the objects in the photo, each with a confidence percentage. Your backend applies its own rules and approves the listing, sends it to review, or rejects it.

The decision step is deliberately yours. Your trust-and-safety policy sets which category at what confidence rejects a listing, what goes to review, and what publishes. Keeping that logic in your code means you can audit and change it without waiting on the API. Under heavy load the API can answer 202 and queue the request; keep the listing unpublished until you poll the result.
What do the moderation and label services return?
The detect-moderation service returns detected and a list of labels, each with a name, parentName, and confidence. Labels are hierarchical: a top-level category has an empty parentName, and more specific labels name their parent. Only labels the model finds are returned, so a clean photo comes back with detected: false and an empty list. The detect-labels service returns the objects and scenes in the photo, each with a confidence and a list of categories. Confidence is a percentage, such as 99.6.
| What you screen for | Pixicular service | Example on a listing |
|---|---|---|
| Explicit nudity and sexual content | detect-moderation | Adult imagery posted under a clothing or furniture listing |
| Suggestive content | detect-moderation | Swimwear or lingerie photos your policy allows only in some categories |
| Violence and weapons | detect-moderation | Firearms, knives, or graphic injury in a listing photo |
| Drugs, tobacco, and alcohol | detect-moderation | Paraphernalia or regulated products visible in a product shot |
| Hate symbols | detect-moderation | Extremist insignia on memorabilia or clothing |
| Item does not match the listing | detect-labels | A bicycle listing whose photo returns no Bicycle label |
| Restricted object types | detect-labels | Object labels your policy restricts in some categories, such as Knife |
| Contact details in the photo | detect-text | A phone number or URL printed on the image to move buyers off-platform |
Neither service identifies brands or decides whether an item is counterfeit or legal to sell. Those calls stay with your policy and your reviewers, who can combine the labels with the listing text, price, and seller history.
Note: Pixicular's AI-generated image detection service is currently disabled while accuracy is being improved. The content-moderation, label-detection, and text services above are live today.
Code: calling the moderation API from your listing pipeline
One request uploads the photo once and asks for both services. The response is a single JSON document with one key per requested service under services.
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"Example response for a clean bicycle listing
{
"success": true,
"requestId": "req_Lq3vN8tYc2HkP0aZrW",
"services": {
"detect-moderation": {
"detected": false,
"labels": []
},
"detect-labels": {
"labels": [
{ "name": "Bicycle", "confidence": 99.6, "categories": ["Vehicles and Automotive"] },
{ "name": "Wheel", "confidence": 99.1, "categories": ["Vehicles and Automotive"] },
{ "name": "Vehicle", "confidence": 98.7, "categories": ["Vehicles and Automotive"] }
]
}
},
"photo": { "id": "photo_Hn5tW2qXs8LbVd4Kc1", "status": "COMPLETED" },
"creditCost": 2,
"processingTimeMs": 1480,
"processedAt": "2026-10-26T09:30:00.000Z"
}Two services on one photo cost two operations, shown as creditCost.
TypeScript — approve, review, or reject a listing photo
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 ListingDecision = "approve" | "review" | "reject" | "pending";
// Policy you own: categories that reject outright, and how sure the model must be.
const REJECT_CATEGORIES = new Set(["Explicit Nudity", "Violence"]);
const REJECT_AT = 90;
async function screenListingPhoto(
file: Blob,
expectedLabels: string[], // e.g. ["Bicycle"] for the Bikes category
): Promise<ListingDecision> {
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: keep the listing
// unpublished and poll its statusUrl (see the docs).
if (res.status === 202) return "pending";
if (!res.ok) throw new Error(`Pixicular returned ${res.status}`);
const result = await res.json();
const flags: ModerationLabel[] = result.services["detect-moderation"]?.labels ?? [];
const labels: Label[] = result.services["detect-labels"]?.labels ?? [];
const hardReject = flags.some(
(f) =>
(REJECT_CATEGORIES.has(f.name) || REJECT_CATEGORIES.has(f.parentName)) &&
f.confidence >= REJECT_AT,
);
if (hardReject) return "reject";
if (flags.length > 0) return "review";
// Clean photo: does it show what the seller says it shows?
const matches = labels.some((l) => expectedLabels.includes(l.name));
return matches ? "approve" : "review";
}The categories, the 90 cutoff, and the expected labels per listing category are policy you own; build the category list from the label names you see in responses for your own listings. The Pixicular API documentation covers authentication, polling a queued request, and the full response schema.
How much does listing photo moderation cost?
Pixicular bills per operation: one service run on one image. Moderation plus labels is two operations per photo, so the photos you can screen each month are half of a plan's included operations. Credits are charged only when a request completes; failed requests cost nothing.
| Plan | Price per month | Included operations | Listing photos (2 services each) |
|---|---|---|---|
| Developer | Free | 1,000 | 500 |
| Launch | $25 | 10,000 | 5,000 |
| Scale | $99 | 40,000 | 20,000 |
| Business | $299 | 200,000 | 100,000 |
The API does not replace your moderators; it decides which photos they need to see. How many land in review depends on your thresholds and your traffic, so measure it on a sample of real listings on the free Developer plan before you size the team. For the trade-offs between automated and manual review, see AI moderation vs human moderation. The pricing page has current plans, Enterprise options, and overage rates.
What does the EU DSA expect from marketplaces?
The EU Digital Services Act applies to services offered to users in the EU, wherever the provider is based. Classifieds and peer-to-peer marketplaces host user content, so Article 16 requires a notice-and-action mechanism: anyone must be able to report content they consider illegal, and you must process those notices in a timely, diligent, non-arbitrary, and objective way. When you remove or restrict a listing, Article 17 requires a statement of reasons to the seller, which includes whether the content was detected or the decision taken by automated means.
Online platforms also need an internal complaint-handling system (Article 20), and decisions on those complaints cannot be taken solely by automated means. Marketplaces that connect consumers with traders have trader-traceability duties (Article 30). Very large online platforms, those with 45 million or more average monthly active users in the EU, must also assess and mitigate systemic risks (Articles 34 and 35). The DSA does not require automated detection, and Article 8 rules out a general monitoring obligation.
Automated screening still helps in three ways. It cuts the amount of illegal imagery that reaches buyers, which shrinks your notice queue. If you store the requestId, the labels, and your decision for each photo, your team has the evidence it needs to act on a notice and write the statement of reasons. And consistent rules make decisions reproducible. Pixicular supplies the detection signals; the notice form, statements of reasons, complaint handling, and reviewer tooling are yours to build around it. For more, see what is image content moderation and image moderation compliance under the DSA and UK OSA.
This is general information, not legal advice. Confirm your obligations and how the DSA applies to your platform with qualified legal counsel.
When should a listing be rejected, reviewed, or approved?
- Reject when a moderation label in a category your policy never allows, such as explicit nudity, comes back at high confidence. These are the cases where showing the photo costs more than a rare false positive.
- Review when any other moderation label comes back, when an object label is one your policy restricts, when
detect-textfinds contact details, or when the labels do not match the declared category. Show the reviewer the labels and confidences next to the photo so decisions are faster and more consistent. - Approve when
detect-moderationreturns no labels and the object labels match the item the seller declared. The listing publishes with no person in the loop. - The same decision model applies beyond listing photos — see the image content moderation overview for the broader picture.
Frequently asked questions
How do you screen images on a marketplace automatically?
Send every seller-uploaded listing photo to POST https://api.pixicular.com/v1/detect with services=detect-moderation,detect-labels before the listing publishes. detect-moderation returns labels for unsafe content such as nudity, violence, weapons, and drugs, or an empty list when it finds none, and detect-labels returns the objects in the photo. Your backend compares both against thresholds you own and approves, reviews, or rejects the listing, so a person only looks at the photos your rules flag.
Which Pixicular services should a marketplace use for listing photo moderation?
Use detect-moderation for unsafe imagery (explicit and suggestive content, violence and weapons, drugs, tobacco and alcohol, hate symbols) and detect-labels to check that the photo shows the item being sold. Add detect-text if sellers put phone numbers or links in their photos. All of them run in one POST /v1/detect request; each service is billed as one operation, so moderation plus labels costs two operations per photo.
Does automated image moderation help with EU DSA obligations for marketplaces?
It can support them, but it is not compliance on its own. The Digital Services Act requires hosting services to run a notice-and-action mechanism (Article 16) and to send a statement of reasons when they remove or restrict content (Article 17), including whether automated means were used. Online platforms also need an internal complaint-handling system (Article 20). The DSA does not require automated detection; screening reduces what reaches buyers, and stored results give your team evidence for notices and statements of reasons. This is general information, not legal advice.
How much does an image moderation API cost for a marketplace?
Each service run on one image is one operation. Running detect-moderation and detect-labels on 100,000 listing photos a month is 200,000 operations, which is the monthly allowance of the Business plan ($299 a month); the free Developer plan includes 1,000 operations for testing. Requests that fail are not charged. You still need reviewers for the photos your thresholds send to review. See the pricing page for current plans and overage rates.
Can image moderation detect counterfeit or prohibited goods on a marketplace?
Not on its own. Pixicular does not identify brands or judge whether an item is genuine or legal to sell. detect-labels tells you what object a photo shows, so you can flag a photo that does not match the declared category or shows an object your policy restricts, and detect-text reads printed text such as a brand name or contact details. Combine those signals with the listing text, price, and seller history, and send suspected counterfeits to a human reviewer.
Add image moderation to your marketplace listing pipeline
The fastest way to evaluate Pixicular for marketplace photo 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.