Skip to content

API reference

NSFW Detection

NSFW Detection

Image moderation with six independent categories: porn, hentai, weapons, drugs, gore, and identity documents. POST /moderate accepts an uploaded image or JSON {"url":"https://example.com/image.jpg"}. GET /moderate/file accepts a public direct image URL. JPEG, PNG and WebP only,... Full description

Image moderation with six independent categories: porn, hentai, weapons, drugs, gore, and identity documents. POST /moderate accepts an uploaded image or JSON {"url":"https://example.com/image.jpg"}. GET /moderate/file accepts a public direct image URL. JPEG, PNG and WebP only, up to 5 MiB and 4,194,304 pixels. Each category returns score, flagged, review_required, method and calibrated. Scores are model outputs, not calibrated probabilities. Weapons, drugs, gore and identity documents use experimental CLIP zero-shot classification; ambiguous results require review and results may be incorrect. Identity details are not extracted. The existing /analyze and /nsfw/file endpoints retain their original NSFW-only response. Inference/model failures return 503; failure is never reported as a safe image. Images are processed locally and are not retained by the inference engine.

Category

Visual Recognition

Avg response time

616ms

Subscriptions

0

Popularity

0.2%

Test Percentage

13.3%

Quick start

Make your first request

Integration guide
  1. Choose an endpoint

    Find its method, parameters and response format.

    Open endpoint docs
  2. Set up access

    If an endpoint requires a key, choose a plan and manage your key in the dashboard.

    View plans
  3. Send a request

    Copy a code example or use the request console when available.

    Endpoints

Subscription Plans

Pro

$8.00 /month
  • 10,000 requests/month
Login to Subscribe

Ultra

$60.00 /month
  • 100,000 requests/month
Login to Subscribe
No reviews yet. Be the first to review this API!