v1

latestOpenAPI 3.0.32026-07-26451985.7 KB

translation

Translate text from one language to another for multilingual communication, content localization, and language learning

post/models/v2/Helsinki-NLP/opus-mt-en-zh

Request body

textstring required

The input text

streamboolean

Enable text streaming.

Example request

{
  "text": "Hello"
}

Response

Successful translation response.

errorstring nullable required

Null on success; otherwise an error message.

outputstring required

Successful response with the translated text

Example response

{
  "output": "Bonjour"
}