Skip to main content
Glama

ezv

An AI video director. One line in, a finished video out: script (narration, dialogue, on-screen text, camera moves), voices, consistent characters, lip-sync, AI clips, openly licensed real footage, music, captions, the render. It runs as a CLI and as an MCP server, so it works from Claude Code, GitHub Copilot, Cursor, opencode, Codex, Gemini CLI, Windsurf or a plain terminal. Every model goes through OpenRouter, with one key and a hard budget per video.

ezv make "why octopuses have three hearts" --format short --mode low
# → ezv-videos/why-octopuses-have-three-hearts/out/video.mp4  (36 s, 720x1280, $0.37)
  • Any format: YouTube Shorts, TikTok, Reels (9:16), YouTube long-form with chapters and thumbnails (16:9), square and 4:5 feed videos.

  • Any type: explainer, documentary, podcast, interview, tutorial, story, ad, news, listicle, comedy, or your own template.

  • Different every time: each video rolls its own structure, angle, look, cast, palette, fonts, caption style and music from the type's pools.

  • Consistent characters: a reference portrait per character conditions every later image and clip, with a fixed voice and a lower-third.

  • Real footage, legally: Commons, Internet Archive, Creative Commons YouTube and Openverse, with licence rules enforced and credits written for you.

  • Budget-safe: a cost estimate before anything is paid, a hard cap per video, a cost log, and a cache, so an edit only pays for what changed.

Contents

Install · Use it from your AI tool · Modes, formats, types · Settings · Commands · How a video is made · The plan · Footage and licences · Costs · Configuration · Troubleshooting · Development

Related MCP server: video-mcp

Install

Needs Python 3.10+, ffmpeg and Node.js 18+ (for the renderer). yt-dlp is optional (YouTube footage). You need an OpenRouter key with some credit.

uv tool install git+https://github.com/robert-schmidt/ezv      # or: pipx install git+https://github.com/robert-schmidt/ezv
ezv init      # your OpenRouter key (hidden prompt, stored 0600 in ~/.config/ezv) and default mode/format/type
ezv setup     # installs the renderer (Remotion, ~300 MB) once, in ~/.cache/ezv
ezv doctor    # checks tools, key, credit, renderer

Update with uv tool upgrade ezv-video. Remove with uv tool uninstall ezv-video && rm -rf ~/.config/ezv ~/.cache/ezv. OPENROUTER_API_KEY in the environment works instead of ezv init. ezv init --deny google/ keeps a model family out of every choice.

Use it from your AI tool

Tool

Setup

Claude Code

/plugin marketplace add robert-schmidt/ezv then /plugin install ezv@ezv (MCP server + skill), or just claude mcp add ezv -- ezv mcp

VS Code / GitHub Copilot

ezv mcp-config vscode → .vscode/mcp.json

Cursor

ezv mcp-config cursor → ~/.cursor/mcp.json

opencode

ezv mcp-config opencode → opencode.json

Codex

ezv mcp-config codex → ~/.codex/config.toml

Gemini CLI

ezv mcp-config gemini → ~/.gemini/settings.json

Windsurf

ezv mcp-config windsurf → ~/.codeium/windsurf/mcp_config.json

No MCP

copy the first section of AGENTS.md into your project; the agent drives the ezv CLI

Then ask in plain words:

Make a 30-second TikTok explaining compound interest, low mode. Script a 3-minute documentary on the 1907 bank panic, show me the script and cost before rendering. A two-host podcast short arguing whether cats or dogs make better roommates, square format, $2 max. Find public-domain footage of the Apollo 11 launch.

The server's tools are ezv_doctor, ezv_options, ezv_guide, ezv_roll, ezv_new, ezv_plan, ezv_check, ezv_script, ezv_make, ezv_run, ezv_status, ezv_list, ezv_find and ezv_scout. Long work runs as a background job that the agent follows with ezv_status, so no tool call hits a client timeout. The server never asks for or returns your key.

Modes, formats, types

ezv options lists everything below, plus every setting, voice and camera move.

Mode

Output

Budget

What changes

low

720p

$1

cheapest image, clip and writer models, ~25% moving scenes, portraits instead of lip-sync. ~$0.20-0.60 a short

medium

1080p

$4

web research, half the scenes move, lip-synced characters, sound effects (the default)

high

1440p

$15

best models, 1080p clips, most scenes move, voice polish

Format

Frame

Default length

Notes

short

9:16

45 s

YouTube Shorts: captions burned in

tiktok

9:16

45 s

TikTok

reel

9:16

30 s

Instagram/Facebook Reels

youtube

16:9

5 min

long-form: chapters, thumbnails, .srt captions, Shorts cut-downs

landscape

16:9

60 s

X, LinkedIn, a website hero

square

1:1

30 s

feed video

portrait

4:5

30 s

feed video, ads

Types: explainer, documentary, podcast, interview, tutorial, story, ad, news, listicle, comedy. Each is a JSON template of pools: structures, angles, looks, hooks, endings, cameras, palettes, fonts, caption styles, music, how many speakers and on-screen characters, and type-specific writing rules. ezv roll -t podcast shows one roll (free); --seed repeats a roll.

