requests>=2.28.0 Pillow>=9.0.0 numpy>=1.21.0 torch>=1.13.0
** This is untested as I have no access to runninghub. It might work, It might not.
Custom ComfyUI nodes for integrating RunningHub’s AI image and video generation services into your workflows.
This package is a conversion of the freeqwenimage web application into ComfyUI custom nodes, allowing you to use RunningHub’s AI capabilities directly in ComfyUI.
cd ComfyUI/custom_nodes/
git clone https://github.com/marduk191/comfyui_qwen_runninghub.git
cd comfyui_qwen_runninghub
pip install -r requirements.txt
You need to obtain API credentials from RunningHub:
WEBAPP_ID and API_KEY from the dashboardSet them as environment variables:
export RUNNINGHUB_WEBAPP_ID="your_webapp_id_here"
export RUNNINGHUB_API_KEY="your_api_key_here"
Or on Windows:
set RUNNINGHUB_WEBAPP_ID=your_webapp_id_here
set RUNNINGHUB_API_KEY=your_api_key_here
Alternatively, you can enter them directly in the node parameters in ComfyUI.
Restart ComfyUI to load the new nodes. You should see them under the “RunningHub” category.
Generate images from text prompts.
Inputs:
prompt (string, required) – Text description of the image to generatenegative_prompt (string, optional) – Things to avoid in the imagewebapp_id (string, required) – Your RunningHub webapp IDapi_key (string, required) – Your RunningHub API keytimeout (int, optional) – Maximum wait time in seconds (default: 600)Outputs:
IMAGE – Generated imageTransform an existing image using a text prompt.
Inputs:
image (IMAGE, required) – Source image to transformprompt (string, required) – Description of how to transform the imagewebapp_id (string, required) – Your RunningHub webapp IDapi_key (string, required) – Your RunningHub API keytimeout (int, optional) – Maximum wait time in seconds (default: 600)Outputs:
IMAGE – Transformed imageEnhance the quality and resolution of an image.
Inputs:
image (IMAGE, required) – Image to enhancewebapp_id (string, required) – Your RunningHub webapp IDapi_key (string, required) – Your RunningHub API keytimeout (int, optional) – Maximum wait time in seconds (default: 600)Outputs:
IMAGE – Enhanced imageConvert a static image into a video.
Inputs:
image (IMAGE, required) – Source imageprompt (string, optional) – Description for video generationwebapp_id (string, required) – Your RunningHub webapp IDapi_key (string, required) – Your RunningHub API keytimeout (int, optional) – Maximum wait time in seconds (default: 600)Outputs:
video_url (STRING) – URL of the generated videoLoad an image from a URL.
Inputs:
url (string, required) – URL of the image to loadOutputs:
IMAGE – Loaded imageThis integration uses the RunningHub API which provides:
https://www.runninghub.cnThe RunningHub API uses different node IDs for different operations:
Make sure you’ve set the environment variables or entered the credentials in the node parameters:
export RUNNINGHUB_WEBAPP_ID="your_webapp_id"
export RUNNINGHUB_API_KEY="your_api_key"
If tasks are timing out, try increasing the timeout parameter to 900 or 1200 seconds (15-20 minutes).
Check the console output for detailed error messages from the RunningHub API. Common issues:
Make sure all dependencies are installed:
pip install -r requirements.txt
This ComfyUI integration is based on the freeqwenimage web application, which provides a Next.js-based interface to RunningHub’s AI services.
MIT License
For issues or questions: