Moderate Content
Endpoints
Moderate Content
Dialect-aware Arabic content moderation. Catches profanity and slang that Western APIs miss.
POST
Moderate Content
Dialect-aware Arabic content moderation powered by ALLaM. Understands profanity, slang, and offensive language differences across Gulf, Egyptian, Levantine, and MSA Arabic — catching what Western moderation APIs miss entirely.
Cost: $0.004 per request (4 credits). Semantic cache hits are free (
X-NAWA-Cache: HIT).Request
Headers
Body parameters
Strictness levels:
- low — only flag severe content (explicit hate speech, extreme profanity, direct threats)
- medium — flag moderate and severe content (profanity, harassment, hate speech, spam)
- high — flag all potentially problematic content (mild profanity, borderline content, subtle insults)
Example request
Response
Safe content (200)
Flagged content (200)
When content is flagged, the response includes specific flags, severity scores, and a cleaned version of the text:Result fields
Moderation categories
Examples
Safe Gulf Arabic content
Safe Gulf Arabic content
Input: “هذا محتوى رائع جدا”
Result: is_safe:
true, verdict: safe, severity: noneSpam detection
Spam detection
Input: “اشتركوا في قناتي الرابط في البايو!! فولو فولو فولو!!”
Result: is_safe:
false, flags: ["spam"], severity: lowHigh strictness catching mild content
High strictness catching mild content
Input: Borderline content that passes on medium but flags on high strictness
With platform context
With platform context
Input: Moderate a YouTube comment with platform context