---
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

## Changes

- **2026-06-03** `8560879e6188` — 1 info
  - api tag `queue` removed
- **2026-04-24** `a66055fa384e` — 1 info
  - api tag `queue` added

[Change history](https://skmtc.dev/comfy-org/apis/comfyui-api/changes/api/free/post.md)

---

[API](https://skmtc.dev/comfy-org/apis/comfyui-api.md) · [All operations](https://skmtc.dev/comfy-org/apis/comfyui-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/comfy-org/comfyui-api/revisions/8560879e6188/schema)
