Wiro - Translate Gemma 4B It icon

Wiro - Translate Gemma 4B It

Access Translate Gemma 4B API by Google on Wiro. Simple integration, transparent pricing, and c

Wiro - Translate Gemma 4B It

AI-generated

Overview

This node integrates with the Wiro Translate Gemma 4B API by Google to perform language translation tasks. It sends a translation prompt along with source and target languages and a maximum token limit to the API, then polls the task status until completion. This node is useful for automating translation workflows where you need to translate text from one language to another with control over the output length.

Use Case Examples

  1. Translating a text prompt from English to Italian with a specified maximum number of new tokens.
  2. Automating batch translation tasks in a workflow where the source and target languages vary dynamically.

Properties

Name Meaning
Prompt The text prompt to be translated.
Source Language The language code of the source text to be translated.
Target Language The language code of the target language for translation.
Maximum New Tokens The maximum number of new tokens to generate in the translation output.

Output

JSON

  • taskid - The unique identifier of the translation task.
  • url - The URL returned upon task completion, possibly containing the translation result or related resource.
  • status - The status of the translation task, indicating if it completed successfully or failed.

Dependencies

  • Wiro API key and secret credentials for authentication.

Troubleshooting

  • If the node throws an error about missing or invalid task ID or socket access token, verify that the Wiro API credentials are correct and that the API endpoint is reachable.
  • If the task status returns as failed (-1, -2, -3, -4), check the prompt and language parameters for correctness and ensure the API service is operational.

Discussion