ClipSDKDOCS
ClipSDK Developer Documentation

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.

Base URL
api.clipsdk.com
Bearer csdk_live_... auth + OpenAPI 3.1
Usage Pricing
$0.03 / min
$0.02/min past 2,000 source min/month
First Video
$0 Free
Up to 60 min source, failed jobs bill $0
MCP Endpoint
mcp.clipsdk.com
Streamable HTTP + local stdio 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.

Start
5-Minute Quickstart

Send your first POST /v1/clips call with runnable curl, Python, and Node.js examples.

Open Quickstart
REST
Clips, Jobs & Edit API

Complete schema for /v1/clips, /v1/jobs/{id}, /v1/uploads, and word-level clip edits.

Browse Endpoints
Guides
SaaS Clipping Architecture

End-to-end upload, webhook, edit loop, and unit-cost benchmarks vs OpusClip, Vizard, Shotstack, and Klap.

Read SaaS Guide
AI Agents
MCP Server & Agent Skills

Connect https://mcp.clipsdk.com/mcp to Claude, Cursor, or Codex in one command.

Configure MCP

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 & PathPurposeKey Behavior
POST /v1/clipsCreate 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 uploadIdempotent 200 { id, deleted: true }; 409 JOB_NOT_FINISHED if running
POST /v1/uploadsIssue a 1-hour presigned PUT URL for local files up to 5 GBPUT raw bytes with exact Content-Length and no Authorization header
GET /v1/jobs/{id}/clips/{rank}/wordsFetch word-level timestamps (segment_s, words[]) for a clipUse before editing to pick exact trim cuts or correct caption words
POST /v1/jobs/{id}/clips/{rank}/editRe-render one clip with trim, aspect, reframe, captions, hook, words, or bleep202 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 sourceNo 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.

POST https://api.clipsdk.com/v1/clipsbash
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.

CategorySupported ValuesNotes
Platform linksYouTube, TikTok, Twitch, Kick, X, Facebook, Loom, Zoom, Google Drive, Dropbox, Dailymotion, Streamable, Vidyard, Wistia, LinkedInPublic single-video URLs using default scheme port and no user:pass@ credentials
Direct & uploaded filesMP4, MOV, WebM, MKV via HTTP(S) URL or POST /v1/uploadsUp to 5 GB per file, 48h max source duration, first 3h clipped (or first_seconds)
Output aspect ratios9:16 (1080x1920), 1:1 (1080x1080), 4:5 (1080x1350), 16:9 (1920x1080)Paired with reframe: "auto" (active speaker), "center", or "none"
Captions & hooks8 caption presets + style object + 5 hook banner templates + bleepDownloadable .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.

MeterRateRule
Standard source rate$0.03 / source minFirst 2,000 source minutes per UTC month, billed per second
Volume source rate$0.02 / source minAutomatic rate past 2,000 source minutes per UTC month
Volume clip floor$0.03 / delivered clip minApplies only when delivered clips cost more than source duration
Heavy source floor$0.08 / delivered clip minSources >1080p, >60fps, >55 Mb/s H.264, or >20 Mb/s other codecs
High quality (quality: "high")1.5x job priceHigher-bitrate sharper render output
First video & failures$0First 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.succeeded and job.failed events verified with Clipsdk-Signature: t=<unix>,v1=<hex> across 5 retries (0s, +10s, +1m, +5m, +30m). Read Webhooks.
  • Machine-Readable Docs: Request any page on docs.clipsdk.com with Accept: text/markdown for clean Markdown, or fetch the live OpenAPI 3.1 schema at https://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.