metadata.content 数组的 image_url 类型条目中添加 "subject_type": "person",即可触发真人过白功能。{
"metadata": {
"content": [
{
"type": "image_url",
"image_url": { "url": "https://..." },
"subject_type": "person",
"role": "reference_image"
}
]
}
}⚠️ 注意: subject_type: person时图片只支持 URL 格式,不支持 Base64,否则报错: >Only URL inputs are supported for image, video, and audio assets. Base64 encoding is not supported.
id 轮询 GET /v1/video/generations/{task_id} 查询任务状态。metadata 对象中seconds 字段(字符串类型)| 场景 | 所需字段 |
|---|---|
| 真人过白 | model + prompt + metadata.content(含 subject_type=person) |
| 文生视频 | model + prompt |
| 图生视频 | model + prompt + image(图片URL) |
| 视频续拍 | model + prompt + metadata.content(含 video_url) |
⚠️ 计费提示:视频时长影响费用, seconds="-1"时由模型自动选择,实际时长可通过查询 API 的duration字段获取。
💡 格式提示:如需使用豆包原生格式,请使用 POST /api/v3/contents/generations/tasks路由。