Queue
Cancel a queued job
Cancel a pending job. Only jobs in pending status can be canceled. Running jobs cannot be stopped. Returns the job status after the attempt. If the job is not pending, returns 409 with the current status unchanged.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Request Body
application/json
Cancel request
Request to cancel a queued job.
model*string
Model identifier the job was submitted to
request_id*string
The request ID returned from the submit endpoint
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/queue/cancel" \ -H "Content-Type: application/json" \ -d '{ "model": "string", "request_id": "string" }'{ "status": "canceled"}