POST
/
model_reload
Reload an idle image model
curl --request POST \
  --url https://modelslab.com/api/v6/images/model_reload \
  --header 'Content-Type: application/json' \
  --data '{
  "key": "<string>",
  "model_id": "<string>"
}'
{
  "status": "success",
  "message": "<string>"
}
After 7 days of inactivity, a model will be removed from the inference server. To use it again, make an API call to the Reload Model endpoint to reload the model.
It will take 2 minutes to reload a model.

Request

Send a POST request to below endpoint to reload a specific model specified by the model_id parameter in the request body.
curl
--request POST 'https://modelslab.com/api/v6/images/model_reload' \

Body

json
{ 
  "key": "your_api_key", 
  "model_id": "model_id"
}

Body

application/json

Response

Model reload response

The response is of type object.