Your own types

Put a JSON file in ~/.config/ezv/templates/ (all projects) or ./ezv-templates/ (this folder). A shipped name extends that type: lists are added to its pools, and "replace" swaps a pool outright. A new name is a new type; "extends" starts it from an existing one.

{ "extends": "ad", "about": "an unboxing video", "replace": ["looks"],
  "looks": ["top-down walnut desk, soft window light"], "hooks": ["the box, unopened"],
  "rules": ["Never claim a product feature the user didn't state."] }

brand in the config (palette, fonts, watermark, outro) overrides the dice for every video, for a channel look.

Every setting

The mode is the starting point. Any setting can be changed for one video (its flag, --set key=value, or settings in MCP) or for good ("settings" in the config). Precedence: format < mode < config < command.

ezv make "a fable about a lazy river" -t story -f portrait -m medium \
  --length 40 --max-cost 2 --voice lily --captions punch --music none --set moving=0.7 --video-model alibaba/wan-3.0

Setting

What it does

aspect

frame: 16:9, 9:16, 1:1, 4:5, 4:3, 21:9

res

output short side in px: 720, 1080, 1440, 2160

fps

24, 25, 30 or 60

length

target length in seconds

max_cost

hard budget in $ for this video

moving

share of scenes that are real motion (AI clips, footage, lip-sync), 0-1

image_model / image_res

OpenRouter image model; 1K or 2K

video_model / video_res

OpenRouter video model for image-to-video and text-to-video; 480p, 720p, 1080p

talk / talk_model

lipsync (an AI clip of the character speaking) or still (their portrait, animated); the lip-sync model

tts_model / voice

text-to-speech model; narrator voice (ezv options voices)

llm / research

the model that researches and writes; web research on or off

captions

karaoke, plain, punch, typewriter, none

chapters / thumbs

YouTube chapters; number of thumbnails

music

auto (your music_dir, else a composed track), none, or a path

sfx / fx / polish

sound effects; transitions, grade and whooshes; voice polish

footage

auto (openly licensed footage and photos), auto+youtube (also ≤ 5 s standard-licence YouTube excerpts), off (generate everything)

language

spoken language of the script

Commands

Command

What it does

Cost

ezv make "<idea>" [shape]

script + every stage → finished video (--preview stops at a half-size preview)

budget

ezv script "<idea>" [shape]

research + plan.json + script.md, then a check

cents

ezv new <slug> [shape]

an empty plan with settings and dice, to write yourself

free

ezv check <slug>

validate the plan, estimate the cost, show the balance

free

ezv run <slug> [stages]

run all or some stages: sources footage voice images clips music sfx thumbs render cutdowns preview

budget

ezv status <slug> / ezv list

progress, spend and outputs / every video in the workdir

free

ezv find <query> [--images]

search openly licensed footage or photos

free

ezv scout <youtube-url>

licence + shot list + contact sheets of a YouTube video

free

ezv roll [shape]

roll the dice and show the resolved settings

free

ezv options [modes|formats|types|settings|voices|cameras]

what's available

free

ezv guide

the director's guide: workflow and the plan format

free

ezv init / ezv setup / ezv doctor

key and defaults / renderer / health check

free

ezv mcp / ezv mcp-config [tool]

run the MCP server / print its config for a tool

free

[shape] is -t <type> -f <format> -m <mode> plus any setting flag (ezv make --help).

How a video is made

idea ─► dice (template) ─► research (web) ─► plan.json + script.md ─► check (lint + cost estimate)
     ─► sources (licensed footage/photos) ─► voice (one take per speaker, cut per scene on word timings)
     ─► images (stills + character sheets) ─► clips (image-to-video, text-to-video, lip-sync)
     ─► music (yours or composed) ─► sfx ─► thumbs ─► render (Remotion) ─► loudness -14 LUFS ─► cut-downs
  • Voice: one take per paragraph and speaker, so the delivery flows, then cut per scene on word timestamps (ElevenLabs v3 and Scribe through OpenRouter). Pronunciations go in pron, stress in *word*.

  • Pictures: a still per scene; scenes marked to move become image-to-video clips from that still, or text-to-video. Talk scenes are lip-synced to the character's own voice track (HeyGen Avatar 6).

  • Edit: camera moves on stills (push-in, pan, crane, crash-zoom, handheld…), transitions picked by scene type, karaoke/punch/typewriter captions, animated charts (bar, line, donut), count-up stats, chapter tags, lower-thirds, credit chips on real footage, music ducked under speech.

  • QA before you pay for the render: out/stills.jpg, out/clip_<n>.jpg, out/footage_<n>.jpg contact sheets.

  • Outputs in ezv-videos/<slug>/out/: video.mp4, captions.srt, description.txt (description, chapters, footage credits, AI disclosure), metadata.json (title, tags), thumbnails, and for long videos, Shorts cut-downs.

The plan

plan.json is the source of truth; script.md is the same thing as a readable screenplay. Edit either the plan by hand or ask your agent to, then ezv check and ezv run. Everything is cached by content, so only what changed is paid for again. The full format is in src/ezv/GUIDE.md (ezv guide). A taste:

