LibreTranslate is a Free and Open Source Machine Translation API, entirely self-hosted. 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.
Demo: https://libretranslate.com
Docs: https://libretranslate.com/docs
Train a custom NLP language model for LibreTranslate: https://github.com/LibreTranslate/Locomotive