NSFW Image Detector & Content Moderation (No API Key)
Pricing
from $2.00 / 1,000 image classifieds
NSFW Image Detector & Content Moderation (No API Key)
Classify images as safe, suggestive or explicit with a self-hosted AI model. Per-class scores (porn, sexy, hentai, drawings, neutral), threshold-based verdicts and fast batch processing of image URLs. No external moderation API.
Pricing
from $2.00 / 1,000 image classifieds
Rating
0.0
(0)
Developer
Camp8 fr0
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
2 days ago
Last modified
Categories
Features
Share
NSFW Image Detector: Content Moderation for Images (Safe / Suggestive / Explicit, No API Key)
Check images for nudity and adult content at scale. The Actor classifies every image URL as safe, suggestive or explicit, with per-class scores (porn, sexy, hentai, drawings, neutral) and a configurable threshold-based verdict. The AI model runs inside the Actor on CPU, so no image is ever sent to a third-party moderation API and you do not need any API key.
What does NSFW Image Detector do?
For each image URL, the Actor:
- downloads the image (several in parallel) and decodes it (JPEG, PNG, WebP, AVIF, GIF, TIFF),
- runs a Vision Transformer (ViT) NSFW classifier fine-tuned on 5 classes:
neutral,drawings,sexy,porn,hentai, - combines them into three easy scores: safe (neutral + drawings), suggestive (sexy) and explicit (porn + hentai),
- applies your thresholds and returns a verdict:
safe,suggestiveorexplicit.
Key features
- Three-level verdict: safe, suggestive (swimwear, lingerie, partial nudity) and explicit (pornographic or sexual content)
- Raw class scores for all 5 classes, including hentai / drawings for anime and illustrated content
- Adjustable thresholds for stricter or more relaxed moderation
- Fast batch processing: parallel downloads while the model classifies; around 0.1-0.5 s per image depending on memory
- Self-hosted model: no OpenAI, Google Vision, AWS Rekognition or Sightengine account needed
- HTTP API (Standby mode) for real-time moderation of uploads
- Pay per image; failed images are free
Use cases
- User-generated content moderation: screen profile pictures, listings, comments and uploads
- Marketplaces and classifieds: block adult images in product listings
- Ad and brand safety: check creatives and landing page images before publishing
- Dating and social apps: flag explicit photos for human review
- Dataset cleaning: remove NSFW images from scraped datasets before training AI models
- Parental control and education platforms: filter image feeds
How to use NSFW Image Detector
In Apify Console
- Paste image links into Image URLs (one per line).
- Optionally change the Explicit and Suggestive thresholds.
- Click Start. Each row shows the image, its verdict and scores.
Via the Apify API
curl -X POST "https://api.apify.com/v2/acts/freecamp008~nsfw-image-detector/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \-H "Content-Type: application/json" \-d '{"imageUrls": ["https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/football-match.jpg"]}'
Standby mode (instant HTTP endpoint)
Standby keeps the model loaded, ideal for checking uploads in real time. Send the input as GET query parameters or as a POST JSON body. The response is { "count": n, "items": [...] }.
# GET: arrays are comma-separatedcurl "https://freecamp008--nsfw-image-detector.apify.actor/?token=YOUR_APIFY_TOKEN&imageUrls=https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/anime.png"# POSTcurl -X POST "https://freecamp008--nsfw-image-detector.apify.actor/?token=YOUR_APIFY_TOKEN" \-H "Content-Type: application/json" \-d '{"imageUrls": ["https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/football-match.jpg"], "explicitThreshold": 0.3}'
AI agents can pay per call: the Actor uses pay-per-event pricing and only default storages, so AI agents can call it and pay per request with x402 through Apify.
Input example
{"imageUrls": ["https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/football-match.jpg","https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/anime.png"],"explicitThreshold": 0.5,"suggestiveThreshold": 0.5,"includeClassScores": true,"downloadConcurrency": 8}
| Field | Description |
|---|---|
imageUrls | Image links. One result per image. |
explicitThreshold | Explicit score (porn + hentai) at or above this makes the verdict explicit (default 0.5). |
suggestiveThreshold | NSFW score (sexy + porn + hentai) at or above this makes a non-explicit image suggestive (default 0.5). |
includeClassScores | Include the 5 raw class probabilities (default on). |
downloadConcurrency | Parallel downloads (default 8). |
Output example
{"imageUrl": "https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/anime.png","verdict": "safe","isSafe": true,"nsfwScore": 0.0001,"explicitScore": 0.0001,"suggestiveScore": 0,"safeScore": 0.9999,"isDrawing": true,"topClass": "drawings","classScores": { "drawings": 0.9998, "hentai": 0.0001, "neutral": 0.0001, "porn": 0, "sexy": 0 },"width": 640,"height": 480,"format": "png","processingMs": 118}
verdict:safe,suggestiveorexplicit.isSafeis true only forsafe.nsfwScore= suggestive + explicit;safeScore= neutral + drawings. All scores are 0-1.isDrawing: the image is an illustration, cartoon or anime (drawings + hentai >= 0.5).- Failed images produce
{ "imageUrl": "...", "error": "...", "isError": true }and are not charged.
Pricing
This Actor uses pay-per-event pricing:
| Event | Price | Per 1,000 |
|---|---|---|
image-classified: one image checked, with verdict and scores | $0.002 | $2.00 |
Apify platform usage (compute, storage) is billed separately according to your plan. Use Maximum cost per run to cap spending; the Actor stops cleanly when the limit is reached.
FAQ
How accurate is it?
On our test set of everyday photos (people, sports, cities, animals, classical paintings, anime) every image was classified safe, and swimwear / topless beach photos were classified suggestive with scores near 1.0. Like every NSFW classifier it makes mistakes on edge cases: medical or breastfeeding images, art with nudity, skin-colored objects, very small or low-resolution images. For high-stakes moderation, send suggestive and borderline results (scores between 0.2 and 0.8) to human review.
What counts as suggestive vs. explicit?
suggestive comes from the model's sexy class: revealing clothing, swimwear, lingerie, provocative poses, partial nudity. explicit comes from the porn and hentai classes: sexual acts, exposed genitals, explicit drawings. Classical nude paintings are usually classified as drawings (safe).
Does it detect violence, gore, drugs or weapons? No. It is trained only for sexual content. Use an object detector or a dedicated model for other categories.
What are the limits? Images up to 30 MB; animated GIFs use the first frame; videos are not supported. The model looks at a 224 x 224 version of the whole image, so a small explicit detail in a very large image may be missed.
Are my images private? Yes. Images are downloaded and classified inside your Apify run and are not sent to any external service or stored by the Actor.
Is it legal to use? Yes, content moderation is a standard and legitimate use. You are responsible for having the right to process the images you submit and for complying with laws on handling illegal content (e.g. reporting obligations). The Actor does not detect CSAM specifically and must not be relied on as a CSAM filter.
Which model and license are used? LukeJacob2023/nsfw-image-detector, a ViT-base classifier released under Apache-2.0 (commercial use allowed), run in fp32 via the ONNX export onnx-community/nsfw-image-detector-ONNX and transformers.js. The model is bundled in the Actor image.