Docs / Language and text
Transliteration API
Rewrite text between Indian scripts and Roman letters, or turn Roman typing into an Indian script.
Converts by rule between Devanagari, Bengali, Gurmukhi, Gujarati, Odia, Tamil, Telugu, Kannada and Malayalam, and to ISO 15919, IAST or plain ASCII. ISO 15919 and IAST can also be turned back into any of the scripts. The spelling changes, not the language: this is not translation. Casual Roman typing (vanakkam) cannot be converted by rule: /v1/transliterate/suggest guesses it with a model, as phone keyboards do.
https://api.dharun.devNo key needed for most600 units a minute, 3000 with a free keyThis page as MarkdownTransliterate text
GET/v1/transliteratePOST
Also takes POST: The text. Send it as text/plain, or as JSON {"text": "..."} with the other options beside it, up to 256 KB.
What you send here is never written to the log, and the answer is not cached.
| Parameter | Description |
|---|---|
textquery | The text (or POST it). Letters of other scripts pass through unchanged. |
toquery, required | A script (devanagari, bengali, gurmukhi, gujarati, odia, tamil, telugu, kannada, malayalam), a language code such as ta or hi, or iso15919, iast, ascii. |
fromquery | auto (default: the script of the text), a script, or iso15919 or iast for romanised input. |
curl
curl "https://api.dharun.dev/v1/transliterate?to=tamil&text=%E0%A4%A8%E0%A4%AE%E0%A4%B8%E0%A5%8D%E0%A4%A4%E0%A5%87+%E0%A4%AD%E0%A4%BE%E0%A4%B0%E0%A4%A4&utm_medium=docs"JavaScript
const response = await fetch("https://api.dharun.dev/v1/transliterate?to=tamil&text=%E0%A4%A8%E0%A4%AE%E0%A4%B8%E0%A5%8D%E0%A4%A4%E0%A5%87+%E0%A4%AD%E0%A4%BE%E0%A4%B0%E0%A4%A4&utm_medium=docs");
const body = await response.json();
if (!response.ok) throw new Error(body.error.message);
console.log(body.data);Python
import requests
response = requests.get("https://api.dharun.dev/v1/transliterate?to=tamil&text=%E0%A4%A8%E0%A4%AE%E0%A4%B8%E0%A5%8D%E0%A4%A4%E0%A5%87+%E0%A4%AD%E0%A4%BE%E0%A4%B0%E0%A4%A4&utm_medium=docs", timeout=10)
body = response.json()
if not response.ok:
raise RuntimeError(body["error"]["message"])
print(body["data"])Try it here
Change the values and send the request from your browser. Needs JavaScript.
Response
{
"data": {
"text": "நமஸ்தே பாரத",
"from": "devanagari",
"to": "tamil"
},
"meta": {
"note": "Converted by rule, letter by letter: the spelling changes, not the language. Letters a script lacks become the nearest one it has."
}
}Roman typing to an Indian script (type English, get Tamil)
GET/v1/transliterate/suggestPOST
Guesses how words typed in Roman letters are written in an Indian script with IndicXlit (AI4Bharat), giving up to eight suggestions per word, best first, and the text with the best guess for each word. 21 languages. Up to 60 words; anything that is not Roman letters is kept as it is.
Also takes POST: The text in Roman letters. Send it as text/plain, or as JSON {"text": "..."} with the other options beside it, up to 256 KB.
Model endpoint: it will need a free API key, sent as Authorization: Bearer <key> or X-API-Key. Until the date on API keys it answers without one and says so in the X-Key-Notice header. With a key: 500 model requests a day.
What you send here is never written to the log, and the answer is not cached.
| Parameter | Description |
|---|---|
textquery | The text (or POST it). |
langquery, required | as, bn, brx, gom, gu, hi, kn, ks, mai, ml, mni, mr, ne, or, pa, sa, sd, si, ta, te or ur. |
countquery | Suggestions per word, 1 to 8. Default 4. |
curl
curl "https://api.dharun.dev/v1/transliterate/suggest?lang=ta&text=vanakkam+chennai&utm_medium=docs"JavaScript
const response = await fetch("https://api.dharun.dev/v1/transliterate/suggest?lang=ta&text=vanakkam+chennai&utm_medium=docs");
const body = await response.json();
if (!response.ok) throw new Error(body.error.message);
console.log(body.data);Python
import requests
response = requests.get("https://api.dharun.dev/v1/transliterate/suggest?lang=ta&text=vanakkam+chennai&utm_medium=docs", timeout=10)
body = response.json()
if not response.ok:
raise RuntimeError(body["error"]["message"])
print(body["data"])Try it here
Change the values and send the request from your browser. Needs JavaScript.
Response, with lists and long text shortened
{
"data": {
"language": "ta",
"name": "Tamil",
"text": "வணக்கம் சென்னை",
"words": [
{
"input": "vanakkam",
"suggestions": [
{
"text": "வணக்கம்",
"score": 0.9876
},
{
"text": "வனக்கம்",
"score": 0.7344
},
{
"text": "வணக்காம்",
"score": 0.5245
}
]
},
{
"input": "chennai",
"suggestions": [
{
"text": "சென்னை",
"score": 0.9959
},
{
"text": "சென்னாய",
"score": 0.5629
},
{
"text": "செண்ணை",
"score": 0.4626
}
]
}
]
},
"meta": {
"source": {
"name": "IndicXlit, English to Indic v1.0",
"url": "https://github.com/AI4Bharat/IndicXlit",
"licence": "MIT",
"version": "indicxlit-en-indic-v1.0@models-2026-10",
"retrieved": "2026-10-15T12:28:44Z",
"attribution": "Transliteration by IndicXlit (AI4Bharat, Madhani et al., Aksharantar, 2022), MIT."
},
"note": "Guesses from a model, best first; text uses the first guess for every word. score is the model's average confidence per letter, from 0 to 1."
}
}Data source
IndicXlit, English to Indic v1.0, indicxlit-en-indic-v1.0@models-2026-10. Retrieved 2026-10-15T12:28:44Z. Licence: MIT. Transliteration by IndicXlit (AI4Bharat, Madhani et al., Aksharantar, 2022), MIT.
Using an AI assistant? Connect the MCP server and it can call this API by itself. Want every endpoint on one bench? Open the playground.