Skip to main content
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

Input: “هذا محتوى رائع جدا” Result: is_safe: true, verdict: safe, severity: none
Input: “اشتركوا في قناتي الرابط في البايو!! فولو فولو فولو!!” Result: is_safe: false, flags: ["spam"], severity: low
Input: Borderline content that passes on medium but flags on high strictness
Input: Moderate a YouTube comment with platform context

Error responses