SURUS AI icon

SURUS AI

Access to optimized SURUS AI nodes for specific tasks

Translate

AI-generated

Summary

Translate input text into a specified target language using SURUS AI's translation API.

Inputs

  • Text (required) — The text string to be translated.
  • Target Language (required) — The target language code (e.g., 'es', 'en', 'fr', 'de') indicating the language to translate the text into.
  • Simple Output — Boolean flag to return either a simplified output with only the main translated content or the full API response.

Output shape

A JSON object containing either the full API response or a simplified object with the translated text under 'surus_output'.

If 'Simple Output' is true, the node returns only the translated text parsed from the API response under 'surus_output'; otherwise, it returns the complete JSON response from the SURUS AI translation endpoint.

Examples

Example 1: Translate English text to Spanish with simple output

Text='Hello, world!', Target Language='es', Simple Output=true => returns {'surus_output':'Hola, mundo!'}

Discussion