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

# Free GPU memory and/or unload models

`POST /api/free`

Frees GPU memory by unloading models and/or freeing the resident model cache, controlled by the request flags.

## Request body

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

## Response `200`

Memory freed

## Changes

- **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/c4db9e1283df/schema)