{
 "title": "Why Honey Never Spoils",
 "style": "macro food photography, warm amber backlight, shallow depth of field",
 "narrator": {"voice": "george"},
 "characters": {"mira": {"name": "Mira", "look": "woman, early 30s, copper curls, olive corduroy blazer", "voice": "alice"}},
 "scenes": [
  {"show": "t2v", "say": "Archaeologists found honey in Egyptian tombs. Still *edible*.",
   "prompt": "golden honey pouring into an ancient clay pot", "action": "honey ribbons fold over themselves", "camera": "push-in"},
  {"show": "talk", "speaker": "mira", "say": "So why doesn't it rot?", "prompt": "Mira at a podcast mic, warm studio"},
  {"show": "stat", "say": "Honey is only about seventeen percent water.", "value": "17%", "label": "water in honey", "source": "US National Honey Board"},
  {"show": "footage", "say": "Bees seal every cell with wax.", "query": "honeybees capping honeycomb macro"},
  {"show": "card", "say": "That jar will outlive you.", "text": "It will outlive you"}
 ]
}

Scene kinds: image, video (image-to-video), t2v, talk, footage, card, title, stat, chart.

Footage and licences

ezv find "apollo 11 launch" searches Wikimedia Commons, the Internet Archive and Creative Commons YouTube, and with --images, Commons and Openverse photos. Footage scenes with a query are sourced automatically:

  • Used freely, credited: CC BY, CC0, public domain. Never used: NC, ND or SA licences.

  • Standard-licence YouTube only as a short excerpt (≤ 5 s by default, yt_max_secs), credited, and only when you allow it ("source": "auto+youtube" on the scene).

  • If nothing usable turns up, the scene is generated instead and labelled as an AI illustration.

Every source lands in description.txt. Licensing is still your responsibility: check before you publish, and declare realistic AI visuals where the platform asks (YouTube's "altered or synthetic content").

Costs

ezv check <slug> estimates a plan before anything is paid. Every paid call is checked against the video's max_cost first and logged to cost.log. Test runs while building ezv (OpenRouter prices, November 2026):

Video

Mode

Length

Cost

explainer short, written from one line

low

36 s

$0.37

documentary 16:9, 2 CC footage clips found automatically

low

46 s

$0.28

two-host podcast short, 2 consistent characters, lip-sync

low + lipsync

16 s

$0.61

explainer short with web research, 1 Wan 3.0 clip, 2 CC clips

medium

29 s

$0.80

Where the money goes: AI clips ($0.03-0.10 a second), lip-sync ($0.10 a second), web research ($0.20 with a frontier model). Stills ($0.01-0.04), voice (~$0.02 a short) and the writer (cents) are small.

Configuration

~/.config/ezv/config.json (written by ezv init, mode 0600):

Key

Default

Meaning

openrouter_api_key

your key (or OPENROUTER_API_KEY)

mode / format / type

medium / short / explainer

defaults for new videos

workdir

ezv-videos

where videos go, relative to the current folder

language

English

script language

deny_models

[]

model id prefixes never to use, e.g. ["google/"]

avoid_voices

[]

voices never to cast

yt_max_secs

5

seconds per standard-licence YouTube excerpt

music_dir

a folder of your own licensed .mp3 tracks

brand

{}

name, outro, palette [bg, text, accent, highlight], display/body fonts, watermark

settings

{}

your defaults for any setting

Environment: OPENROUTER_API_KEY, EZV_HOME (config folder), EZV_CACHE (renderer and model catalogue, default ~/.cache/ezv), EZV_WORKDIR.

Troubleshooting

Message

Fix

No OpenRouter API key

ezv init, or export OPENROUTER_API_KEY

budget: … over max_cost

raise --max-cost, pick a cheaper mode, or turn some clip scenes into stills. Nothing made so far is lost

lip-sync refused by OpenRouter

OpenRouter reserves a worst-case amount per avatar job; with low credit (under ~$15) it refuses, and the line plays as the animated portrait. Top up, or --talk still

No provider … supports the requested parameter(s)

the model doesn't take that size or aspect; ezv retries what it can, otherwise pick another --image-model / --video-model

Rendering needs Node.js

install Node 18+, then ezv setup

a scene found no footage

it is generated instead; or give it a better query, or a src URL you chose with ezv find

the writer returned invalid JSON

it retries twice; otherwise try another --llm

ezv-videos/<slug>/log.txt has the full log of jobs started from MCP.

Development

git clone https://github.com/robert-schmidt/ezv && cd ezv
uv venv && uv pip install -e ".[test]" && .venv/bin/pytest     # offline tests, no network, no spend

Python stdlib + numpy (music) + the MCP SDK; ffmpeg and yt-dlp; Remotion for the render (src/ezv/remotion). Layout and conventions: AGENTS.md.

Remotion is free for individuals and companies of up to 3 people; larger companies need a Remotion company licence.

Licence

MIT. Videos you make are yours; the footage in them keeps its own licence (see description.txt).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers