# Hermoso: edit_timeline: Compose an edit · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/create/edit_timeline/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Creative generation](https://hermoso.ai/docs/reference/create/) / edit_timeline

# `edit_timeline`

Compose an edit (timeline)

Area: MOTION GRAPHICS IN ONE CALL · [Creative generation](https://hermoso.ai/docs/reference/create/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/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

Parameter Type Description

`videoUrl` `string` the video 'this' refers to (optional when every segment names its own src)

`segments` required `object[]` 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[].src` `string` 'this' (the default: videoUrl) or a video URL / public post link

`segments[].image` `string` a still instead (URL), with seconds

`segments[].generate` `object` PAID: a new shot between its neighbours

`segments[].generate.prompt` required `string` description of a generated transition shot (paid; only when the user asks)

`segments[].generate.seconds` `number` 3-8

`segments[].generate.model` `string` a model id that takes start AND end frames

`segments[].in` `number` source second to start from (default 0)

`segments[].out` `number | string` source second to stop at, or 'payoff' (default: the end)

`segments[].at` `number` output second it starts (default: right after the previous)

`segments[].overlap` `number` seconds it starts before the previous ends: the transition window

`segments[].seconds` `number` image segments: how long

`segments[].fit` `"auto" | "fill" | "contain" | "blur"` how the picture fills the canvas: auto, fill, contain or blur

`segments[].crop` `string | object` fractions of the source frame, or 'auto': the picture only, without letterbox bars and their caption

`segments[].crop.x` `number`

`segments[].crop.y` `number`

`segments[].crop.w` `number`

`segments[].crop.h` `number`

`segments[].anchor` `object` canvas point (0-1) that stays put while it scales

`segments[].anchor.x` required `number` canvas x, 0 to 1, that stays put while the segment scales

`segments[].anchor.y` required `number` canvas y, 0 to 1, that stays put while the segment scales

`segments[].speed` `number | object[]` 0.05-8, or a ramp over source seconds

`segments[].speed[].src` required `number`

`segments[].speed[].v` required `number`

`segments[].speed[].ease` `"linear" | "hold"`

`segments[].hold` `object[]` freeze frames

`segments[].hold[].src` required `number` source second of the frame to freeze

`segments[].hold[].seconds` required `number` how long to hold that frame, in seconds

`segments[].reverse` `boolean` true plays the segment backwards at one constant speed, with no holds

`segments[].between` `boolean` a bridge clip between its neighbours (a re-used generated shot): trimmed and graded to them automatically

`segments[].match` `"auto" | "off" | object` the cut INTO this segment (default: the timeline match)

`segments[].match.grade` `boolean`

`segments[].match.level` `boolean`

`segments[].match.grain` `boolean`

`segments[].match.blur` `boolean`

`segments[].match.strength` `number`

`segments[].reframe` `"auto" | "off" | number` the cut INTO this segment

`segments[].slowmo` `"blend" | "hold" | "flow"` how slow motion fills frames (flow = motion-interpolated)

`segments[].scale` `number | object[]` constant or keyframes [{t or src, v, ease}]

`segments[].x` `number | object[]` canvas widths

`segments[].y` `number | object[]` canvas heights

`segments[].rotate` `number | object[]` degrees

`segments[].opacity` `number | object[]` constant or keyframes [{t or src, v, ease}]

`segments[].blur` `number | object[]` constant or keyframes [{t or src, v, ease}]

`segments[].mblur` `number | object[]` directional motion blur px

`segments[].mblurAngle` `number` motion blur direction in degrees, used with mblur

`segments[].radius` `number` rounded 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[].brightness` `number | object[]` -1..1, a flash

`segments[].exposure` `number | object[]` × the light, 1 = as shot (a fine grade)

`segments[].contrast` `number | object[]` constant or keyframes [{t or src, v, ease}]

`segments[].saturation` `number | object[]` constant or keyframes [{t or src, v, ease}]

`segments[].audio` `object` this segment's sound: mute, gain, lead, tail, fades and level

`segments[].audio.mute` `boolean` true silences this segment's sound

`segments[].audio.gain` `number | object[]` dB

`segments[].audio.lead` `number` seconds its sound starts before its picture (a J-cut)

`segments[].audio.tail` `number | string` seconds its sound runs past the cut (an L-cut), or payoff for the hook's own payoff sound

`segments[].audio.fadeIn` `number` fade-in length in seconds for this segment's sound

`segments[].audio.fadeOut` `number` fade-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

`overlays` `object[]` 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[].html` required `string` HTML/CSS animated with @keyframes; no script, no network (images as data: URIs)

`overlays[].start` required `number` output second the overlay appears

`overlays[].end` required `number` output second the overlay disappears

`overlays[].mode` `"over" | "mask"` 'mask': its opaque pixels are where `segment` shows

`overlays[].segment` `number` for mode mask: 0-based index of the segment whose opaque shape it reveals

`sfx` `object[]` sound effects placed on the output timeline

`sfx[].sound` required `"whoosh" | "impact" | "payoff"` whoosh, impact or payoff

`sfx[].at` required `number` output second the sound lands

`sfx[].gain` `number` level in dB, -30 to 6; omit to match the sound under it

`sfx[].segment` `number` payoff: the segment whose OWN payoff sound (the egg's real splat) lands at `at`

`size` `string` canvas: '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

`fps` `number` the 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

`motionBlur` `boolean` default true: anything that moves gets a real shutter blur along its path

`review` `boolean` default 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" | object` every cut: 'auto' default

`match.grade` `boolean`

`match.level` `boolean`

`match.grain` `boolean`

`match.blur` `boolean`

`match.strength` `number`

`reframe` `"auto" | "off" | number` every cut: 'auto' default

`get_cost` `boolean` true: return the price only; nothing runs or bills

`expected_credits` `number` the get_cost price; refused unbilled if the live price differs

`idempotency_key` `string` chosen 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](https://hermoso.ai/docs/credits/).

## Related tools

- [post_edit](https://hermoso.ai/docs/reference/create/post_edit/) Post-production edit
- [video_frames](https://hermoso.ai/docs/reference/create/video_frames/) Look at video frames
- [get_skill](https://hermoso.ai/docs/reference/workspace/get_skill/) Get skill
- [finish_video](https://hermoso.ai/docs/reference/create/finish_video/) Finish video
- [fix_beat](https://hermoso.ai/docs/reference/create/fix_beat/) Fix a video beat
- [make_motion_film](https://hermoso.ai/docs/reference/create/make_motion_film/) Make a motion graphics video

[All 102 Creative generation tools](https://hermoso.ai/docs/reference/create/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
