Skip to content

add_text_keyframe ​

POST /add_text_keyframe

口径:本页参数表最后核对于 v23.9(2026-10-27)。v24.0~v24.8 的改动(add_video 的 timeline_start/timeline_end 别名、apply_edl 批内失败计数、resource/search 的 limit 与 count 等价、/agent/route 类型分诊等)以 llms-full.txt 与 GET /agent/capabilities 为准。

接口说明 ​

给已有文字片段添加通用关键帧。支持单条参数,也支持批量 keyframes。所有时间单位都是秒。time / offset 默认是相对片段起点的偏移;写时间轴绝对时间时优先传 absolute_time。

单条示例 ​

json
{
  "draft_id": "dfd_cat_demo_001",
  "segment_id": "a1b2c3d4e5f6",
  "property": "position_x",
  "time": 0.5,
  "value": 0.1
}

批量示例 ​

json
{
  "draft_id": "dfd_cat_demo_001",
  "segment_id": "a1b2c3d4e5f6",
  "keyframes": [
    {"property": "alpha", "time": 0, "value": 0.2},
    {"property": "alpha", "time": 1.5, "value": 1.0}
  ]
}

支持位置、旋转、缩放和透明度等通用属性。absolute_time 表示时间轴绝对时间。为兼容大模型常见的误用,如果 time 超过片段时长、但仍落在该片段的绝对时间范围内,服务端会按绝对时间处理。

个人自建服务