Upload Resource(image\video\audio)
POST
/task/openapi/upload
📌 Image-to-Image Use Case
loadImage
node to load it during workflow execution.⚠️ Note: This is not a regular image hosting service — the uploaded image cannot be accessed directly via a public URL.
📥 Response Example
{
"code": 0,
"msg": "success",
"data": {
"fileName": "api/9d77b8530f8b3591edc5c4e8f3f55b2cf0960bb2ca35c04e32c1677687866576.png",
"fileType": "image"
}
}
🧩 How to Use fileName
in the Workflow
fileName
can be inserted into a specific loadImage
node within your workflow configuration.nodeInfoList
:"nodeInfoList": [
{
"nodeId": "10",
"fieldName": "image",
"fieldValue": "api/9d77b8530f8b3591edc5c4e8f3f55b2cf0960bb2ca35c04e32c1677687866576.png"
}
]
Request
Header Params
Host
string
required
Example:
www.runninghub.ai
Body Params multipart/form-data
apiKey
string
required
Example:
{{apiKey}}
file
file
optional
Example:
file://D:\temp\ComfyUI_00743_uiqpt_1742470204.png
fileType
string
optional
Example:
image
Request samples
Responses
Modified at 2025-04-07 08:02:53