Comflowy Set API Key
Literally, the one that makes every Comflowy node work
Every paid node in the Comflowy pack - Flux, Ideogram, Recraft, Kling, Hailuo, the whole Replicate side - fails without this one. It doesn't generate anything. It just tells the pack who's paying for the API calls. You run it once, paste in your key, and the rest of the nodes stop complaining about auth.
The workflow the README suggests is straightforward: create a Comflowy account, grab your API key from Settings in the bottom-left of the app, paste it into this node, run it, and then delete the node - the key persists afterward. That last part surprises people, so it's worth spelling out.
How it works
This is the simplest node in the pack. It takes your key, refuses to save an empty string, and writes it to a small JSON file (api_key.json) inside the pack's flowy/ directory. From then on, every FlowyApiNode calls load_api_key() at generation time, reads that file, and sends Authorization: Bearer <key> with its request. Because the key lives in a file, it survives deleting the node and even survives restarting ComfyUI - it only dies if you remove the pack or manually wipe the file.
- Input:
api_key(STRING) - Outputs: none.
Install
It ships with Comflowy's Custom Nodes, so install the pack and the node is right there:
cd ComfyUI/custom_nodes
git clone https://github.com/6174/comflowy-nodes
(Or ComfyUI Manager → search "Comflowy's Custom Nodes".) Restart, and you're one paste away.
Where people get burned
The first error you'll hit without a key is API Key is not set. Please use the 'Comflowy Set API Key' node first. - the pack's own words, so the fix is obvious when you see it. A couple of quieter traps:
- The key is stored in plaintext JSON. Anyone with read access to your ComfyUI folder can lift it. The README warns you not to share it, and that warning is doing real work. Don't commit it, don't post it in a workflow screenshot, don't leave the pack on a shared machine.
- Reinstalls wipe it. Cloning the pack fresh resets the file, so after an upgrade or a nuke-and-reclone you'll quietly lose your key and get auth errors on the first run. Just re-run this node.
- It's not your Replicate token. For the Replicate nodes in this pack, this single Comflowy key covers billing - you don't need your own Replicate API key, and this node is what makes that work.
It's two minutes of setup that unlocks the entire pack. Do it once, forget it, and when an auth error shows up months later, you'll remember this page.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| api_key | STRING | — |
Outputs (0)
No outputs