Get Training Status
Overview
Stable Diffusion V3 APIs Get Training Status endpoint is used to get the status of a training model initiated by the Create Training endpoint.
This endpoint allows to check the current status of the model training and the estimated time remaining for its completion if not completed yet.
Request
--request POST 'https://modelslab.com/api/v3/fine_tune_status/{training_id}' \
Make a POST
request to https://modelslab.com/api/v3/fine_tune_status/{training_id} endpoint. Where {training_id}
is returned in the response upon initiating the model training using the Create Dreambooth Request endpoint.
This endpoint only returns information for an already initiated model training.
Attributes
Parameter | Description |
---|---|
key | Your API Key used for request authorization |
Example
Body
Body Raw
{
"key": ""
}
Request
- JS
- PHP
- NODE
- PYTHON
- JAVA
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/fine_tune_status/F5jvdzGnYi", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
<?php
$payload = [
"key" => ""
];
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://modelslab.com/api/v3/fine_tune_status/F5jvdzGnYi',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => json_encode($payload),
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://modelslab.com/api/v3/fine_tune_status/F5jvdzGnYi',
'headers': {
'Content-Type': 'application/json'
},
body: JSON.stringify({
"key": ""
})
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
import requests
import json
url = "https://modelslab.com/api/v3/fine_tune_status/F5jvdzGnYi"
payload = json.dumps({
"key": ""
})
headers = {
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"key\": \"\"\n}");
Request request = new Request.Builder()
.url("https://modelslab.com/api/v3/fine_tune_status/F5jvdzGnYi")
.method("POST", body)
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();
Response
Example Response
{
"status": "success",
"messege": "model_ready",
"data": " /n Step:1 Training Started, 5 Steps to go : ETA : 30 minutes /n Step:2 Training Done, 4 Steps to go : ETA : 15 minutes /n Step:3 Model Uploading, 3 Steps to go : ETA : 10 minutes /n /n Step:4 Model Uploaded, 2 Steps to go : ETA : 5 minutes /n Model loaded successfully"
}