Skip to main content
POST
Insert object into video

概述

在之前生成的视频中添加物体。您可以使用可选的图像蒙版控制放置位置。

两种模式

需要来自之前生成视频的有效 videoId(mediaId)。
imageMask 应为 base64 编码的 JPEG 图像,其中白色区域表示应插入物体的位置。

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

application/json
videoId
string
必填

Video ID (mediaId) from a previously generated video

示例:

"CAUSJD..."

prompt
string
必填

Prompt describing what to insert

示例:

"add a flying pig with black wings"

imageMask
string

Base64 encoded JPEG image mask (optional). White areas indicate where to insert the object. If not provided, AI auto-determines placement.

示例:

"/9j/4AAQSkZJRg..."

响应

201 - application/json
taskId
string
必填

task id, used to get task result later