About this endpoint
What it does
Uploads an image file and returns an NSFW classification result for that image, including a boolean flag, a label, a confidence score, and per-class scores.
Request Body
| Parameter | Type | Description |
|---|---|---|
| file | Binary | Image file upload in binary format. Maximum size: 20 MB. |
Response
Returns a JSON object with four top-level fields: nsfw as a boolean, label as a string, score as a number between 0 and 1, and scores as an object whose values are numbers.
| Parameter | Type | Description |
|---|---|---|
| nsfw | Boolean | Boolean classification result. |
| label | String | Classification label returned by the service. |
| score | Number | Confidence score between 0 and 1. |
| scores | Object | Object containing score values keyed by class name. |



