v1

latestOpenAPI 3.0.02026-07-268285163.6 KB
Detection

Detect language

Detect the language (including dialects) from a given input text using an external model.

post/detect-language

Request body

textstring required

Text to analyze

api_keystring required

API key to access the external language model

api_urlstring required

URL of the external API model

Example request

{
  "text": "كِيفاش نجم نحل مشكلة في التصاور اللي ما يتبعوش وقتلي نبعثهم في الميسنجر ؟",
  "api_key": "your-api-key",
  "api_url": "https://your-model-provider.com/chat/completions"
}

Response

Language successfully detected

detected_langstring

Language code in NLLB format

Example response

{
  "detected_lang": "aeb_Arab"
}