Free and Open Source Machine Translation API, entirely self-hosted
open sourceAGPL-3.0-onlyself-hostablefreeMCP
LibreTranslate is a free and open source machine translation API that you can host yourself and run offline: instead of calling Google or Azure, it translates with the open source Argos Translate library and its downloadable language models, covering about 50 languages and pivoting through English when no direct pair exists. Its REST API translates plain text and HTML, detects the source language, offers alternative translations and translates whole files (Word, PowerPoint, OpenDocument, EPUB, HTML, subtitles and PDF), and it comes with a simple web UI. Self-hosted instances can issue API keys with their own rate and character limits, export Prometheus metrics and use a CUDA GPU, and an official MCP server gives AI agents its translate, detect and languages tools. It installs with pip or Docker (with a Kubernetes manifest and Helm chart) under AGPL-3.0, and libretranslate.com sells API keys for its managed hosted API, which doesn't store or log translation texts.
Ways to install
On your own server
Hosted for you
Problems it solves
- a self-hosted alternative to the Google Translate API so our text never leaves our servers
- translate user comments in our app without paying per character to a big cloud provider
- machine translation that works fully offline on an air-gapped network
- a free open source translation API I can call from my Python or JavaScript app
- translate the posts in our Discourse forum automatically with a translator we host
- detect which language a piece of text is written in through an API
- translate HTML emails without breaking the markup
- translate a whole Word, PowerPoint or PDF document through an API instead of pasting text
- translate subtitle files for our videos with an open source tool
- give our AI agent a translation tool that doesn't send text to Google
- run translation on our own GPU server to keep costs predictable at high volume
- hand out API keys with rate limits to the teams using our internal translation service
- a cheap hosted translation API with a flat monthly price instead of per-character billing
- a privacy-respecting DeepL alternative for translating sensitive documents
- add machine translation to a browser extension or mobile app using our own endpoint
- a drop-in translation server our nonprofit can run without any vendor contract
Features
- REST API to translate text, with automatic source language detection
- HTML translation that keeps the markup
- alternative translations on request
- language detection endpoint
- file translation for .txt, .odt, .odp, .docx, .pptx, .epub, .html, .srt and .pdf
- about 50 languages from Argos Translate models, pivoting through English when no direct pair exists
- works offline once language models are installed
- web UI for translating text and files
- API keys with per-key request and character limits, managed with the ltmanage command
- request, character and batch limits, and an under-attack mode that requires keys
View 6 more
- translation suggestions from users (optional)
- Prometheus metrics endpoint
- CUDA GPU acceleration with Docker
- official MCP server (npx @libretranslate/mcp) with translate, detect and languages tools
- install with pip, Docker, Gunicorn, a Kubernetes manifest or the Helm chart
- hosted API at libretranslate.com with paid API keys
Limitations
- No direct models between most non-English languages: translation pivots through English, except between Portuguese and Spanish7
Ways to run it
LibreTranslate (self-hosted)
You arrange
- a server with Python 3.8+ or Docker (Gunicorn or Docker recommended in production)
- disk space and startup time for the language models you load
- a reverse proxy with HTTPS, such as Apache, Caddy or Nginx
- an NVIDIA GPU with CUDA 12.4.1 and nvidia-docker, if you want GPU acceleration
- API keys and rate limits, if others will use it
LibreTranslate API (libretranslate.com)
Pro $29/month; Business $58/month; higher limits on request101112
Only in this edition
- managed hosting with high availability
- models not yet in the Argos index
- a 7-day money-back guarantee
Capabilities
| Has an API | plan not known |
|---|---|
| Has an MCP server | plan not known |
Alternatives
The same job
These do what LibreTranslate does.
- DeepL Translator Translate at the speed of modern business
- Google Cloud Translation Google's machine translation API: neural, LLM and adaptive translation
- Argos Translate Open-source offline translation library written in Python