# Music video

Cuts a music video to your song's beat, with lyric captions, stills and clips. For songs you own or license. fal is billed to you.

Requires your fal.ai key, through the fal MCP server; fal bills your account for each image, voice and clip.

## Install

```sh
npx @parcha/agentrun template install github:Parcha-ai/agentrun-templates/templates/music-video@9ed9ff98e3130d3dce065743e8c60bb13e84f646 --trust
```

Or open `<your AgentRun address>/#/templates/install?src=github%3AParcha-ai%2Fagentrun-templates%2Ftemplates%2Fmusic-video%409ed9ff98e3130d3dce065743e8c60bb13e84f646`. Pinned to commit 9ed9ff98e3130d3dce065743e8c60bb13e84f646.

### Install with your agent

Copy this prompt into your coding agent:

```text
Help me install the Music video template on my existing AgentRun.

Pinned template source: github:Parcha-ai/agentrun-templates/templates/music-video@9ed9ff98e3130d3dce065743e8c60bb13e84f646
Read the template and its instructions: https://github.com/Parcha-ai/agentrun-templates/tree/9ed9ff98e3130d3dce065743e8c60bb13e84f646/templates/music-video

Ask for my AgentRun address or local installation directory if you do not already know it. Confirm which instance to use before making changes.
Read https://agentrun.ai/SKILL.md and inspect the installed version's template install help. Use the installation workflow that version supports.
Review this template's setup, instructions and requested tools with me, then install the pinned version on that instance with the settings and permissions I approve. Do not start a second instance or redeploy my existing one.
If this version cannot install templates, explain what is missing and the supported next step. Verify the result and tell me how to run the installed agent.
```

## What it does

Give it a public link to a song you own or have licensed, and get a music video cut to its beat: up to 90 seconds of the song (60 by default), its loudest stretch or from a second you choose, in 16:9 or 9:16. A script finds the beats and bar lines in the song and cuts every shot on a bar line. The lyrics are transcribed on ElevenLabs and set as captions. Each shot is a still made from words on Nano Banana Pro, moved on Kling 3.0 Pro; HyperFrames cuts the film in the sandbox with the song as its only sound. A clip that fails shows its still with a slow push-in. You get film.mp4, the storyboard, the stills and clips, the lyrics as WebVTT and the source folder. A 60 second cut with 12 shots costs about $9 of fal, priced before anything is paid. Needs the media sandbox (Chrome, FFmpeg, HyperFrames) and your fal key as the fal server in Settings → MCP servers (hosted AgentRun bills fal as run spend instead).

- Skill `fal-media`: Make the pieces of a music video with fal.ai through its MCP server (the \`fal\` server, tools named mcp:fal/\<tool\>). Covers checking prices, submit\_job and following several jobs at once without paying twice, the run's key stem, saving each output into the run's files, the exact inputs and outputs of ElevenLabs audio isolation and speech-to-text, Nano Banana Pro text to image and Kling 3.0 Pro image to video, prompting stills and motion for a music video, and the errors fal returns. Use whenever the music video's lyrics, stills or clips are made.
- Skill `music-video`: Make a music video cut to a song's beat with HyperFrames (HTML rendered to video) in the run's sandbox. Covers the kit's beats.mjs (the beats, tempo, bar lines and bar loudness found in the song itself, the cut, shot lengths on bar lines, the plan's price, the lyrics' word times mapped into the cut, the film's clock with its read-back, the cost), the storyboard, placing clips and stills on the beat grid with the song's segment as the only audio, lyric captions, the still-with-push-in fallback for a failed clip, and the check, review and render loop. Use for any music video or film cut to a track made in the sandbox.

## What starts it

- By hand, any time: from the console, the API or the CLI.

## Inputs

| Name | Type | Required | What it is |
| --- | --- | --- | --- |
| `song_url` | string, uri, 0 to 2000 characters | yes | A public https link to the song's audio file (mp3, wav or m4a), at most 10 minutes. The run saves it first and stops before anything is paid when it can't. The song goes to fal and ElevenLabs for the lyrics; its words become captions. Example: `https://example.com/music/night-drive.mp3`. |
| `song_rights` | string, one of own, licensed | no | Own: you made it or own it. licensed: you hold a license that lets you make a video of it. Left empty, nothing is made: the film puts the whole song segment under pictures, so it needs your word that you may. |
| `cut_seconds` | integer, 10 to 90 | no | How much of the song the film uses, on whole bars (the film can be a second or two off this). A song shorter than this is used whole. At most 90: whole songs are not made yet. Default: `60`. |
| `start_s` | number, at least 0 | no | Start the cut at the bar line nearest this second of the song. Left empty, the film takes the song's loudest stretch of that length. |
| `aspect` | string, one of 16:9, 9:16 | no | 16:9 (1920x1080) or 9:16 (1080x1920, for phones). Default: `16:9`. |
| `lyrics` | boolean | no | Transcribe the song's words and set them on the film as captions on the beat, with a WebVTT file beside it (about $0.13 a minute of the song). Off: no transcript is paid for. Default: `true`. |
| `style` | string, 0 to 300 characters | no | A look for the pictures, in a few words: risograph print, 35 mm film at dusk, cut paper. Never a real person, a brand or words in the picture: those are left out. |
| `max_fal_usd` | number, at least 0 | no | Optional, and empty by default: nothing is refused for price. The run prices the whole plan (two spare stills included) before anything is paid and says what it will cost. Set a ceiling and a plan over it is refused before any paid call; nothing at or under it is. A 60 second film of a 3 minute song with 12 shots prices at about $10.90, about $9 billed. |

## What it needs

- Harness: claude-agent, pi
- Model: balanced tier, prefers anthropic/claude-sonnet-5-5, medium effort
- Model choices, picked at install instead:
  - Opus 5.5: `anthropic/claude-opus-5-5` on `claude-agent`. Stronger storyboards and film review; costs more per run than the default.
- Tools: read, write, edit, bash, bash_background, bash_output, bash_signal, web_save
- fal.ai MCP server tools: get_pricing, get_model_schema, submit_job, wait_for_jobs, get_submission. Transcribes the lyrics, makes the stills and clips on fal.ai with the fal key this server keeps. Held to ElevenLabs isolation and speech-to-text, Nano Banana Pro and Kling 3.0 Pro. About $9 a 60 s film, billed to your fal account, or on hosted AgentRun as run spend.
- Computer: a computer with a shell
- Keys: A model key for the balanced tier; the preferred model runs with a key for Anthropic
- Learning: off

## Sample output

No sample output ships with this template yet.

## Tested

Passes 9 of 9 eval cases on Claude Code.

10 eval cases: clip-refused, instrumental, key-held, live, long-no-ceiling, no-rights, not-public, short-song, sixty-seconds, user-ceiling.

## Source

- Package: https://github.com/Parcha-ai/agentrun-templates/tree/9ed9ff98e3130d3dce065743e8c60bb13e84f646/templates/music-video
- Publisher: Parcha-ai
- Author: Parcha Labs
- Version: 0.1.0
- License: Apache-2.0
- Category: Marketing
- Page: https://marketplace.agentrun.ai/templates/music-video/
