Skip to main content
POST
Stop Training
Stops a run that is queued or training. Billing ends straight away; if the current hour had not been charged yet, that hour is charged. A run that has already finished or failed cannot be stopped and keeps its result.

Request

Make a POST request to the endpoint below with the training id from Start Training.

Body

json

Response

json
A stopped run reads training_completed on the status endpoint.

Body

application/json
key
string
required

Your API key. Get one from https://modelslab.com/dashboard/api-keys.

training_id
string<uuid>
required

The id returned by the Start Training endpoint.

Response

The run was stopped, or an error describing why it could not be.

status
enum<string>
Available options:
success
message
string
Example:

"training stopped"