跳转到主要内容
POST
/
api
/
queue
Manage queue operations
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
}

授权

X-API-Key
string
header
必填

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.

请求体

application/json

Request to manage queue operations

delete
string[]

Array of PENDING job IDs to cancel

clear
boolean

If true, clear all pending jobs from the queue

响应

Success

deleted
string[]

Array of job IDs that were successfully cancelled

cleared
boolean

Whether the queue was cleared