Unload a model
POST
http://localhost:11434/api/generate
keep_alive
parameter is set to 0
, a model will be unloaded from memory.Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:11434/api/generate' \
--header 'Content-Type: application/json' \
--data-raw ''
Response Response Example
{
"model": "llama3.2",
"created_at": "2024-09-12T03:54:03.516566Z",
"response": "",
"done": true,
"done_reason": "unload"
}
Request
Body Params application/json
Responses
Modified at 2025-03-27 10:09:04