Send the address of an image. Detectivision answers whether it shows violence, and how sure it is, along with any other image flags you ask for: sexual content, hate or scams. The image is not stored.
The image flags every account has. Ask for one, or for all of them in the same call.
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/upload.png",
"mode": "detect",
"flags": ["violence"]
}'{
"id": 4120,
"type": "image_moderation",
"mode": "detect",
"status": "completed",
"flagged": true,
"flags": [{ "flag": "violence", "confidence": 0.87 }],
"checked": ["violence"],
"unchecked": [],
"tookMs": 1240,
"usage": { "charged": 2, "remaining": 9998 }
}An image costs the same whichever flags you ask for. Naming only violence makes the answer faster.
Send the image’s address when it is uploaded, and show it only once the answer is clean.
Keep a flagged image out of sight until a person has looked, or reject it outright above a confidence you choose.
Send images that are already online with "async": true. They are checked at half the price, and the results come by webhook.
Avatars and images in posts.
Listing photos, before they go live.
Uploaded images and emblems.
JPEG, PNG, WebP, BMP and GIF, up to 10 MB, at an http or https address anyone can open. Signed links work while they are valid.
No. An image is downloaded, checked and not kept.
An image is 1 credit in detect mode when the answer comes by webhook, and 2 when it comes at once, the default. Errors and partial results cost nothing.
Yes. Name both in flags, or leave flags out to check every image flag of your account. One image is one check.
Yes. The plans, and the free trial, are on the pricing page.