Nodes/CometAPI/CometAPI 设置中心
ComfyUI Node

CometAPI 设置中心

Keys, channels, and why nothing works until you open this

By nkxx188·Created 3 months ago·Updated 3 months ago· 15
CometAPI 设置中心

      Every node in this pack phones home to a cloud image, video, or text API - and none of them will return a real result until you've done this one setup step. The "CometAPI 设置中心" is where you hand the pack its API keys and pick which reseller channels it's allowed to call. If you're getting the "缺少 API Key,请先在设置中心填写" error everywhere, this is the node you forgot.

      It looks weird on the canvas: drop it in, and it has no input sockets, no output sockets, no widgets you can poke. That's by design. It's a stub whose only job is to open the settings panel in the frontend - the execute() returns nothing and the real interface lives in the pack's web UI. Think of it as a door, not a node.

      What you configure there

      The panel is where you manage the things every other Comet node reads at runtime:

      • Channels. The image nodes offer grsai, runninghub, modelverse, apimart, and openrouter; video nodes narrow that to apimart, runninghub, modelverse; the LLM node drops openrouter. Each is a separate account ecosystem with its own key field.
      • API keys, per channel. These are stored locally in data/cometapi_settings.json inside the plugin folder - plain JSON, not encrypted. Don't commit it to a repo and don't share it.
      • Models, aliases, custom models, and prompt presets, plus the per-model parameter defaults that drive the "dynamic parameters" on the generation nodes.

      Here's the thing worth knowing before you buy anything: this pack does not take first-party Google or OpenAI keys in most cases. grsai, apimart, runninghub are resellers - you buy credits on their platform and paste the key they give you. That's a legit way to reach Nano Banana or Veo without a Google Cloud project, and it's also a reminder to keep a copy of what you paid and where, because the pack will happily talk to whichever channel you select.

      Install (same for the whole pack)

      Via ComfyUI Manager, search "ComfyUI-CometAPI" (or the pack title "CometAPI") and install. Or the manual way:

      cd ComfyUI/custom_nodes
      git clone https://github.com/jieg9341-lab/ComfyUI-CometAPI.git
      

      Then restart ComfyUI. The pack's only real dependencies are requests and aiohttp; if a node complains about missing network libs, install them into ComfyUI's Python:

      python -m pip install requests aiohttp
      

      There are no model downloads - everything runs remotely, so install is fast and light.

      Common issues

      • Keys vanish or "channel not supported" - check you selected the same channel where you actually have credits. A key for apimart won't authenticate against grsai.
      • UI is in Chinese. The author is a Bilibili creator ("那颗星星188") and the pack is Chinese-first. The settings panel follows. You can use it fine without reading Chinese, but the model names in the dropdowns are worth screenshotting to remember which channel carries which.
      • License is non-commercial by default. Personal learning, academic, and non-profit use is free; commercial use requires buying a license from the author. Worth knowing before you build a client deliverable on top of it.

      One more: the README also warns against hardcoding keys inside the private_channels extension files - keys belong in the settings panel, not in code you might push to a public repo. Take the hint.

      CategoryCOMET

      Inputs (0)

      No inputs

      Outputs (0)

      No outputs