hermosodocs

post_edit

Post-production edit

Area: MOTION GRAPHICS IN ONE CALL · Creative generation. Generated from the running MCP server, like the rest of the tool reference.

Description

MECHANICAL post-production on an EXISTING video (URL): ordered ffmpeg primitives, ~2 credits flat, NO AI model, outputs a NEW video. Ops: a branded end card, trim, speed (0.5-2x), mute (whole or a window), audio_gain (-20..+6 dB), fade_out, music (a ducked bed: omit track = a free library track picked by mood, no attribution; or track = an audio link (upload_file, find_sound or generate_sfx URL, or a post's sound); track 'generate' composes it, paid, ONLY when the user asks; start/end, db, replace), voiceover (text spoken OVER it, its sound ducked; ~2.5 words/s; voice female|male; +~1 credit), watermark (brand logo), grain (anti-AI), text (timed words in a native look: style 'tiktok-classic' default / 'clean-minimal' / 'note-style' or a textStyle; start/end, or at:{word} and until:{word} to time them to speech), join (this video FOLLOWED BY clips[]: Library URLs, files or public post links, one 1080x1920 video), layout (ONLY when asked: split screen, cut-out or green-screen presenter, letterbox, fisheye; whole or a start/end window). Presets are shortcuts: x/y, grain amount, join transition and bridge sound are free. 'A viral hook, then our clip' = videoUrl: the hook's post link + [{op:'join', clips:[{url: ours}], bridge}], and it ALWAYS gets a bridge unless the user asks for a bare cut: {kind:'impact'} cuts the hook just before its payoff (cutAt overrides) and lands our clip on a punch-in and flash, with the payoff sound FROM THE HOOK ITSELF (else one generated from its frames, up to 8 credits, else a neutral impact). {kind:'text', text, then?} only when words over the cut are asked for. No voiceover bridge. ANY OTHER EDIT, op or bridge (whip, zoom, freeze, wipe, generated shot) is edit_timeline: free keyframes, any size. NEVER generate_video/render_ad for these. Feedback is one named move, never a re-render: quieter/louder (music db, audio_gain), faster/slower (speed; slower = zooms and pans at 0.7x), tighten (trim), retime (word anchor), recut (order, in/out), regrade (timeline colour keys).

Parameters

ParameterTypeDescription
videoUrlrequiredstringthe video to edit: a render / Library URL, a direct file, or a public post link; a URL, not a local file path; use upload_file for local files
opsrequiredobject[]the ordered edit plan (max 6 ops)
ops[].oprequired"trim" | "speed" | "mute" | "audio_gain" | "fade_out" | "music" | "voiceover" | "append_card" | "watermark" | "grain" | "text" | "join" | "layout"the edit to apply, in order; each op takes only the fields listed for it in the tool description
ops[].startnumbertrim/mute/text/layout window start (s)
ops[].endnumbertrim/mute/text/layout window end (s)
ops[].layoutobjectlayout: the frame layout, ONLY when the user or a format asks for one
ops[].layout.kindrequired"split" | "cutout" | "green_screen" | "letterbox" | "fisheye"split (two pictures in one frame), cutout (presenter cut out like a sticker, white outline), green_screen (presenter keyed over a background, no outline), letterbox (a wide band with bars), fisheye (ultra-wide selfie look)
ops[].layout.panelsstring | object[]split: exactly two pictures, the first on top (or left): 'this' (the video) or a Library / render URL / direct file
ops[].layout.direction"stack" | "side"split: stack = top and bottom (default on a tall video), side = side by side
ops[].layout.rationumbersplit: the first panel's share, 0.2-0.8 (default 0.5)
ops[].layout.seamboolean | objectsplit: the line between the panels (default thin white; false = none). Its position comes back so a caption can sit on it
ops[].layout.seam.thicknessnumber0-0.03 of the short side
ops[].layout.seam.colorstringhex or a colour name
ops[].layout.presenterstringcutout / green_screen: the person clip, 'this' (default) or a URL
ops[].layout.backgroundstring | objectcutout / green_screen: what is behind them: a clip or still URL, a colour, or 'grid' (a cutting mat, the cutout default)
ops[].layout.matte"green" | "alpha"how the person is cut: green (filmed on a green screen, keyed free; default) or alpha (a clip with its own transparent background, e.g. from cut_out_video_background)
ops[].layout.scalenumbercutout / green_screen: the person's height as a share of the frame, 0.2-1
ops[].layout.xnumbercutout / green_screen: their centre, 0-1 of the width
ops[].layout.ynumbercutout / green_screen: where their feet land, 0.3-1.2 of the height; letterbox: where the band sits, 0-1
ops[].layout.outlinenumbercutout: the white outline, 0-0.04 of the short side (0 = none)
ops[].layout.outlineColorstringcutout: outline colour (default white)
ops[].layout.shadowbooleancutout: a soft drop shadow (default true)
ops[].layout.srcstringletterbox / fisheye: the picture, 'this' (default) or a URL
ops[].layout.aspectstringletterbox: the band's shape, 16:9 (default), 2.39:1, 4:3…
ops[].layout.barstringletterbox: bar colour (default black)
ops[].layout.strengthnumberfisheye: 0-1 (default 0.55)
ops[].layout.vignette"round" | "soft" | "none"fisheye: corner fall-off (default round)
ops[].layout.audio"auto" | "first" | "second" | "mix" | "none"whole-video layout: whose sound (auto = the speaker). A start/end window keeps the video's own sound
ops[].textstringtext/voiceover: the words, verbatim
ops[].voicestringvoiceover voice: female or male
ops[].keepSoundbooleanvoiceover only: true (default) keeps the clip's sound under the voice; false replaces it
ops[].position"top" | "center" | "lower" | "bottom"text: where, or x/y
ops[].xnumbertext/watermark centre: 0-1 of frame, or px
ops[].ynumbervertical centre for text or watermark: 0 to 1 of frame height, or pixels
ops[].stylestring | objecttext: a look name or a textStyle
ops[].textStylestring | objecttext op: a textStyle object or preset name, same as style
ops[].atstring | objecttext, instead of start/end: the words appear as this spoken phrase starts (timed from the video's own words; refused if it is never said)
ops[].at.wordrequiredstringthe word or phrase as it is said
ops[].at.occurrencenumber1 = first time said (default), 2 = second, -1 = last
ops[].untilstring | objecttext with at: the words leave as this phrase ends
ops[].until.wordrequiredstringthe word or phrase as it is said
ops[].until.occurrencenumbercounted from the at phrase on
ops[].durationnumbertext with at and no until: seconds the words stay, 0.3-30 (default 2)
ops[].clipsobject[]join: the clips after this video
ops[].clips[].urlrequiredstringclip to join after the video: Library URL, direct file or public post link
ops[].clips[].startnumberseconds into this clip to start from
ops[].clips[].endnumberseconds into this clip to stop at
ops[].clips[].matchstring | boolean | objectseam match for this clip: auto (default), off, or a grade object
ops[].clips[].match.gradeboolean
ops[].clips[].match.levelboolean
ops[].clips[].match.grainboolean
ops[].clips[].match.blurboolean
ops[].clips[].match.strengthnumber
ops[].clips[].reframestring | numbershot change at this seam: auto, off, or a step from 1.1 to 1.5
ops[].reframestring | numberjoin: shot change at a same-framing stitch, 'auto' | 'off' | step 1.1-1.5
ops[].matchstring | boolean | objectjoin: seam match, 'auto' default | 'off' | {grade,level,grain,blur,strength}
ops[].match.gradeboolean
ops[].match.levelboolean
ops[].match.grainboolean
ops[].match.blurboolean
ops[].match.strengthnumber
ops[].transitionstringjoin: 'cut' default, 'crossfade', or any ffmpeg xfade name (wipeleft…)
ops[].bridgeobjectjoin: connects the hook to the first clip
ops[].bridge.kindrequired"impact" | "text"impact (cut before the hook's payoff) or text (words over the cut)
ops[].bridge.cutAtnumberomit: found from the footage
ops[].bridge.matchCutnumbersecond in our clip where it starts
ops[].bridge.soundstring'auto' default, 'own', 'impact', 'whoosh', 'none', or an audio URL (find_sound)
ops[].bridge.flashbooleantrue (default) adds a white flash on the cut; false skips it
ops[].bridge.shakebooleantrue (default) adds a camera shake on the cut; false skips it
ops[].bridge.textstringtext bridge only: words shown over the cut, only when the user asks for them
ops[].bridge.thenstringtext bridge only: a line shown after the text
ops[].factornumberspeed 0.5-2
ops[].dbnumberaudio_gain -20..+6 dB / music: trim on its automatic level, -40..+12
ops[].modelstringmusic, generate: the model
ops[].trackstringmusic: omit = a library track by mood; a library track name; an audio link; 'generate' (paid, only on the user's ask)
ops[].moodstringmusic: mood words for the library pick, or the brief for generated music
ops[].fromnumbermusic: the second of the track to start from
ops[].duckstring | booleanmusic: 'auto' default = dips while the clip's own sound plays
ops[].replacebooleanmusic: true = replaces the clip's own sound; a music change or swap needs it, or the old music plays on under the new
ops[].fadeOutnumbermusic: fade-out seconds 0-5
ops[].secondsnumberfade_out 0.3-3s / append_card 2-5s / transition 0.2-1.5s
ops[].headlinestringappend_card: big line (default: brand name)
ops[].taglinestringappend_card: smaller line under the headline
ops[].substringappend_card: pill line (default: website) / text: a second, smaller line
ops[].backgroundstringappend_card: hex or a colour name; the user's colour beats the brand palette
ops[].card_htmlstringappend_card: your OWN full-frame card as inline-styled HTML ({{logo}} = the brand logo)
ops[].corner"tl" | "tr" | "bl" | "br"watermark corner (default br), or x/y
ops[].intensity"default" | "strong" | numbergrain: or 0-1 (default 0.25)
brandNamestringoverride the workspace brand name
domainstringoverride the brand website
accentstringoverride the brand accent hex
dryRunbooleantrue = return the estimated credits this edit reserves and run nothing
get_costbooleantrue: return the price only; nothing runs or bills
expected_creditsnumberthe get_cost price; refused unbilled if the live price differs
idempotency_keystringchosen once, resent unchanged on retries: the same key never buys twice

Example call

Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/post_edit.

MCP (tools/call)

{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"post_edit","arguments":{"videoUrl":"<string>","ops":"<array>"}}}

CLI

hermoso call post_edit --json '{"videoUrl":"<string>","ops":"<array>"}'

Credits

Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.

All 102 Creative generation tools · tools.json