Stop or Cancel a Training Job
Stop training early and save the model, or cancel training and discard its weights.
You can end a training job before it finishes. Stop training early to save the current model weights. Cancel training to discard the weights.
Use when
The model has converged or already meets your goals.
You do not want a model from the training job.
Model weights
Saved
Discarded
Credits
You pay for the credits used.
You may receive a refund if you cancel early in the job. A refund is not issued after many epochs.
After either action, you can start another training job with the same dataset version.
You can also set a credit cap when you start a job, so it stops on its own once it reaches a credit limit. A cap stop keeps the model weights.
Web App
Stop Training Early
Use early stopping when the training graphs show that the model has converged or already meets your goals, but the job has many epochs left.
Click "Stop Training Early":

Roboflow starts preparing the current model weights. The training job shows that it stopped early:

It may take several minutes for the model to become available. A green checkmark appears next to the model name when it is ready:

For Neural Architecture Search (NAS), training may stop automatically when the model converges. The training results page shows a message when Roboflow skips the remaining epochs.
Continue Training
A job that stopped early can run more epochs from its last saved checkpoint. Open the training and click "Continue Training". This option is available for RF-DETR and YOLO models.
Roboflow keeps the checkpoint for a few days after the run ends. The button tooltip shows the date until which the training stays resumable. Once the checkpoint expires, the button turns off and you start a new training job instead.
Cancel Training
Click "Cancel Training" to stop the job and discard its model weights:

HTTP API
The calling API key needs the training-job:create scope.
The version endpoints act on the version's only training. If a version has more than one training, they return 409: use the training endpoints instead and pass the trainingId from List Trainings.
Stop Training Early
Asks the training to stop and keep its weights. The job saves its weights and exits at the end of its current epoch, so the model appears a few minutes later.
Asks the version's training to stop early and keep its weights. Works only when the version has exactly one training. During a Neural Architecture Search, it stops the architecture search. Requires training-job:create.
Roboflow API key or OAuth access token.
Workspace URL slug.
Project URL slug.
Dataset version number.
Successful response.
True when the stop request was recorded.
The request is invalid.
Authentication is missing or invalid.
The credential does not have access to this resource.
The version has no training to stop.
The version has more than one training (error.code MULTIPLE_TRAININGS), or the training is not running (error.code CANNOT_STOP). For a version with several trainings, use the v2 endpoint and pass trainingId.
The request rate is too high.
POST /{workspace}/{project}/{version}/train/stop HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"success": true
}Cancel Training
Cancels a queued or running training and discards its weights. A job that has run for less than 30 minutes is refunded. For an older job, the first request returns outcome: "requires_confirmation" and cancels nothing. Send it again with continueIfNoRefund: true to cancel without a refund.
Cancels the version's training and discards its weights. Works only when the version has exactly one training. If the job has run for less than 30 minutes, cancelling refunds its credits. After that, the request cancels nothing and returns outcome requires_confirmation until you send continueIfNoRefund: true. Requires training-job:create.
Roboflow API key or OAuth access token.
Workspace URL slug.
Project URL slug.
Dataset version number.
Send true to cancel a job that has run for 30 minutes or more, which gives no refund.
falseSuccessful response.
cancelled: the training is cancelled. pending: the cancel is recorded and finishes shortly. superseded: the training ended first, and status says how. requires_confirmation: nothing was cancelled because no refund is due; send continueIfNoRefund: true to cancel anyway.
True when outcome is cancelled.
True when the training's credits were refunded.
True when the running job was shut down.
True when the job had already ended.
Final training status. Present when outcome is superseded.
The request is invalid.
Authentication is missing or invalid.
The credential does not have access to this resource.
The version has no training to cancel.
The version has more than one training (error.code MULTIPLE_TRAININGS), or the training is not running (error.code CANNOT_CANCEL). For a version with several trainings, use the v2 endpoint and pass trainingId.
The request rate is too high.
POST /{workspace}/{project}/{version}/train/cancel HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 27
{
"continueIfNoRefund": true
}{
"outcome": "cancelled",
"success": true,
"refund": true,
"jobDeleted": true
}Stop a Training by ID
Asks one training on a version to stop early and keep its weights. During a Neural Architecture Search, it stops the architecture search. Requires training-job:create.
Roboflow API key or OAuth access token.
Workspace URL slug.
Project URL slug.
Dataset version number.
Training to stop. Leave it out when the version has only one training.
Successful response.
True when the stop request was recorded.
The request is invalid.
Authentication is missing or invalid.
The credential does not have access to this resource.
No training with that trainingId on this version (error.code TRAINING_NOT_FOUND), or the version has no training (error.code NO_TRAINING).
trainingId was left out and the version has more than one training (error.code MULTIPLE_TRAININGS), or the training is not running (error.code CANNOT_STOP).
The request rate is too high.
POST /{workspace}/{project}/{version}/v2/trainings/stop HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 37
{
"trainingId": "0a1b2c3d4e5f67890abc"
}{
"success": true
}Cancel a Training by ID
Cancels one training on a version and discards its weights. If the job has run for less than 30 minutes, cancelling refunds its credits. After that, the request cancels nothing and returns outcome requires_confirmation until you send continueIfNoRefund: true. Requires training-job:create.
Roboflow API key or OAuth access token.
Workspace URL slug.
Project URL slug.
Dataset version number.
Training to cancel. Leave it out when the version has only one training.
Send true to cancel a job that has run for 30 minutes or more, which gives no refund.
falseSuccessful response.
cancelled: the training is cancelled. pending: the cancel is recorded and finishes shortly. superseded: the training ended first, and status says how. requires_confirmation: nothing was cancelled because no refund is due; send continueIfNoRefund: true to cancel anyway.
True when outcome is cancelled.
True when the training's credits were refunded.
True when the running job was shut down.
True when the job had already ended.
Final training status. Present when outcome is superseded.
The request is invalid.
Authentication is missing or invalid.
The credential does not have access to this resource.
No training with that trainingId on this version (error.code TRAINING_NOT_FOUND), or the version has no training (error.code NO_TRAINING).
trainingId was left out and the version has more than one training (error.code MULTIPLE_TRAININGS), or the training is not running (error.code CANNOT_CANCEL).
The request rate is too high.
POST /{workspace}/{project}/{version}/v2/trainings/cancel HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 63
{
"trainingId": "0a1b2c3d4e5f67890abc",
"continueIfNoRefund": true
}{
"outcome": "cancelled",
"success": true,
"refund": true,
"jobDeleted": true
}MCP Server
Connect your AI agent to the MCP Server and it can stop a training run with these tools:
trainings_stop
Request an early stop. The run finishes its current phase instead of ending at once.
trainings_cancel
Cancel an in-flight training run.
trainings_get
Get a training's status, produced models, and metrics.
Last updated
Was this helpful?