Translation
Text translation via DeepL.
Request
http
POST /v1/translatejson
{
"text": ["Bonjour le monde", "Comment allez-vous ?"],
"target_lang": "EN",
"source_lang": null,
"model": null,
"routing_strategy": "auto"
}text is always a list (one or more strings to translate in a single call). source_lang is optional — omitted, DeepL automatically detects the source language.
Response
json
{
"translations": ["Hello world", "How are you?"],
"detected_source_language": "FR",
"model": "deepl-v2",
"provider": "deepl"
}Providers
DeepL.