POST
/
v1
/
ai
/
translate

Body

current_language
string

The language code of the text to translate.

target_language
string
required

The language code of the text to translate to.

text
string
required

The text to translate.

The text parameter supports two types:

  • string - {"text":"Hello, how are you doing"}
  • Array<string> - {"text":["Hello", "How are you doing"]}
Max text character is 5000.
x-api-key
string
required

Your JigsawStack API key

Response

success
boolean

Indicates whether the call was successful.

translated_text
string | string[]

The translated text.