v1

latestOpenAPI 3.0.32026-07-265278189.1 KB
CorrectText

Correct text

Fix spelling and grammar errors in one or more texts. Unlike /v2/write/rephrase, this endpoint applies a minimal-change correction pass and does not rewrite the text for style or tone.

post/v2/write/correct

Request body

textstring[] required

Text to be corrected. Only UTF-8-encoded plain text is supported. Corrections 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.

Example request

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

Response

Successful text correction.

Example response

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