What the model is told
Translate a piece of text into the target language. Give the language as a DeepL code such as FR, DE, ES, IT or EN-GB. The source language is detected automatically. Returns the translated text in translations[0].text. Use it for short messages, not long documents.
Request
POSThttps://api-free.deepl.com/v2/translate
Headers
Content-Typeapplication/jsonAuthorizationDeepL-Auth-Key YOUR_DEEPL_API_KEY
Body
{
"text": [
"{{text}}"
],
"target_lang": "{{targetLanguage}}"
}Parameters
text stringThe text to translate.targetLanguage stringThe DeepL target language code.
Engage payload
{
"source": "VOICE_AI",
"tool": {
"id": "97da0162-93fb-443f-a89c-974d712b8d0c",
"type": "HTTP_REQUEST",
"label": "Translate Text with DeepL",
"name": "translate_text_with_deepl",
"customName": false,
"description": "Translate a piece of text into the target language. Give the language as a DeepL code such as FR, DE, ES, IT or EN-GB. The source language is detected automatically. Returns the translated text in translations[0].text. Use it for short messages, not long documents.",
"parameters": [
{
"name": "text",
"type": "string",
"description": "The text to translate."
},
{
"name": "targetLanguage",
"type": "string",
"description": "The DeepL target language code."
}
],
"config": {
"endpoint": {
"method": "POST",
"url": "https://api-free.deepl.com/v2/translate"
},
"headers": [
{
"name": "Content-Type",
"value": "application/json"
},
{
"name": "Authorization",
"value": "DeepL-Auth-Key YOUR_DEEPL_API_KEY"
}
],
"body": "{\n \"text\": [\n \"{{text}}\"\n ],\n \"target_lang\": \"{{targetLanguage}}\"\n}",
"timeout": null
}
}
}IDs are regenerated on every copy.