A custom node extension for ComfyUI that allows you to deploy and manage GPU instances on Xiangong Cloud directly from your ComfyUI workflow.
- One-click Deployment : Deploy GPU instances on Xiangong Cloud with customizable configurations
- Instance Management : Query instance details and list all your instances
- Auto-retry Mechanism : Automatically retry deployment when resources are temporarily unavailable
- Detailed Logging : Comprehensive logging of all operations for troubleshooting
- User-friendly Error Messages : Clear error messages for common issues
- ComfyUI installed
- Python 3.8+
- Xiangong Cloud account with API key
- Clone this repository to your ComfyUI custom_nodes directory:
cd ComfyUI/custom_nodes
git clone https://github.com/biu5332/ComfyUI-xiangongyun_deploy.git
2. Install required dependencies:
```bash
pip install requests
- Restart ComfyUI
-
Add the "部署仙宫云实例" (Deploy Xiangong Cloud Instance) node to your workflow
-
Configure the required parameters:
- api_key : Your Xiangong Cloud API key
- gpu_model : GPU model (RTX 4090, etc.)
- gpu_count : Number of GPUs
- data_center_id : Data center ID
- image : Image ID
- image_type : Image type (public/community/private)
- name : Instance name
- max_attempts : Maximum retry attempts
- retry_interval : Seconds between retries
-
Optional parameters:
- storage : Enable cloud storage
- storage_mount_path : Storage mount path
- ssh_key : SSH key
- system_disk_expand : Enable system disk expansion
- system_disk_expand_size : System disk expansion size
- debug_mode : Enable debug mode
- Add the "查询实例详情" (Query Instance Details) node to your workflow
- Connect the instance_id output from the deployment node or manually enter an instance ID
- Enter your API key
- Add the "仙宫云key" (Xiangong Cloud Key) node to your workflow
- Enter your API key to list all instances associated with your account
IMPORTANT: Use this code at your own risk
This code is provided for educational and learning purposes only. Users should understand that:
- This plugin calls the Xiangong Cloud API to deploy instances, which may incur charges. Please ensure you understand the relevant pricing standards before use.
- The author is not responsible for any direct or indirect losses caused by using this code, including but not limited to:
- Account charges
- Data loss
- Service interruption
- Security issues
- Before using this code, please ensure you have read and agreed to Xiangong Cloud's terms of service and API usage policies.
- This code does not provide any form of warranty, including but not limited to applicability, reliability, or accuracy. By using this code, you accept the above disclaimer. If you do not agree, please do not use this code.
- This code is limited to non-commercial use only. Without explicit written permission from the author, it is prohibited to use this code for any commercial purpose.
- The author is not responsible for the consequences of using this code. Users shall bear all risks associated with using this code.
- When distributing or modifying this code, this disclaimer and license terms must be retained.