Image moderation for nudity, violence, hate and scams.
Send the address of an image. Detectivision checks it for your flags and answers with each flag the image raised and how sure it is. Every flag judges the whole image. The image itself is not stored.
From nudity to scams
Your flags depend on your plan; GET /api/v1/flags lists them. The usual ones:
Nudity and sexual content, under one flag: sexual.
Violence shown in the picture, such as fights, blood or injuries.
Hate symbols, and hateful text or drawings aimed at a group of people.
Scam
Pictures made to trick people, such as a fake giveaway or a fake payment screen, and contact details written on the picture: a phone number, a messaging handle, an e-mail address or an IBAN.
Send its address
An http or https URL anyone can open; signed links work while they are valid. JPEG, PNG, WebP, BMP or GIF, up to 10 MB.
It is checked and forgotten
The image is downloaded, checked for your flags and not kept. Naming fewer flags makes the answer faster.
Act on the flags
Each flag raised comes with its confidence, from 0 to 1. Reject the upload, hold it for a moderator, or blur it in your own app.
One request, one answer
curl https://api.detectivision.ai/api/v1/moderation \
-H "Api-Key: $DETECTIVISION_API_KEY" \
-H "Content-Type: application/json" \
-d '{"type": "image_moderation", "input": "https://example.com/photo.jpg", "mode": "detect"}'{
"id": 1042,
"type": "image_moderation",
"mode": "detect",
"status": "completed",
"flagged": true,
"flags": [{ "flag": "sexual", "confidence": 0.91 }],
"checked": ["hate", "scam", "sexual", "violence"],
"unchecked": [],
"tookMs": 1180,
"usage": { "charged": 2, "remaining": 9998 }
}The answer says which flags the image raised and how sure the check is, not where: no boxes, no blurred copy.
Frequently asked
Which images can I send?
JPEG, PNG, WebP, BMP and GIF, up to 10 MB, 40 megapixels and 10,000 pixels on a side, at an http or https address. The download must finish within 10 seconds.
Do you keep my images?
No. The image is downloaded, checked and not stored.
How much does a check cost?
1 credit when the answer comes later by webhook. An answer given at once, the default, costs twice that. Errors cost nothing.
Can I check only some flags?
Yes. Name them in flags. The models that feed none of them are not run, so the answer comes faster.
Does a phone number on a photo raise scam?
Yes. Contact details written on an image, such as a phone number, a messaging handle, an e-mail address or an IBAN, raise scam: they take a deal off the platform. If your platform allows contact details on photos, treat scam as a reason to look rather than to remove.
Does the answer include boxes or a blurred copy?
It shows which flags the image raised and how sure the check is. Every flag judges the whole image, so the answer holds no boxes and no censored copy, whatever mode you ask for, and every mode costs the same. Blur or hide a flagged image in your own app.