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

      Cancel ComfyUI Task

      POST
      /task/openapi/cancel

      Request

      Authorization
      Header Params
      Host
      string 
      required
      Example:
      www.runninghub.ai
      Body Params application/json
      apiKey
      string 
      required
      Example:
      {{apiKey}}
      taskId
      string 
      optional
      Example:
      1904152026220003329
      Example
      {
          "apiKey": "{{apiKey}}",
          "taskId": "1904152026220003329"
      }

      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/cancel' \
      --header 'Host: www.runninghub.ai' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "apiKey": "Please enter your own apiKey and keep it safe.",
          "taskId": "1904152026220003329"
      }'

      Responses

      🟢200成功
      application/json
      Body
      code
      integer 
      optional
      返回标记:成功标记=0,非0失败,或者是功能码
      msg
      string 
      optional
      返回信息
      data
      null 
      optional
      数据
      Examples
      {
          "code": 0,
          "msg": "success",
          "data": null
      }
      Modified at 2025-03-26 11:20:54
      Previous
      Check Task Output
      Next
      Get Account Information
      Built with