typefile
{
"image": "https://replicate.delivery/pbxt/NI27QoNkvF9MQogGpWid9WKRJe93N4rYcsgtX8N2WL0TILrW/george.webp",
"nsfw_threshold": 0.85
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_Rcn**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run lucataco/flux-content-filter using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"lucataco/flux-content-filter:6cde73479afa6189b52903fd968d3b5abadccc514a87b97dfc9ec43179d9f0d3",
{
input: {
image: "https://replicate.delivery/pbxt/NI27QoNkvF9MQogGpWid9WKRJe93N4rYcsgtX8N2WL0TILrW/george.webp",
nsfw_threshold: 0.85
}
}
);
console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_Rcn**********************************
This is your API token. Keep it to yourself.
import replicate
Run lucataco/flux-content-filter using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"lucataco/flux-content-filter:6cde73479afa6189b52903fd968d3b5abadccc514a87b97dfc9ec43179d9f0d3",
input={
"image": "https://replicate.delivery/pbxt/NI27QoNkvF9MQogGpWid9WKRJe93N4rYcsgtX8N2WL0TILrW/george.webp",
"nsfw_threshold": 0.85
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_Rcn**********************************
This is your API token. Keep it to yourself.
Run lucataco/flux-content-filter using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: wait" \
-d $'{
"version": "lucataco/flux-content-filter:6cde73479afa6189b52903fd968d3b5abadccc514a87b97dfc9ec43179d9f0d3",
"input": {
"image": "https://replicate.delivery/pbxt/NI27QoNkvF9MQogGpWid9WKRJe93N4rYcsgtX8N2WL0TILrW/george.webp",
"nsfw_threshold": 0.85
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "mmentccnn9rm80cqsmcve9e5f4",
"model": "lucataco/flux-content-filter",
"version": "6cde73479afa6189b52903fd968d3b5abadccc514a87b97dfc9ec43179d9f0d3",
"input": {
"image": "https://replicate.delivery/pbxt/NI27QoNkvF9MQogGpWid9WKRJe93N4rYcsgtX8N2WL0TILrW/george.webp",
"nsfw_threshold": 0.85
},
"logs": "Setting `pad_token_id` to `eos_token_id`:2 for open-end generation.",
"output": {
"copyright_concerns": true,
"details": {
"nsfw_score": 0.00015875077224336565
},
"image_flagged": true,
"nsfw_detected": false,
"overall_flagged": true,
"public_figures": true,
"text_flagged": false
},
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-07-02T21:44:55.466Z",
"started_at": "2025-07-02T21:47:09.86795Z",
"completed_at": "2025-07-02T21:47:11.092224Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/mmentccnn9rm80cqsmcve9e5f4/cancel",
"get": "https://api.replicate.com/v1/predictions/mmentccnn9rm80cqsmcve9e5f4",
"web": "https://replicate.com/p/mmentccnn9rm80cqsmcve9e5f4"
},
"metrics": {
"predict_time": 1.224274073,
"total_time": 135.626224
}
}