runninghub-api
    runninghub-api
    • Instructions for Use
    • About nodeInfoList
    • About Enterprise ComfyUI API
    • Native ComfyUI API Integration Guide
    • Start ComfyUI Task 1 - Basic
      POST
    • Start ComfyUI Task 2 - Advanced
      POST
    • Start AI App Task
      POST
    • Get Workflow JSON
      POST
    • Check Task Status
      POST
    • Check Task Output
      POST
    • Cancel ComfyUI Task
      POST
    • Get Account Information
      POST
    • Upload Resource(image\video\audio)
      POST
    • Upload Lora
      POST
    • Get Webhook Event Details
      POST
    • Resend Specific Webhook Event
      POST

      Start AI App Task

      POST
      /task/openapi/ai-app/run
      Supports specifying a webhookUrl. You can view a sample nodeInfoList on the AI App details page.

      Request

      Authorization
      Header Params
      Host
      string 
      required
      Example:
      www.runninghub.cn
      Body Params application/json
      apiKey
      string 
      required
      webappId
      integer <int64>
      required
      nodeInfoList
      array [object] 
      required
      webhookUrl
      string 
      optional
      Example
      {
          "webappId": "1877265245566922753",
          "apiKey": "{{apiKey}}",
          "nodeInfoList": [
              {
                  "nodeId": "122",
                  "fieldName": "prompt",
                  "fieldValue": "1 golden haire girl in bathroom"
              }
          ]
      }

      Request 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/ai-app/run' \
      --header 'Host: www.runninghub.cn' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "webappId": "1877265245566922753",
          "apiKey": "Please enter your own apiKey and keep it safe.",
          "nodeInfoList": [
              {
                  "nodeId": "122",
                  "fieldName": "prompt",
                  "fieldValue": "1 golden haire girl in bathroom"
              }
          ]
      }'

      Responses

      🟢200成功
      application/json
      Body
      object {0}
      Example
      {
          "code": 0,
          "msg": "success",
          "data": {
              "netWssUrl": "wss://www.runninghub.cn:443/ws/c_instance?c_host=222.186.161.123&c_port=85&clientId=14caa1db2110a81629c101b9bb4cb0ce&workflowId=1876205853438365698&Rh-Comfy-Auth=eyJ1c2VySWQiOiJkZTBkYjZmMjU2NGM4Njk3YjA3ZGY1NWE3N2YwN2JlOSIsInNpZ25FeHBpcmUiOjE3NDQxMTI1MjEyMzYsInRzIjoxNzQzNTA3NzIxMjM2LCJzaWduIjoiZDExOTE0MzkwMjJlNjViMjQ5MjU2YzU2ZmQxYTUwZjUifQ%3D%3D",
              "taskId": "1907035719658053634",
              "clientId": "14caa1db2110a81629c101b9bb4cb0ce",
              "taskStatus": "RUNNING",
              "promptTips": "{\"result\": true, \"error\": null, \"outputs_to_execute\": [\"115\", \"129\", \"124\"], \"node_errors\": {}}"
          }
      }
      Modified at 2025-04-01 12:14:23
      Previous
      Start ComfyUI Task 2 - Advanced
      Next
      Get Workflow JSON
      Built with