ComfyUI > Nodes > ComfyUI_BaiduTranslate > Text Translate

ComfyUI Node: Text Translate

Class Name

TextTranslate

Category
😺dzNodes/BaiduTranslate
Author
chflame163 (Account age: 1106days)
Extension
ComfyUI_BaiduTranslate
Latest Updated
2026-03-22
Github Stars
0.06K

How to Install ComfyUI_BaiduTranslate

Install this extension via the ComfyUI Manager by searching for ComfyUI_BaiduTranslate
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI_BaiduTranslate in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Text Translate Description

Facilitates real-time English-Chinese translation using Baidu and NiuTrans APIs for AI creators.

Text Translate:

The TextTranslate node is designed to facilitate seamless language translation using various APIs, including Baidu's developer and v2Trans APIs, as well as the NiuTrans API. This node is particularly beneficial for AI artists and creators who need to translate text content between English and Chinese, ensuring that language barriers do not hinder creativity and communication. By leveraging these APIs, the node provides real-time translation capabilities, allowing you to input text in one language and receive an accurate translation in the target language. The node intelligently handles translation errors and ensures that the output is meaningful and contextually appropriate, especially when dealing with languages that have different character sets, such as English and Chinese.

Text Translate Input Parameters:

text

This parameter represents the text that you wish to translate. It accepts a string input and supports multiline text, allowing you to translate longer passages or multiple sentences at once. The text parameter is crucial as it forms the basis of the translation process, and the quality of the input text can significantly impact the accuracy and relevance of the translation.

Translate_to_language

This parameter specifies the target language for the translation. You can choose between 'en' for English and 'zh' for Chinese, with the default set to 'en'. The choice of target language determines the direction of the translation and ensures that the output text is in the desired language, making it essential for achieving the correct translation outcome.

API

This parameter allows you to select the translation API to be used. The available options are 'Baidu developer API', 'Baidu v2Trans API', and 'NiuTrans API'. Each API has its own strengths and may offer different levels of translation accuracy and speed. Selecting the appropriate API can optimize the translation process based on your specific needs and the nature of the text being translated.

Text Translate Output Parameters:

STRING

The output of the TextTranslate node is a string that contains the translated text. This output is the result of processing the input text through the selected translation API and converting it into the target language. The translated string is crucial for users who need to understand or present content in a different language, ensuring that the message is conveyed accurately and effectively.

Text Translate Usage Tips:

  • To achieve the best translation results, ensure that the input text is clear and free of errors, as this will help the translation API produce more accurate outputs.
  • Experiment with different APIs to find the one that best suits your translation needs, as some APIs may perform better with specific types of text or language pairs.
  • When translating between languages with different character sets, such as English and Chinese, pay attention to the context and cultural nuances to ensure that the translation is appropriate and meaningful.

Text Translate Common Errors and Solutions:

API error!

  • Explanation: This error indicates that there is an issue with the API request, possibly due to incorrect API credentials or insufficient API quota.
  • Solution: Verify that you have entered the correct API key and ensure that your API account has sufficient quota for translation requests.

error!

  • Explanation: This generic error message suggests that the translation process encountered an unexpected issue, which could be due to network problems or incorrect input parameters.
  • Solution: Check your network connection and ensure that all input parameters are correctly specified. If the problem persists, try using a different API or contact support for further assistance.

Text Translate Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI_BaiduTranslate
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.