v36

latestOpenAPI 3.0.3GNU General Public License v3.0raw.githubusercontent.com2026-08-017758212.6 KB

Free GPU memory and/or unload models

Frees GPU memory by unloading models and/or freeing the resident model cache.

post/api/free

Request body

free_memoryboolean

Run garbage collection and free cached memory

unload_modelsboolean

Unload all models from VRAM/RAM

Response

Memory freed