POST
/
nsfw_image_check
NSFW image check
curl --request POST \
  --url https://modelslab.com/api/v3/nsfw_image_check \
  --header 'Content-Type: application/json' \
  --data '{
  "key": "<string>",
  "init_image": "<string>",
  "threshold": 0.5
}'
{
  "images": "<string>",
  "has_nsfw_concept": [
    true
  ]
}

Request

Send a POST request to below endpoint to check if an image is nsfw or not.
curl
--request POST 'https://modelslab.com/api/v3/nsfw_image_check' \

Body

json
{  
    "key": "your_api_key",  
    "init_image": "http://your-image-url.com",
    "threshold": 0.5
}
threshold is a float between 0 and 1 (default: 0.5).

Body

application/json
key
string
required

Your enterprise API Key used for request authorization

init_image
string<uri>
required

The image you want to check

threshold
number
default:0.5

Floating-point threshold score for NSFW detection (image or video)

Required range: 0 <= x <= 1

Response

NSFW image check response

images
string<uri>

The image URL that was checked

has_nsfw_concept
boolean[]

Array indicating if the image has NSFW content