ClipSDKDOCS
Pipeline Guide

Automated Podcast Video to Captioned Shorts, Reels & TikTok Pipeline

Turn 60-to-180-minute video podcasts and founder interviews into publish-ready vertical clips with active-speaker reframing, burned-in karaoke captions, opening hooks, and zero manual editing.

60-Min Episode
$1.80 Total
$1.20 past 2,000 min/mo; first episode $0
Reframing
reframe: auto
Tracks active speaker into 1080x1920 9:16
Second Pass
from_job
Pull extra clips skipping prior timestamps
Max Window
First 3 Hours
Accepts sources up to 48h and 5 GB

Ingest Podcast Links or 5 GB Files

Pass a YouTube, Zoom, Loom, Google Drive, Dropbox, Twitch, or direct MP4/MOV link straight to POST /v1/clips, or stream raw studio exports up to 5 GB via POST /v1/uploads.

Podcast automation workflows no longer need fragile yt-dlp wrappers or temporary EC2 scratch disks. ClipSDK ingests public single-video URLs from 15 platforms directly, transcribes spoken audio (with automatic language detection or explicit ISO 639-1 language), ranks standalone moments on a 0-100 viral readiness scale, and renders up to 20 clips (up to 50 on paid accounts) in a single pass.

Podcast FormatRecommended `aspect` & `reframe`Why It Works
2-host split-screen or studio camaspect: "9:16", reframe: "auto"Tracks whichever speaker is talking into crisp 1080x1920 vertical video
Single-camera solo founder showaspect: "9:16", reframe: "center"Locks steady center framing with zero pan drift
Screen-share demo or slide deckaspect: "9:16", reframe: "none"Fits full 16:9 frame over a blurred backdrop so UI text stays legible
LinkedIn & Instagram feed clipsaspect: "4:5" (1080x1350) or "1:1"Native feed aspect ratios without platform cropping

Steer Moments With prompt & first_seconds

Use prompt (up to 500 chars) to focus ranking on high-converting podcast topics, and first_seconds (60-10800) to transcribe, clip, and bill only a chosen opening slice.

Without prompt, ClipSDK selects the highest-retention standalone arguments, stories, and punchlines across the episode. Adding a targeted prompt such as "sharp advice on pricing, churn, and fundraising mistakes with concrete numbers" steers moment ranking directly toward your channel niche.

  • Fast Preview Runs (first_seconds): Set first_seconds: 1200 on a 3-hour episode to transcribe and bill only the first 20 minutes ($0.60), validate your caption preset and hook style, then run the full episode.
  • Duration Bounds (min_seconds / max_seconds): Set 25-55 seconds for YouTube Shorts and TikTok, or 45-120 seconds (paid accounts support up to 180s) for deeper LinkedIn and Instagram Reels clips.
  • Brand-Safe Sponsor Cuts (bleep: true): Automatically bleep profanity in audio and star it out across burned-in captions, SRT/VTT files, and hook headlines.

Mine Extra Clips With from_job

Pass from_job with a succeeded job ID under 7 days old to extract additional podcast clips without re-uploading the video or duplicating moments already clipped.

Most podcast teams publish 5 flagship vertical clips on episode launch day, then mine 5-10 extra themed clips the following week for LinkedIn or topic playlists. Passing from_job skips every segment already selected in the earlier job and lets you change prompt, aspect, captions, and hook cleanly.

podcast-pipeline.mjs: Pass 1 Shorts + Pass 2 LinkedIn 4:5 via from_jobjavascript
import crypto from "node:crypto";

const API_KEY = process.env.CLIPSDK_KEY;

async function createAndWait(body, key) {
  let res = await fetch("https://api.clipsdk.com/v1/clips?wait=60", {
    method: "POST",
    headers: {
      Authorization: `Bearer ${API_KEY}`,
      "Content-Type": "application/json",
      "Idempotency-Key": key,
    },
    body: JSON.stringify(body),
  });
  let { job } = await res.json();
  while (job.status === "queued" || job.status === "running") {
    const delay = Number(res.headers.get("retry-after") ?? "5");
    await new Promise((r) => setTimeout(r, delay * 1000));
    res = await fetch(`https://api.clipsdk.com/v1/jobs/${job.id}?wait=60`, {
      headers: { Authorization: `Bearer ${API_KEY}` },
    });
    ({ job } = await res.json());
  }
  if (job.status !== "succeeded") throw new Error(job.error?.message ?? "Job failed");
  return job;
}

// Pass 1: 6 vertical Shorts/TikTok clips with karaoke captions + banner hooks
const shortsJob = await createAndWait(
  {
    video_url: "https://www.youtube.com/watch?v=PODCAST_EP_ID",
    clips: 6,
    min_seconds: 25,
    max_seconds: 58,
    aspect: "9:16",
    reframe: "auto",
    captions: { preset: "karaoke", font: "Montserrat", keyword_color: "#FACC15", pop_in: true },
    hook: { template: "banner", seconds: 4 },
    prompt: "contrarian growth tactics and exact revenue numbers",
    bleep: true,
  },
  `ep42-shorts-${crypto.randomUUID()}`,
);

const readyToPost = shortsJob.result.clips.filter((c) => c.score >= 80);
console.log("Auto-publish queue (score >= 80):", readyToPost.map((c) => c.title));

// Pass 2: 4 fresh 4:5 LinkedIn clips from the same source, skipping Pass 1 moments
const linkedinJob = await createAndWait(
  {
    from_job: shortsJob.id,
    clips: 4,
    min_seconds: 40,
    max_seconds: 90,
    aspect: "4:5",
    reframe: "auto",
    captions: "clean",
    prompt: "hiring, leadership, and product strategy lessons",
  },
  `ep42-linkedin-${crypto.randomUUID()}`,
);
console.log("LinkedIn cuts:", linkedinJob.result.clips.map((c) => c.video));

Polish Winning Clips With Word Edits

Before scheduling a clip, call GET /v1/jobs/{id}/clips/{rank}/words and POST /v1/jobs/{id}/clips/{rank}/edit to trim dead air, fix guest names, or swap hook copy.

Every clip includes its title, reason, transcript, and ready-to-post post_caption. If a clip starts with a two-second breath or misspells a guest's brand name, you can tighten trim: { start_s, end_s } and pass the fixed words array without re-running transcription or re-billing the hour-long episode. See full edit fields in Clips & Jobs Reference.

Run Podcast Clipping From AI Agents

Connect Claude Code, Cursor, or Codex directly to https://mcp.clipsdk.com/mcp (or the local stdio package) and install bitgate/clipsdk-api-skills to clip episodes in plain English.

Natural-language agent prompt via ClipSDK MCPtext
> cut ./episode-42.mp4 into 6 vertical 9:16 clips about pricing with karaoke captions, banner hooks, and bleep enabled
> pull 4 more clips from that job for LinkedIn in 4:5 with clean captions
> inspect the words in clip 1, trim the first 2.5 seconds, and fix "Clip SDK" to "ClipSDK"

Read full Claude, Cursor, and Codex setup steps in MCP & AI Agents, or copy production Bash, Python, and Node.js podcast workflows from bitgate/clipsdk-api-skills.