主题
director_health
GET /director/health
口径:本页参数表最后核对于 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 为准。
导演层自检:配方条数、风格数、知识库路径、索引是否存在。
响应字段
| 字段 | 说明 |
|---|---|
recipes | 索引里的配方条数(当前 7) |
styles | 风格数(当前 3) |
knowledgeDir | 知识库绝对路径 |
indexExists | index.json 是否存在 |
为什么这个接口要 API Key
平台的 /health 是公开路径,/director/health 不是。因为它会返回服务端知识库的绝对路径,这类信息不该匿名可取。
拿它做存活检查时记得带上 X-API-Key,否则会拿到 401 而不是 200。
调用示例
bash
curl -s -H "X-API-Key: $VECTCUT_API_KEY" "$BASE_URL/director/health"用法示例见 大模型用法;相关接口:director_recipes、director_plan、director_analyze、detect_beats、add_video、lint_draft。