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