Multi-Category Toxicity Scoring
Evaluates harassment, hate speech, severe toxicity, profanity, insult, and threat sub-scores (0.0 to 1.0).
Automated social comment moderation API detecting toxicity, harassment, hate speech, profanity, and promotional abuse.
https://rsflowhub.com/api/v1/ai/comment-moderate
X-API-Key header{
"comment": "Buy cheap followers now at http://fakefollowers.com !!! FAST DELIVERY!",
"platform": "YouTube"
}
{
"result": {
"is_safe": false,
"categories": [
"harassment",
"spam"
],
"severity": "high",
"recommended_action": "hide",
"reason": "Insults other users and promotes an external offer.",
"confidence": 0.93
}
}
Automated Toxic Comment Filter & Moderation API is a REST API on RSFlowHub for web, mobile and AI agent applications. Send a JSON request to POST /api/v1/ai/comment-moderate with your API key; RSFlowHub runs it on a tuned AI model, falls back to a backup provider if needed, and returns a structured JSON result, usually within 1 to 3 seconds.
Tutorial: Add AI Comment Moderation to a React and Next.js App
POST /api/v1/ai/comment-moderateX-API-Key headerSend these fields as a JSON body. An invalid or missing field returns a 422 error that names the field.
| Field | Type | Required | Description |
|---|---|---|---|
comment |
string | Required | The social media comment text (Max: 5,000 characters). |
language |
string | Optional | Optional comment language identifier. |
platform |
string | Optional | Optional social media platform name. |
context |
string | Optional | Optional contextual details to aid analysis. |
Copy, replace rfh_your_api_key with your key and run. Prefer a client library? See the official SDKs.
curl -X POST "https://rsflowhub.com/api/v1/ai/comment-moderate" \
-H "Content-Type: application/json" \
-H "X-API-Key: rfh_your_api_key" \
-d '{"comment":"Buy cheap followers now at http:\/\/fakefollowers.com !!! FAST DELIVERY!","platform":"YouTube"}'
<?php
$client = new \GuzzleHttp\Client();
$response = $client->post('https://rsflowhub.com/api/v1/ai/comment-moderate', [
'headers' => [
'Content-Type' => 'application/json',
'X-API-Key' => 'rfh_your_api_key',
],
'json' => array (
'comment' => 'Buy cheap followers now at http://fakefollowers.com !!! FAST DELIVERY!',
'platform' => 'YouTube',
),
]);
echo $response->getBody();
const response = await fetch('https://rsflowhub.com/api/v1/ai/comment-moderate', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': 'rfh_your_api_key'
},
body: JSON.stringify({"comment":"Buy cheap followers now at http:\/\/fakefollowers.com !!! FAST DELIVERY!","platform":"YouTube"})
});
const data = await response.json();
console.log(data);
import requests
url = "https://rsflowhub.com/api/v1/ai/comment-moderate"
headers = {
"Content-Type": "application/json",
"X-API-Key": "rfh_your_api_key"
}
payload = {"comment":"Buy cheap followers now at http:\/\/fakefollowers.com !!! FAST DELIVERY!","platform":"YouTube"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
Every RSFlowHub endpoint uses the same envelope, so one parser handles all of them. Failed calls are not charged.
{
"success": true,
"request_id": "req_3f9a2c7e-5b1d-4e8a-9c2f-7d6e1a0b4c8d",
"data": {
"result": {
"is_safe": false,
"categories": [
"harassment",
"spam"
],
"severity": "high",
"recommended_action": "hide",
"reason": "Insults other users and promotes an external offer.",
"confidence": 0.93
}
},
"meta": {
"version": "v1",
"timestamp": "2026-10-05T09:30:00Z"
}
}
{
"success": false,
"request_id": "req_8c1d4e2a-7f3b-4a9c",
"error": {
"code": "VALIDATION_ERROR",
"message": "The given data was invalid.",
"details": {
"comment": [
"This field is required."
]
}
},
"meta": {
"version": "v1",
"timestamp": "2026-10-05T09:30:00Z"
}
}
| Field | Type | Meaning |
|---|---|---|
success | boolean | true when the call worked, false on any error. |
request_id | string | Unique id for this call. Quote it when you contact support. |
data.result | object | The result of this endpoint (see the example). |
error | object | Only on failure: code, message and details per field. |
meta | object | API version and server timestamp. |
All error codes: Errors reference
Evaluates harassment, hate speech, severe toxicity, profanity, insult, and threat sub-scores (0.0 to 1.0).
Returns automated recommended actions: "approve", "flag_for_review", "shadowban", or "delete".
Detects abusive slang, profanity, and harassment patterns across 50+ global languages.
Configurable strictness parameters tailored for gaming chats, public social networks, or enterprise forums.
How teams use the Automated Toxic Comment Filter & Moderation API in production.
Instantly filter out toxic chat messages, slurs, and profanity during high-volume live streaming events.
{"is_flagged": true, "categories": ["promotional_spam"], "recommended_action": "delete"}Maintains a positive, safe chat environment for viewers.
Auto-hide cyberbullying, harassment, and hate speech comments before they are published publicly.
{"is_flagged": true, "categories": ["harassment", "insult"], "recommended_action": "flag_for_review"}Protects app users and community health.
Filter out abusive fake reviews and profanity from product review sections prior to publishing.
{"is_flagged": true, "categories": ["profanity", "toxicity"], "recommended_action": "flag_for_review"}Preserves authentic, constructive buyer feedback.
The same job done three ways.
| Topic | RSFlowHub API | Raw LLM prompts | Rules / regex |
|---|---|---|---|
| Output | Validated JSON fields | Free text you have to parse | Fixed patterns only |
| Setup | One POST request, no prompts | Write and maintain prompts and parsing | Write and maintain rule lists |
| Provider outage | Automatic fallback to a backup model | You build retries and a second vendor | Not applicable |
| Pricing | 3 credits per call, failed calls free | Per token, per vendor | Your own servers and upkeep |
| Understands context | Yes, AI model | Yes, AI model | No, keywords only |
Free plan with 100 credits/month + 1,000 bonus credits when you sign in before 23 Nov. Test it in the playground first, no code needed.
Flowy
AI assistant