ComfyUI > Nodes > ComfyUI-LumaAI-API > ImgBB Upload

ComfyUI Node: ImgBB Upload

Class Name

ImgBBUpload

Category
image/upload
Author
pedrogengo (Account age: 1225days)
Extension
ComfyUI-LumaAI-API
Latest Updated
2024-09-20
Github Stars
0.17K

How to Install ComfyUI-LumaAI-API

Install this extension via the ComfyUI Manager by searching for ComfyUI-LumaAI-API
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-LumaAI-API in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

ImgBB Upload Description

Automate image upload to ImgBB for AI artists, converting and transmitting images efficiently.

ImgBB Upload:

The ImgBBUpload node is designed to facilitate the seamless uploading of images to the ImgBB image hosting service. This node is particularly useful for AI artists who need to share their generated images quickly and efficiently. By converting image tensors into a format suitable for web upload, the node handles the entire process of image conversion, encoding, and transmission to ImgBB. The primary benefit of using this node is its ability to automate the image upload process, saving you time and effort while ensuring your images are readily accessible via a URL. This node is essential for those who frequently need to upload and share images as part of their workflow.

ImgBB Upload Input Parameters:

image

This parameter expects an image tensor that you wish to upload to ImgBB. The image tensor is converted into a format suitable for web upload, ensuring compatibility with ImgBB's API.

api_key

This is a required parameter that takes a string value representing your ImgBB API key. The API key is necessary for authenticating your upload request with ImgBB. Without a valid API key, the upload process cannot proceed. The default value is an empty string.

expire

This boolean parameter determines whether the uploaded image should have an expiration time. If set to true, the image will be automatically deleted after a specified period. The default value is false.

expiration_time

This integer parameter specifies the duration (in seconds) for which the image will be available before it expires. It is only relevant if the expire parameter is set to true. The minimum value is 60 seconds, and the maximum value is 15552000 seconds (approximately 180 days). The default value is 60 seconds.

ImgBB Upload Output Parameters:

image_url

This output parameter returns the URL of the uploaded image. You can use this URL to access and share the image hosted on ImgBB.

delete_url

This output parameter provides the URL that can be used to delete the uploaded image from ImgBB. This is useful if you need to manage or remove your uploaded images.

ImgBB Upload Usage Tips:

  • Ensure you have a valid ImgBB API key before using this node, as it is required for the upload process.
  • Use the expire and expiration_time parameters to manage the lifespan of your uploaded images, especially if you do not need them to be permanently available.
  • Check the image_url output to quickly access and share your uploaded images.
  • Keep the delete_url handy if you need to remove the image from ImgBB at a later time.

ImgBB Upload Common Errors and Solutions:

Error: API Key is required

  • Explanation: This error occurs when the api_key parameter is not provided or is empty.
  • Solution: Ensure that you provide a valid ImgBB API key in the api_key parameter.

Error: Unknown error

  • Explanation: This error is returned by ImgBB when the upload fails for an unspecified reason.
  • Solution: Check the details of the error message returned by ImgBB and ensure that your image and parameters meet the API requirements.

Error: <specific error message from ImgBB>

  • Explanation: This error occurs when ImgBB returns a specific error message related to the upload process.
  • Solution: Refer to the specific error message provided by ImgBB for guidance on resolving the issue. Common issues may include invalid image formats or exceeding size limits.

ImgBB Upload Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-LumaAI-API
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.