一个 POST,就把一条 YouTube 链接变成按预测表现排好序、带字幕的竖屏 9:16 切片。同一套密钥也能接 MCP,让 Claude 替你跑切片。用量走的是和网页端同一份分钟额度,没有单独的 API 费用。
在开发者页面创建密钥(任何账号、任何套餐都可以),然后提交视频:
curl -X POST https://highstyle.ai/api/v1/clip \
-H "Authorization: Bearer hs_live_..." \
-H "Content-Type: application/json" \
-H "Idempotency-Key: my-video-42" \
-d '{
"url": "https://youtube.com/watch?v=VIDEO_ID",
"clips": 5,
"style": "spotlight",
"layout": "auto"
}'
# 202 Accepted
# { "project_id": "…", "job_id": "…", "status": "queued",
# "queued": true, "minutes_held": 60, "minutes_balance": 240,
# "poll": "/api/v1/projects/…" }Idempotency-Key 是可选的,但值得带上:一次 POST 超时后,你用同一个值重试,拿回的是原来的项目,而不是再跑一次、再预占一份额度。queued: false 表示这次请求没能把任务派出去执行,所以别默认它已经在跑,先轮询确认(一直没启动的任务会自动判为失败并退还额度)。
一次运行要几分钟(整条源视频都会转写并分析)。轮询直到 status 变成 done:
curl https://highstyle.ai/api/v1/projects/PROJECT_ID \
-H "Authorization: Bearer hs_live_..."
# { "status": "done", "clips": [
# { "rank": 1, "title": "…", "hook": "…",
# "virality_score": 8.6, "duration_ms": 41000,
# "video_url": "https://…mp4",
# "share_url": "https://highstyle.ai/c/…" },
# …ranked best-first
# ] }| 接口 | 作用 |
|---|---|
| POST /api/v1/clip | 提交一条 YouTube 链接。可选参数:clips(1-50,默认 10)、style(下方 17 个预设之一,默认 spotlight)、layout(auto | fill | balanced | fit | split | track)、clip_mode(viral-short | long-short)、music(auto | off | hype | chill | dramatic)、sfx(布尔值)、title。无法识别的取值会直接报错,不会悄悄换成默认值。 |
| GET /api/v1/projects/{id} | 状态、进度,以及按预测表现排好序的切片,每条都带时间戳、mp4 直链和公开分享页的链接。 |
| GET /api/v1/projects | 你最近的项目,最新的在前,附带切片数量和剩余分钟额度。limit 最大 50;before 用上一页最早的 created_at 作为游标。 |
| GET /api/v1/options | style、layout、clip mode、music 的全部合法取值,当前的各项限制,以及这个密钥自己的状态:套餐、剩余分钟额度,以及现在能不能提交任务。 |
每个请求都用 bearer 密钥认证;读接口在任何套餐上都能用,所以你可以先把集成跑通再付费。出错时返回 JSON,带一条 error 说明和一个便于程序判断的 code:401 表示密钥缺失或已撤销;403 upgrade_required 表示免费版想跑切片;402 insufficient_credits 表示额度不足;400 invalid_option 表示取值不合法;429 rate_limited 会带上 Retry-After 头,出现在单个密钥每分钟超过 120 次请求之后。
下面任意一个都可以作为 style 传入。带动效的预设是默认外观;clean 专门给规则禁止花哨字幕或 AI 感字幕的悬赏活动用:字幕照样准确,但不带辉光、变色强调、弹跳动画和标题卡。
| spotlight | 默认。开场在画面中部放一张白色标题卡,字幕在下方,一个蓝色方块跟着念到的词逐个滑过去。 |
| reels | 辉光字幕,重点词变色,放在画面中上部。 |
| reels-nocard | reels 去掉开场标题卡。 |
| reels-emotion | reels 加上按情绪配色的强调:正面绿色、负面红色、中性蓝色。 |
| reels-emotion-solo | reels-emotion 再加单词节拍,标出来的词单独放大、居中弹出。 |
| inset | The picture inset with rounded corners on a flat field, the hook as plain type above it with one phrase in red, and karaoke captions inside the frame below the face. Prefers the card layout. |
| hormozi | 逐字高亮,当前词弹一下,黑色硬描边,白字转黄。 |
| banner | 加黑边的顶部横幅版式。钩子整条片子都固定在顶部的黑条里,下方的转写文本一个词一个词地出现。 |
| clean | 活动合规。准确、清楚,不带辉光、动画、变色强调和标题卡,保留原文大小写。 |
| minimal | 小号朴素字幕,放在画面下方,保留原文大小写。 |
| karaoke | 黄色逐字高亮,不带弹跳。 |
| boxed | 字幕压在半透明黑条上。 |
| neon | 绿色霓虹字,深色描边。 |
| fire | 橙色字,深红描边。 |
| bold-center | 两个词一组的大字,居中放在画面中部。 |
| top | 小号字幕,固定在画面顶部附近。 |
| default | 三个词一组的白色素字,是有预设机制之前的老样子。 |
Add Highstyle to Claude once and it can clip for you in conversation. There is no API key to create and no client ID or secret to paste: the whole setup is the URL https://highstyle.ai/mcp, after which Claude sends you to Highstyle to sign in and you approve the connection once. Custom connectors work on every Claude plan, and a free Claude account can have one.
New to this? The step-by-step guide walks the whole setup with pictures. What follows is the short version.
# Claude web, Desktop, mobile (Pro, Max, and Free) Customize > Connectors > + > Add custom connector Name: Highstyle URL: https://highstyle.ai/mcp # Then Continue, and sign in to Highstyle when Claude sends you there. # Leave Advanced settings alone: no client ID or secret is needed. # Team and Enterprise: an Owner adds it first, under # Organization settings > Connectors > Add > Custom > Web
On a Team or Enterprise plan a member cannot add one alone: an Owner adds it under Organization settings first, and it then shows up under Customize for everyone to connect individually.
# Claude Code, signing in through the browser claude mcp add --transport http highstyle https://highstyle.ai/mcp # Claude Code, using an API key instead of signing in claude mcp add --transport http highstyle https://highstyle.ai/mcp \ --header "Authorization: Bearer hs_live_..."
Claude asks Highstyle what it needs before it finishes adding the connector, so the sign-in happens there and then rather than later: you land on a Highstyle page naming the connection and the workspace it will spend minutes from, you approve once, and Claude returns holding a token tied to your account. The connection lasts until you disconnect it, in Claude or from your Connections page in Highstyle.
Claude reads the tool descriptions and picks what it needs, so you never name a tool yourself. Things people actually type:
A run takes several minutes, and Claude is told to wait rather than poll in a loop, so it holds the turn and comes back with ranked clips instead of asking you to check again. Each clip arrives with its title, hook, timestamps, a download URL and a share link, and asking to see one returns a still frame from the clip itself.
| Tool | What it does |
|---|---|
submit_clip_job | Takes a YouTube URL and starts a run. The only tool that spends minutes. |
wait_for_clips | Waits for a run to finish and returns the clips. Bounded, so it never hangs the conversation. |
get_project_status | Progress on one run, then its ranked clips once done. |
list_projects | Recent runs, clip counts, and the minutes left on the plan. |
list_clip_options | Caption styles, layouts, clip lengths and the rest of the vocabulary, so Claude uses real values rather than guessing. |
preview_clip | Returns one clip as a still frame in the conversation, plus its links. |
Signing in through the connector and using an hs_live_ key are two ways into the same account, and they meet the same limits. Minutes come from your plan balance, the one the web app spends, and a run holds up to 60 minutes then charges the video's real length when it finishes.
Reading works on every plan, so you can connect, ask what Highstyle does and list your projects before paying. Starting a run needs a paid plan, and Claude is told to say so plainly and point you at an upgrade rather than failing in a way it cannot explain.
Every connection is listed on your Connections page, with the app that asked for it and when it was last used. Disconnecting takes effect immediately: the tokens are deleted rather than flagged, so the next tool call from that Claude conversation asks you to sign in again.
API、MCP 和网页端共用同一份分钟额度,按工作区计,所以套餐里的分钟就是集成能跑的分钟,不用另外买。提交时一个任务最多预占 60 分钟,跑完按源视频的真实时长扣费,剩下的预占自动退回。运行失败全额退还。任何人都可以创建密钥并用它读取数据,跑切片则需要任意一个付费套餐(19 美元/月起)。
如果你正在用它做东西,直接找我们。现在还是早期,响应很快:webhook 回调、通过 API 上传,以及更多工具,都按接入方提的需求排优先级。写信到 support@highstyle.ai。