Reference
Remy Reference/agent/videoRemoveBackground
?

videoRemoveBackground

Remove or replace background from a video
mindstudio.videoRemoveBackground({ videoUrl, newBackground, engine }) → Result

Removes or replaces a video's background, returning the composited clip — green-screen keying without a green screen.

Parameters
videoUrl
string
RequiredURL of the source video
newBackground
string
RequiredWhether to make the background transparent or replace it with an image
transparentimage
newBackgroundImageUrl
string
URL of a replacement background image. Required when newBackground is 'image'.
engine
string
RequiredBackground removal engine to use
intermediateAsset
boolean
When true, the asset is created but hidden from the user's gallery (tagged as intermediate)
Call from a method
import { mindstudio } from '@mindstudio-ai/agent';

const result = await mindstudio.videoRemoveBackground({
  videoUrl: /* ... */,
  newBackground: /* ... */,
  engine: /* ... */
});