---
title: "Remove video background"
method: POST
path: "/ai/remove-video-background"
tags: ["AI"]
---

# Remove video background

`POST /ai/remove-video-background`

## Request

- Base URL: `https://api.rendley.com/v1`
- URL: `https://api.rendley.com/v1/ai/remove-video-background`
- Auth: API key in header `Authorization`

Enqueue a job to remove the background from a video frame-by-frame, leaving only the foreground subject.
The params object is model-specific — fetch its JSON Schema from GET /v1/ai/models/{model_id}. model_id is optional and falls back to this action's default model.

## Request body

- AiManagerTypesRemoveVideoBackgroundDTO
  - `clip_id` string
  - `file_url` string
  - `model_id` string
  - `params` object: Params is model-specific: its accepted fields are defined by the model in model_id, not by this endpoint. Fetch the JSON Schema for a model from GET /v1/ai/models/{model_id} — it is generated from the runtime validator and is the source of truth. GET /v1/ai/models lists the model ids.
  - `project_id` string
  - `workspace_id` string

## Response `200`

OK

- object
  - `data` object: Success data
    - `job_id` string, uuid
  - `error` HttpResponseAPIError
    - `code` string
    - `fields` HttpResponseFieldError[]
      - `field` string
      - `message` string
    - `message` string
  - `meta` unknown

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `402`: Payment Required

---

[API](https://skmtc.dev/rendley/apis/rendley-api.md) - [All operations](https://skmtc.dev/rendley/apis/rendley-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rendley/apis/rendley-api/revisions/7eb8713bbf78?raw)
