sun-guannan/vectcutapi/sun-guannan-skill
- community
Checking that the SKILL.md file is still in the repository.
VectCutAPI is a powerful cloud-based video editing API tool that provides programmatic control over CapCut/JianYing (剪映) for professional video editing. Use this skill when users need to: (1) Create video draft projects programmatically, (2) Add video/audio/image materials with precise control, (3) Add text, subtitles, and captions, (4) Apply effects, transitions, and animations, (5) Add keyframe animations, (6) Process videos in batch, (7) Generate AI-powered videos, (8) Integrate with n8n workflows, (9) Build MCP video editing agents. The API supports HTTP REST and MCP protocols, works with both CapCut (international) and JianYing (China), and provides web preview without downloading.
Install
npx vskill@latest install sun-guannan/vectcutapi/sun-guannan-skillSKILL.md
VectCutAPI 视频剪辑 API
概述
VectCutAPI 是一款强大的云端视频剪辑 API 工具,通过编程方式控制剪映/CapCut 进行专业视频编辑。它填补了 AI 生成素材与专业视频编辑之间的空白,提供精确的编辑控制能力。
核心优势
- 双协议支持 - HTTP REST API 和 MCP 协议
- 实时预览 - 网页预览无需下载
- 可二次编辑 - 导入剪映/CapCut 精修
- 云端处理 - 全云端操作生成视频
系统要求
- Python 3.10+
- 剪映 或 CapCut 国际版
- FFmpeg (可选,用于某些视频处理)
快速启动
工作流程
标准视频制作流程
AI 视频生成工作流
批量视频处理
使用 auto_video_editor.py 处理 Excel 表格驱动的批量视频制作。
API 接口
核心操作
| 接口 | 方法 | 功能 | |
|---|---|---|---|
/create_draft | POST | 创建新草稿项目 | |
/save_draft | POST | 保存草稿并生成 URL | |
/query_draft_status | POST | 查询草稿状态 | |
/query_script | POST | 查询草稿脚本内容 | |
/generate_draft_url | POST | 生成草稿预览 URL |
素材添加
| 接口 | 方法 | 功能 | |
|---|---|---|---|
/add_video | POST | 添加视频轨道 | |
/add_audio | POST | 添加音频轨道 | |
/add_image | POST | 添加图片素材 | |
/add_text | POST | 添加文字元素 | |
/add_subtitle | POST | 添加 SRT 字幕 | |
/add_sticker | POST | 添加贴纸 | |
/add_effect | POST | 添加视频特效 | |
/add_video_keyframe | POST | 添加关键帧动画 |
查询接口 (GET)
| 接口 | 功能 | |
|---|---|---|
/get_intro_animation_types | 获取入场动画类型 | |
/get_outro_animation_types | 获取出场动画类型 | |
/get_transition_types | 获取转场效果类型 | |
/get_mask_types | 获取蒙版类型列表 | |
/get_audio_effect_types | 获取音频特效类型 | |
/get_font_types | 获取字体类型列表 | |
/get_video_scene_effect_types | 获取场景特效类型 |
使用示例
创建竖屏视频草稿
添加转场效果
添加关键帧动画
添加 SRT 字幕
MCP 协议集成
VectCutAPI 支持 MCP (Model Context Protocol) 协议,可直接由 AI Agent 调用。
MCP 工具列表
| 工具名称 | 功能描述 | |
|---|---|---|
create_draft | 创建新的视频草稿项目 | |
add_video | 添加视频到草稿 | |
add_audio | 添加音频到草稿 | |
add_image | 添加图片素材 | |
add_text | 添加文字元素 | |
add_subtitle | 添加字幕文件 | |
add_effect | 添加视觉特效 | |
add_sticker | 添加贴纸元素 | |
add_video_keyframe | 添加关键帧动画 | |
get_video_duration | 获取视频时长 | |
save_draft | 保存草稿项目 |
MCP 客户端配置
创建 mcp_config.json:
参数说明
视频参数 (add_video)
| 参数 | 类型 | 默认值 | 说明 | |
|---|---|---|---|---|
draft_id | string | 必需 | 草稿 ID | |
video_url | string | 必需 | 视频 URL | |
start | float | 0 | 视频开始时间(秒) | |
end | float | 0 | 视频结束时间(秒) | |
target_start | float | 0 | 在时间轴上的开始时间 | |
speed | float | 1.0 | 播放速度 | |
volume | float | 1.0 | 音量 (0-1) | |
scale_x/scale_y | float | 1.0 | 缩放比例 | |
transform_x/transform_y | float | 0 | 位置偏移 | |
transition | string | - | 转场类型 | |
transition_duration | float | 0.5 | 转场时长(秒) | |
mask_type | string | - | 蒙版类型 | |
background_blur | int | - | 背景模糊级别(1-4) |
文字参数 (add_text)
| 参数 | 类型 | 默认值 | 说明 | |
|---|---|---|---|---|
text | string | 必需 | 文字内容 | |
start | float | 必需 | 开始时间 | |
end | float | 必需 | 结束时间 | |
font | string | "思源黑体" | 字体名称 | |
font_size | int | 32 | 字体大小 | |
font_color | string | "#FFFFFF" | 字体颜色 (HEX) | |
stroke_enabled | bool | False | 是否启用描边 | |
stroke_color | string | "#FFFFFF" | 描边颜色 | |
stroke_width | float | 2.0 | 描边宽度 | |
shadow_enabled | bool | False | 是否启用阴影 | |
shadow_color | string | "#000000" | 阴影颜色 | |
background_color | string | - | 背景颜色 | |
background_alpha | float | 1.0 | 背景透明度 | |
text_styles | array | - | 多样式文字 (见下方) |
多样式文字 (text_styles)
配置文件
config.json 结构
高级功能
批量视频处理
使用 auto_video_editor.py 进行 Excel 驱动的批量处理:
Excel 表格格式:
| 视频标题 | 二段文案 | 开头素材 | 结尾素材 | 封面素材 | |
|---|---|---|---|---|---|
| 产品介绍 | ... | video1.mp4 | video2.mp4 | image.png |
n8n 工作流集成
项目包含多个预配置的 n8n 工作流:
text-to-video-with-animation.json- 文字转视频工作流auto-video-mixing.json- 自动视频混剪form-upload-processing.json- 表单上传处理
资源
scripts/
可执行脚本,用于 VectCutAPI 操作。
- vectcut_client.py - Python 客户端封装库
references/
参考文档和指南。
- api_reference.md - 完整 API 接口参考
- workflows.md - 工作流示例和最佳实践
- animation_types.md - 动画类型参考
- transition_types.md - 转场效果类型参考
assets/examples/
示例代码和模板。
- basic_video.py - 基础视频制作示例
- text_animation.py - 文字动画示例
- subtitle_import.py - 字幕导入示例
- batch_processing.py - 批量处理示例
常见问题
草稿文件位置
调用 save_draft 后会在当前目录生成 dfd_ 开头的文件夹,将其复制到剪映/CapCut 草稿目录即可。
支持的视频格式
- MP4 (推荐)
- MOV
- AVI
- MKV
支持的图片格式
- PNG (推荐,支持透明)
- JPG/JPEG
- WebP
支持的音频格式
- MP3 (推荐)
- AAC
- WAV
- M4A
项目信息
- GitHub: https://github.com/sun-guannan/VectCutAPI
- 在线体验: https://www.vectcut.com
- 开源协议: Apache License 2.0
- Star 数量: 800+
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingvectcut-skill/skill/SKILL.md
Popularity
- Repository stars
- 1,754
- Repository forks
- 377
- 7-day trend score
- 37
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 29 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sun-guannan/vectcutapi/sun-guannan-skill)