主题
director_recipes
GET /director/recipes
口径:本页参数表最后核对于 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 为准。
返回全部配方的摘要:id、goal、时长区间、可用引擎、一句话说明。约 800 token。这是两段式检索的第一段——先看摘要挑一条,再 GET /director/recipe 取那一条的全文。
请求参数
| 参数 | 类型 | 说明 |
|---|---|---|
goal | string | explain / hype / sell / recap / docu |
duration | number | 成片时长(秒),用于筛掉装不下的配方 |
style | string | dark_tech / clean / cinematic |
engine | string | manim / math / web / canvas / image |
四个筛选条件都可以不传,不传就是全量。
响应字段
| 字段 | 说明 |
|---|---|
count | 命中的配方条数 |
filters | 回显实际生效的筛选条件 |
recipes | 摘要数组:id / title / goal / duration / engines / one_liner |
hint | 下一步提示(去 /director/recipe 取全文) |
为什么要分两段
7 条配方全文合计约 15000 token,一次全塞进上下文,其中 85% 用不上。先看摘要(约 800 token)挑一条,再花 2900 token 取那一条。
省的是模型的上下文,不是网络带宽。
调用示例
bash
curl -s -H "X-API-Key: $VECTCUT_API_KEY" \
"$BASE_URL/director/recipes?goal=explain&duration=45"用法示例见 大模型用法;相关接口:director_recipes、director_plan、director_analyze、detect_beats、add_video、lint_draft。