Translate text to a specified language.
POST/ai/translate
Translates the provided text into the specified target language using OpenAI.
Request
Header Parameters
ipaas string
- application/json
Bodyrequired
textstringrequired
The text to be translated.
Example:
Hello, world!
resultLangstringrequired
The target language code to translate the text into.
Example:
es
Responses
- 200
- 400
Success
- application/json
- Schema
- Example (auto)
Schema
translationstringrequired
The translated text.
{
"translation": "string"
}
Bad Request
- application/json
- Schema
- Example (auto)
Schema
statusnumber
errorMessagestring
{
"status": 0,
"errorMessage": "string"
}