Documentation
Core
LM Studio REST API
Core
LM Studio REST API
POST /api/v1/models/unload
Request body
instance_id : string
Unique identifier of the model instance to unload.
curl http://localhost:1234/api/v1/models/unload \
-H "Authorization: Bearer $LM_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"instance_id": "openai/gpt-oss-20b"
}'
Response fields
instance_id : string
Unique identifier for the unloaded model instance.
{
"instance_id": "openai/gpt-oss-20b"
}
This page's source is available on GitHub