Documentation
LibreTranslate is a Free and Open Source Machine Translation API. Unlike other APIs, it doesn’t rely on proprietary providers such as Google or Azure to perform translations. Instead, its translation engine is powered by the open source Argos Translate library.
Quickstart
Section titled “Quickstart”Self-Hosted
Section titled “Self-Hosted”If you want to run LibreTranslate for free on your machine:
$ pip install libretranslate$ libretranslate$ curl -X POST http://localhost:5000/translate -d q="Hello" -d source=en -d target=es
{"translatedText":"Hola"}
See also the installation page.
Managed Hosting
Section titled “Managed Hosting”If you’d like an easier setup, high availability, fast translations and a professionally managed service for a small monthly cost:
- Get an API key from: https://portal.libretranslate.com
$ curl -X POST https://libretranslate.com/translate -d q="Hello" -d source=en -d target=es -d api_key=xxxxx
{"translatedText":"Hola"}
Either way we’re happy you’re here! ❤
Getting Started
Section titled “Getting Started” Installation How to quickly get the software up and running on your machine.
Basic Usage Start translating with step by step examples.
Community Resources Questions? Find out where to get help.
API Reference Browse the API specification
Contributing
Section titled “Contributing” Localization Learn how to translate these docs and the software in your language.
Support the Project Find out all the ways you can contribute.
Training New Language Models Learn how to train your own translation models.
Credits
Section titled “Credits”This work is largely possible thanks to Argos Translate, which powers the translation engine.
License
Section titled “License”GNU Affero General Public License v3