POST
/
run
/
{run_id}
/
cancel
import { ComfyDeploy } from "comfydeploy";

const comfyDeploy = new ComfyDeploy({
  bearer: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
  const result = await comfyDeploy.run.cancel({
    runId: "<id>",
  });

  // Handle the result
  console.log(result);
}

run();
"<any>"

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

run_id
string
required

Response

200
application/json
Successful Response

The response is of type any.