Skip to main content
POST
/
queue
/
cancel
cURL
curl -X POST https://api.together.ai/v1/queue/cancel \
  -H "Authorization: Bearer $TOGETHER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "request_id": "019ba379-92da-71e4-ac40-d98059fd67c7",
    "model": "my-org/video-generator"
  }'
{
  "request_id": "019ba379-92da-71e4-ac40-d98059fd67c7",
  "model": "my-org/video-generator",
  "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