Text to Text Translation with Context

Translate text with context awareness

Changed on

Translate text with additional context to ensure accurate translation and avoid ambiguity for everyone to be able to understand.

post/v1/translate/translate-text-with-context

Request

Request body application/x-www-form-urlencoded

textstring required

Source text. Context-aware translation accepts at most 4000 characters. Text plus context accepts at most 10000 characters.

contextstring required

Translation context. Accepts at most 8000 characters.

source_languagestring nullable
target_languagestring

Response

Successful Response

string required

Changes

    • breaking

      the / request property's minLength was increased from 0 to 2

    • breaking

      the request property's minLength was increased from 0 to 2

    • breaking

      the request property's minLength was increased from 0 to 1

    • breaking

      added the pattern ^[A-Za-z]{2,8}(?:[-_][A-Za-z0-9]{1,8})*$ to the request property /

    • breaking

      added the pattern ^[A-Za-z]{2,8}(?:[-_][A-Za-z0-9]{1,8})*$ to the request property

    • warning

      the request property's maxLength was set to 8000

    • warning

      the / request property's maxLength was set to 35

    • warning

      the request property's maxLength was set to 35

    • warning

      the request property's maxLength was set to 4000