π― YFG Image to imgBB
Upload a render to imgBB and get a shareable URL, straight from the graph
- IMAGE
- MASK
- Image URL
- API Response
Want to send someone a render without dragging a file around? imgBB is the throw-it-on-the-internet image host that's been around forever, free tier included, and this node uploads your image to it from inside ComfyUI - and hands you back the URL. It's a niche need, but when you need it, it's very convenient: no separate upload tool, no copy-paste, the link appears right on an output socket.
"Image to imgBB" is part of the gonzalu/ComfyUI_YFG_Comical pack's loader family. One IMAGE in, four outputs out: the image, a mask, the Image URL, and the raw API Response string. The pack is a quiet, one-author utility collection - don't expect much community chatter, but the README covers setup well enough.
How it works
The image input is actually an upload widget (it accepts "None" or a file from your input folder). With upload_to_imgbb off, the node just loads the chosen local image and passes it through - the whole "upload" part only happens when you flip the boolean on. When you do, it POSTs the image binary to api.imgbb.com/1/upload using the API key, and the returned JSON's URL lands on the Image URL output.
Two things to note: the node can also accept a URL string in the image field (it detects and downloads remote URLs), and it needs requests, which ships with virtually every ComfyUI install.
API key setup (the actual install step)
imgBB's API requires a key. Get one free at https://api.imgbb.com/, then create imgbb_api_key.json inside the pack's loaders/ folder:
{
"api_key": "YOUR_API_KEY_HERE"
}
That's ComfyUI/custom_nodes/ComfyUI_YFG_Comical/loaders/imgbb_api_key.json. The node reads it at runtime, so no restart needed after you drop the file in.
Installing
The node itself is a standard pack install:
cd ComfyUI/custom_nodes
git clone https://github.com/gonzalu/ComfyUI_YFG_Comical
Restart ComfyUI. (Or search "YFG Comical" in ComfyUI Manager.) No model files.
The honest warnings
imgBB is a public host. Anything you upload becomes a link anyone can open - don't upload private or work product. The free tier has quotas, and the API response output exists precisely because you'll sometimes want to see why an upload failed (the JSON error text lands there). Also: the API key sits in a plaintext JSON file on your machine - same trust model as a thousand other ComfyUI nodes, but worth knowing. If your use case is really "generate β post to social," the pair of this node plus the pack's Store URL node (which keeps the link in the saved workflow) is the closest thing to an automated pipeline you'll get from stock ComfyUI.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| image | COMBO | 2 options: None, example.png | |
| upload_to_imgbb | BOOLEAN | false | β |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | β |
| MASK | MASK | β |
| Image URL | STRING | β |
| API Response | STRING | β |