场景特效模板
更新时间:2026-11-04
POST
使用场景特效模板生成视频。
请求参数完全对标 原厂文档,下表为常用字段。返回 任务 ID。
使用 TE 北京地域 API Key 鉴权。模型能力、调用约定见 Vidu 接口概览。
BearerAuthheader
AuthorizationBearer <token>TE 北京地域 API Key,填写后自动添加 Bearer 前缀。
application/json- body
template*string模板名,如 hugging
images*array<string>图片 URL 列表
prompt?string提示词
seed?integer随机种子
成功;具体状态及结果见响应字段。
application/json- response
task_id?stringcurl -X POST 'https://vod.bj.baidubce.com/v3/aigc/vd/ent/v2/template' \ -H 'Content-Type: application/json' \ -d '{ "template": "hugging", "images": [ "https://example.com/hug.jpeg" ], "prompt": "画面中的两个主体转向彼此,并开始拥抱", "seed": 0}'响应示例200
{ "task_id": "tsk-xxxxxxxxxxxxxxxx"}
