Description
NLLB Serve is a web interface and REST API for Meta's No Language Left Behind (NLLB) translation models, which translate across 200 languages. Once started, it runs a local service on port 6060 by default. The /translate endpoint takes source text, a source language code and a target language code, such as eng_Latn and fra_Latn. It accepts a single string or a batch of strings, and it accepts GET and POST requests, with parameters sent in the query string, as a URL-encoded form or as a JSON body. A separate nllb-batch command-line tool is meant for decoding large files, while the REST API is optimized for single translations. The README includes notes on CUDA and Torch compatibility and a list of CLI options. The code is under the Apache License 2.0. The model weights are downloaded from the Hugging Face Hub and keep their own license, which the README gives as CC-BY-NC-4.0 at the time of writing.…
Highlights
- Web interface and REST API for NLLB models
- Translation across 200 languages
- Batch command-line tool for large files
- Single strings or batches per request
- Runs locally on port 6060 by default
Ratings & Reviews
No ratings yet
Be the first to rate Nllb Serve.
People also visit
Nllb Serve FAQ
What is NLLB Serve?
A web interface and REST API for Meta's No Language Left Behind translation models, served from your own machine.
How do I call the API?
Send a request to /translate with source, src_lang and tgt_lang. Language codes such as eng_Latn are listed on Hugging Face, as the README links.
Can it translate large files?
Yes, with nllb-batch, a command-line tool optimized for decoding large files. The REST API is aimed at single translations.
Can I use the model commercially?
The code is Apache 2.0, but the model weights keep their own license. The README gives CC-BY-NC-4.0 at the time of writing, so check those terms before commercial use.
What are the best Nllb Serve alternatives?
Popular alternatives to Nllb Serve include Lilt Neural Machine Translation Platform, CopyTranslator and Gengo. See all Nllb Serve alternatives



