Detect Language & Dialect
Endpoints
Detect Language & Dialect
Lightweight language and dialect detection. Returns in under 100ms — no AI model call required.
POST
Detect Language & Dialect
Detect language, dialect, script, and text direction from any text input. Uses local NAGL modules only — no external AI call, so responses return in under 100ms.
Cost: $0.002 per request (2 credits). Semantic cache hits are free (
X-NAWA-Cache: HIT).Request
Headers
Body parameters
Example request
Response
Success response (200)
Result fields
Detection examples
Gulf Arabic
Gulf Arabic
Input: “وش رايكم بالمحتوى الجديد؟”
Result: language:
ar, dialect: gulf, confidence: 0.95, script: arabic, direction: rtlEgyptian Arabic
Egyptian Arabic
Input: “الفيديو ده جامد أوي”
Result: language:
ar, dialect: egyptian, script: arabic, direction: rtlEnglish
English
Input: “This is a great video”
Result: language:
en, dialect: null, script: latin, direction: ltrMixed script
Mixed script
Input: “awesome محتوى”
Result: language:
mixed, dialect detected, script: mixed, direction: rtl