Clips
Price it
Section titled “Price it”POST /billing/estimate/clips {"source": "url", "source_seconds": 600}source is url (adds the download line) or upload. Send the same moment and whisper fields as the run to price them.
Start a run
Section titled “Start a run”Form fields (application/x-www-form-urlencoded):
POST /clips/jobs/url url=<video link>&clips=5&min_length=30&max_length=60&mode=analyzePOST /clips/jobs/upload multipart: file=@video.mp4, same fields| Field | Values |
|---|---|
mode |
analyze finds moments only; auto (default) also renders them from an uploaded file |
min_length, max_length |
Seconds, within the platform’s limits |
formats |
Comma list of 9:16, 1:1, 16:9; default 9:16 |
captions |
Burn the spoken words in; default true |
quality |
high, medium or low |
language |
Language code |
moment_finder |
auto, ai (reads the whole transcript) or offline |
moment_provider, moment_model |
The text model for ai |
min_interest |
0 to 1; drops weaker moments |
transcript_source |
auto (the video’s own captions when it has them) or whisper |
whisper_model |
tiny, base, small, medium, large-v3, turbo |
Poll GET /clips/jobs/{id} until completed (or failed, with the reason in error). Its slug names the video. List runs and videos with GET /clips/jobs and GET /clips/videos.
Read the moments
Section titled “Read the moments”GET /clips/videos/{slug}/clipsEach has clip_id, inSec, outSec, title, hook, score and rendered.
Find them again with the same settings (rendered clips are kept):
GET /clips/videos/{slug}/moments/estimatePOST /clips/videos/{slug}/moments/findRender
Section titled “Render”POST /billing/estimate/render {"clips": 3, "captions": true}POST /clips/videos/{slug}/render {"clip_ids": ["clip_01", "clip_02"], "captions": true}GET /clips/videos/{slug}/render/{render_id}/eventsWhen done, each rendered clip carries a rel_path media id to download through /media, and captioned says whether captions are burned in.
