# NSFW Image Detection

NSFW image detection for user uploads: a 0 to 1 score for nudity and sexual (adult) content, and a flag at the threshold you choose.

Send an image by link or as base64 and get a score from 0 to 1 for sexual content, with a flag at 0.5 or at the threshold you choose. It checks for sexual content only: not violence, not hate symbols, not text in the image. Use it to hold uploads for review, not as the only judge. The model runs on our own hardware in the EU; images are checked in memory and never stored.

- Images are checked in memory on our own hardware in the EU and never stored.
- Built for content moderation of user uploads: a score from 0 to 1 and your own threshold, so you decide how strict to be.
- A plain statement of scope: sexual content only.

## Calls

### `POST https://readymadeapi.com/v1/images/nsfw-check`

Check one image for sexual content. Returns a score from 0 to 1 and whether it passes your threshold.

- Price: $0.0004 per image
- MCP tool: `nsfw_check_check`
- Answers in the same call.

Request:

```json
{
  "image_url": "https://readymadeapi.com/samples/product.jpg"
}
```

Answer:

```json
{
  "score": 0.0005,
  "flagged": false,
  "threshold": 0.5,
  "checks": "Sexual content only: violence, hate symbols and text in the image are not checked."
}
```

## Limits

- One image per call: PNG, JPEG or WebP; by link, up to 15 MB.
- Threshold from 0.05 to 0.95; 0.5 if left out.

## Questions

**Which images?**

PNG, JPEG or WebP, by link (up to 15 MB) or as base64.

**Does it catch violence, hate symbols or text in images?**

No. Sexual (adult) content only.

**Can it decide alone?**

Use it to hold uploads for review, not as the only judge. It is a model and can be wrong both ways.

## Using it

- Send `Authorization: Bearer <key>` and a JSON body. Keys and credit: https://readymadeapi.com/account
- Every answer carries `X-Request-Id`, `X-Units` and `X-Charged-Usd`.
- An error is a JSON problem with a `title` to act on and a `detail` in plain words; nothing is charged for it.
- Full schema: https://readymadeapi.com/openapi.json
