Documentation
Everything you need β whether you run the Discord bot or build on the API.
Translation API
The same engine that powers the Lingua bot, exposed as a simple REST API. Send text, get a translation back β with automatic source-language detection and access to both LibreTranslate and DeepL engines depending on your plan.
The API is currently in early access. Request a key in our Discord community and lock in launch pricing. Endpoints and schemas below are stable for v1.
Base URL
https://api.lingua-api.com/v1
Authentication
Every request is authenticated with an API key sent as a Bearer token. Keys are scoped to your account, can be rotated at any time, and never expire on their own.
Authorization: Bearer lk_live_xxxxxxxxxxxxxxxx
Keep keys server-side. Never ship them in browser or mobile code β proxy through your backend instead.
Quick start
Translate a string with automatic source detection. Every response includes a confidencefactor (0β1) for the detected source language, so you can route low-confidence detections to a human or retry with a pinned source.
curl -X POST https://api.lingua-api.com/v1/translate \
-H "Authorization: Bearer $LINGUA_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "text": "Hello world", "target": "ja" }'
# { "text": "γγγ«γ‘γ―δΈη", "detected": "en", "confidence": 0.92,
# "engine": "libre", "characters": 11 }