---
title: "Block Model"
method: POST
path: "/model/block"
tags: ["model management"]
---

# Block Model

`POST /model/block`

## Request

- Base URL: `https://api.sea-lion.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sea-lion.ai/model/block`
- Auth: API key in header `x-litellm-api-key`

Block a DB-stored model deployment from serving requests.

Parameters:
- model_id: str - The model deployment id to block.

## Headers

- `litellm-changed-by` string, nullable: The litellm-changed-by header enables tracking of actions performed by authorized users on behalf of other users, providing an audit trail for accountability

## Request body

- BlockModelRequest
  - `model_id` string, required

## Response `200`

Successful Response

- LiteLLMProxyModelTable
  - `model_id` string, required
  - `model_name` string, required
  - `litellm_params` object, required
  - `model_info` object, nullable
  - `blocked` boolean
  - `created_at` string, date-time, nullable
  - `created_by` string, nullable
  - `updated_at` string, date-time, nullable
  - `updated_by` string, nullable

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-21** `f2fb14eab3f5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/sea-lion/apis/litellm-api/changes/model/block/post.md)

---

[API](https://skmtc.dev/sea-lion/apis/litellm-api.md) · [All operations](https://skmtc.dev/sea-lion/apis/litellm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sea-lion/apis/litellm-api/revisions/1ba9123c189a?raw)
