# Operations: images | Chersus

Documentation ▾
# Operations: images

Every detect and extract for images: nudity, and what a photo shows and how good it is.

Last updated 2026-11-16·Also as Markdown:[this page](/en/docs/operations/images.md)[llms.txt](/llms.txt)

Every operation has a full name, `kind.subject.action`, and goes in `steps` by that name, such as `detect.pii.entities`. Open a row for its request, its response, its options, the languages it covers and its published figure where there is one, and read [workflows](/en/docs/workflows/) to see how to combine them, across formats too.

Image operations read a JPEG, PNG or WebP. Images over 12 megapixels are scaled down first, at no extra cost.

## Detect 1

A detect reads the input and returns a verdict and a score. It never changes the input, and a detect with block can end the workflow.

```
curl -X POST https://api.chersus.com/v1/workflow \
  -H "Authorization: Bearer chrs_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input": {
      "url": "https://files.example.com/uploads/profile-photo.jpg"
    },
    "steps": [
      {
        "op": "detect.image.nudity",
        "block": true
      }
    ]
  }'
```

```
const res = await fetch("https://api.chersus.com/v1/workflow", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.CHERSUS_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "input": {
      "url": "https://files.example.com/uploads/profile-photo.jpg"
    },
    "steps": [
      {
        "op": "detect.image.nudity",
        "block": true
      }
    ]
  }),
});

const data = await res.json();
```

```
import os

import requests

res = requests.post(
    "https://api.chersus.com/v1/workflow",
    headers={"Authorization": f"Bearer {os.environ['CHERSUS_KEY']}"},
    json={
      "input": {
        "url": "https://files.example.com/uploads/profile-photo.jpg"
      },
      "steps": [
        {
          "op": "detect.image.nudity",
          "block": True
        }
      ]
    },
)

data = res.json()
```
200 · 2 credits
```
{
  "trace_id": "chs_01J9X4Q7K2M8N3P5R6T7V8W9X0",
  "status": "blocked",
  "steps": [
    {
      "op": "detect.image.nudity",
      "units": 1,
      "per": "image",
      "credits": 2,
      "verdict": "flag",
      "score": 0.94,
      "labels": [
        "nudity"
      ],
      "blocked": true
    }
  ],
  "billed": {
    "credits": 2
  },
  "audit": {
    "region": "eu-nl-1",
    "retention": "none"
  }
}
```

Run `detect.image.nudity` on an upload before anyone else sees it: a profile picture, a listing photo, an attachment. It looks for exposed nudity and sexual activity and returns a verdict, a score and the labels that fired.

The model is trained on adult content only. A flag is a strong filter, not a legal finding, so send borderline scores to a person before you block on them, or set `min_score` for your traffic. Images over 12 megapixels are scaled down first, at no extra cost.
KINDdetectMODEL[Moderator](/en/models/images/#moderator) · Desert Ant LabsLANGUAGESAny languageREGION26 EU citiesBENCHMARK87.8% recall and 93.7% specificity at a 0.5 threshold, on the model maker's held-out setCONDITIONdetect.image.nudity:flagged
## Extract 1

An extract reads the input and returns data: a code, tags, time ranges. It never changes the input.

```
curl -X POST https://api.chersus.com/v1/workflow \
  -H "Authorization: Bearer chrs_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input": {
      "url": "https://files.example.com/catalogue/lamp-04.jpg"
    },
    "steps": [
      "extract.image.tags"
    ]
  }'
```

```
const res = await fetch("https://api.chersus.com/v1/workflow", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.CHERSUS_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "input": {
      "url": "https://files.example.com/catalogue/lamp-04.jpg"
    },
    "steps": [
      "extract.image.tags"
    ]
  }),
});

const data = await res.json();
```

```
import os

import requests

res = requests.post(
    "https://api.chersus.com/v1/workflow",
    headers={"Authorization": f"Bearer {os.environ['CHERSUS_KEY']}"},
    json={
      "input": {
        "url": "https://files.example.com/catalogue/lamp-04.jpg"
      },
      "steps": [
        "extract.image.tags"
      ]
    },
)

data = res.json()
```
200 · 2 credits
```
{
  "trace_id": "chs_01J9X4Q7K2M8N3P5R6T7V8W9X0",
  "status": "done",
  "steps": [
    {
      "op": "extract.image.tags",
      "units": 1,
      "per": "image",
      "credits": 2,
      "value": {
        "tags": [
          {
            "tag": "product",
            "confidence": 0.93
          },
          {
            "tag": "indoor",
            "confidence": 0.88
          },
          {
            "tag": "sharp",
            "confidence": 0.86
          }
        ],
        "scores": {
          "aesthetic": 0.81,
          "keeper": 0.77
        }
      }
    }
  ],
  "billed": {
    "credits": 2
  },
  "audit": {
    "region": "eu-nl-1",
    "retention": "none"
  }
}
```

`extract.image.tags` reads a photo and returns tags with a confidence each: the scene, the kind of picture (a screenshot, a receipt, a document), sharpness, and whether people or pets are in it. It also scores the photo, so you can rank a set and pick the best one. An aesthetic score of 0.81 means the photo looks better than 81% of photos.

A confidence of 0.5 is a good cutoff and 0.9 is strict. It describes faces but never says who someone is. Scores for illustrations and heavily edited images are less reliable, because it learned from photos. This operation is in early access.
KINDextractMODEL[Eye](/en/models/images/#eye) · Desert Ant LabsLANGUAGESAny languageREGION26 EU citiesBENCHMARK0.629 rank correlation with human aesthetic ratings on KonIQ-10k