Scrub API
POST/v1/tools/plan_cutawayspriced

Plan the cutaways

Lays out a short from a video, a podcast or a webinar, from its transcription: the stretch by times or words, the speaker upright (audio alone: pictures), cutaways on key points (a webinar's: its shared screen), callouts on figures, a hook. Changes no word; makes no image. The skill make-short-from-a-video makes it.

Takes src (file), transcript (file). Returns timeline (the short as a timeline to change before it is made, upright, its lines said in the recording, the recording under everything (from audio alone, the cutaways one after another instead), each cutaway on its words saying what it shows (in a webinar, the shared screen at that moment where it fits), each callout a text box on its words, and its hook, its title or nothing on top, as asked).

$0.07 a plan.

Fields

FieldTypeDefaultWhat it is
srcstringNoneA file_id from create_upload, accepting video/*, audio/*, up to 4 GB. Get one with create_upload. Or the job_id of a finished job that made a file of this kind: that file is used. Pass the job_id rather than retyping its result.
transcriptstringNoneA file_id from create_upload, accepting application/vnd.scrub.transcript+json, application/json, up to 16 MB. Get one with create_upload. Or the job_id of a finished job that made a file of this kind: that file is used. Pass the job_id rather than retyping its result. Without one, transcribe (Transcribe a video) from the file given as src when it is a video makes one, or transcribe_audio (Transcribe audio) from the file given as src when it is an audio file makes one: run it first and pass its job_id here.
momentstringRequiredWhich stretch, by its start and end (8:48 to 9:35) or by what is said in it, and what it is about; a title it gives names the short. Or one row of a table: find_moments (Find the moments) from the file given as transcript makes the table, or plan_content (Plan content) from the file given as transcript makes the table, or write_content (Write content) from the file given as transcript makes the table; run it, then give one row's words here, every column by its label.
topone ofhook_at_the_startWhat sits at the top of the short. Hook at the start is a line that makes someone stop scrolling, for its first 3 seconds; Title throughout names it the whole way through; None leaves the top clear.
hook_at_the_starttitle_throughoutnone
quietnumber1Any quiet longer than this, in seconds, is cut down to half a second (or to this, when shorter), from the sound and the picture together.
speakernumber4The longest the speaker is on screen before a cutaway, in seconds. From audio alone nobody is on screen, and every stretch is a cutaway.
cutawaynumber3The longest a cutaway shows, in seconds; from audio alone, the longest each picture shows.
screenbooleantrueIn a webinar or a call, where the speaker is in a small camera beside a shared screen, each cutaway that falls while the screen is shared shows the part of it that fits its words, at that moment, instead of a picture to make; it keeps what a picture would show, to make one in its place later. Off, every cutaway is a picture to make.
calloutsnumber4The most callouts, each a figure or a short phrase said (at most five words), shown big on the words that say it; 0 for none.
brand_kitstringNoneA Brand Kit's id (kit_…) from list_brand_kits: its look and settings fill what this call leaves out, and what the call gives wins. Read once when the job starts.

Call it

Request

curl -X POST https://app.scrub.app/v1/tools/plan_cutaways \
  -H "Authorization: Bearer $SCRUB_KEY" \
  -H "Content-Type: application/json" \
  -d '{"moment":"w/…/file_id"}'

Answer

{
  "ok": true,
  "result": {
    "job_id": "job_…",
    "status": "running",
    "price_usd": "$…"
  }
}

It starts at once and answers running. Ask job_status with the job_id for its result. quote gives its price first, free.

Every call can also answer an error: what comes back. Try it with your key from Account.