hermosodocs

edit_timeline

Compose an edit (timeline)

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

Description

Compose ANY edit or transition yourself; there is no preset list. Segments on an output timeline (later ones drawn on top; overlapping ones ARE the transition), each animated by keyframes (scale, x, y, rotate, opacity, blur, mblur, exposure, speed ramps, holds, reverse), plus your own HTML overlays and masks, compiled server-side into one render. Whip pan, zoom through, push, spin, slow motion, freeze frame, J-cut / L-cut, wipes, split screen, picture in picture: all composed from the fields. Local render at the flat post_edit price (~2 credits, overlays included); a `generate` segment (a paid generated transition shot) only when the user explicitly asks. SOURCES: src is 'this' (videoUrl), a Library / render URL, a direct file or a PUBLIC TikTok / Reel / Facebook / X post link (a YouTube link is refused up front, free: YouTube does not let us download videos, so upload the file). in/out are SOURCE seconds; out:'payoff' cuts just before a hook's payoff. Every seam is matched automatically (grade, level, grain). Present the render as it came back: never review, critique or re-run it on your own. review:true (only when the user asks for a check of the transitions) adds a vision REVIEW of each seam (about 2 credits) plus the seam frames; share it and let the user decide on a re-run. video_frames shows exact frames free: look before you cut. Follow-ups ('cut earlier', 'whip pan instead') re-run with the same sources and the one change. Refusals are free and name the field. READ THE MANUAL FIRST: call get_skill('hermoso-edit-timeline') before composing. It holds the transition recipes with their exact keyframes (whip pan, zoom through, push, spin, speed ramp, freeze, wipes, split screen), how to link two unrelated clips with a match cut, the viral-hook-plus-product method, audio payoff and L/J-cut rules, and the pro-not-iMovie checklist.

Parameters

