Nodes/comfyUI-tool-2lab/Youdao translator 有道翻译 (Factx API)
ComfyUI Node

Youdao translator 有道翻译 (Factx API)

Chinese text in, English out, with your Youdao app key

By AI2lab·Created 2 years ago·Updated 2 years ago· 23
Youdao translator 有道翻译 (Factx API)
  • app_key
  • app_secret
  • text
text
to_langen

If you're building workflows that need to flip between Chinese and English - translating an English prompt into Chinese for a model that responds better to it, or translating a model's Chinese output back to English for your own sanity - this node calls Youdao's translation API and returns the result as text you can wire into the rest of the graph. It's a straightforward text-in, text-out translation node with Youdao behind it.

The "Factx API" in the name is the tell. Factx is the brand of the 2lab backend (api.factx.cn), and this node sits in the pack's factxApi category - but unlike the server-backed nodes in this pack, this one has credential fields, which means it's calling Youdao with your keys rather than routing through the 2lab cloud. That's the good version of a 2lab API node: it works for standalone users.

The inputs that matter:

  • app_key and app_secret (both KEY) - your Youdao open-platform application credentials. You get these by registering an app at Youdao's open platform and enabling the text-translation service. They're hidden fields, so they won't show up in workflow screenshots.
  • text - the text to translate, multiline.
  • to_lang - the target language, default en, with zh-CHS as the alternative. Note the zh-CHS code: that's Youdao's code for Simplified Chinese. If you're translating English prompts into Chinese, that's your target.
  • text out (STRING) - the translated text.

Why reach for it? The pack's whole audience is people working with Chinese models and Chinese-market services, and Youdao is one of the solid, cheap translation providers there. Inside a graph it earns its keep in a "translate prompt → feed to model → translate result back" loop, or just as a convenience node so you don't copy-paste text between your browser and ComfyUI.

The honest caveats: it needs network, valid credentials, and Youdao's free tier has a quota that resets - burn through it mid-project and you'll suddenly get quota errors. And as with the rest of this pack, documentation is a thin Chinese README with no English community writing about these nodes; I checked, there's effectively zero discussion of this pack anywhere in the English-speaking community. So treat this page plus Youdao's own API docs as the sum total of your support.

Installing it

Part of AI2lab/comfyUI-tool-2lab. ComfyUI Manager → search "comfyUI-tool-2lab" → install → restart, or:

cd ComfyUI/custom_nodes
git clone https://github.com/AI2lab/comfyUI-tool-2lab

Restart ComfyUI. Light requirements, no model downloads. You'll also need a Youdao open-platform account and app to get the app_key/app_secret.

Common issues

Authentication errors are the headline: wrong or expired credentials produce a straightforward auth failure, and the node will surface Youdao's error text, which isn't always in English. If you're certain the keys are right and it still fails, check whether the translation service is actually enabled on the app - Youdao requires you to opt into the service separately from creating the app. And keep the quota in mind on the free tier; a hard "limit exceeded" mid-workflow is a quota problem, not a node problem. There's nothing local to go wrong - this node does no GPU work, it just makes an HTTP call.

Category🦊2lab/factxApi/llm

Inputs (4)

NameTypeDefaultDescription
app_keyKEY
app_secretKEY
textSTRING
to_langCOMBOen2 options: en, zh-CHS

Outputs (1)

NameTypeDescription
textSTRING