Skip to main content
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
key
string
required

Your API Key used for request authorization.

model_id
string
required

The ID of the model to be reloaded.

Response

Model reload response

status
enum<string>

Status of the model reload operation.

Available options:
success,
error,
processing
message
string

Message indicating the result of the reload operation.

I