Nudity Detection

FREE
By macgyverapi
Updated 4 months ago
6.4/10
Popularity Score
4293ms
Latency
69%
Success Rate

Nudity Detection API Documentation

Add a sophisticated nudity detection feature to your application with this algorithm.

This program evaluates an image and determines the probability that it contains nudity. Since nudity is a dynamic label the algorithm returns a percentage value true or false. Since applications may have different interpretation and levels of what they would consider nude you can simply set a threshold on your application before flagging the asset as containing nudity.

This model was built using Tensor Flow on a training data set and leverages machine learning.

This program works on grayscale images.

View API Details
POSTNudity Detection
POSTNudity Detection

This endpoint takes a reference to an image and returns a true or false probability estimation on wether or not the image contains nudity. This model will work on full color as well as gray scale images.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
PayloadJSON_STRING
REQUIREDProvide a reference to an image.
Code Snippet
unirest.post("https://macgyverapi-nudity-detection-v1.p.rapidapi.com/")
.header("X-RapidAPI-Host", "macgyverapi-nudity-detection-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send({"key":"free","id":"8E5q5T2p","data":{"image":"https://askmacgyver.com/images/nude.jpg"}})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://macgyverapi-nudity-detection-v1.p.rapidapi.com/
Request Method: POST
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://macgyverapi-nudity-detection-v1.p.rapidapi.com/")
.header("X-RapidAPI-Host", "macgyverapi-nudity-detection-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send({"key":"free","id":"8E5q5T2p","data":{"image":"https://askmacgyver.com/images/nude.jpg"}})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication