Nodes/CometAPI/Comet 视频卡片
ComfyUI Node

Comet 视频卡片

Hold a clip, reuse it without re-paying for the generation

By nkxx188·Created 3 months ago·Updated 3 months ago· 15
Comet 视频卡片
  • video
  • video
filename_prefixCometAPIVideoCard
asset_ref

Video generation in this pack is the expensive end - a single clip can cost more than a whole batch of images. So the video card is arguably the most financially important node in the family: "Comet 视频卡片" saves a generated clip as a managed asset so you never have to re-run the billed generation just to see it again or use it downstream.

It's the video twin of Comet 图像卡片 with a simpler shape. One required input, two ways in, one way out.

How it works

The node takes either a video asset in or an asset_ref string naming a previously saved clip. Feed it a video and it saves the clip to your ComfyUI output folder under cometapi_assets using filename_prefix (default CometAPIVideoCard), then hands the same clip back out as its video output. Give it an asset_ref instead and it loads that saved clip back out - no generation, no cost. If both are present, the live video wins.

That output loop is what makes it convenient inline: the card can sit at the end of a video workflow as both the save point and the pass-through, and later workflows just reference the saved asset. Combined with the async receiver, the pattern is: Comet 异步视频提交 → Comet 异步视频收取 → Comet 视频卡片, so the one billed generation is stored the moment it arrives and can be reused forever after.

The one thing that matters: filename_prefix

filename_prefix is the only real control. It's both the path and the name prefix - change it per project or per intent, because the saved filename is built from it. Since videos are big and the folder can fill up fast, a prefix that tells you what's inside (say, intro_shots vs clients/demo) is the difference between "find it in the output folder" and "wait, which 800MB file is this."

The output is video - the same VIDEO-typed asset the pack uses everywhere, so it plugs into preview and further processing nodes without conversion.

Install and gotchas

Comes with the ComfyUI-CometAPI pack: ComfyUI Manager (search "ComfyUI-CometAPI") or git clone https://github.com/jieg9341-lab/ComfyUI-CometAPI into custom_nodes, restart. No extra dependencies beyond the pack's requests/aiohttp; the save/load itself needs no API key.

  • A live video wire means a fresh save every run. If a generation node is connected, the card saves the new clip each queue and ignores any asset_ref. When you want the reuse path, disconnect the generator and use asset_ref.
  • Saved clips live in ComfyUI/output/cometapi_assets. They're big; watch disk space if you card every clip you generate.
  • The asset_ref string must name a real saved asset. An empty or mistyped ref returns the pack's "还没有已保存的视频素材" error. Check the output folder to see what was actually saved.
  • Reuse is where the money is. One billed generation, saved once, reused in every workflow that references it. Skip the card and you're re-paying every time the upstream node re-runs.
CategoryCOMET

Inputs (3)

NameTypeDefaultDescription
filename_prefixSTRINGCometAPIVideoCard
videooptVIDEO
asset_refoptSTRING

Outputs (1)

NameTypeDescription
videoVIDEO