LM StudioLM Studio

Unload a model

Unload a loaded model from memory

Ask Bionic to read this page

Copy this prompt, open Bionic, and paste it into a new chat.

Read https://lmstudio.ai/docs/developer/rest/unload, I want to ask questions about it.

POST /api/v1/models/unload

Request body

instance_id : string

Unique identifier of the model instance to unload.

Example Request
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.

Response
{
  "instance_id": "openai/gpt-oss-20b"
}