Endpoints
Language Identification
Identifies the language (e.g., en-IN, hi-IN) and script (e.g., Latin, Devanagari) of the input text, supporting multiple languages.
POST
Headers
Your unique subscription key for authenticating requests to the Sarvam AI APIs. Here are the steps to get your api key
Body
application/json
The text input for language and script identification.
Response
200
application/json
Successful Response
The detected language code of the input text.
Available languages:
en-IN
: Englishhi-IN
: Hindibn-IN
: Bengaligu-IN
: Gujaratikn-IN
: Kannadaml-IN
: Malayalammr-IN
: Marathiod-IN
: Odiapa-IN
: Punjabita-IN
: Tamilte-IN
: Telugu
The detected script code of the input text.
Available scripts:
Latn
: Latin (Romanized script)Deva
: Devanagari (Hindi, Marathi)Beng
: BengaliGujr
: GujaratiKnda
: KannadaMlym
: MalayalamOrya
: OdiaGuru
: GurmukhiTaml
: TamilTelu
: Telugu