OpenNMT Forum

LibreTranslate - Translation API and web app based on Argos Translate and OpenNMT

Live Demo

const res = await fetch("https://libretranslate.com/translate", {
	method: "POST",
	body: JSON.stringify({
		q: "Hello!",
		source: "en",
		target: "es"
	}),
	headers: {
		"Content-Type": "application/json"
	});

console.log(await res.json());

{
    "translatedText": "¡Hola!"
}

Open-source Flask web app and API based on Argos Translate which is based on OpenNMT.

2 Likes