NSFW Detection
studio-nsfwSample frames across a video, classify each one, and return the timestamps of NSFW content with a count and has_nsfw flag.
Submit a video and the service samples frames at your target_fps (default 2.0), classifies each sampled frame, and returns the timestamps of any NSFW frames. The result includes video_meta (duration), sampling stats (target_fps, sampled_frames), and the nsfw results (timestamps, count, has_nsfw).
/v1/proxy/studio-analyze-nsfwNSFW video scan (async)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
videoUrl | string | required | URL of the video to scan. |
target_fps | number | optional | Frames per second to sample (default: 2.0). |
curl -X POST https://api.cn8.io/v1/proxy/studio-analyze-nsfw \
-H "X-API-Key: <cn8_api_key>" \
-H "Content-Type: application/json" \
-d '{"videoUrl":"https://example.com/file"}'{
"status": "success",
"video_meta": { "duration": 124.5 },
"sampling": { "target_fps": 2.0, "sampled_frames": 249 },
"nsfw": {
"timestamps": [{ "start": 45.0, "end": 45.0 }],
"count": 1,
"has_nsfw": true
}
}
Submit the job, poll until it's completed, then read the result. Billed per video (4 credits).