创建主体
更新时间:2026-11-04
POST
创建自定义主体,供生视频 / 生图通过 element_list 引用。视频角色主体含人声时自动定制音色并绑定。
任务状态:
submitted: 已提交processing: 处理中succeed: 成功failed: 失败
使用 TE 北京地域 API Key 鉴权。模型能力、调用约定见 Kling 接口概览。
BearerAuthheader
AuthorizationBearer <token>TE 北京地域 API Key,填写后自动添加 Bearer 前缀。
application/json- body
element_name*string≤ 20 字符
element_description*string≤ 100 字符
reference_type*stringvideo_refer(视频角色主体)、image_refer(多图主体)
element_image_list?image_refer 时必填:{frontal_image, refer_images: [{image_url}]},1 张正面图 + 1~3 张其他角度图
element_video_list?video_refer 时必填:{refer_videos: [{video_url}]};MP4/MOV,3~8s,16:9 或 9:16 的 1080P,≤ 200MB
element_voice_id?string绑定已有音色,仅视频角色主体
tag_list?array<>[{tag_id}]:o_101 热梗、o_102 人物、o_103 动物、o_104 道具、o_105 服饰、o_106 场景、o_107 特效、o_108 其他
成功;具体状态及结果见响应字段。
application/json- response
code?stringmessage?stringrequestId?stringdata?curl -X POST 'https://vod.bj.baidubce.com/v3/aigc/kl/general/advanced-custom-elements' \ -H 'Content-Type: application/json' \ -d '{ "element_name": "鲁迅", "element_description": "鲁迅三视图", "reference_type": "video_refer", "element_video_list": { "refer_videos": [ { "video_url": "https://example.com/refer.mp4" } ] }, "element_voice_id": "xxx"}'响应示例200
{ "code": "string", "message": "string", "requestId": "string", "data": { "task_id": "tsk-xxxxxxxxxxxxxxxx", "task_status": "submitted", "created_at": 1722769557708, "updated_at": 1722769557708 }}
