Translate Text

Go to Product

Translate one or more text strings into a target language. Send multiple strings in a single request, within the request size limit, and specify formatting, tag handling, and customization options such as glossaries, style rules, and translation memories.

Options

Reporting Tag
An optional custom reporting tag used to attribute this request's usage to a team, project, customer, or other category of your choosing. Values are limited to 100 characters. See How to use custom reporting tags for validation rules, naming guidance, and how to retrieve usage by tag.
Text
Text to be translated. Only UTF-8-encoded plain text is supported. The parameter may be specified many times in a single request, within the request size limit (128KiB). Translations are returned in the same order as they are requested. Each text in the array is translated independently — texts do not share context with each other.
Source Language

Language of the text to be translated. If this parameter is omitted, the API will attempt to detect the language of the text and translate it.

For the full list of supported source languages, see supported languages or query the GET /v3/languages endpoint.

Target Language

The language into which the text should be translated.

For the full list of supported target languages, see supported languages or query the GET /v3/languages endpoint.

Context

Additional context that can influence a translation but is not translated itself.

Characters included in the context parameter will not be counted toward billing.

Show Billed Characters
When true, the response will include the billed_characters parameter, giving the number of characters from the request that will be counted by DeepL for billing purposes.
Split Sentences

Sets whether the translation engine should first split the input into sentences.

Possible values are:

  • 0 - no splitting at all, whole input is treated as one sentence
  • 1 (default when tag_handling is not set to html) - splits on punctuation and on newlines
  • nonewlines (default when tag_handling=html) - splits on punctuation only, ignoring newlines
Preserve Formatting
Sets whether the translation engine should respect the original formatting, even if it would usually correct some aspects.
Formality

Sets whether the translated text should lean towards formal or informal language. This feature is only available for certain target languages. Setting this parameter with a target language that does not support formality will fail, unless one of the prefer_... options are used. Possible options are:

  • default (default)
  • more - for a more formal language
  • less - for a more informal language
  • prefer_more - for a more formal language if available, otherwise fallback to default formality
  • prefer_less - for a more informal language if available, otherwise fallback to default formality
Model Type
Specifies which DeepL model should be used for translation.
Glossary ID

Specify the glossary to use for the translation. The glossary needs a dictionary for the language pair of the request.

If source_lang is omitted, DeepL detects the source language and uses the dictionary for the detected language pair. The request returns a 400 if the glossary has no dictionary for that pair.

Cannot be used together with glossary_ids.

Glossary IDs

Comma-separated list of up to 5 glossary IDs to use for the translation. Each glossary's matching terms are applied to the translation. May also be sent as a repeated parameter.

Every listed glossary must contain a dictionary for the requested language pair.

If source_lang is omitted, DeepL detects the source language and every listed glossary must contain a dictionary for the detected language pair. A single glossary without a matching dictionary returns a 400 for the whole request.

Cannot be used together with glossary_id.

Translation Memory ID
A unique ID assigned to a translation memory.
Translation Memory Threshold
The minimum matching percentage required for a translation memory segment to be applied (recommended to be 75% or higher). A value below 50 is treated as 50.
Style Profile ID

Translate with a style profile: its glossaries, style rule lists and translation memories through one ID. The profile is applied per text once the source language is known: the glossaries with a dictionary for the text's language pair, the style rule list for the target language, and the translation memories whose source language matches the text. A component that does not fit a text's language pair is left out for that text; this is not an error.

Cannot be combined with glossary_id, glossary_ids, style_id, translation_memory_id, translation_memory_threshold or custom_instructions. A request that combines them is rejected with 400 Bad Request. A style profile that does not exist or that your account cannot access is rejected with 404 Not Found.

Tag Handling

Sets which kind of tags should be handled. Options currently available:

  • xml
  • html
Outline Detection
Disable the automatic detection of XML structure by setting the outline_detection parameter to false and selecting the tags that should be considered structure tags. This will split sentences using the splitting_tags parameter.
Enable Beta Languages
This parameter is maintained for backward compatibility and has no effect.
Non-Splitting Tags
Comma-separated list of XML tags which never split sentences.
Splitting Tags
Comma-separated list of XML tags which always cause splits.
Ignore Tags
Comma-separated list of XML tags that indicate text not to be translated.
Result Format

Specify how the response should be mapped to the table output. The following formats are available:

Structured Table: Returns a parsed table with data split into rows and columns.

  • Detected Source Language: The language detected in the source text. It reflects the value of the source_lang parameter, when specified.
  • Text: The translated text.
  • Billed Characters: Number of characters counted by DeepL for billing purposes. Only present if the show_billed_characters parameter is set to true.
  • Model Type Used: Indicates the translation model used. Only present if model_type parameter is included in the request.
  • Tag Handling Version: The version of the tag handling algorithm used for the translation. Only present when the tag_handling parameter (xml or html) is set. If you don't specify tag_handling_version, this shows the default that was applied.

Raw Response: Returns the raw response in a single row with the following columns:

  • body: Response body
  • status: HTTP status code
  • X-Trace-ID: A unique identifier for the request that can be included in bug reports to DeepL support.

Input Ports

Icon
Configuration data.

Output Ports

Icon
Result of the request depending on the selected Result Format.
Icon
Configuration data (this is the same as the input port; it is provided as passthrough for sequentially chaining nodes to declutter your workflow connections).

Popular Predecessors

Popular Successors

Views

This node has no views

Workflows

Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.