Optional
fromThe language name/ISO 639-1 code to translate from. If none is given, it will auto-detect the source language
Optional
toThe language name/ISO 639-1 code to translate to. If none is given, it will translate to English
Optional
timeoutTimeout duration for the translation request in milliseconds (default: 30000)
Optional
retryRetry attempts for the translation request in case of failure (default: 0)
Optional
raw
Represents options for translating text.