---
title: Classify NSFW Image API
slug: classify-nsfw-image
url: https://apyhub.com/dosvak/service/classify-nsfw-image
provider: Dosvak LLC
categories: [Artificial Intelligence, Image Processing, "Security & Privacy"]
tags: [nsfw-detection, image-classification, content-moderation, image-safety, adult-content]
auth: api_key
---

# Classify NSFW Image API

Classify an uploaded image as safe or NSFW and get a confidence score plus per-class scores. Useful for moderation and upload screening.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `` | What it does Uploads an image file and returns an NSFW classification result for that image, includ… | 10 |

## About

## What it does
NSFW Image Classifier checks an uploaded image and returns whether it is safe or NSFW. Send a binary image file in the request body, up to 20 MB, and get back a structured classification response.

The response includes a boolean `nsfw` flag, a human-readable `label`, a confidence `score` between 0 and 1, and a `scores` object with per-class probabilities. That makes it useful when you need both a simple moderation decision and the underlying confidence values for thresholding or logging.

Use NSFW Image Classifier to screen user-uploaded avatars, profile pictures, marketplace listings, or community content before it is published. It fits directly into moderation pipelines where you want to block explicit imagery, route uncertain cases for review, or store a score for later audit.

Because the input and output are minimal, it is easy to place this check at the edge of an upload flow or behind an internal moderation queue without reshaping your existing file handling.

## Usage

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/dosvak/service/classify-nsfw-image
