ComfyUI Extension: ComfyUI Upload to BASE Node

Authored by babe-and-spencer-enterprises

Created

Updated

3 stars

A custom ComfyUI node that lets you upload generated images directly to your a/BASE account — no manual downloads or re-uploads needed.

Custom Nodes (0)

    README

    ComfyUI Upload to BASE Node

    A custom ComfyUI node that lets you upload generated media directly to your BASE account — no manual downloads or re-uploads needed.


    šŸš€ Features

    • Upload static images or MP4 videos from a ComfyUI workflow to your BASE account
    • Supports direct upload of browser-compatible MP4 video files
    • Optionally specify a folder ID to organize uploads
    • Secure uploads via personal API key
    • Streamlines creative workflow between ComfyUI and BASE

    🧩 Installation

    1. Clone this repo into your ComfyUI custom_nodes/ directory:

      cd ComfyUI/custom_nodes/
      git clone https://github.com/babe-and-spencer-enterprises/base-comfyui-node.git
      
    2. Restart ComfyUI.

    3. The node will appear under the BASE category in the node menu as Upload to BASE.


    šŸ” Generate Your API Key

    1. Log in at go.getbase.app
    2. Go to Settings → Integrations
    3. Click Generate API Key
    4. Copy and paste this key into the api_key input of the node in ComfyUI

    This key securely links your uploads to your BASE account.

    Generate API Key Screenshot


    šŸ› ļø Node Inputs

    | Input | Description | |-------------|--------------------------------------------------------------------------------------------------------------------------| | image | (Optional) A single image to upload (connect from a VAEDecode node). Ignored if video is provided. | | video | (Optional) A video file to upload as browser-compatible MP4. Takes precedence over image. | | api_key | Your personal BASE API key (see above). | | folder_id | (Optional) The ID of a folder in your BASE account to store the image/video under. Right-click a folder in BASE to copy its ID. |

    At least one of image or video must be provided.


    šŸ“¦ Node Behavior

    This is an output node in ComfyUI. It performs an upload as a side effect and does not return any value to the graph.

    • If video is provided, the node uploads a browser-compatible MP4 video to your BASE account.
    • Otherwise, a static PNG image is uploaded.

    šŸ’” Example Workflow

    Place this node at the end of your workflow as an output node. Example use cases:

    • Static image upload: Connect a single image (e.g., from VAEDecode) to image input to upload a PNG.
    • Video upload: Connect a video file to the video input to upload it as an MP4.

    Provide your BASE API key and (optionally) a folder ID. The node will upload the file to your BASE account as a side effect; it does not return any value to the graph.


    šŸ“ Repository Structure

    base-comfyui-node/
    ā”œā”€ā”€ base_upload_node.py   # The custom node logic
    ā”œā”€ā”€ __init__.py           # Node registration
    ā”œā”€ā”€ README.md             # This file
    ā”œā”€ā”€ LICENSE               # MIT License
    ā”œā”€ā”€ .gitignore            # Python-specific ignores
    

    šŸ¤ License

    This project is licensed under the MIT License. Use freely with attribution.