Skip to content

segment/composite ​

POST /segment/composite

鉴权:需要请求头 X-API-Key: <YOUR_KEY> · 成熟度 G2 · 现网版本 v25.106

接口说明 ​

片段级合成(图对/画中画/文字穿插等叠层合成)

v25.34 / U-13:关键帧复合提交(素材+蒙版+关键帧+动画,原子落稿)。

一次请求建完一整段;任何一步失败就整段回滚(删掉本次新建的段并清理
孤儿素材),报错写明失败发生在哪一步——草稿不留半成品。

适用边界 ​

不要用于:素材工厂级合成走 material/compose

替代入口:POST /material/compose

常见请求参数 ​

参数键说明
draft_id按端点契约传入,未知/越界参数将在 warnings 中明确回执
asset按端点契约传入,未知/越界参数将在 warnings 中明确回执
image_url按端点契约传入,未知/越界参数将在 warnings 中明确回执
video_url按端点契约传入,未知/越界参数将在 warnings 中明确回执
placement按端点契约传入,未知/越界参数将在 warnings 中明确回执
mask按端点契约传入,未知/越界参数将在 warnings 中明确回执
mask_keyframes按端点契约传入,未知/越界参数将在 warnings 中明确回执
keyframes按端点契约传入,未知/越界参数将在 warnings 中明确回执
animation按端点契约传入,未知/越界参数将在 warnings 中明确回执

调用示例 ​

bash
curl -sS -X POST "https://vectcut.baoyin.xyz/api/segment/composite" \
  -H "X-API-Key: $VECTCUT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

权威出处 ​

实时参数、最新示例与约束以现网接口 GET /agent/help / GET /agent/capabilities 为唯一裁决源;参考索引:topics/composite.simple.md §2 调用示例。

个人自建服务