ClipSDK API Documentation
ClipSDK turns long podcasts, YouTube videos, interviews, webinars, and stream VODs into ranked vertical short clips with active-speaker reframing, burned-in captions, hook headlines, SRT/VTT subtitles, and post-render edits over one REST API or MCP server.
ClipSDK API Architecture
ClipSDK replaces self-hosted FFmpeg, Whisper, and face-tracking GPU clusters with one HTTPS endpoint at https://api.clipsdk.com billed at $0.03 per source minute ($0.02 past 2,000 min/month).
Every job runs asynchronously through five observable pipeline stages: fetching, transcribing, ranking, reframing, and rendering. You submit a public video URL, a presigned upload from POST /v1/uploads, or a previous job ID via from_job, and receive ranked MP4 clips, JPG posters, SRT and VTT subtitle tracks, viral scores (0-100), titles, and ready-to-post captions.
Send your first POST /v1/clips call with runnable curl, Python, and Node.js examples.
Complete schema for /v1/clips, /v1/jobs/{id}, /v1/uploads, and word-level clip edits.
End-to-end upload, webhook, edit loop, and unit-cost benchmarks vs OpusClip, Vizard, Shotstack, and Klap.
Read SaaS GuideConnect https://mcp.clipsdk.com/mcp to Claude, Cursor, or Codex in one command.
REST API Endpoint Summary
ClipSDK exposes seven clean REST endpoints under https://api.clipsdk.com using Authorization: Bearer csdk_live_... plus public 7-day Range-enabled downloads at /f/{key}.
| Method & Path | Purpose | Key Behavior |
|---|---|---|
POST /v1/clips | Create 1-50 ranked captioned clips from a URL, upload, or from_job | ?wait=0..300 (default 60), 200 done / 202 running, Idempotency-Key 24h |
GET /v1/jobs/{id} | Inspect job status, stage, clip URLs, usage, pricing, and edit status | ?wait=0..300 (default 0), returns Location and Retry-After while running |
DELETE /v1/jobs/{id} | Delete a finished job, its rendered files, transcript, and unused upload | Idempotent 200 { id, deleted: true }; 409 JOB_NOT_FINISHED if running |
POST /v1/uploads | Issue a 1-hour presigned PUT URL for local files up to 5 GB | PUT raw bytes with exact Content-Length and no Authorization header |
GET /v1/jobs/{id}/clips/{rank}/words | Fetch word-level timestamps (segment_s, words[]) for a clip | Use before editing to pick exact trim cuts or correct caption words |
POST /v1/jobs/{id}/clips/{rank}/edit | Re-render one clip with trim, aspect, reframe, captions, hook, words, or bleep | 202 async re-render; paid accounts; 20 edits/clip, 100 edits/UTC day |
GET /f/{key} | Download rendered MP4, JPG poster, SRT/VTT subtitles, or uploaded source | No auth required, valid 7 days, supports HTTP Range (200/206) |
Single-Call Clipping Example
One POST /v1/clips request ingests a YouTube episode or MP4 up to 5 GB, reframes active speakers to 9:16 1080x1920, burns karaoke captions, and returns ranked clips.
curl -sS -X POST "https://api.clipsdk.com/v1/clips?wait=60" \
-H "Authorization: Bearer $CLIPSDK_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: episode-42-v1" \
-d '{
"video_url": "https://cdn.example.com/podcast-ep42.mp4",
"clips": 5,
"min_seconds": 25,
"max_seconds": 60,
"aspect": "9:16",
"reframe": "auto",
"captions": "karaoke",
"hook": { "template": "banner", "seconds": 4 },
"prompt": "sharp takeaways about SaaS growth and pricing",
"webhook_url": "https://app.example.com/webhooks/clipsdk"
}'When rendering finishes inside the ?wait= window, ClipSDK replies 200 OK with job.result.clips sorted best-first (rank: 1 highest score). For longer sources, it replies 202 Accepted with job.poll_url, Location, and Retry-After, and fires a signed Clipsdk-Signature webhook when complete.
Supported Video Sources & Outputs
ClipSDK accepts 15 major video platforms, direct MP4/MOV/WebM/MKV links, and 5 GB presigned uploads up to 48 hours long, clipping from the first 3 hours.
| Category | Supported Values | Notes |
|---|---|---|
| Platform links | YouTube, TikTok, Twitch, Kick, X, Facebook, Loom, Zoom, Google Drive, Dropbox, Dailymotion, Streamable, Vidyard, Wistia, LinkedIn | Public single-video URLs using default scheme port and no user:pass@ credentials |
| Direct & uploaded files | MP4, MOV, WebM, MKV via HTTP(S) URL or POST /v1/uploads | Up to 5 GB per file, 48h max source duration, first 3h clipped (or first_seconds) |
| Output aspect ratios | 9:16 (1080x1920), 1:1 (1080x1080), 4:5 (1080x1350), 16:9 (1920x1080) | Paired with reframe: "auto" (active speaker), "center", or "none" |
| Captions & hooks | 8 caption presets + style object + 5 hook banner templates + bleep | Downloadable .srt and .vtt tracks return even when captions: false |
Pay-As-You-Go API Pricing
ClipSDK charges $0.03 per source minute ($0.02 past 2,000 source minutes per UTC month), billed per second with zero monthly subscription fees and $0 failed jobs.
| Meter | Rate | Rule |
|---|---|---|
| Standard source rate | $0.03 / source min | First 2,000 source minutes per UTC month, billed per second |
| Volume source rate | $0.02 / source min | Automatic rate past 2,000 source minutes per UTC month |
| Volume clip floor | $0.03 / delivered clip min | Applies only when delivered clips cost more than source duration |
| Heavy source floor | $0.08 / delivered clip min | Sources >1080p, >60fps, >55 Mb/s H.264, or >20 Mb/s other codecs |
High quality (quality: "high") | 1.5x job price | Higher-bitrate sharper render output |
| First video & failures | $0 | First video up to 60 min is free; failed jobs and failed clip renders bill $0 |
Every account includes 3 concurrent running jobs, 200 jobs per UTC day, and 20 GB of direct uploads per UTC day. See the complete worked billing math and error matrix in Pricing & Limits.
Webhooks, MCP & Agent Skills
Production apps consume signed HMAC-SHA256 webhooks with 5 automatic retries, while AI coding agents connect directly to https://mcp.clipsdk.com/mcp with one Bearer key.
- Signed Webhooks: Receive
job.succeededandjob.failedevents verified withClipsdk-Signature: t=<unix>,v1=<hex>across 5 retries (0s, +10s, +1m, +5m, +30m). Read Webhooks. - Machine-Readable Docs: Request any page on
docs.clipsdk.comwithAccept: text/markdownfor clean Markdown, or fetch the live OpenAPI 3.1 schema athttps://api.clipsdk.com/openapi.json. - Agent Skills & Workflows: Install ready-made Claude Code, Cursor, and Codex skills plus runnable scripts from bitgate/clipsdk-api-skills, or browse tutorials on guides.clipsdk.com.