ComfyUI Node

πŸ€– Leon ImgBB Upload

Upload any ComfyUI image to ImgBB and get back a shareable URL

By l3ony2kΒ·Created about a year agoΒ·Updated 2 months agoΒ· 3
πŸ€– Leon ImgBB Upload
  • image
  • image_url
β—„api_keyβ–Ί
β—„expirefalseβ–Ί
β—„expiration_time_seconds3600β–Ί

Leon ImgBB Upload does one thing: takes a ComfyUI image tensor, uploads it to ImgBB, and hands you back a public URL. If you've ever needed to send a generated image to someone who doesn't run ComfyUI - a Discord chat, a Slack thread, a design tool that only accepts URLs - this is the node. It's the free-tier version of the pack's Hypr Upload node, and honestly for most people it's the more practical one.

ImgBB is a long-running free image host with a simple upload API: you give it an API key (free, obtained from their site) and a base64-encoded image, it gives you a URL. This node automates exactly that exchange from inside the graph. The upload itself is local, no GPU involved, no hidden cloud account beyond your ImgBB key.

How it works

The node converts the input tensor to a PIL image, encodes it as base64 PNG, and POSTs it to https://api.imgbb.com/1/upload with your key as a query parameter. Two optional knobs:

  • expire - set to True to make the image self-destruct after a set time (great for temporary sharing or when you don't want a permanent public copy).
  • expiration_time_seconds - how long, in seconds. Min 60, max 15,552,000 (180 days). Only used if expire is True.

The required inputs are image (the tensor) and api_key (your ImgBB key - the node raises immediately if it's empty, which is friendlier than most). The single output is image_url, a STRING you can pipe into ShowText, a Notion-style text node, or just copy from the console.

There's no retry wrapper here - unlike the API generation nodes in this pack, this one fails fast with a clear error, and it surfaces ImgBB's own error messages (status code plus message) when an upload is rejected.

Installing it

Pack-wide install:

cd ComfyUI/custom_nodes
git clone https://github.com/l3ony2k/comfyui-leon-nodes
pip install -r requirements.txt

Restart ComfyUI, or install "ComfyUI Leon Nodes" via ComfyUI Manager. No models, no heavy dependencies.

Where people get burned

The key is the whole game: you need a free ImgBB API key from their website, and the node won't run without one - but that failure is fast and explicit, which is the good kind. Watch the expiration semantics: expire defaults to False, so images uploaded by default live forever and are public; turn it on when you're sharing anything you don't want cached forever. Also, ImgBB's free tier has per-upload size limits and its own ToS about what you can host - keep both in mind for big renders or sensitive content. For a quick, free, no-account-on-your-part image URL, it's the node to reach for.

CategoryLeon_Utils

Inputs (4)

NameTypeDefaultDescription
imageIMAGEβ€”
api_keySTRINGYour ImgBB API key
expireoptBOOLEANfalseSet to True to make the image expire
expiration_time_secondsoptINT360060–15552000Expiration time in seconds (e.g., 3600 for 1 hour). Only used if expire is True.

Outputs (1)

NameTypeDescription
image_urlSTRINGβ€”