Skip to main content
POST
/
check_nsfw_cp
NSFW prompt check
curl --request POST \
  --url https://modelslab.com/api/check_nsfw_cp \
  --header 'Content-Type: application/json' \
  --data '{
  "key": "<string>",
  "prompt": "<string>"
}'
{
  "status": "success",
  "is_cp": true,
  "is_nsfw": true,
  "original_prompt": "<string>",
  "filtered_prompt": "<string>"
}

Request

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

Body

json
{  
    "key": "your_api_key",  
    "prompt": "ultra realistic close up portrait ((beautiful pale cyberpunk female with heavy black eyeliner, nude)) , blue eyes, shaved side haircut, hyper detail, cinematic lighting, magic neon, dark red city, Canon EOS R3, nikon, f/1.4, ISO 200, 1/160s, 8K, RAW, unedited, symmetrical balance, in-frame, 8K"
}

Body

application/json
key
string
required

Your enterprise API Key used for request authorization

prompt
string
required

The prompt you want to check

Response

NSFW prompt check response

status
enum<string>
Available options:
success
is_cp
boolean

Whether the prompt contains child pornography content

is_nsfw
boolean

Whether the prompt contains NSFW content

original_prompt
string

The original prompt that was checked

filtered_prompt
string

The filtered version of the prompt