OpenAPI spec for text improvement

This page contains only a set of guides that is auto-generated from DeepL's OpenAPI file.

For more detail about text improvement, including information about request parameters, please see the Improve text entry.

Request text improvement

post
Authorizations
Body
textstring[]Required

Text to be improved. Only UTF-8-encoded plain text is supported. Improvements are returned in the same order as they are requested.

Example: this is a example sentence to imprve
target_langstring · enumOptional

The language for the text improvement.

Example: dePossible values:
writing_stylestring · enumOptional

Specify a style to rephrase your text in a way that fits your audience and goals. The prefer_ prefix allows falling back to the default style if the language does not yet support styles.

Possible values:
tonestring · enumOptional

Specify the desired tone for your text. The prefer_ prefix allows falling back to the default tone if the language does not yet support tones.

Possible values:
Responses
200
Successful text improvement.
application/json
200

Successful text improvement.

{
  "improvements": [
    {
      "detected_source_language": "en",
      "text": "This is a sample sentence to improve."
    }
  ]
}

Last updated