Skip to main content
POST
/
gemini
/
video
/
object
/
remove
Remove object from video
curl --request POST \
  --url https://api.mountsea.ai/gemini/video/object/remove \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "videoId": "CAUSJD...",
  "imageMask": "/9j/4AAQSkZJRg...",
  "prompt": "remove the white cloud"
}
'
{
  "taskId": "<string>"
}

Overview

Remove an object from a specific area of a previously generated video using a mask image.
  • imageMask is required for removal operations
  • Requires a valid videoId (mediaId) from a previously generated video
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.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
videoId
string
required

Video ID (mediaId) from a previously generated video

Example:

"CAUSJD..."

imageMask
string
required

Base64 encoded JPEG image mask (required). White areas indicate the object to remove.

Example:

"/9j/4AAQSkZJRg..."

prompt
string

Prompt describing what to remove (can be empty string)

Example:

"remove the white cloud"

Response

201 - application/json
taskId
string
required

task id, used to get task result later