---
title: "Remove a model from the machine's AI gateway"
method: DELETE
path: "/api/nodes/{node_id}/ai-gateway/models/{alias}"
tags: ["nodes"]
---

# Remove a model from the machine's AI gateway

`DELETE /api/nodes/{node_id}/ai-gateway/models/{alias}`

## Request

- Base URL: `https://app.nerdit.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://app.nerdit.ai/api/nodes/{node_id}/ai-gateway/models/{alias}`
- Auth: none declared

Forward ``DELETE /api/ai-gateway/routes/{alias}``.

``409 ai_gateway.alias_in_use`` passes through naming the running apps;
``force`` removes anyway (their AI calls then fail until repointed).

## Path parameters

- `alias` string, required
- `node_id` string, uuid, required

## Query parameters

- `force` boolean

## Response `200`

Successful Response

- NodeAiModelRemoveView
  - `online` boolean, required
  - `alias` string, required
  - `used_by` string[], required

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `422`: Unprocessable Content
- `429`: Too Many Requests
- `502`: Bad Gateway

---

[API](https://skmtc.dev/nerdit/apis/nerdit-cloud-web.md) · [All operations](https://skmtc.dev/nerdit/apis/nerdit-cloud-web/llms.txt) · [OpenAPI document](https://skmtc.dev/nerdit/apis/nerdit-cloud-web/revisions/06e3b44b58be?raw)