ParameterTypeDescription
videoUrlstringthe video 'this' refers to (optional when every segment names its own src)
segmentsrequiredobject[]the clips on the output, max 12, later ones on top. Every animated field (scale x y rotate opacity exposure blur mblur brightness contrast saturation, audio.gain) is a constant or keyframes [{t: seconds into this segment | src: a second of the source, v, ease: linear|in|out|inout|hold}]; x and y are in canvas widths / heights, rotate in degrees, mblur in px along mblurAngle
segments[].srcstring'this' (the default: videoUrl) or a video URL / public post link
segments[].imagestringa still instead (URL), with seconds
segments[].generateobjectPAID: a new shot between its neighbours
segments[].generate.promptrequiredstringdescription of a generated transition shot (paid; only when the user asks)
segments[].generate.secondsnumber3-8
segments[].generate.modelstringa model id that takes start AND end frames
segments[].innumbersource second to start from (default 0)
segments[].outnumber | stringsource second to stop at, or 'payoff' (default: the end)
segments[].atnumberoutput second it starts (default: right after the previous)
segments[].overlapnumberseconds it starts before the previous ends: the transition window
segments[].secondsnumberimage segments: how long
segments[].fit"auto" | "fill" | "contain" | "blur"how the picture fills the canvas: auto, fill, contain or blur
segments[].cropstring | objectfractions of the source frame, or 'auto': the picture only, without letterbox bars and their caption
segments[].crop.xnumber
segments[].crop.ynumber
segments[].crop.wnumber
segments[].crop.hnumber
segments[].anchorobjectcanvas point (0-1) that stays put while it scales
segments[].anchor.xrequirednumbercanvas x, 0 to 1, that stays put while the segment scales
segments[].anchor.yrequirednumbercanvas y, 0 to 1, that stays put while the segment scales
segments[].speednumber | object[]0.05-8, or a ramp over source seconds
segments[].speed[].srcrequirednumber
segments[].speed[].vrequirednumber
segments[].speed[].ease"linear" | "hold"
segments[].holdobject[]freeze frames
segments[].hold[].srcrequirednumbersource second of the frame to freeze
segments[].hold[].secondsrequirednumberhow long to hold that frame, in seconds
segments[].reversebooleantrue plays the segment backwards at one constant speed, with no holds
segments[].betweenbooleana bridge clip between its neighbours (a re-used generated shot): trimmed and graded to them automatically
segments[].match"auto" | "off" | objectthe cut INTO this segment (default: the timeline match)
segments[].match.gradeboolean
segments[].match.levelboolean
segments[].match.grainboolean
segments[].match.blurboolean
segments[].match.strengthnumber
segments[].reframe"auto" | "off" | numberthe cut INTO this segment
segments[].slowmo"blend" | "hold" | "flow"how slow motion fills frames (flow = motion-interpolated)
segments[].scalenumber | object[]constant or keyframes [{t or src, v, ease}]
segments[].xnumber | object[]canvas widths
segments[].ynumber | object[]canvas heights
segments[].rotatenumber | object[]degrees
segments[].opacitynumber | object[]constant or keyframes [{t or src, v, ease}]
segments[].blurnumber | object[]constant or keyframes [{t or src, v, ease}]
segments[].mblurnumber | object[]directional motion blur px
segments[].mblurAnglenumbermotion blur direction in degrees, used with mblur
segments[].radiusnumberrounded corners, a fraction of the picture's shorter side (0-0.5): a picture-in-picture CARD over the segment under it, any length
segments[].brightnessnumber | object[]-1..1, a flash
segments[].exposurenumber | object[]× the light, 1 = as shot (a fine grade)
segments[].contrastnumber | object[]constant or keyframes [{t or src, v, ease}]
segments[].saturationnumber | object[]constant or keyframes [{t or src, v, ease}]
segments[].audioobjectthis segment's sound: mute, gain, lead, tail, fades and level
segments[].audio.mutebooleantrue silences this segment's sound
segments[].audio.gainnumber | object[]dB
segments[].audio.leadnumberseconds its sound starts before its picture (a J-cut)
segments[].audio.tailnumber | stringseconds its sound runs past the cut (an L-cut), or payoff for the hook's own payoff sound
segments[].audio.fadeInnumberfade-in length in seconds for this segment's sound
segments[].audio.fadeOutnumberfade-out length in seconds for this segment's sound
segments[].audio.level"match" | "keep"match levels its loudness to the clips around it; keep leaves it as recorded
overlaysobject[]HTML/CSS overlays animated with @keyframes, each shown between its start and end. Max 4, 12 s on screen in all: merge lines into one overlay (CSS animation-delay)
overlays[].htmlrequiredstringHTML/CSS animated with @keyframes; no script, no network (images as data: URIs)
overlays[].startrequirednumberoutput second the overlay appears
overlays[].endrequirednumberoutput second the overlay disappears
overlays[].mode"over" | "mask"'mask': its opaque pixels are where `segment` shows
overlays[].segmentnumberfor mode mask: 0-based index of the segment whose opaque shape it reveals
sfxobject[]sound effects placed on the output timeline
sfx[].soundrequired"whoosh" | "impact" | "payoff"whoosh, impact or payoff
sfx[].atrequirednumberoutput second the sound lands
sfx[].gainnumberlevel in dB, -30 to 6; omit to match the sound under it
sfx[].segmentnumberpayoff: the segment whose OWN payoff sound (the egg's real splat) lands at `at`
sizestringcanvas: '9:16' default, '1:1', '4:5', '16:9', any 'W:H' (1:3 to 3:1, on a 1080 short side) or exact 'WxH' pixels
fpsnumberthe frame rate, a whole number from 24 to 60 (24, 25, 30, 60 are the usual ones). Leave it out: the canvas takes the rate of its own footage (the rate of most of it on screen), so no frames are invented; a faster clip is thinned, a slower one that does not divide it is motion-interpolated
motionBlurbooleandefault true: anything that moves gets a real shutter blur along its path
reviewbooleandefault false. true ONLY when the user asks for a check of the transitions: a vision read of each seam (about 2 credits) comes back with the render, with the seam frames
match"auto" | "off" | objectevery cut: 'auto' default
match.gradeboolean
match.levelboolean
match.grainboolean
match.blurboolean
match.strengthnumber
reframe"auto" | "off" | numberevery cut: 'auto' default
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/edit_timeline.

MCP (tools/call)

{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"edit_timeline","arguments":{"segments":"<array>"}}}

CLI

hermoso call edit_timeline --json '{"segments":"<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