> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mountsea.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Remove Object from Video

> Remove an object from a specific area of the video using a mask.
White areas in the mask indicate the object to remove.
**imageMask is required** for removal operations.

## Overview

Remove an object from a specific area of a previously generated video using a mask image.

<Warning>
  * `imageMask` is **required** for removal operations
  * Requires a valid `videoId` (mediaId) from a previously generated video
</Warning>

<Tip>
  The `imageMask` should be a base64-encoded JPEG image where **white areas** indicate the object to remove. The AI will fill in the removed area with contextually appropriate content.
</Tip>


## OpenAPI

````yaml POST /gemini/video/object/remove
openapi: 3.0.0
info:
  title: Gemini AI
  description: API documentation for Gemini AI
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.mountsea.ai
    description: API Gateway
security: []
tags:
  - name: gemini
    description: ''
paths:
  /gemini/video/object/remove:
    post:
      tags:
        - gemini
      summary: Remove object from video
      description: |-
        Remove an object from a specific area of the video using a mask.
        White areas in the mask indicate the object to remove.
        **imageMask is required** for removal operations.
      operationId: ApiPublicController_removeObject
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VideoObjectRemovalDto'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskIdDto'
      security:
        - bearerAuth: []
components:
  schemas:
    VideoObjectRemovalDto:
      type: object
      properties:
        videoId:
          type: string
          description: Video ID (mediaId) from a previously generated video
          example: CAUSJD...
        prompt:
          type: string
          description: Prompt describing what to remove (can be empty string)
          example: remove the white cloud
        imageMask:
          type: string
          description: >-
            Base64 encoded JPEG image mask (required). White areas indicate the
            object to remove.
          example: /9j/4AAQSkZJRg...
      required:
        - videoId
        - imageMask
    TaskIdDto:
      type: object
      properties:
        taskId:
          type: string
          description: task id, used to get task result later
      required:
        - taskId
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````