Failed to load versions. Head to the versions page to see all versions for this model.
You're looking at a specific version of this model. Jump to the model overview.
Input video
Safety tolerance, 1 is most strict and 6 is most permissive
Default: 2
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run lucataco/nsfw_video_detection using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/nsfw_video_detection:ef94e6bbf329eebc092601a647996431056a58f479d0f4129ea6e8171374d158", { input: { video: "https://replicate.delivery/pbxt/MeYrKketDRwUdUPYlHEsA0UlcD4eOlFegxJwvJzFuhL1en1O/falcon2.mp4", safety_tolerance: 2 } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
import replicate
output = replicate.run( "lucataco/nsfw_video_detection:ef94e6bbf329eebc092601a647996431056a58f479d0f4129ea6e8171374d158", input={ "video": "https://replicate.delivery/pbxt/MeYrKketDRwUdUPYlHEsA0UlcD4eOlFegxJwvJzFuhL1en1O/falcon2.mp4", "safety_tolerance": 2 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "lucataco/nsfw_video_detection:ef94e6bbf329eebc092601a647996431056a58f479d0f4129ea6e8171374d158", "input": { "video": "https://replicate.delivery/pbxt/MeYrKketDRwUdUPYlHEsA0UlcD4eOlFegxJwvJzFuhL1en1O/falcon2.mp4", "safety_tolerance": 2 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{ "completed_at": "2025-03-13T16:53:44.655140Z", "created_at": "2025-03-13T16:53:43.990000Z", "data_removed": false, "error": null, "id": "hb07340spsrgc0cnj1ptqr186m", "input": { "video": "https://replicate.delivery/pbxt/MeYrKketDRwUdUPYlHEsA0UlcD4eOlFegxJwvJzFuhL1en1O/falcon2.mp4", "safety_tolerance": 2 }, "logs": null, "metrics": { "predict_time": 0.650287161, "total_time": 0.66514 }, "output": "normal", "started_at": "2025-03-13T16:53:44.004852Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/hb07340spsrgc0cnj1ptqr186m", "cancel": "https://api.replicate.com/v1/predictions/hb07340spsrgc0cnj1ptqr186m/cancel" }, "version": "ef94e6bbf329eebc092601a647996431056a58f479d0f4129ea6e8171374d158" }
Choose a file from your machine
Hint: you can also drag files onto the input