Skip to main content
POST
/
v2
/
write
/
rephrase
Request text improvement
curl --request POST \
  --url https://api.deepl.com/v2/write/rephrase \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "text": [
    "this is a example sentence to imprve"
  ],
  "target_lang": "de",
  "writing_style": "academic",
  "tone": "confident"
}'
{
  "improvements": [
    {
      "detected_source_language": "en",
      "text": "This is a sample sentence to improve."
    }
  ]
}

Authorizations

Authorization
string
header
required

Body

text
string[]
required
target_lang
enum<string>
Available options:
de,
en,
en-GB,
en-US,
es,
fr,
it,
pt,
pt-BR,
pt-PT
Example:
writing_style
enum<string>
Available options:
academic,
business,
casual,
default,
simple,
prefer_academic,
prefer_business,
prefer_casual,
prefer_simple
tone
enum<string>
Available options:
confident,
default,
diplomatic,
enthusiastic,
friendly,
prefer_confident,
prefer_diplomatic,
prefer_enthusiastic,
prefer_friendly

Response

200 - application/json
improvements
object[]
Minimum length: 1