Skip to content

director_recipe ​

GET /director/recipe

口径:本页参数表最后核对于 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 为准。

取单条配方全文:frontmatter、参数 schema、完整示例分镜。约 2900 token。这是两段式检索的第二段,确定要用哪条之后再取。

请求参数 ​

参数类型必填说明
idstring是配方 id,例如 explainer_v1

也接受别名 name。id 不存在时返回 404 并附上可用列表。

响应字段 ​

字段说明
id配方 id
metafrontmatter 全量:goal / duration / aspect / style / engines / structure / min_shot / format / slots
params参数 schema:取值范围、默认值
markdown正文全文(结构、节奏规则、完整示例分镜)
tokens_estimate估算 token 数,便于判断该不该整段塞进上下文

frontmatter 里的 slots 是执行契约 ​

有 slots 的配方才能用 POST /director/plan 自动排分镜;没有 slots 的是「挑素材」型配方,节奏由素材和 BGM 决定,需要直接写分镜。

字段含义
stage对应 structure 里的阶段名
engine + scene这一镜用哪个渲染器、哪个场景
weight整数份数(不是占比)。比例对就够,不需要凑 1.0
text这一镜需要哪些文字槽位
repeat允不允许复制,默认允许。片头片尾要设 false

format 有两种语义:material_factory 是可复用的阶段模板(镜数随时长伸缩),plan 是一次具体剪辑(镜数固定 = len(slots),时长靠调镜长吸收)。

调用示例 ​

bash
curl -s -H "X-API-Key: $VECTCUT_API_KEY" \
  "$BASE_URL/director/recipe?id=explainer_v1"

用法示例见 大模型用法;相关接口:director_recipes、director_plan、director_analyze、detect_beats、add_video、lint_draft。

个人自建服务