Reference

watermarkVideo

Add an image watermark to a video
mindstudio.watermarkVideo({ videoUrl, imageUrl, corner, paddingPx, widthPx }) → Result

Overlays an image watermark onto a video, returning the marked clip.

Parameters
videoUrl
string
RequiredURL of the source video
imageUrl
string
RequiredURL of the watermark image to overlay
corner
string
RequiredCorner position for the watermark placement
top-lefttop-rightbottom-leftbottom-right
paddingPx
number
RequiredPadding from the corner in pixels
widthPx
number
RequiredWidth of the watermark overlay in pixels
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.watermarkVideo({
  videoUrl: /* ... */,
  imageUrl: /* ... */,
  corner: /* ... */,
  paddingPx: /* ... */,
  widthPx: /* ... */
});