Nodes/comfyUI-tool-2lab/input user key 输入用户密钥
ComfyUI Node

input user key 输入用户密钥

The pack's oddest node — a key input with nowhere to plug in

By AI2lab·Created 2 years ago·Updated 2 years ago· 23
input user key 输入用户密钥
      userKey

      I'll be straight with you: InputUserKey (2lab) is the strangest node in this pack, because it has exactly one input field, no outputs, and nothing to connect it to. Open it, and you get a single userKey text box. That's it. No output ports at all. So what's it for?

      Read the display name - "input user key 输入用户密钥" (input user key) - and remember which category it sits in: workflow2Api. In the pack's intended hosted design, this is where the end user pastes their own credential - an API key, a token, a subscription key - when they run your exported workflow. It's a parameter declaration, not a processing node: "this workflow needs the person running it to supply a key." The node exists to be read by the hosting layer, not to transform data on your graph.

      How it works

      The single required input is userKey - a STRING field where a key goes. That's the entire node. It's flagged as an output node, which in ComfyUI terms means it can sit as a terminal point in a graph without needing to feed anything onward.

      The honest take for local use: this node does nothing on your own machine. There's no output to wire, no value that propagates. It's a placeholder whose meaning only materializes inside the author's hosted workflow-to-API flow, which is not documented in the pack (the README is one word long). If you're building local workflows, skip it - it will just sit there on your graph being a text box with no friends.

      Where it does make sense: if you're laying out a workflow you intend to ship through an API/service layer where each caller has their own key, dropping this node in is how you reserve the slot. Same pattern as the other workflow2Api nodes (the InputInt, InputText, InputImage family with their export flags) - but where those also function as real inputs, this one is pure interface furniture.

      Installing it

      Part of AI2lab/comfyUI-tool-2lab, installed like the rest of the pack: ComfyUI Manager → search comfyUI-tool-2lab → Install → restart, or:

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

      Restart ComfyUI after. No models, no dependencies. If you got here because you saw the node in a downloaded workflow and wondered where it plugs in - that's a fair question, and the answer is "nowhere, locally." You can delete it without breaking anything, or leave it as the pack's little reminder that someone designed this collection around turning graphs into callable APIs.

      Category🦊2lab/workflow2Api

      Inputs (1)

      NameTypeDefaultDescription
      userKeySTRING

      Outputs (0)

      No outputs