You can obtain API call examples for each module based on the page shown in the above picture.
Endpoint
POST https://www.runninghub.ai/task/openapi/quick-ai-app/run
Method
POST with application/json body
Request Headers
| Header | Required | Example | Description |
|---|---|---|---|
Host | Yes | www.runninghub.ai | Your API domain (must be exact) |
Content-Type | Yes | application/json | Request content type |
⚠️ Note: The
Hostheader is mandatory and must matchwww.runninghub.ai. It may be automatically included by some HTTP clients, but be sure to double-check.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
apiKey | string | Yes | Your API key used for authentication |
webappId | string | Yes | Webapp ID, It can be obtained through the page API example. |
quickCreateCode | string | Yes | Quick creation code,It can be obtained through the page API example. |
nodeInfoList | array | Yes | List of node parameters to override before task execution |
Each item represents a node parameter override:
| Field | Type | Description |
|---|---|---|
nodeId | string | Unique ID of the node, from the exported workflow JSON |
nodeName | string | node name |
fieldName | string | Field name to override (e.g., text, seed, steps) |
fieldType | string | Field type |
fieldValue | any | New value for the field, should match the expected type |
description | string | Description |
{
"webappId": "196*******938",
"apiKey": "****************",
"quickCreateCode": "***",
"nodeInfoList": [
{
"nodeId": "2",
"nodeName": "LoadImage",
"fieldName": "image",
"fieldType": "IMAGE",
"fieldValue": "61a52873b2f16cf3734dad1d20f704d32ca5f1d77896847f27a1e1ee72eb626d.jpg",
"description": "Upload image"
},
{
"nodeId": "16",
"nodeName": "RH_Translator",
"fieldName": "prompt",
"fieldType": "STRING",
"fieldValue": "The 1/7 scale commercial model of the character in the image has been completed, featuring a realistic style and lifelike environment. The model is placed on a computer desk with a round transparent acrylic base, which bears no text. The computer screen displays the ZBrush modeling process of the figure. Next to the screen is a BANDAI-style toy box printed with the original artwork.",
"description": "Input text"
}
]
}
For Example:
Check Task Status
Cancel ComfyUI Task**:
Upload Resource(image\video\audio\Compressed Files)
How to choose the model style by Text to Image
Step 1: Query API invocation example. Text to Image is as follows.:
curl --location --request POST 'https://www.runninghub.ai/task/openapi/quick-ai-app/run' \
--header 'Host: www.runninghub.ai' \
--header 'Content-Type: application/json' \
--data-raw '{
"webappId": "1957344152277151746",
"apiKey": "****************",
"quickCreateCode": "001",
"nodeInfoList": [
{
"nodeId": "41",
"nodeName": "EmptyLatentImage",
"fieldName": "batch_size",
"fieldType": "INT",
"fieldValue": "4",
"description": "Number of generations"
},
{
"nodeId": "101",
"nodeName": "ImpactSwitch",
"fieldName": "select",
"fieldType": "SWITCH",
"fieldValue": "2",
"description": "Set ratio"
},
{
"nodeId": "56",
"nodeName": "NunchakuFluxLoraLoader",
"fieldName": "lora_name",
"fieldType": "LORA",
"fieldValue": "EVA初号机 透明机体 彩透机甲unit-01_v1.0.safetensors",
"description": "LoRA1"
},
{
"nodeId": "56",
"nodeName": "NunchakuFluxLoraLoader",
"fieldName": "lora_strength",
"fieldType": "STRING",
"fieldValue": "0.5000000000000001",
"description": "LoRA1_strength"
},
{
"nodeId": "73",
"nodeName": "NunchakuFluxLoraLoader",
"fieldName": "lora_name",
"fieldType": "LORA",
"fieldValue": "光环风格机甲 _ 硬机械_F.1.safetensors",
"description": "LoRA2"
},
{
"nodeId": "73",
"nodeName": "NunchakuFluxLoraLoader",
"fieldName": "lora_strength",
"fieldType": "STRING",
"fieldValue": "0.7000000000000002",
"description": "LoRA2_strength"
},
{
"nodeId": "57",
"nodeName": "JjkText",
"fieldName": "text",
"fieldType": "STRING",
"fieldValue": "mecha,in the sci-fi world Halo,EVA01,机甲,未来,机械,科幻,",
"description": "Trigger word"
},
{
"nodeId": "45",
"nodeName": "JjkText",
"fieldName": "text",
"fieldType": "STRING",
"fieldValue": "戴头盔穿机甲,硬核机械感机甲,简单背景,",
"description": "User input text box"
}
]
}'
Step 2: First, obtain the style parameter data of the model library. For details, please refer to-Model library style parameter data
,The details of the results are as follows:
{
"code": 0,
"msg": "success",
"data": [
{
"id": "1",
"type": 2,
"webappId": "1957344152277151746",
"modelCategory": 16,
"modelName": "[Interior Design] Industrial Style",
"modelKey": "input101",
"modelPreviewUrl": "https://rh-images.xiaoyaoyou.com/system/101.png",
"content": "The walls of the industrial-style study are joined with cement boards, retaining the ruggedness of the seams; the ceiling beams are painted dark gray, echoing the black metal bookshelves. A leather swivel chair is paired with a metal frame, and the desk lamp is a retro industrial style. The overall color palette is dominated by black, white, and gray.",
"modelTrigger": "AYIYI,hongzhuan,brickwall,黑白灰为主,金属色点缀,裸露水泥、砖块、钢铁,线条硬朗,工业风灯具,冷色调光源",
"modelLoar1FileName": "F.1_美式工业风_室内装饰_v1.0.safetensors",
"modelLoar1Weight": 0.8,
"modelLoar2FileName": null,
"modelLoar2Weight": null
}
]
}
Step 3: for example to Choose “[Interior Design] Industrial Style”,by “Model library style parameter data” Synchronously modify the nodeInfoList of the following nodes in the API call of the Text to Image function.
"nodeInfoList": [
{
"nodeId": "41",
"nodeName": "EmptyLatentImage",
"fieldName": "batch_size",
"fieldType": "INT",
"fieldValue": "4",
"description": "Number of generations"
},
{
"nodeId": "101",
"nodeName": "ImpactSwitch",
"fieldName": "select",
"fieldType": "SWITCH",
"fieldValue": "2",
"description": "Set ratio"
},
{
"nodeId": "56",
"nodeName": "NunchakuFluxLoraLoader",
"fieldName": "lora_name",
"fieldType": "LORA",
"fieldValue": "EVA初号机 透明机体 彩透机甲unit-01_v1.0.safetensors",###Modify Model library style- modelLoar1FileName field value###
"description": "LoRA1"
},
{
"nodeId": "56",
"nodeName": "NunchakuFluxLoraLoader",
"fieldName": "lora_strength",
"fieldType": "STRING",
"fieldValue": "0.5",###Modify Model library style- modelLoar1Weight field value###
"description": "LoRA1_strength"
},
{
"nodeId": "73",
"nodeName": "NunchakuFluxLoraLoader",
"fieldName": "lora_name",
"fieldType": "LORA",
"fieldValue": "光环风格机甲 _ 硬机械_F.1.safetensors",###Modify Model library style- modelLoar2FileName field value###
"description": "LoRA2"
},
{
"nodeId": "73",
"nodeName": "NunchakuFluxLoraLoader",
"fieldName": "lora_strength",
"fieldType": "STRING",
"fieldValue": "0.7",###Modify Model library style- modelLoar2Weight field value###
"description": "LoRA2_strength"
},
{
"nodeId": "57",
"nodeName": "JjkText",
"fieldName": "text",
"fieldType": "STRING",
"fieldValue": "mecha,in the sci-fi world Halo,EVA01,机甲,未来,机械,科幻,",###Modify Model library style- modelTrigger field value###
"description": "Trigger word"
},
{
"nodeId": "45",
"nodeName": "JjkText",
"fieldName": "text",
"fieldType": "STRING",
"fieldValue": "戴头盔穿机甲,硬核机械感机甲,简单背景,",###Modify Model library style- content field value, Of course, you can also customize it.###
"description": "User input text box"
}
]