你的 AI 代理找出時刻、剪成短影音
把 YouTube 直播存檔、Twitch VOD 或 Kick 影片交給你的 AI 代理。它會取得聊天室炸開的時刻,排名與 surgeshorts.com 相同,把你選的那段剪成 9:16 短影音或 16:9 MP4,並給你下載連結。你就能搶先發布。
Skill
一頁給 AI 代理讀的說明:API、從連結到 MP4 的流程,以及需要回報給你的錯誤。把它交給任何 AI 代理都行。
https://surgeshorts.com/skill.md
能執行指令的 AI 代理使用 CLI。它會等 SurgeShorts 讀完聊天室、算圖完成,再儲存 MP4。
npx -y https://surgeshorts.com/cli/surgeshorts-0.1.0.tgz moments "https://www.twitch.tv/videos/…"
npx -y https://surgeshorts.com/cli/surgeshorts-0.1.0.tgz export "https://www.twitch.tv/videos/…" --moment 1 --out moment1.mp4
你的 AI 代理會做什麼
1讀取聊天室
它送出實況連結,以 JSON 取回時刻:每個時刻的開始與結束時間、聊天室反應有多激烈,以及聊天室說了什麼。
2剪下時刻
它挑一個時刻(或由你挑),SurgeShorts 會把它算圖成 720×1280 短影音,或保留實況原本的 16:9 畫面。
3把檔案交給你
它等算圖完成,再給你 MP4 的下載連結,保留 7 天。
在你的 AI 代理中設定
Claude Code
先儲存一次 skill。之後用一般的話提出要求,例如「找出這場實況最精彩的 3 個時刻,剪成短影音」,Claude Code 就會讀 skill 並執行 CLI。
mkdir -p ~/.claude/skills/surgeshorts
curl -fsSL https://surgeshorts.com/skill.md -o ~/.claude/skills/surgeshorts/SKILL.md
Codex
把 skill 存到 Codex 讀取 skills 的位置,再請 Codex 找出某個實況連結的精彩時刻。它會在 shell 中執行 CLI。
mkdir -p ~/.agents/skills/surgeshorts
curl -fsSL https://surgeshorts.com/skill.md -o ~/.agents/skills/surgeshorts/SKILL.md
ChatGPT
建立一個 GPT。在「設定」(Configure)中新增動作,選擇「從 URL 匯入」(Import from URL),貼上下方的 OpenAPI 連結。把 skill 的內容貼到「指令」(Instructions),並把動作的「驗證」(Authentication)設為 API Key、Bearer,填入你的金鑰。
https://surgeshorts.com/openapi.json
Cursor
把 skill 存到專案的 skills 資料夾。出現實況連結時,Cursor 的 AI 代理會讀它,並在終端機執行 CLI。
mkdir -p .cursor/skills/surgeshorts
curl -fsSL https://surgeshorts.com/skill.md -o .cursor/skills/surgeshorts/SKILL.md
OpenClaw
把 skill 存到 OpenClaw 的 skills 資料夾。然後從你使用 OpenClaw 的聊天 App 傳送實況連結,它就會回覆時刻和 MP4。
mkdir -p ~/.openclaw/skills/surgeshorts
curl -fsSL https://surgeshorts.com/skill.md -o ~/.openclaw/skills/surgeshorts/SKILL.md
n8n
使用三個 HTTP Request 節點:時刻、匯出,以及匯出狀態。status 為 "mapping" 時,用 Wait 節點重複第一個節點;status 為 "queued" 或 "running" 時,重複最後一個節點。接著把 Response Format 設為 File,下載 download_url。在匯出節點的 Header Auth 憑證中填入你的金鑰:Authorization、Bearer ss_…。
GET https://surgeshorts.com/api/v1/moments?url={{ $json.url }}&n=5
POST https://surgeshorts.com/api/v1/exports {"url": "…", "start": …, "end": …, "format": "vertical"}
GET https://surgeshorts.com/api/v1/exports/{{ $json.id }}
你的 API 金鑰
找時刻不需要金鑰。匯出要用免費金鑰:輸入你的電子郵件,打開連結,按「建立金鑰」。用它,你的 AI 代理每天可以做幾支短影音,每支結尾都有一段簡短的 SurgeShorts 片尾畫面。
使用 Pro 時,同一把金鑰匯出時沒有片尾畫面、片段更長、每天的短影音更多,而且 Pro 從免費試用開始。金鑰只會顯示一次,SurgeShorts 只保存它的雜湊值。
export SURGESHORTS_API_KEY=ss_…
只剪你擁有或獲准剪輯的實況,例如剪輯任務的實況。服務條款(第 7 條,英文)有明確規定。