Docs

System Overview

NSFWGuard provides a high-performance, low-latency API designed to detect and filter sensitive content in real-time. Whether you're building a social platform, a marketplace, or an enterprise internal tool, our neural engine ensures safety without compromising user experience.

Authentication

All API requests must include your organization's unique API key in the X-API-Key header. You can manage and rotate keys in your Security Dashboard.

curl -X POST https://api.nsfw-protect.com/classify \  -H "X-API-Key: YOUR_API_KEY" \  -F "[email protected]"

Response Schema

The API responds with the classification directly: a result array scoring each label between 0 and 1. A score closer to 1.0 on the nsfw label indicates a high probability of sensitive content.

Pro Tip

Images are automatically resized to 224×224 before analysis, so there's no need to preprocess them on your side.

Error Handling

In the event of an error, the API will return standard HTTP status codes along with a JSON response containing an error key and a message describing the issue in detail.