curl -X POST http://127.0.0.1:8188/free -H 'Content-Type: application/json' -d '{"unload_models": true, "free_memory": true}'

Category: AI/ML Tooling

curl -X POST http://127.0.0.1:8188/free -H 'Content-Type: application/json' -d '{"unload_models": true, "free_memory": true}'

Free GPU memory in ComfyUI

Unloads loaded models from VRAM and frees cached memory, the recovery move after an out-of-memory error or before switching to a heavy workflow. The JSON body toggles model unloading and memory freeing independently. Retry your workflow after the VRAM drops.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.