Skip to content

LibreTranslate Translation Channel

What is it?

LibreTranslate is a free and open-source machine translation API with self-hosting and offline support. You have two options:

  • Use the official paid API: Quick and easy, no deployment needed
  • Self-host locally: Completely free, fully private, but requires some technical knowledge

Prerequisites

  • pyVideoTrans v3.00 or higher
  • Option 1: LibreTranslate official API key (paid)
  • Option 2: A locally deployed LibreTranslate service

Option 1: Using the LibreTranslate Official API

Step 1: Get an API Key

  1. Visit https://portal.libretranslate.com/ and register/log in
  2. Purchase an API key (free trial credits available)
  3. Copy the API key

Step 2: Configure in pyVideoTrans

  1. Open the menu bar → Translation SettingsLibreTranslate API
  2. In the API URL field, enter: https://libretranslate.com/translate
  3. Enter your purchased API key in the API Key field
  4. Click the Test button to verify the connection
  5. Save after a successful test

LibreTranslate configuration

API URL and Key


Option 2: Self-Hosting Locally

Quick Deploy (Docker)

If you have Docker installed, you can start it with a single command:

bash
docker run -ti --rm -p 5000:5000 libretranslate/libretranslate

Once running, enter http://127.0.0.1:5000 as the API URL in pyVideoTrans.

Manual Deployment

Refer to the official LibreTranslate documentation: https://github.com/LibreTranslate/LibreTranslate?tab=readme-ov-file#install-and-run


SettingOfficial APILocal Deployment
API URLhttps://libretranslate.com/translatehttp://127.0.0.1:5000
API KeyPurchased from LibreTranslateLeave empty (not needed by default)

Supported Languages

LibreTranslate supports translation between 50+ languages. Full list: https://libretranslate.com/languages

Troubleshooting

IssueCauseSolution
Connection failedLocal service not runningMake sure LibreTranslate is running
"API Key required"Using official API without entering a keyEnter a valid API key
Slow translation speedInsufficient hardware resources for local deploymentUse a machine with more memory, or use the official API
Certain languages not supportedLanguage not in the supported listCheck the official language list for support