Skip to main content

Usage

const { data, error } = await vj.createOverlay({
  videoUrl: "https://cdn.example.com/video.mp4",
  text: "Follow for more tips",
  position: "bottom",
  fontSize: 48,
  strokeThickness: 2,
});

Parameters

FieldTypeRequiredDefaultDescription
videoUrlstringYesURL of the source video
textstringYesOverlay text. Use \n for line breaks
position"top" | "center" | "bottom"No"bottom"Vertical text placement
fontSizenumberNo4% of video heightFont size in pixels
strokeThicknessnumberNo2Text outline thickness (0–10)

Response

{
  "id": "ovl_...",
  "resultUrl": "https://cdn.vidjutsu.ai/overlays/ovl_.../output.mp4"
}
TikTok-safe zone margins are calculated automatically based on video dimensions.

Credits

5 credits per call.