xbhh 保存图片 (CUI奖励) 💰
The save-image node that pays you in fake points for generating
- images
Let's be clear about what this is: a save-image node that gives you a little dopamine hit in the form of fake "CUI" currency every time you generate. It's a reskinned version of ComfyUI's own SaveImage with a gamification layer on top - no real money, no API, no blockchain nonsense. It's the node equivalent of the coins in a mobile game, and whether that's charming or cringe is entirely up to you. What it also is, mechanically, is a solid PNG saver with two toggles the stock node doesn't give you.
It lives in the "Pet" category of the XBHH kit, alongside the Live2D desktop mascot, which tells you everything about the author's priorities: this pack wants to make generating feel like a game.
How it works
The node takes your images, saves them as PNGs to ComfyUI's normal output folder, and computes a reward from pixel count. The wallet's pricing is simple:
- ≤ 786,432 pixels (768×1024 and under) → 2 CUI
- ≤ 1,048,576 pixels (1024×1024) → 5 CUI
- above that → 7 CUI
The balance is stored in ComfyUI/user/xbhh_pet/wallet.json - a plain local JSON file, one reward per batch (not per image), with a history capped at the last 1000 transactions. It writes a cui_reward text chunk into the PNG metadata showing what you earned and your balance. The currency is fully local and self-contained; the only thing you can spend it on is the warm feeling of watching it go up.
The inputs that matter
- images - the IMAGE tensor from your VAE decode.
- filename_prefix - default
XBHH. The tooltip advertises formatting like%date:yyyy-MM-dd%; note that the shipped Python uses the string as-is, so don't depend on date tokens rendering until you've confirmed it on your build - if you need guaranteed interpolation, build the prefix with the kit's dynamic text node and paste the result. - save_image - the clever toggle. Set it off and the node still "earns" CUI but writes no file to disk. Handy for running a workflow purely for the points, which is, again, a very specific hobby.
- include_workflow - on by default, which writes the full workflow + extra PNG info into the file's metadata, following the standard ComfyUI convention that the image is the project file. Flip it off and you get a "clean" PNG with no embedded graph - the choice to make when you're posting images and don't want to share the workflow.
Installing it
Standard kit install:
cd ComfyUI/custom_nodes
git clone https://github.com/xbhh123456/Comfyui-xbhh-main.git
cd Comfyui-xbhh-main
pip install -r requirements.txt
Or ComfyUI Manager → search xbhh-lora → restart.
The honest take
Mechanically this is a fine PNG saver with a metadata toggle, and if you were already going to use a save node, the save_image/include_workflow switches are genuinely useful. The CUI rewards are pure fluff - fun if you like gamified feedback, ignorable if you don't, and completely harmless either way since everything lives in a local JSON file. The one real quirk to know: the balance counts up across restarts and there's no legitimate way to spend it, so it's a scoreboard, not a wallet. If that's your thing, enjoy; if it's not, the stock SaveImage does the same job with less fanfare.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| images | IMAGE | 要保存或处理的图片 | |
| filename_prefix | STRING | XBHH | 文件名前缀,支持格式化如 %date:yyyy-MM-dd% |
| save_image | BOOLEAN | true | — |
| include_workflow | BOOLEAN | true | — |
Outputs (0)
No outputs