RephraseText

Rewrite one or more texts to improve fluency and readability, optionally targeting a specific writing style or tone. Use the correct endpoint instead when you want a minimal spelling and grammar pass rather than broader rewriting.

post/v2/write/rephrase

Request

  • Base URL
    https://api.deepl.com
  • URL
    https://api.deepl.com/v2/write/rephrase
  • Auth
    API key in header Authorization

Request 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.

target_lang'de' | 'en' | 'en-GB' | 'en-US' | 'es' | 'fr' | 'it' | 'ja' | 'ko' | 'pt' | 'pt-BR' | 'pt-PT' | 'zh' | 'zh-Hans'

The language for the text improvement.

writing_style'academic' | 'business' | 'casual' | 'default' | 'simple' | 'prefer_academic' | 'prefer_business' | 'prefer_casual' | 'prefer_simple'

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.

tone'confident' | 'default' | 'diplomatic' | 'enthusiastic' | 'friendly' | 'prefer_confident' | 'prefer_diplomatic' | 'prefer_enthusiastic' | 'prefer_friendly'

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.

Example request

{
  "text": [
    "this is a example sentence to imprve"
  ],
  "target_lang": "de"
}

Response

Successful text improvement.

Example response

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

Changes

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status