Violence detection

A violence detection API for images.

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.

What it finds

Violence, and what often comes with it

The image flags every account has. Ask for one, or for all of them in the same call.

  • Violence

    Images that show violence, judged on the whole picture.

  • Nudity and sexual content.

  • Images that spread hate against a group of people.

  • Scam

    Images made to trick people, such as a fake giveaway or a fake payment screen, and contact details written on a picture, such as a phone number or a messaging handle.

In code

Check an upload for violence

Request
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"]
  }'
Response
{
  "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.

How it works
  1. Check before it is posted

    Send the image’s address when it is uploaded, and show it only once the answer is clean.

  2. Hold, do not guess

    Keep a flagged image out of sight until a person has looked, or reject it outright above a confidence you choose.

  3. Check the backlog

    Send images that are already online with "async": true. They are checked at half the price, and the results come by webhook. Up to 50 checks can wait at once per account; send more as results come in.

Where it helps
Questions

Frequently asked

Which images can I send?

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.

Do you keep the images?

No. An image is downloaded, checked and not kept.

What does a check cost?

An image is 1 credit when the answer comes by webhook and 2 when it comes at once (the default). Errors and partial results cost nothing.

Can I check for violence and nudity in one call?

Yes. Name violence and sexual, which covers nudity, in flags, or leave flags out to check every image flag of your account. One image is one check.

Is there a free trial?

Yes. The plans, and the free trial, are on the pricing page.