typetext
{
"text": "Check whether content is spam or not"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_Ju3**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run intelligent-utilities/spam-detector using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
text: "Check whether content is spam or not"
};
const output = await replicate.run("intelligent-utilities/spam-detector", { input });
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_Ju3**********************************
This is your API token. Keep it to yourself.
import replicate
Run intelligent-utilities/spam-detector using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"intelligent-utilities/spam-detector",
input={
"text": "Check whether content is spam or not"
}
)
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_Ju3**********************************
This is your API token. Keep it to yourself.
Run intelligent-utilities/spam-detector 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 $'{
"input": {
"text": "Check whether content is spam or not"
}
}' \
https://api.replicate.com/v1/models/intelligent-utilities/spam-detector/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "tp741zh525rmc0crn6r9f0yhg0",
"model": "intelligent-utilities/spam-detector",
"version": "hidden",
"input": {
"text": "Check whether content is spam or not"
},
"logs": "",
"output": {
"confidence": 0,
"is_spam": false,
"reasoning": ""
},
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-08-14T17:45:50.097Z",
"started_at": "2025-08-14T17:45:50.387126Z",
"completed_at": "2025-08-14T17:45:52.958692Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/tp741zh525rmc0crn6r9f0yhg0/cancel",
"children": "https://api.replicate.com/v1/predictions/tp741zh525rmc0crn6r9f0yhg0/children",
"get": "https://api.replicate.com/v1/predictions/tp741zh525rmc0crn6r9f0yhg0",
"root": "https://api.replicate.com/v1/predictions/tp741zh525rmc0crn6r9f0yhg0",
"web": "https://replicate.com/p/tp741zh525rmc0crn6r9f0yhg0"
},
"metrics": {
"predict_time": 2.571566209,
"total_time": 2.861692
}
}