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"
}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.
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"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Cancel request
Successfully canceled
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.
canceled, running, done, failed Was this page helpful?