v4

OpenAPI 3.1.0MIT2026-08-04193459793.6 KB
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.

post/queue/cancel

Request body

modelstring required

Model identifier the job was submitted to

request_idstring required

The request ID returned from the submit endpoint

Response

Successfully canceled

status'canceled' | 'running' | 'done' | 'failed' required

Job status after the cancel attempt. Only pending jobs can be canceled. If the job is already running, done, or failed, the status is returned unchanged.