Nodes/comfyui_LLM_party/Image Hosting
ComfyUI Node

Image Hosting

Upload an image and get a public URL for vision LLMs

By heshengtao·Created 2 years ago·Updated 7 days ago· 2,321
Image Hosting
  • image
  • img_URL
  • is_help
api_key
img_hostingsm.ms
is_enabletrue
img_hosting_urlhttp://mysite.com/api/1/upload

Plenty of vision-capable LLM APIs want a public image URL, not raw image bytes. If you're building a workflow where an LLM needs to look at something ComfyUI just generated, you have to get that image onto the public internet first - that's what this node is for. It uploads an image to one of a handful of image-hosting services and hands back the resulting URL, ready to drop into a vision-LLM call.

The pack's own README frames it the same way: it recommends this node specifically for "image input LLM" setups, calling out imgbb by name as the recommended host.

How it works

You give it an image and pick a hosting service; it uploads and returns the hosted URL.

The inputs and outputs that matter

  • image - the image to upload.
  • img_hosting - which service to use: chevereto, sm.ms, imgbb.com, or imagehub.cc. sm.ms and imgbb.com are free public hosts with fixed upload endpoints; chevereto and imagehub.cc are self-hostable, which is why there's a separate URL field for them.
  • api_key - your API key/token for whichever service you picked. Each host issues its own, so this isn't interchangeable between services.
  • img_hosting_url (optional, default a placeholder like http://mysite.com/api/1/upload) - only relevant for chevereto or a self-hosted imagehub.cc-style instance, where there's no single fixed endpoint to hardcode. Leave sm.ms/imgbb.com alone and this doesn't matter.
  • is_enable - standard bypass toggle.

Outputs: img_URL (STRING) - the hosted image's public URL, the one you actually want. is_help (STRING) - a secondary status/diagnostic string; if an upload fails, checking this alongside img_URL is a reasonable first move even though the schema doesn't spell out exactly what it carries in every case.

How to install it

Via ComfyUI Manager: search comfyui_LLM_party, install, restart. Manually:

cd ComfyUI/custom_nodes
git clone https://github.com/heshengtao/comfyui_LLM_party.git

Then pip install -r requirements.txt from inside the pack folder using ComfyUI's own Python, and restart. No local model needed - just an account (and API key) with whichever hosting service you pick.

Common issues & troubleshooting

imgbb uploads fail even with a correct-looking key. This one's directly in the pack's own changelog: imgbb briefly moved to the domain imgbb.io, that service was then discontinued, and the pack reverted to the original imgbb.com. If uploads to imgbb are failing, make sure you're on a current version of the pack rather than one pinned to the brief imgbb.io period.

sm.ms is slow or unreachable from China. The README notes sm.ms has a regional mirror domain, smms.app, specifically for users in mainland China - worth knowing if requests are timing out.

Uploads fail on chevereto or imagehub.cc. Check img_hosting_url first - these aren't fixed-endpoint services like sm.ms/imgbb.com, so an empty or placeholder URL here will fail even with a valid api_key.

Everything looks right but the upload still fails. Confirm api_key matches the service actually selected in img_hosting - a valid key for one host is meaningless against another.

Category大模型派对(llm_party)/转换器(converter)

Inputs (5)

NameTypeDefaultDescription
imageIMAGE
api_keySTRING
img_hostingCOMBOsm.ms4 options: chevereto, sm.ms, imgbb.com, imagehub.cc
is_enableBOOLEANtrue
img_hosting_urloptSTRINGhttp://mysite.com/api/1/upload

Outputs (2)

NameTypeDescription
img_URLSTRING
is_helpSTRING