Skip to main content
POST
/
queue
/
cancel
Cancel a queued job
curl --request POST \
  --url https://api.together.xyz/v1/queue/cancel \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "<string>",
  "request_id": "<string>"
}
'
{
  "status": "canceled"
}

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

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
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