blitzreels-video-editing
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseBlitzReels Video Editing
BlitzReels 视频编辑
Edit videos via the BlitzReels API: upload media, transcribe, edit timeline, apply captions, add overlays and backgrounds, then export.
If the task is specifically long-form to shorts, podcast-to-shorts, suggestion-backed clipping, or public automatic-layout reframe planning, prefer the skill first and come back here for lower-level timeline work.
blitzreels-clippingImportant: project preview and visual QA endpoints now exist. Use them when an agent needs to verify framing, caption placement, or layout visually before export.
通过BlitzReels API编辑视频:上传媒体、转写内容、编辑时间线、添加字幕、叠加层与背景,最后导出成品。
如果你的任务具体是长视频转短视频、播客转短视频、带建议的剪辑,或者公共自动布局重构图规划,请优先使用 skill,需要更低层级的时间线操作时再回到本工具。
blitzreels-clipping重要提示:目前已提供项目预览和视觉QA接口。当Agent需要在导出前可视化验证构图、字幕位置或布局时,请使用这些接口。
Quick Start
快速开始
bash
undefinedbash
undefinedUpload a video from URL
Upload a video from URL
bash scripts/editor.sh upload-url PROJECT_ID "https://example.com/video.mp4"
bash scripts/editor.sh upload-url PROJECT_ID "https://example.com/video.mp4"
Add to timeline and transcribe
Add to timeline and transcribe
bash scripts/editor.sh add-media PROJECT_ID MEDIA_ID
bash scripts/editor.sh transcribe PROJECT_ID MEDIA_ID
bash scripts/editor.sh add-media PROJECT_ID MEDIA_ID
bash scripts/editor.sh transcribe PROJECT_ID MEDIA_ID
Trim, caption, export
Trim, caption, export
bash scripts/editor.sh trim PROJECT_ID ITEM_ID 1.0 -2.0
bash scripts/editor.sh captions PROJECT_ID viral-center
bash scripts/editor.sh export PROJECT_ID --resolution 1080p
undefinedbash scripts/editor.sh trim PROJECT_ID ITEM_ID 1.0 -2.0
bash scripts/editor.sh captions PROJECT_ID viral-center
bash scripts/editor.sh export PROJECT_ID --resolution 1080p
undefinedPrimary Workflow
核心工作流
- Create project —
POST /projects {"name":"...", "aspect_ratio":"9:16"} - Upload media — (URL import) or 2-step presigned upload
editor.sh upload-url - Add to timeline — places media on the timeline
editor.sh add-media - Transcribe — generates word-level captions
editor.sh transcribe - Get context — to see timeline state
editor.sh context - Edit timeline — trim, split, delete, reorder, auto-remove silences
- Apply captions — for styled subtitles
editor.sh captions <presetId> - Add overlays — text overlays, motion code, motion graphics
- Add background — fill layers (gradients, cinematic, patterns)
- Export — renders final video with download URL
editor.sh export
- 创建项目 — 调用
POST /projects {"name":"...", "aspect_ratio":"9:16"} - 上传媒体 — 执行(URL导入)或者两步预签名上传
editor.sh upload-url - 添加到时间线 — 执行将媒体放到时间线上
editor.sh add-media - 转写 — 执行生成词级字幕
editor.sh transcribe - 获取上下文 — 执行查看时间线状态
editor.sh context - 编辑时间线 — 裁剪、拆分、删除、重排序、自动移除静默片段
- 应用字幕 — 执行使用带样式的字幕模板
editor.sh captions <presetId> - 添加叠加层 — 文本叠加层、动态代码、动态图形
- 添加背景 — 填充层(渐变、电影感、图案)
- 导出 — 执行渲染最终视频并返回下载链接
editor.sh export
Scripts
脚本
scripts/editor.sh
scripts/editor.shscripts/editor.sh
scripts/editor.shSubcommand wrapper for common editing operations.
| Command | Usage | Description |
|---|---|---|
| | Upload media from URL |
| | Transcribe + poll until done |
| | Get project context (default: timeline) |
| | Get items at timestamp |
| | Trim item edges |
| | Split item at time |
| | Delete timeline item |
| | Add media to timeline |
| | Add B-roll clip |
| | Apply caption preset |
| | Export + poll + download URL |
Run for full usage.
bash scripts/editor.sh --help常用编辑操作的子命令封装工具。
| Command | Usage | 描述 |
|---|---|---|
| | 从URL上传媒体 |
| | 转写并轮询直到任务完成 |
| | 获取项目上下文(默认:时间线) |
| | 获取指定时间戳的素材项 |
| | 裁剪素材项两端 |
| | 在指定时间点拆分素材项 |
| | 删除时间线素材项 |
| | 向时间线添加媒体 |
| | 添加B-roll片段 |
| | 应用字幕模板 |
| | 导出并轮询返回下载链接 |
运行查看完整用法。
bash scripts/editor.sh --helpscripts/blitzreels.sh
scripts/blitzreels.shscripts/blitzreels.sh
scripts/blitzreels.shGeneric API helper for direct endpoint calls. Use for overlays, effects, and advanced operations where doesn't have a shortcut.
editor.shbash
bash scripts/blitzreels.sh METHOD /path [JSON_BODY]通用API辅助工具,用于直接调用接口。当没有对应快捷操作时,可使用它处理叠加层、特效和高级操作。
editor.shbash
bash scripts/blitzreels.sh METHOD /path [JSON_BODY]Environment Variables
环境变量
| Variable | Required | Description |
|---|---|---|
| Yes | API key ( |
| No | Override base URL (default: |
| No | Set to |
| 变量 | 必填 | 描述 |
|---|---|---|
| 是 | API密钥( |
| 否 | 覆盖默认基础URL(默认: |
| 否 | 通过 |
API Endpoint Index
API接口索引
Projects
项目
| Method | Path | Description |
|---|---|---|
| POST | | Create project |
| GET | | Get project details |
| PATCH | | Update project settings |
| DELETE | | Delete project |
| GET | | List projects |
| Method | Path | 描述 |
|---|---|---|
| POST | | 创建项目 |
| GET | | 获取项目详情 |
| PATCH | | 更新项目设置 |
| DELETE | | 删除项目 |
| GET | | 列出项目 |
Media
媒体
| Method | Path | Description |
|---|---|---|
| POST | | Import media from URL |
| POST | | Get presigned upload URL |
| POST | | Finalize presigned upload |
| Method | Path | 描述 |
|---|---|---|
| POST | | 从URL导入媒体 |
| POST | | 获取预签名上传URL |
| POST | | 完成预签名上传 |
Transcription
转写
| Method | Path | Description |
|---|---|---|
| POST | | Start transcription job |
| GET | | Poll job status |
| GET | | Get transcript |
| POST | | Re-transcribe media |
| Method | Path | 描述 |
|---|---|---|
| POST | | 启动转写任务 |
| GET | | 轮询任务状态 |
| GET | | 获取转写结果 |
| POST | | 重新转写媒体 |
Captions
字幕
| Method | Path | Description |
|---|---|---|
| POST | | Apply caption preset |
| GET | | Get current style |
| PATCH | | Update style settings |
| GET | | List presets by category |
| PATCH | | Update caption words/timing |
| DELETE | | Delete caption |
| POST | | Emphasize specific words |
| Method | Path | 描述 |
|---|---|---|
| POST | | 应用字幕模板 |
| GET | | 获取当前字幕样式 |
| PATCH | | 更新样式设置 |
| GET | | 按分类列出字幕模板 |
| PATCH | | 更新字幕内容/时间轴 |
| DELETE | | 删除字幕 |
| POST | | 强调指定字词 |
Timeline Editing
时间线编辑
| Method | Path | Description |
|---|---|---|
| POST | | Add media to timeline |
| POST | | Trim item by deltas |
| POST | | Split item at timestamp |
| DELETE | | Delete item |
| PATCH | | Update item |
| POST | | Batch update items |
| PATCH | | Set volume |
| PATCH | | Set transform |
| POST | | Remove gaps |
| POST | | Detect silences |
| POST | | AI mistake detection |
| POST | | Caption-based recut plan |
| Method | Path | 描述 |
|---|---|---|
| POST | | 向时间线添加媒体 |
| POST | | 按偏移量裁剪素材项 |
| POST | | 在指定时间戳拆分素材项 |
| DELETE | | 删除素材项 |
| PATCH | | 更新素材项 |
| POST | | 批量更新素材项 |
| PATCH | | 设置音量 |
| PATCH | | 设置变换参数 |
| POST | | 移除间隙 |
| POST | | 检测静默片段 |
| POST | | AI错误检测 |
| POST | | 基于字幕的重剪计划 |
Overlays — Text, Motion Code, Motion Graphics
叠加层——文本、动态代码、动态图形
| Method | Path | Description |
|---|---|---|
| POST | | Add text overlay |
| PATCH | | Update text overlay |
| DELETE | | Remove text overlay |
| POST | | Add animated code block |
| PATCH | | Update code block |
| POST | | Add motion graphic |
| PATCH | | Update motion graphic |
| Method | Path | 描述 |
|---|---|---|
| POST | | 添加文本叠加层 |
| PATCH | | 更新文本叠加层 |
| DELETE | | 移除文本叠加层 |
| POST | | 添加动态代码块 |
| PATCH | | 更新代码块 |
| POST | | 添加动态图形 |
| PATCH | | 更新动态图形 |
Backgrounds
背景
| Method | Path | Description |
|---|---|---|
| POST | | Add fill layer |
| PATCH | | Update fill layer |
| Method | Path | 描述 |
|---|---|---|
| POST | | 添加填充层 |
| PATCH | | 更新填充层 |
Context & State
上下文与状态
| Method | Path | Description |
|---|---|---|
| GET | | Get project context |
| GET | | Items at timestamp |
| POST | | Render one still preview |
| POST | | Render multiple still previews |
| POST | | Run structured frame QA |
| GET | | Get machine-readable layout geometry |
| POST | | Undo last action |
| Method | Path | 描述 |
|---|---|---|
| GET | | 获取项目上下文 |
| GET | | 获取指定时间戳的素材项 |
| POST | | 渲染单张预览图 |
| POST | | 渲染多张预览图 |
| POST | | 运行结构化帧QA |
| GET | | 获取机器可读的布局几何信息 |
| POST | | 撤销上一步操作 |
Media View Repair
媒体视图修复
| Method | Path | Description |
|---|---|---|
| POST | | Upsert source-view crop/canvas state for one item |
| POST | | Duplicate a linked source view to another item |
| Method | Path | 描述 |
|---|---|---|
| POST | | 为单个素材项更新源视图裁剪/画布状态 |
| POST | | 将关联的源视图复制到另一个素材项 |
Clipping / Reframe Preview
剪辑/重构图预览
| Method | Path | Description |
|---|---|---|
| POST | | Generate a reframe plan plus preview stills before apply |
| Method | Path | 描述 |
|---|---|---|
| POST | | 应用前生成重构图计划和预览图 |
Export & Jobs
导出与任务
| Method | Path | Description |
|---|---|---|
| POST | | Start export (expensive) |
| GET | | Export status + download URL |
| GET | | Export history |
| DELETE | | Delete all exports |
| GET | | Generic job polling |
| Method | Path | 描述 |
|---|---|---|
| POST | | 启动导出(成本较高) |
| GET | | 导出状态+下载链接 |
| GET | | 导出历史 |
| DELETE | | 删除所有导出文件 |
| GET | | 通用任务轮询 |
Effects & Keyframes
特效与关键帧
| Method | Path | Description |
|---|---|---|
| POST | | Add zoom effect |
| POST | | Add mask effect |
| POST | | Add color grade |
| POST | | Create keyframe |
| Method | Path | 描述 |
|---|---|---|
| POST | | 添加缩放特效 |
| POST | | 添加蒙版特效 |
| POST | | 添加调色特效 |
| POST | | 创建关键帧 |
Context Modes
上下文模式
Use to control what data the context endpoint returns:
?mode=| Mode | Returns |
|---|---|
| Project metadata, duration, media count |
| All media assets with metadata |
| Full timeline with items, layers, timing |
| Word-level transcript from transcription |
| Everything combined |
Default:
timelinebash
bash scripts/editor.sh context PROJECT_ID timeline
bash scripts/editor.sh context PROJECT_ID full使用参数控制上下文接口返回的数据内容:
?mode=| Mode | 返回内容 |
|---|---|
| 项目元数据、时长、媒体数量 |
| 所有带元数据的媒体资产 |
| 完整时间线,包含素材项、图层、时间信息 |
| 转写生成的词级字幕 |
| 所有内容合并 |
默认值:
timelinebash
bash scripts/editor.sh context PROJECT_ID timeline
bash scripts/editor.sh context PROJECT_ID fullUpload Modes
上传模式
URL Import (Simpler)
URL导入(更简单)
bash
bash scripts/editor.sh upload-url PROJECT_ID "https://example.com/video.mp4"bash
bash scripts/editor.sh upload-url PROJECT_ID "https://example.com/video.mp4"Presigned 2-Step (For Local Files)
预签名两步上传(适用于本地文件)
bash
undefinedbash
undefinedStep 1: Get presigned URL
Step 1: Get presigned URL
PRESIGNED=$(bash scripts/blitzreels.sh POST /projects/PROJECT_ID/upload/presigned
'{"fileName":"video.mp4","contentType":"video/mp4"}')
'{"fileName":"video.mp4","contentType":"video/mp4"}')
PRESIGNED=$(bash scripts/blitzreels.sh POST /projects/PROJECT_ID/upload/presigned
'{"fileName":"video.mp4","contentType":"video/mp4"}')
'{"fileName":"video.mp4","contentType":"video/mp4"}')
Step 2: Upload to presigned URL
Step 2: Upload to presigned URL
curl -X PUT "$(echo $PRESIGNED | jq -r '.url')"
-H "Content-Type: video/mp4"
--data-binary @video.mp4
-H "Content-Type: video/mp4"
--data-binary @video.mp4
curl -X PUT "$(echo $PRESIGNED | jq -r '.url')"
-H "Content-Type: video/mp4"
--data-binary @video.mp4
-H "Content-Type: video/mp4"
--data-binary @video.mp4
Step 3: Finalize
Step 3: Finalize
bash scripts/blitzreels.sh POST /projects/PROJECT_ID/upload/finalize
"{"storageKey":"$(echo $PRESIGNED | jq -r '.key')"}"
"{"storageKey":"$(echo $PRESIGNED | jq -r '.key')"}"
undefinedbash scripts/blitzreels.sh POST /projects/PROJECT_ID/upload/finalize
"{"storageKey":"$(echo $PRESIGNED | jq -r '.key')"}"
"{"storageKey":"$(echo $PRESIGNED | jq -r '.key')"}"
undefinedQuick Reference
快速参考
- Caption presets: 30+ presets across 6 categories — see
references/caption-styles.md - Active word animations: highlight, scale, glow, lift, bounce, punch, slam, elastic, shake, none
- Motion code themes: github-dark, one-dark, dracula, nord, monokai, tokyo-night
- Fill layer presets: 38+ across 7 categories — see
references/fill-layers.md - Timeline layer order: caption(0) → effect(1) → image(2) → video(3) → audio(4) → background(5)
- 字幕模板:覆盖6个分类的30+模板——详见
references/caption-styles.md - 动态字词动画:高亮、缩放、发光、上浮、弹跳、重击、猛击、弹性、抖动、无
- 动态代码主题:github-dark、one-dark、dracula、nord、monokai、tokyo-night
- 填充层模板:覆盖7个分类的38+模板——详见
references/fill-layers.md - 时间线层级顺序:字幕(0) → 特效(1) → 图片(2) → 视频(3) → 音频(4) → 背景(5)
References
参考文档
- — Long-form to short workflow, podcast QA loop, preview/repair endpoints
references/clipping.md - — All 30+ presets, CaptionStyleSettings schema, animations
references/caption-styles.md - — Text overlays, motion code, motion graphics schemas
references/overlays.md - — 38+ background presets, FillLayerSettings schema
references/fill-layers.md - — Timeline endpoints, AI features, keyframes, effects
references/timeline-ops.md - — Export params, codecs, polling pattern
references/export-settings.md - — Full upload→edit→export walkthrough
examples/edit-uploaded-video.md - — Adding graphics to existing project
examples/enhance-with-overlays.md
- — 长视频转短视频工作流、播客QA循环、预览/修复接口
references/clipping.md - — 全部30+模板、CaptionStyleSettings schema、动画效果
references/caption-styles.md - — 文本叠加层、动态代码、动态图形schema
references/overlays.md - — 38+背景模板、FillLayerSettings schema
references/fill-layers.md - — 时间线接口、AI功能、关键帧、特效
references/timeline-ops.md - — 导出参数、编码、轮询模式
references/export-settings.md - — 上传→编辑→导出完整流程
examples/edit-uploaded-video.md - — 为现有项目添加图形元素
examples/enhance-with-overlays.md
Safety & Notes
安全提示与注意事项
- Use as base URL (avoid redirect from non-www)
https://www.blitzreels.com/api/v1 - Export and B-roll generation are expensive — require
BLITZREELS_ALLOW_EXPENSIVE=1 - sets this automatically;
editor.sh exportrequires explicit opt-inblitzreels.sh - Download URLs are temporary (24h TTL)
- Full OpenAPI spec:
https://www.blitzreels.com/api/openapi.json
- 请使用作为基础URL(避免非www域名的重定向)
https://www.blitzreels.com/api/v1 - 导出和B-roll生成成本较高——需要设置
BLITZREELS_ALLOW_EXPENSIVE=1 - 会自动设置该参数;
editor.sh export需要显式开启blitzreels.sh - 下载URL是临时的(24小时有效期)
- 完整OpenAPI规范:
https://www.blitzreels.com/api/openapi.json
Rate Limits
请求频率限制
| Plan | Requests/min | Requests/day |
|---|---|---|
| Free | 10 | 100 |
| Lite | 30 | 1,000 |
| Creator | 60 | 5,000 |
| Agency | 120 | 20,000 |
| 套餐 | 每分钟请求数 | 每日请求数 |
|---|---|---|
| 免费版 | 10 | 100 |
| 轻量版 | 30 | 1,000 |
| 创作者版 | 60 | 5,000 |
| 机构版 | 120 | 20,000 |