Zhenzhen API Settings
Set your Comfly API key once, stop pasting it into twenty nodes
- apikey
- api_config
This is not a generation node. Comfly_api_set is the pack's front door - the one place you set your API key and pick which relay line to talk to, and every other Comfly node then reads the same config. If you install Comfyui_Comfly and skip this node, nothing breaks per se, because each node also has its own apikey input. But paste that key into fifty nodes and you'll regret it the day you need to rotate it. Set it here once instead.
What the inputs actually do
- api_base - four options:
comfly(the main relay at ai.comfly.chat, default),hk, andus(alternate relay lines - the code points these at gptbest.vip endpoints), plusipfor pointing at your own reverse-proxy address. - apikey - your key from https://ai.comfly.chat.
- custom_ip - only matters if
api_baseisip.
Mechanically, running the node does two things: it writes the key into the pack's Comflyapi.json config file, and it sets the in-memory base URL that every sibling node uses when firing requests. If you pick ip and leave custom_ip blank it raises a ValueError on purpose - you told it to use a custom address and then didn't give one.
Why the relay lines matter
The whole pack is one long chain of paid API calls, and third-party relays go down. When the main comfly line starts failing or timing out, flipping to hk or us is the documented stability move - the README's own advice is basically "if it's flaky, switch lines." That's a genuinely useful escape hatch that most paid node packs don't give you, and it's the main reason this node earns its keep past day one.
The output
It returns a single apikey string. You can wire it into other nodes' apikey inputs if you want an explicit connection on the graph, but it's optional - they auto-read the config this node writes. Wiring it is mostly for people who like seeing the data flow on screen.
Install
Same as the whole pack:
cd ComfyUI/custom_nodes
git clone https://github.com/ainewsto/Comfyui_Comfly
Or ComfyUI Manager → search "Comfyui_Comfly" → restart. No models, no heavy deps beyond what ComfyUI already ships. You do need a paid account with credits at https://ai.comfly.chat.
Gotchas
The author tests on Windows 11 only, so config-file paths and such are best-tested there. And one honest warning: this node stores your key in plaintext in Comflyapi.json inside the custom node folder - don't share that folder or commit it anywhere. It's a third-party paid service, so treat the key like a credit card, because effectively that's what it is.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| api_base | COMBO | seedance_low_price | 3 options: zhenzhen, seedance_low_price, ip |
| apikey | STRING | — | |
| custom_ipopt | STRING | — | |
| skip_erroropt | BOOLEAN | false | 开启后,节点失败时不报错、按旧行为返回默认空结果;关闭时(默认)失败直接抛出错误。 |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| apikey | STRING | — |
| api_config | ZHENZHEN_SEEDANCE2_CONFIG | — |