API Reference
//
Translate text
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.
More information: Tisane API Configuration And Customization Guide
The response is the transformed text.
Security
Tisane-API-Key
POST
- string
- Feature
- Translate a Japanese sentence
- Auto-detect language and translate Chinese name to English
- Translate from English to Russian
- Translate Russian drug addict jargon to English
- Translate from Hebrew to Russian preserving gender
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": {}
}'Response
- Translate a Japanese sentence
- Auto-detect language and translate Chinese name to English
- Translate from English to Russian
- Translate Russian drug addict jargon to English
- Translate from Hebrew to Russian preserving gender
She is eating an apple