Reference
Remy Reference/agent/videoFaceSwap
?

videoFaceSwap

Swap faces in a video file
mindstudio.videoFaceSwap({ videoUrl, faceImageUrl, targetIndex, engine }) → Result

Swaps a face throughout a video using AI, returning the edited clip — the video counterpart to imageFaceSwap.

Parameters
videoUrl
string
RequiredURL of the source video containing faces to swap
faceImageUrl
string
RequiredURL of the image containing the replacement face
targetIndex
number
RequiredZero-based index of the face to replace in the video
engine
string
RequiredFace swap 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.videoFaceSwap({
  videoUrl: /* ... */,
  faceImageUrl: /* ... */,
  targetIndex: /* ... */,
  engine: /* ... */
});