Skip to main content
POST
Cancel a queued job

Authorizations

Authorization
string
header
default:default
required

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

Body

application/json

Cancel request

Request to cancel a queued job.

model
string
required

Model identifier the job was submitted to

request_id
string
required

The request ID returned from the submit endpoint

Response

Successfully canceled

Status returned after a cancel attempt.

status
enum<string>
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.

Available options:
canceled,
running,
done,
failed