Add an object to the video.
| Mode | Description |
|---|---|
With imageMask | Insert at the masked area (white pixels = insertion zone) |
Without imageMask | AI automatically determines optimal placement based on the prompt |
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Video ID (mediaId) from a previously generated video
"CAUSJD..."
Prompt describing what to insert
"add a flying pig with black wings"
Base64 encoded JPEG image mask (optional). White areas indicate where to insert the object. If not provided, AI auto-determines placement.
"/9j/4AAQSkZJRg..."
task id, used to get task result later