Skip to content

Translate text

Request

This method translates the input text. The request body should include the following elements:

  • from (string) - A standard IETF tag for the source language. Use * or a vertical bar-delimited set of language codes to invoke autodetect.
  • to (string) - A standard IETF tag for the target language. If the source and target languages are the same, paraphrasing will be applied.
  • content (string) - The text content to translate.
  • settings (object) - Additional translation settings.

The response is the transformed text.

Security
Tisane-API-Key
Headers
Content-Typestring
Example:application/json
Bodyapplication/jsonrequired
fromstring
tostring
contentstring
settingsobject
POST
/transform
curl -i -X POST \
  https://api.tisane.ai/transform \
  -H 'Content-Type: application/json' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_API_KEY_HERE' \
  -d '{
    "from": "ja",
    "to": "en",
    "content": "彼女はりんごを食べます",
    "settings": {}
  }'

Responses

Successful translation response

Bodytext/plain
string
Response
She is eating an apple