---
title: "Free GPU memory and/or unload models"
method: POST
path: "/api/free"
---

# Free GPU memory and/or unload models

`POST /api/free`

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

## Request body

- object
  - `free_memory` boolean — Run garbage collection and free cached memory
  - `unload_models` boolean — Unload all models from VRAM/RAM

## Response `200`

Memory freed

---

[API](https://skmtc.net/comfy-org/apis/comfyui-api.md) · [All operations](https://skmtc.net/comfy-org/apis/comfyui-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/comfy-org/comfyui-api/versions/9fb6092a836d/schema)
