This API is used for resource uploads, supporting the upload of images, audio, video, and ZIP compressed packages (image compressed packages) to the RunningHub server. Uploaded files will be loaded by corresponding loading nodes (e.g., LoadImage, LoadImages(zip), LoadAudio, and LoadVideo) and used as input resources for workflows.⚠️ Important Notes:
Not an image hosting/file storage service: Uploaded images, audio, video, and compressed packages cannot be directly accessed via URL.
The returned fileName field is the relative path of the file in the server. Do not randomly concatenate it into external links for access.
The maximum size of a single file for all types is 30MB.
✅ Recommended Practices
If a file exceeds 30MB, please upload it to cloud storage (e.g., OSS, COS, S3, etc.) and pass the file's public direct-link URL to the corresponding loading node in the workflow.
The cloud storage path must support external link access. Ensure the link is accessible and stable.
The size of compressed files must be limited to within 30MB.
fileName is the unique path for file loading and must be accurately passed to the corresponding node.
📥 How to Use Files in Corresponding Loading Nodes#
After obtaining the fileName returned from the upload, configure it in the workflow according to the file type and matching node, as shown in the examples below:
fieldName: The field name (e.g., use "image" for image input)
fieldValue: The value of the fileName field returned from the upload
📝 Post-Upload File Usage Process (Taking Image Compressed Packages as an Example)#
1. Create a New Workflow (ZIP Batch Image Upload)#
2. Fill in the Response Information in the Corresponding Position#
Find the specified locationFill in the informationIf further support is needed, please contact the technical team.
Request
Authorization
Header Params
Body Params multipart/form-data
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://www.runninghub.ai/task/openapi/upload' \
--header'Host: www.runninghub.ai' \
--header'Authorization: Bearer [Your API KEY]' \
--form'apiKey="Please enter your own apiKey and keep it safe."' \
--form'file=@"D:\\temp\\ComfyUI_00743_uiqpt_1742470204.png"' \
--form'fileType="input"'