Language Identification API
Overview
The Language Identification (LID) API identifies the language (e.g., en-IN, hi-IN) and script (e.g., Latin, Devanagari) of the input text. It supports multiple Indian languages and scripts, making it ideal for multilingual text processing.
Detection Types
Single Language
Detect the primary language and script of text input. Example: “Hello, how are you?” → language: en-IN, script: Latn
Auto Detection
Automatic language detection for seamless integration with translation and preprocessing APIs.
Code Examples
Basic Usage
Python
JavaScript
cURL
Response Format
Supported Languages and Scripts
Language Support
Available Languages:
- en-IN: English
- hi-IN: Hindi
- bn-IN: Bengali
- gu-IN: Gujarati
- kn-IN: Kannada
- ml-IN: Malayalam
- mr-IN: Marathi
- od-IN: Odia
- pa-IN: Punjabi
- ta-IN: Tamil
- te-IN: Telugu
Script Support
Available Scripts:
- Latn: Latin (Romanized script)
- Deva: Devanagari (Hindi, Marathi)
- Beng: Bengali
- Gujr: Gujarati
- Knda: Kannada
- Mlym: Malayalam
- Orya: Odia
- Guru: Gurmukhi
- Taml: Tamil
- Telu: Telugu
For detailed pricing information and usage tiers, visit our pricing page.