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>"
}
'{
"message": "<string>"
}Community Models
Reload Model
Reload Model API is used to reload an idle model that has not been used for more than 7 days.
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>"
}
'{
"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 aPOST 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
Was this page helpful?
⌘I

