主题
templates
GET /agent/capabilities → engine.web_templates(没有独立的 /templates 路由,v24.9 更正)
口径:引擎模板清单随能力自述下发,13 张全部 verified(2026-10-28 实测)。写 apply_edl 前先读这一段拿模板 id 与槽位,不要凭记忆写 template。
接口说明
引擎镜头(engine=web)由服务端经内网 HyperFrames 边车渲染成 mp4 再回填主轨。模板就是「一段固定的 HTML/JS 动效 + 一组槽位参数」,参数写错会在 dry_run 阶段被拦下并指明镜号。
清单口径:number_card(数据卡)+ 8 张 huashu 语法(huashu_t1/t2/t3、huashu_y1~y5)+ 4 张 shotcraft 迁移(odometer-digit-roll / counter-confetti / split-flap-title / radial-wave)。以 engine.web_templates 实时返回为准。
怎么调
| 步骤 | 调用 | 拿到什么 |
|---|---|---|
| 1 取清单 | GET /agent/capabilities | engine.web_templates:模板 id、槽位 schema、verified 标志 |
| 2 写镜头 | POST /apply_edl 的 add_engine_shot | params 按槽位填,duration/width/height/timeline_* 全用 {{...}} 占位符 |
| 3 预检 | 同上,dry_run=true | 模板不存在 / 槽位不合 schema / 时长非法都会报出来 |
返回片段
GET /agent/capabilities → output.engine.web_templates
{
"number_card": {"verified": true, "params": ["value", "label", "accent"], "duration_hint": 3.0},
"huashu_y3_whiteboard": {"verified": true, "params": ["text", "hand"], "alpha": false}
}
注意
- huashu 系模板当前不能透明覆叠(边车只出 mp4),alpha 覆叠要等 webm 输出升级,产物一律整帧使用。
- 冲击类模板(名字含彩纸 / 冲击等)必须带
quota_note,说明一次成片用几次。 engine=manim服务端不渲染,只回工单,素材由调用方出、拿到直链后add_video回填。