NSFW Classification
FREEMIUM
By nanonets
Updated 6 months ago

NSFW Classification API Documentation

Classify an image into safe-for-work(sfw -- adult content free) or not-safe-for-work(nsfw -- porn, gore, nudity).

Learn more about this API
POSTNSFW Inference
POSTNSFW Inference

Returns a probability between 0 - 1 for both nsfw and the sfw labels

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
AuthorizationSTRING
REQUIREDBasic Auth header with Nanonets API Key generated after logging in at app.nanonets as username and password as empty
Required Parameters
fileBINARY
REQUIREDfile stream of the file(s) that need to be inferred
model_idSTRING
REQUIRED
Code Snippet
Install SDK
Response ExampleSchema

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication