Make Reels and Shorts from your footage: hook, captions, transitions, sound effects
You turn your raw footage or a long video into short vertical clips (Reels, Shorts, TikToks) that open on a hook. The best line comes first, captions pop word by word, cuts land with a quick transition, and a whoosh or a pop marks each beat. Dead air, "um" and long pauses are gone.
Use invideo for this when you want your agent to pick the moments from what you said: it reads a transcript of your footage, finds the hook and the best lines, and builds each clip on a timeline you can still change.
Quickest path
Set up your agent first with invideo for AI agents. Then give it this prompt.
Make three 9:16 Shorts from ./talk.mp4. Read the transcript, pick thethree strongest moments, and start each one with its best line as thehook. Word-by-word captions, a quick transition and a whoosh on eachcut, no pauses. Price the transcript first, show me the picks andframes before you export.In a chat app, you drag the footage into the project's Media panel in invideo, then name it in the chat. In a terminal, you name the file or the folder and the agent uploads it.
What you need
Raw footage works best when you talk to the camera. The agent finds the moments in your words.
- Your footage. A talking-head video, a vlog, a podcast clip, a stream or a long YouTube video.
- How many clips. One, or a set of clips from one video.
- The length. Short and punchy, or a longer story.
- The style. Caption look, transitions, sound effects, music or none.
- The platforms. Reels, Shorts, TikTok, LinkedIn. The shape is 9:16 for all of them, or 1:1 or 4:5 for a feed.
Steps
Your agent edits on a branch and tells you what changed at each step.
Cut the clips
The agent finds the hook and cuts each clip first.
Bring in the footage and make a vertical timeline
The agent uploads the footage with
start_uploadandadd_media. It makes a timeline withnew_timelineat 9:16 and a branch withtimeline_history. Expected result: a timeline URL and a media bin id for the footage.Read the transcript
The agent runs
mediaaudio.transcripton the footage's sequence URL fromadd_media, after adry_runand the price told to you, then withmax_credits. A transcript refuses a media binasset_id. The agent calls again afterretry_after_sfor the words. Expected result: every word with its time.Pick the hook and the moments
The agent reads the transcript for lines that stand alone: a strong claim, a surprise, a question, a short story with an end. It picks the best line of each moment as the hook. It tells you its picks with timecodes before it edits. Expected result: a list of moments and hooks for you to approve.
Cut each clip
The agent places the hook first and the rest of the moment after it, with
place_mediaand the source start and end in seconds, withlinked_audiotrue. Inside each part, it finds pauses withaudio.contentand the "um" and "uh" in the transcript, cuts them withsplit_clip, and removes them withdelete_clipinclose_gapmode. Expected result: a tight clip that opens on the hook.
Finish and export
Then the agent fills the frame, adds captions and sound, and checks each clip.
Fill the vertical frame
The agent runs
fill_frameon each clip and moves it withset_positionso your face stays in view. For a wide shot that loses too much, it runsfind_modelswith "reframe to vertical". A good pick isltx_2_3_pro.reframe. Your agent can search for others withfind_models. The agent reads the pick's inputs withget_model, then callsgeneratewithdry_run: true, the clip's sequence URL asvideoandaspect_ratio9:16, and tells you the price. For a price of 1 credit or more it waits for your yes. Then it callsgeneratewithmax_creditsset to that price and anidempotency_key, and reads the new sequence URL withread. Expected result: your face in frame in every shot.Add captions, transitions and sound
The agent adds word-by-word captions with
add_captions, using the transcript's word times, and styles them withset_text_style. It adds a short transition such asslide_blur,shake_zoomorflashat each cut withadd_transition. For a whoosh or a pop, it runsfind_modelswith "whoosh sound effect". A good pick iselevenlabs_sfx, which the agent reads withget_model. It callsgeneratewithdry_run: true, apromptand a shortdurationwithin the rangeget_modelgives, and tells you the price. For a price of 1 credit or more it waits for your yes. Then it callsgeneratewithmax_creditsset to that price and anidempotency_key, reads the new sequence URL withread, and places it at each cut withinsert_media. For music, it adds theduckerto the music track withadd_audio_effect. A new timeline ducks underA1by default, so the agent setsset_sidechain_sourceonly when your voice is on another track. Expected result: captions on every word, a sound on each cut, and music that dips when you talk.Check before export
The agent runs
captureat the hook, each cut and the end, and runscheck_timeline. It checks that the captions sit above the app's buttons. Expected result: the hook shows in the first frames, and the captions are readable.Export
The agent runs
exportwithformatvideo, one call per clip withstartandend, or one timeline per clip. It reads each card until its status iscompleted. Expected result: one 1080p MP4 per clip.
The same job from a terminal:
invideo project new --title "Shorts from the talk"invideo agent register <project-url> --name <name>export INVIDEO_AS=<name>invideo edit new <project-url> --name "Short 1" --width 1080 \ --height 1920invideo asset upload <edit-url> ./talk.mp4invideo media audio.transcript <sequence-url> --dry-runinvideo media audio.transcript <sequence-url> \ --max-credits <price>invideo media audio.content <edit-url> --asset m1invideo gen models <project-url> --query "whoosh sound effect"invideo gen model <project-url> --model elevenlabs_sfxinvideo gen run <page-url> --model elevenlabs_sfx --dry-run \ -i prompt="short fast whoosh" -i duration=3invideo gen run <page-url> --model elevenlabs_sfx --max-credits <price> \ --idempotency-key whoosh-1 -i prompt="short fast whoosh" -i duration=3invideo status <thread-url> --waitinvideo notebook show <thread-url>invideo edit show <edit-url> --jsoninvideo branch new <edit-url> --name short-1 --token <state_token>invideo edit show <branch-url> --jsoninvideo edit change <branch-url> --timeline T1 \ --token <state_token> --operations @ops.jsoninvideo edit capture <branch-url> --at 0,1.5,8,20 --out ./framesinvideo edit check <branch-url>invideo edit export <branch-url> --format video --quality 1080 --jsoninvideo status <card-url> --waitinvideo notebook show <card-url> --out ./outWhere each value comes from:
<name>is the name you choose ininvideo agent register.INVIDEO_ASpasses it to every later command.<project-url>comes frominvideo project new, and<edit-url>frominvideo edit new.<sequence-url>is theurlthatinvideo asset uploadreturns, andm1is the bin id in the same result. Reads likeaudio.contenttake--asset m1. A transcript refuses it.<price>is each dry run's.estimated_credits.<page-url>is a notebook page of the project, listed byinvideo notebook show <project-url>.<thread-url>is theurlthe paidgen runreturns, andinvideo notebook showon it lists the sound's sequence URL.<state_token>comes frominvideo edit show: on<edit-url>for the branch, then on<branch-url>for the change.<branch-url>is the.branch_urlthatinvideo branch newreturns.@ops.jsonreads a bare JSON list of ops, theoperationslist of the call below.<card-url>is.sequences[0]of the export result.invideo statuswaits but saves nothing.invideo notebook showsaves the video as./out/export.mp4, and the agent renames it.
The key MCP call, shown as the full call, places the hook, then the moment. <branch-url> is the branch URL timeline_history returns, and <state_token> comes from get_timeline on it. m1 is the footage's bin id from add_media. The hook is 312.4 to 316.0 seconds in the source. The moment runs from 290.0 to 312.0 seconds.
{ "url": "<branch-url>", "timeline_id": "T1", "expected_state_token": "<state_token>", "operations": [ { "op": "place_media", "asset": "m1", "track": "V1", "at_f": 0, "source_start_seconds": 312.4, "source_end_seconds": 316.0, "mode": "append", "linked_audio": true }, { "op": "place_media", "asset": "m1", "track": "V1", "at_f": 108, "source_start_seconds": 290.0, "source_end_seconds": 312.0, "mode": "append", "linked_audio": true } ]}The agent also sends fill_frame on each clip, add_transition with left_clip, right_clip, type, in_f and out_f, and add_captions with the slides and words. These can go later in the same call, with the clip ids the call makes, or in a second call after get_timeline.
Cost and time
Edits and exports are free. Generation and transcripts cost credits. Paid stock costs a small credit charge, or one of your workspace's iStock licenses. Your agent runs a dry run first and tells you the price before it spends anything.
- Tool ops:
audio.content. The dry run shows its price before anything starts. - Free: the upload, the cuts, the reframe by hand, the captions, the transitions, the checks and the exports.
- Costs credits: the transcript, once per file, the sound effects from
elevenlabs_sfx, paid stock music, and any shot run throughltx_2_3_pro.reframe.
A set of clips from one video takes the agent a few minutes once the transcript is back. See Credits and what they cost for prices.
If something goes wrong
Most problems come from a weak hook, captions under the app's buttons, or a cut in the middle of a word.
| Symptom | Fix |
|---|---|
get_model or generate refuses the model as not found | Models retire. Run find_models with the job in words, use the best match, and tell the person which model you used. |
Exit code 6, or status is held | A safety review, not a refusal. Wait, then run invideo status <url> --wait again. Do not resend. If it ends failed, change the input the review flagged. |
audio.transcript refused with code: "not_found", or CLI exit 2 | The call named a media bin asset. Pass the footage's sequence URL from add_media or invideo asset upload. |
invideo status --wait ends and the folder is empty | status does not download. Run invideo notebook show <card-url> --out <dir>. |
| The hook is weak | Ask for three hook options. The agent puts each on its own branch so you can compare. |
| A cut lands in the middle of a word | The agent moves the cut to the word's end time in the transcript with trim_clip. |
| Captions are behind the app's buttons | Move the caption clip up with set_position. Add safe-zone guides with create_guide. |
| A face is cut off | Move the clip with set_position, or zoom out with set_zoom. |
audio.transcript returns a status, not words | It is still working. Call it again after retry_after_s. Only the first call costs credits. |
| The transition feels slow | Shorten it with resize_transition, or use cut. |
| CLI exit 7 | Nothing ran. Run the same command again. |
| Avoid: transcribing the file again for each clip | Instead: the transcript is kept on the file. Call audio.transcript again for the words. Only the first call spends credits. |
| Avoid: saying done without looking | Instead: capture the first frames, where the hook is. |
Prompts to try
Each prompt is a real variation of the job.
Make one LinkedIn clip from my webinar recording ./webinar.mp4: 1:1,the single best tip, a clear title card on top, clean captions, nosound effects. Professional, not flashy.Make five TikToks from my podcast episode. Each one opens on a questionsomeone asks. Big yellow captions, a pop on each caption change, anda light leak transition between parts.Cut my vlog ./day.mp4 into one 9:16 Short. Start with the funniestline, cut every pause longer than half a second, add a whoosh on eachcut and upbeat stock music ducked under my voice.When to use something else
invideo does not post or schedule. Upload each clip in the app, or use a scheduler such as Buffer or Later. invideo does not score clips for "virality". The agent picks moments by reading what you said. For an automatic score, a clip tool such as OpusClip does that.