Skip to main content

Cancel Training Request

Overview

Stable Diffusion V3 APIs Cancel Training endpoint is used to cancel a Dreambooth request.

Request

--request POST 'https://modelslab.com/api/v3/cancle_training/{training_id}' \

Send a POST request to https://modelslab.com/api/v3/cancle_training/{training_id} endpoint. Where {training_id} is the one returned in the response upon initiating the model training using the create training endpoint.

Attributes

ParameterDescription
keyYour API Key used for request authorization

Example

Body

Body Raw
{
"key": ""
}

Request

var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({
"key": ""
});

var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};

fetch("https://modelslab.com/api/v3/cancle_training/F5jvdzGnYi", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));