Skip to main content
First month 50% off for new accounts, in their first 48 hoursStart free

Cut a video by its script

Cuts lines, words, filler words or long pauses out of a video and its captions, or keeps only selected lines. The original recording is never changed, and spoken lines keep their recorded order.

MCP toolcut_video
APIPOST /api/v1/videos/{clipId}/cut
CreditsFree

When to use it

  • Call after get_script returns status: "ready" to clean up a talk or extract highlights into a shorter version.
  • Put all cuts for one pass into a single call using the script's current version.
  • To change caption wording without removing spoken audio, use edit_captions instead.

Parameters

NameTypeRequiredWhat it is
clipIdstringYesThe clipId from open_video, or a clip ID from list_clips.
versionintegerYesThe version the script was read at.
removelistNoWhat to cut out.
remove[].lineintegerYesA script line.
remove[].toLineintegerNoThe last line, for several lines in a row.
remove[].textstringNoOnly these words of the line, copied from the script. They must be there once.
keeplistNoKeeps only this and cuts the rest, for highlights or a set length. remove still applies within it.
keep[].lineintegerYesA script line.
keep[].toLineintegerNoThe last line, for several lines in a row.
keep[].textstringNoOnly these words of the line, copied from the script. They must be there once.
removeFillersbooleanNoTakes out "um", "uh", "er", "ah", "erm" and "hmm". Cut other filler words with remove.
shortenPausesbooleanNoShortens long silences between words.

Call it from an AI agent

{
  "name": "cut_video",
  "arguments": {
    "clipId": "f8669b08",
    "version": 0,
    "remove": [
      {
        "line": 5,
        "toLine": 7
      },
      {
        "line": 9,
        "text": "you know"
      }
    ],
    "removeFillers": true,
    "shortenPauses": true
  }
}

Call it from your code

curl -X POST https://pogclip.com/api/v1/videos/f8669b08/cut \
  -H "Authorization: Bearer $POGCLIP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"version": 0, "remove": [{"line": 5, "toLine": 7}, {"line": 9, "text": "you know"}], "removeFillers": true, "shortenPauses": true}'

What you get back

{
  "clipId": "f8669b08",
  "name": "Why I started filming again",
  "pageUrl": "https://pogclip.com/dashboard/projects/8e4ed643?clip=f8669b08",
  "downloadPageUrl": "https://pogclip.com/dashboard/projects/8e4ed643?download=f8669b08",
  "status": "ready",
  "version": 1,
  "durationSeconds": 194.5,
  "script": [
    {
      "line": 1,
      "start": 0.1,
      "end": 2,
      "text": "Okay, here's the deal."
    },
    {
      "line": 2,
      "start": 2.3,
      "end": 8.1,
      "text": "I want to show you what I got wrong."
    }
  ],
  "previousVersion": 0,
  "secondsBefore": 510,
  "secondsAfter": 194.5,
  "next": "Read the script through once more: it should still make sense. Version 0 can be put back. Export the video with its clipId when it is right; exports use no credits."
}

The example above shows only the first two lines of the updated script.

  • version: the new version after the cut; use it for any follow-up edits.
  • previousVersion: pass this to restore_video to undo the cut.
  • script: the new numbered script as the video plays now; read it through to confirm every transition makes sense.
  • secondsBefore and secondsAfter: show how much time the cut removed.
  • next: confirms whether anything changed and when the video is ready for export_clips.

Errors

CodeWhat it means
video_changedThe video has a newer version than the one you sent. Read the script again and use its version.
invalid_requestA field is missing or wrong, or the video has no transcript yet.
not_foundThere is no video with this ID on the account, or it has expired.
unauthorizedThe API key or sign-in is missing, wrong or revoked.
rate_limitedMore than 60 requests in a minute. Wait for retryAfterSeconds.