Developers · Early access · Draft spec

Clipping API

The ClippingNet Clipping API turns a long video into ready-to-post shorts from code: submit a source, get a job ID, receive a signed webhook when the clips are ready, and fetch files cut to a clip spec you control. It is in development; this page is the draft contract so you can build against it now and swap in the live base URL when access opens. Everything marked draft may change before launch.

Status
In development early access by request
Model
Async jobs submit → webhook → fetch
Privacy
Local mode planned: footage stays on your device
Design

What it's built to fix

We built the comparison of existing clipping APIs before designing this one. The recurring complaints shaped the contract.

  • Predictable cost. Priced per source minute with the clip count free; no per-export fee, no credit minimums per project. Final numbers at launch.
  • No silent caps. Rate limits and monthly limits are returned in headers on every response, and a GET /v1/limits endpoint tells you where you stand.
  • Clip spec as data. Length range, ratio, layout, caption style, brand kit and candidate count are a JSON object you version in your repo, not dashboard settings.
  • Re-render without re-process. Change the spec, keep the transcript and scores; only the cut and render run again.
  • Export URLs that say when they expire. Every file link carries an expires_at; nothing is undocumented.
  • Local mode (planned). The same job contract against a local runner, so footage never leaves your device; matches how the ClippingNet app already works.
Draft spec

Submit a job

Base URL and auth: https://api.clippingnet.com/v1 draft, bearer API key from your dashboard. All requests and responses are JSON; file bodies are multipart on /uploads.

Sources: public MP4/MOV URL, YouTube URL, or an upload_id from POST /v1/uploads. Twitch, Kick and Drive sources are on the roadmap.

Response: 202 Accepted with the job object. status moves through queued → processing → completed | failed. Failed jobs are not billed.

Idempotency: send an Idempotency-Key header to make retries safe; the same key returns the same job for 24 hours.

POST /v1/jobs · bash
curl -X POST https://api.clippingnet.com/v1/jobs \
  -H "Authorization: Bearer $CLIPPINGNET_API_KEY" \
  -H "Idempotency-Key: ep-142-run-1" \
  -H "Content-Type: application/json" \
  -d '{
    "source": { "url": "https://www.youtube.com/watch?v=VIDEO_ID" },
    "webhook": { "url": "https://example.com/hooks/clippingnet" },
    "spec": {
      "candidates": 15,
      "length": { "min_s": 20, "max_s": 60 },
      "ratio": "9:16",
      "layout": "auto",
      "captions": { "style": "word-pop", "language": "auto" },
      "brand_kit": "bk_default",
      "brief": "clutch plays and big reactions; skip lobby and menus"
    }
  }'

# 202 Accepted
{
  "id": "job_7f3a9c",
  "status": "queued",
  "source_minutes": 58.3,
  "created_at": "2026-10-22T16:11:04Z",
  "links": { "self": "/v1/jobs/job_7f3a9c", "clips": "/v1/jobs/job_7f3a9c/clips" }
}
Draft spec

Receive the webhook, fetch the clips

On completion we POST job.completed (or job.failed) to your URL, signed with HMAC-SHA256 over the raw body using your webhook secret, in the X-ClippingNet-Signature header with a timestamp to prevent replay. Reject anything unsigned. Retries: 5 attempts with backoff over 24 hours; respond 2xx to stop them.

Then GET /v1/jobs/{id}/clips returns every clip with its score, source timestamps, transcript excerpt, an MP4 URL, an SRT URL and expires_at (24 hours; call POST /clips/{id}/refresh for a new link). Polling GET /v1/jobs/{id} every 30 seconds works if you can't take webhooks.

Re-render: POST /v1/jobs/{id}/renders with a new spec re-cuts from the stored transcript and scores; billed as a render, not as new source minutes.

webhook handler · Node
import crypto from "node:crypto";

export async function handler(req) {
  const raw = await req.text();
  const [ts, sig] = req.headers.get("x-clippingnet-signature").split(",");
  const expect = crypto.createHmac("sha256", process.env.CN_WEBHOOK_SECRET)
    .update(ts.slice(2) + "." + raw).digest("hex");
  if (!crypto.timingSafeEqual(Buffer.from(sig.slice(3)), Buffer.from(expect)))
    return new Response("bad signature", { status: 401 });

  const evt = JSON.parse(raw);               // { type, job: { id, status } }
  if (evt.type !== "job.completed") return new Response("ok");

  const res = await fetch(`https://api.clippingnet.com/v1/jobs/${evt.job.id}/clips`, {
    headers: { Authorization: `Bearer ${process.env.CLIPPINGNET_API_KEY}` }
  });
  const { clips } = await res.json();
  // clips[i]: { id, score, start_s, end_s, transcript, mp4_url, srt_url, expires_at }
  const keep = clips.filter(c => c.score >= 70).slice(0, 6);
  await Promise.all(keep.map(c => saveToBucket(c.mp4_url, `${evt.job.id}/${c.id}.mp4`)));
  return new Response("ok");
}
Draft spec

