ClipQuant API
Automate clipping from your own tools. Available on Studio.
Authentication
Create a key in Settings → API keys (shown once; store it like a password). Send it on every request:
Authorization: Bearer cq_…
Keys can create and read projects and clips. They can't change billing, your account or other keys. Limit: 120 requests per minute per key. Minutes are charged exactly as in the app.
1. Start a project
From a link (YouTube, Vimeo and other public video pages):
curl -X POST https://YOUR-CLIPQUANT-HOST/api/projects \
-H "Authorization: Bearer $CLIPQUANT_KEY" -H "Content-Type: application/json" \
-d '{"url":"https://www.youtube.com/watch?v=…","options":{"aspect":"9:16","captionStyle":"pop","maxClips":10}}'
Or upload a file in three steps: POST /api/uploads/init with {"name","size"} → PUT /api/uploads/:uploadId?offset=N with 8 MB chunks of raw bytes → POST /api/uploads/:uploadId/complete, then POST /api/projects with {"uploadId","title","options"}.
Options: aspect (9:16, 4:5, 1:1, 16:9), length (auto, short, medium, long), captionStyle, showTitle, maxClips, topic, rangeStart/rangeEnd (seconds).
2. Wait for it
curl https://YOUR-CLIPQUANT-HOST/api/projects/PROJECT_ID -H "Authorization: Bearer $CLIPQUANT_KEY"
status goes queued → processing (with stage and progress) → ready or failed. Poll every 10–30 seconds. Finished clips appear in clips as they render.
3. Get the clips
Each clip has title, score, reasons, start/end (seconds in the source), post (caption and hashtags) and links:
GET /media/clip/:clipId/download— the MP4GET /api/clips/:clipId/srt— captions (add?lang=esetc. for a translation)GET /api/projects/:id/timeline.xmlor.edl— all clips as a Premiere Pro / DaVinci Resolve timeline (Final Cut Pro 7 XML);?vertical=1uses the finished vertical clips (unzip "Download all" next to it)GET /api/projects/:id/zip— every clip and caption file in one ZIP
Hook Lab and Series
GET /api/clips/:clipId/hooks— teaser lines that work as cold opens for a clipPOST /api/clips/:clipId/variantswith{"count":2}— make A/B versions (cold opens); they render like any clipPOST /api/projects/:id/series/planandPOST /api/projects/:id/serieswith{"start","end","length":"short|medium|long"}— plan, then create a numbered seriesGET /api/projects/:id/plan.ics?perDay=1— the posting plan as a calendar
Versions and series parts count toward your plan's clips per video. There are no webhooks yet: poll GET /api/projects/:id.
Change and re-render a clip
curl -X PATCH https://YOUR-CLIPQUANT-HOST/api/clips/CLIP_ID \
-H "Authorization: Bearer $CLIPQUANT_KEY" -H "Content-Type: application/json" \
-d '{"start":12.4,"end":41.0,"captionStyle":"boxed","titleStyle":"slam"}'
Errors
Errors return JSON {"error": "…"} with a matching HTTP status: 400 invalid input, 401 bad key, 402/403 plan limits, 404 not found, 409 not ready yet, 429 too many requests (see Retry-After).