curl --request POST \
--url https://cloud.comfy.org/api/queue \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"delete": [
"<string>"
],
"clear": true
}
'{
"deleted": [
"<string>"
],
"cleared": true
}Cancel specific PENDING jobs by ID or clear all pending jobs in the queue. Note: This endpoint only affects pending jobs. To cancel running jobs, use /api/interrupt.
curl --request POST \
--url https://cloud.comfy.org/api/queue \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"delete": [
"<string>"
],
"clear": true
}
'{
"deleted": [
"<string>"
],
"cleared": true
}API key authentication. Generate an API key from your account settings at https://comfy.org/account. Pass the key in the X-API-Key header.
Was this page helpful?