Endpoints

MethodPathPurposeNotes
POST/v1/uploadsUpload a file (multipart or resumable)Returns upload_id; 10 GB max draft
POST/v1/jobsSubmit a clipping job202 + job; Idempotency-Key honoured
GET/v1/jobs/{id}Job status and progressprogress.stage: transcribe, score, cut, render
GET/v1/jobs/{id}/clipsList clips with scores and file URLsSorted by score; ?min_score=, ?limit=
GET/v1/jobs/{id}/transcriptFull transcript with word timingsJSON or SRT via Accept
POST/v1/jobs/{id}/rendersRe-render with a new specNo re-processing; billed as render
POST/v1/clips/{id}/refreshNew download URLFiles retained 30 days draft
GET/v1/limitsYour rate and monthly limits, used and remainingAlso in X-RateLimit-* headers on every response
POST/v1/webhooksRegister endpoints and rotate secretsEvents: job.completed, job.failed, render.completed
DELETE/v1/jobs/{id}Delete the job and all stored filesImmediate; for privacy requests
Clip spec

What the spec controls

Every field has a default; send only what you want to change. Store the spec in your repo and send the same one on every job for consistent output.

candidates

How many scored moments to return, 1–30. Default 10. Ask for more than you'll keep; filter by score on your side.

length

min_s, max_s. Default 20–60. Boundaries snap to sentence starts and payoff ends.

ratio

9:16, 1:1, 4:5, 16:9. One job can request several; each is a render.

layout

auto, speaker, split, game-cam (gameplay top, cam bottom), fit. Cam position detected automatically.

captions

Style (none, plain, word-pop, karaoke), language (auto or a code), size, position. Proper-noun fixes via glossary.

brand_kit

Fonts, colours, logo, title card and end card, defined once in the dashboard and referenced by ID.

brief

Plain-language guidance for the scorer: what to look for, what to skip. Optional; improves picks for niche content.

audio

music: strip removes a detected music bed where possible; normalize: true levels speech. Off by default.

Limits, errors, pricing

What to expect

  1. 1

    Rate limits are visible, not discovered

    Early access: 60 requests a minute, 10 concurrent jobs, 2,000 source minutes a month per workspace draft. Headers on every response; 429 includes Retry-After. Higher limits by request.

  2. 2

    Errors have stable codes

    invalid_spec, source_unreachable, source_too_long, rate_limited, quota_exceeded, processing_failed. 4xx is yours to fix, 5xx is ours and refunds the job. Every error carries a request_id for support.

  3. 3

    Pricing: per source minute

    One price per minute of source processed, however many clips you request; re-renders billed at a small flat rate. No credits, no per-export fee, no project minimum. Numbers are set at launch; early-access partners get the launch rate locked for 12 months.

  4. 4

    Local mode (planned)

    A runner you install that serves the same /v1 contract on localhost, processing on your hardware. Point your code at a different base URL and nothing else changes. For regulated content and anyone who took "your footage never leaves your device" at its word.

Built for

What people are building against it

Stream VOD pipelines

Grab the VOD before it expires, clip overnight, post in the morning. See Twitch and Kick.

Campaign tooling

Brand or streamer boards that hand clippers pre-cut candidates and a brief. See campaigns.

Agents and MCP

An MCP server over the same endpoints is planned alongside the API. See clipping MCP servers.

SaaS features

Clipping inside your own product with per-minute cost you can mark up and a spec you control.

Private archives

Lectures, legal, internal comms: local mode when it ships, delete-on-demand now.

FAQ

Common questions

When can I use it?

Early access is opening in stages; request access with a sentence about what you're building and your expected monthly minutes. The draft spec above is stable enough to code against; we'll publish a changelog for anything that moves.

What should I use in the meantime?

Katto for the best developer experience, Klap for predictable unit pricing, OpusClip for the widest pipeline, SupoClip for self-hosting. The API comparison scores them; the API and MCP guide has the shared job model, which this API follows, so switching later is an adapter, not a rewrite.

Will there be an SDK?

An OpenAPI 3.1 document at launch, with generated TypeScript and Python clients. The raw HTTP is simple enough that a fetch wrapper is fine.

Can the API post to TikTok or YouTube?

Not in the first release. It returns files, SRTs and metadata; posting goes through your own platform integration or a scheduler. Posting is on the roadmap behind explicit OAuth grants.

How is my footage handled?

Hosted mode: processed in our pipeline, stored 30 days (draft) or until you DELETE the job, never used for training. Local mode: it doesn't leave your machine. Full terms at launch; see the privacy policy.