AI-powered image content safety detector using NSFWJS to classify potentially inappropriate content with fallback analysis, supporting GIF/Animated WebP/APNG and JPEG/PNG/WEBP.
json· JSON result
Quick start
Call this tool from your code in three languages.
cURL
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/nsfw-image-detector' \
-F 'file=@/path/to/imageFile.ext'# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/en/api/tools/nsfw-image-detector' \
-F 'imageFile=/path/to/file.ext' \
-F 'sensitivity=0.5' \
-F 'analysisMode=auto'
Send a POST request with your inputs as JSON. File parameters require a separate upload first.
Endpoint
HTTP
POST https://api.elysiatools.com/en/api/tools/nsfw-image-detector
Parameters
Name
Type
Required
Description
imageFile
fileupload required
Yes
GIF files will analyze the first frame only. Supports transparency.
sensitivity
range
No
Lower values are more strict, higher values are more permissive
analysisMode
select
No
—
File-type parameters must be uploaded first via POST /upload/nsfw-image-detector, then the returned filePath is passed to the corresponding file field.