Skip to content

Universal Translator

Heavstal Translator automatically detects the source language of your text and translates it into English. It uses advanced neural machine translation logic.

POST /translate

FieldTypeRequiredDescription
textstringYesThe text string you want to translate (any language).
const res = await fetch('https://heavstal.com.ng/api/v1/translate', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'x-api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({ text: "Bonjour tout le monde" })
});
{
"status": "success",
"creator": "HEAVSTAL TECH",
"data": {
"original": "Bonjour tout le monde",
"translated": "Hello everyone",
"source_language": "fr",
"pronunciation": "bon-zhoor..."
}
}