ComfyUI > Nodes > ComfyUI_BaiduTranslate > BaiduTrans(DevApi)

ComfyUI Node: BaiduTrans(DevApi)

Class Name

BaiduTrans_DevApi

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

BaiduTrans(DevApi) Description

Facilitates seamless text translation for creators using Baidu's API, auto-detecting languages.

BaiduTrans(DevApi):

The BaiduTrans_DevApi node is designed to facilitate seamless text translation using Baidu's Developer API. This node is particularly beneficial for AI artists and creators who need to translate text content between different languages as part of their creative process. By leveraging Baidu's robust translation capabilities, this node automatically detects the source language and translates it into the desired target language. The primary goal of this node is to provide an efficient and reliable translation service that integrates smoothly into your workflow, allowing you to focus on your creative tasks without worrying about language barriers. The node handles the complexities of API communication, including generating necessary authentication signatures, ensuring that you receive accurate translations with minimal setup.

BaiduTrans(DevApi) Input Parameters:

text

The text parameter is a string input that represents the content you wish to translate. It supports multiline text, allowing you to input paragraphs or longer text blocks. The function of this parameter is to provide the source material for translation. There are no explicit minimum or maximum values for this parameter, but it should be noted that excessively large text inputs may affect performance or exceed API limits.

Translate_to_language

The Translate_to_language parameter specifies the target language for the translation. It offers options such as en for English and zh for Chinese, with the default set to en. This parameter determines the language into which the source text will be translated, directly impacting the output of the node. Selecting the appropriate target language is crucial for obtaining the desired translation results.

BaiduTrans(DevApi) Output Parameters:

STRING

The output parameter is a STRING that contains the translated text. This output is the result of the translation process, providing you with the content in the specified target language. The importance of this parameter lies in its role as the final product of the translation operation, which you can then use in your creative projects or further processing.

BaiduTrans(DevApi) Usage Tips:

  • Ensure that your API credentials (appid and appkey) are correctly configured and have sufficient API quota to avoid interruptions in translation services.
  • Use the Translate_to_language parameter to specify the desired target language accurately, as this will directly affect the translation output.

BaiduTrans(DevApi) Common Errors and Solutions:

API error!

  • Explanation: This error indicates a problem with the API request, possibly due to incorrect API credentials or insufficient API quota.
  • Solution: Verify that your appid and appkey are correctly entered and that your API account has enough quota for the translation request.

百度翻译API错误!,请检查是否填写正确的API Key并且有足够的API流量?

  • Explanation: This error message suggests that there might be an issue with the API key or the available API traffic.
  • Solution: Double-check your API key for accuracy and ensure that your account has not exceeded its API usage limits.

BaiduTrans(DevApi) 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.