Set Bailian LLM Service Connector ๐
ComfyUI Node Guide
- llm_service_connector
If you've ever wondered why half the LLM connector nodes in ComfyUI-MieNodes exist, it's because their author isn't trying to pick a winner between providers - she's plumbing all of them in so whichever one is cheap or good this month is one click away. Set Bailian LLM Service Connector is the plug for Alibaba Cloud's Bailian (็พ็ผ) platform, which is Alibaba's hosted marketplace for Qwen and a growing pile of other people's models. It doesn't generate anything by itself. It just packages your API key and model choice into a connector object that downstream nodes - the pack's Translator, the Kontext Prompt Generator, BerniniPromptGenerator - actually call.
That's worth internalizing before you drop this node: on its own it does nothing visible. Run it in isolation and you get an unused output. It only matters once you wire llm_service_connector into something that makes a request.
Inputs that matter. api_token is your Bailian key, gotten from the Alibaba Cloud console (bailian.console.aliyun.com). model_select is a dropdown of 17 model IDs, defaulting to qwen3.7-max - but look at the list and you'll notice it isn't Qwen-only. glm-5.2 shows up in there too, because Bailian is a hosting marketplace, not just Alibaba's own model line. Alibaba's Tongyi umbrella (the lab behind Qwen, Wan, and Z-Image) has been the open-model community's default source since 2025 precisely because it ships Apache 2.0 and doesn't lock things down the way Western labs increasingly do - Bailian is the commercial, pay-per-token front door to that same lineage plus whatever else Alibaba has struck a deal to host.
If the dropdown doesn't have the model you want - and it won't, the day Alibaba ships something newer than this node's last update - use custom_model instead. Whatever string you put there overrides the dropdown entirely.
The config-file trap. This is the one thing every connector in this pack shares, and it catches people every time: prefer_local_config defaults to true. That means the node reads mie_llm_keys.json (a file you copy from mie_llm_keys.json.example and keep next to the README, intentionally un-committed to git) and, if it finds a non-empty bailian entry there, uses that key instead of whatever you typed into api_token on the node. Type a key into the node, get confused why it's ignored - that's this setting. Either fill in the JSON file and leave the node's api_token blank, or flip prefer_local_config to false if you want the node's own field to win. config_key lets you point at a different entry in that file if you're juggling multiple Bailian accounts.
Install. Search "ComfyUI_MieNodes" in ComfyUI Manager, or cd ComfyUI/custom_nodes && git clone https://github.com/MieMieeeee/ComfyUI-MieNodes and restart. No models to download for this node specifically - it's pure API glue, the only dependency is an internet connection and a funded Bailian account.
Where this actually fits. MieNodes itself is a smaller pack - you won't find much chatter about it in ComfyUI communities yet, unlike the author's other tool, ComfyUI-CaptionThis, which does get recommended in dataset-prep threads. That's not a knock; it just means you're an early adopter, not a beta tester of something broken. The pack reads like a content creator's personal toolbox that got open-sourced, and the LLM connectors are the foundation everything else - prompt rewriting, translation, captioning - sits on.
Troubleshooting. A connector with no downstream consumer produces nothing to look at - check you've actually wired the output somewhere. An auth failure almost always traces back to the config-file precedence above, so check mie_llm_keys.json before assuming your key is bad. And if a model you pick from the dropdown 400s, it's likely been deprecated or renamed on Alibaba's end since this node's model list was last refreshed - fall back to custom_model with whatever ID Bailian's own console currently lists.
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| api_token | STRING | โ | |
| model_select | COMBO | qwen3.7-max | 17 options: qwen3.7-max, qwen3.7-plus, qwen3.6-flash, qwen3.6-plus, qwen3.5-flash, qwen3.5-plus, +11 |
| custom_modelopt | STRING | โ | |
| config_fileopt | STRING | mie_llm_keys.json | โ |
| config_keyopt | STRING | bailian | โ |
| prefer_local_configopt | BOOLEAN | true | โ |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| llm_service_connector | LLMServiceConnector | โ |