# Hermoso: edit_video: Edit a video clip · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/create/edit_video/. 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_video

# `edit_video`

Edit a video clip

Area: post-production & analysis · [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

SWAP AN OBJECT IN A VIDEO ('replace the cup with our can' + the product photo as elements) or EDIT an existing clip from a plain instruction (video-to-video): the motion, timing, framing and cut stay, the named thing changes. 'change only the mug to red', 'make it nighttime', 'restyle it as claymation'. Your words are wrapped so the model keeps everything else identical, changes only what you named and repeats that lock; lighting is kept unless the change needs new light (set lighting to force either); literal:true sends your words as written. One change per call holds best. previewFirstFrame:true edits ONE still first (one image edit; previewAt picks the second) and quotes the clip; nothing else runs until you call again, ideally with previewStill. The reply scores how well the shot held outside the change (free) and flags an edit that touched more than asked. NOT for cuts/trims/end cards (post_edit), a new video (generate_video / render_ad), translating what is SPOKEN (dub_video) or a saved creator's face (recast_motion). Translating or rewriting the on-screen words of a video laid out from a design (a template ad, a custom design) is textChanges with every line at once: one re-make of the design, about 2 credits. Best on 3-15s clips.

## Parameters

Parameter Type Description

`video` required `string` the source video URL (a render, job result or list_library); a URL, not a local file path; use upload_file for local files

`instruction` required `string` the change, in the user’s own words

`keepAudio` `boolean` default true: keep the source audio; false = silent

`lighting` `"auto" | "preserve" | "relight"` default auto: keep the source light unless the change needs new light (night, a lamp, fire). 'preserve' or 'relight' forces it

`reference` `string` OPTIONAL image URL that anchors the MATERIAL of what changes (a fabric, a finish, a colour swatch, the real product). Only its surface is used, never its framing or light

`literal` `boolean` true = send the instruction exactly as written, with no preserve/lock wrapper

`previewFirstFrame` `boolean` true = edit ONE still of the first frame first and quote the clip; the paid clip does not run

`previewStill` `string` the still a previewFirstFrame call returned; the clip then matches the changed thing to it

`previewAt` `number` second to preview (default 0); resend with previewStill

`elements` `object[]` OPTIONAL identity/product grounding (≤4): a creator portrait or the real product photo, so the edit restores the REAL thing. Describe each one in the instruction

`elements[].frontal` required `string` the reference image URL

`elements[].refs` `string[]` up to 2 extra angles of the SAME subject

`interactionId` `string` OPTIONAL: the interactionId an earlier Gemini Omni render or edit returned; the edit continues that clip on the same Omni model. If it cannot run, the video editor edits it and the reply says so.

`engine` `"auto" | "seedance" | "kling"` default auto: Seedance 2.5 Edit without a real-looking person, else Kling 4.0 Edit

`faceRoute` `"face_lane"` 'face_lane' = the user's "I own the rights to this face" for a real person in the source clip (a paid plan or a credit pack). Only on the user's say-so, never on your own.

`textChanges` `object[]` EVERY change of on-screen words at once ([{from, to}], e.g. each line and its translation). A video laid out from a design is made again with all of them in ONE render, about 2 credits, never a video edit

`textChanges[].from` required `string`

`textChanges[].to` required `string`

`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_video`.

**MCP** (`tools/call`)

`{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"edit_video","arguments":{"video":"<string>","instruction":"<string>"}}}`
**CLI**

`hermoso call edit_video --json '{"video":"<string>","instruction":"<string>"}'`

## 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
- [generate_video](https://hermoso.ai/docs/reference/create/generate_video/) Generate video
- [render_ad](https://hermoso.ai/docs/reference/create/render_ad/) Render ad video
- [dub_video](https://hermoso.ai/docs/reference/create/dub_video/) Dub video
- [recast_motion](https://hermoso.ai/docs/reference/create/recast_motion/) Recast motion
- [restyle_video](https://hermoso.ai/docs/reference/create/restyle_video/) Restyle a video
- [multiply_ad](https://hermoso.ai/docs/reference/create/multiply_ad/) Multiply an ad
- [finish_draft](https://hermoso.ai/docs/reference/create/finish_draft/) Finish a draft in 1080p
- [list_winning_ads](https://hermoso.ai/docs/reference/create/list_winning_ads/) Winning ads to start from
- [upscale_video](https://hermoso.ai/docs/reference/create/upscale_video/) Upscale video

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