主题
agent_capabilities
GET /agent/capabilities
口径:本页参数表最后核对于 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 为准。
接口说明
返回机器可读的语义契约,供大模型或 Agent 在编排前读取。内容包括位置、尺寸、运镜、文字风格预设的取值,时间线语义,安全边界和资源约束。它不修改草稿。
建议顺序:先读本接口,确定能传哪些语义参数;再读 GET /agent/guide,把 system_prompt 注入系统提示词。
请求参数
无。用 GET 或 POST 调用都可以,建议用 GET。
调用示例
bash
curl https://your-domain.example/api/agent/capabilities \
-H "X-API-Key: $VECTCUT_API_KEY"返回格式
下面的 JSON 是真实结构。motion_presets 和 style_presets 在真实响应中包含全部预设,这里各保留一项作为示例,其余字段完整列出。
json
{
"success": true,
"output": {
"time_unit": "seconds",
"semantic": {
"time_unit": "seconds",
"position_presets": {
"center": { "transform_x": 0.0, "transform_y": 0.0 },
"top-center": { "transform_x": 0.0, "transform_y": 0.78 },
"bottom-center": { "transform_x": 0.0, "transform_y": -0.78 },
"top-left": { "transform_x": -0.72, "transform_y": 0.78 },
"top-right": { "transform_x": 0.72, "transform_y": 0.78 },
"bottom-left": { "transform_x": -0.72, "transform_y": -0.78 },
"bottom-right": { "transform_x": 0.72, "transform_y": -0.78 }
},
"size_presets": {
"small": 0.45,
"medium": 1.0,
"large": 1.5,
"full-width": 1.0
},
"motion_presets": {
"zoom_in_slowly": [
{ "property": "scale_x", "time_fraction": 0.0, "value": 1.0 },
{ "property": "scale_x", "time_fraction": 1.0, "value": 1.12 },
{ "property": "scale_y", "time_fraction": 0.0, "value": 1.0 },
{ "property": "scale_y", "time_fraction": 1.0, "value": 1.12 }
],
"shake": [
{ "property": "position_x", "time_fraction": 0.0, "value": 0.0 },
{ "property": "position_x", "time_fraction": 0.18, "value": 0.035 },
{ "property": "position_x", "time_fraction": 1.0, "value": 0.0 }
]
},
"style_presets": {
"vlog_standard": {
"font_color": "#FFFFFF",
"font_size": 8.0,
"bold": true,
"border_color": "#000000",
"border_width": 6.0,
"shadow_enabled": true,
"shadow_color": "#000000",
"shadow_distance": 4.0,
"shadow_alpha": 0.75,
"align": 1
},
"cinematic": {
"font_color": "#F4F1E8",
"font_size": 7.0,
"bold": false,
"border_color": "#111111",
"border_width": 2.0,
"letter_spacing": 0.12,
"align": 1
}
},
"time_semantics": {
"insert_position": ["start", "append"],
"sync_with_segment": "segment_id",
"duration_auto": ["auto_match_main_track"]
},
"bounds": {
"scale": [0.1, 3.0],
"transform": "clamped to the canvas safe area"
},
"resource_rules": {
"sticker_search": "POST /search_sticker, count <= 9 for agent selection",
"visual_judgement": "must be performed by the multimodal agent, not the backend"
}
},
"scene_bundles": {
"funny_fail": {
"filter": "高清黑白",
"effect": "震动",
"sticker_keyword": "乌鸦",
"audio": "requires audio_url"
},
"travel_vlog": {
"filter": "清晰",
"effect": "光晕",
"sticker_keyword": "旅行",
"audio": "requires audio_url"
}
},
"constraints": {
"sticker_search_max_for_agent": 9,
"resource_ids_must_be_resolved": true,
"visual_judgement": "multimodal agent",
"server_does_not_download_media": true
}
},
"error": ""
}语义参数清单
| 参数 | 作用 | 可选值 |
|---|---|---|
position_preset | 位置预设,覆盖 transform_x/y | center、top-center、bottom-center、top-left、top-right、bottom-left、bottom-right |
size_preset | 尺寸预设,覆盖 scale_x/y | small、medium、large、full-width |
motion_preset | 运镜预设,自动生成关键帧 | zoom_in_slowly、zoom_out_slowly、pan_left_to_right、pan_right_to_left、ken_burns、shake |
style_preset | 文字风格集合 | vlog_standard、cinematic、warning、subtitle |
insert_position | 时间线插入位置 | start、append |
sync_with_segment | 与已有片段起点对齐 | 目标 segment_id |
duration_auto | 音频自动匹配主轨长度 | auto_match_main_track |
优先级是显式底层值 > 语义预设 > 历史默认值。底层 scale 会被钳制到 0.1-3.0,transform 会被钳制到 ±0.95。
语义参数的用法见大模型用法。