Endpoints

4

Ungrouped Endpoints
4

What is the Porn Detection API?

Porn Detection API allows you to upload an image or a video for scanning. It returns whether the content is safe for work (SFW) or not safe for work (NSFW), along with a confidence score.

Porn Detection API is available on the JoJ API marketplace. Subscribe with a single JoJ API key, call it through one gateway, and pay from one wallet — no separate account or contract with the provider.

Porn Detection API endpoints

  • POST/predict_image_upload

    predict_image_upload

    This endpoint allows you to upload images directly to the API for instant and accurate analysis. The system processes the image and returns the probability score of containing pornographic content (NSFW Score), comparing it with the threshold you define. If the score exceeds the threshold, the image is classified as unsafe; if it is below, the image is considered safe.

  • GET/predict_video_url

    predict_video_url

    This endpoint accepts a direct video link (HTTP/HTTPS) and scans it instantly to classify the content. The API returns: Whether the video is pornographic or safe. The reason for the decision (e.g., strong_peak, long_streak, high_ratio). Detailed statistics: highest probability, average probability, total duration above the threshold, and number of analyzed samples.

  • GET/predict_image_url

    predict_image_url

    Analyze an image from a direct URL and return whether it’s SFW (Safe For Work) or NSFW (Not Safe For Work), with a confidence score.

  • GET/request_video_upload_url

    request_video_upload_url

    This endpoint provides you with a dedicated upload URL for your video. The URL is designed for speed and efficiency, allowing you to upload large video files seamlessly. It can be used once only and remains valid for 24 hours from the time it is issued. To upload, send your video in the file field of the request body (form-data). Once the upload is complete, the API will automatically analyze the video and return the classification result with probability scores.

Frequently asked questions about Porn Detection API

What types of media does the Porn Detection API support and what is the file size limit?

The API supports both image and video files, with a maximum file size limit of 200 MB for videos.

How does the API return the classification results?

The API analyzes the media and returns a confidence score indicating whether the content is Safe for Work (SFW) or Not Safe for Work (NSFW).