Request Payload

This sub-page helps the integrator to understand various different types of request payload based on the individual task or combination of tasks in that sequence that integrator wants to do.

Text Language Detection payload
{
  "pipelineTasks": [
    {
      "taskType": "txt-lang-detection",
      "config": {
        "serviceId": "bhashini/indic-lang-detection-all"
      }
    }
  ],
  "inputData": {
    "input": [
      {
        "source": "नमस्ते, आप कैसे हैं?"
      }
    ]
  }
}

Parameters

FieldTypeRequiredDescription
pipelineTasks[].taskTypestringRequiredMust be set to "txt-lang-detection".
config.serviceIdstringRequiredBackend model service ID (e.g. bhashini/indic-lang-detection-all).
inputData.input[].sourcestringRequiredRaw UTF-8 text string to detect language for.

Supported Languages by Service ID

Assamese
Bengali
Bodo
Dogri
English
Gujarati
Hindi
Kannada
Kashmiri
Konkani
Maithili
Malayalam
Manipuri
Marathi
Nepali
Odia
Punjabi
Sanskrit
Santali
Sindhi
Tamil
Telugu
Urdu