Translate
Base URL:https://drain.lat/api/v1/translate
GET /
GET /
Translate text into any supported language.
string
required
The text to translate. Max 5000 characters.
string
required
Target language code (BCP-47 / ISO 639-1, e.g.
es, fr, ja, zh).string
Source language code. Defaults to
auto for automatic detection.string
The original input text.
string
The translated text.
string
Detected or specified source language code.
string
Target language code.
Response
Supports all languages available in Google Translate. Use ISO 639-1 codes for
to and from (e.g. es for Spanish, fr for French, ja for Japanese, zh for Chinese).