videodraft 0.35.0 → 0.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -24,8 +24,8 @@ function readVersionFromDisk() {
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
function resolveVersion() {
|
|
27
|
-
if ("0.
|
|
28
|
-
return "0.
|
|
27
|
+
if ("0.36.0") {
|
|
28
|
+
return "0.36.0";
|
|
29
29
|
}
|
|
30
30
|
return readVersionFromDisk();
|
|
31
31
|
}
|
|
@@ -4141,7 +4141,10 @@ function registerGenerateCommands(program) {
|
|
|
4141
4141
|
generate.command("image [prompt...]").description("Generate an image (async; waits by default)").option(
|
|
4142
4142
|
"--model <id|name>",
|
|
4143
4143
|
"image model id or display name (default nano-banana-2.1); run `videodraft models image`"
|
|
4144
|
-
).option("--ar <ratio>", 'aspect ratio, e.g. "16:9" (FLUX 3 also "auto")').option("--resolution <res>", 'e.g. "1K", "2K", "4K"').option(
|
|
4144
|
+
).option("--ar <ratio>", 'aspect ratio, e.g. "16:9" (FLUX 3 also "auto")').option("--resolution <res>", 'e.g. "1K", "1.5K", "2K", "4K"').option(
|
|
4145
|
+
"--background <mode>",
|
|
4146
|
+
"Seedream 5.5: auto, opaque or transparent PNG"
|
|
4147
|
+
).option("--format <format>", "Seedream 5.5 output: png (default) or jpeg").option(
|
|
4145
4148
|
"--quality <tier>",
|
|
4146
4149
|
"Ideogram 4.5: low, medium (default), high; regular edits also very_low. GPT Image 2.6: auto (default), low, medium, high, xhigh, max"
|
|
4147
4150
|
).option(
|
|
@@ -4175,7 +4178,7 @@ function registerGenerateCommands(program) {
|
|
|
4175
4178
|
"GIF milliseconds per frame, 20-2000 (default 120); implies --gif"
|
|
4176
4179
|
).option(
|
|
4177
4180
|
"--num <n>",
|
|
4178
|
-
"variations in one call (
|
|
4181
|
+
"variations in one call (Ideogram 4.5: 1-8, Seedream 5.5: 1-6, GPT Image 2.6 and FLUX 3: 1-4)"
|
|
4179
4182
|
).option("--seed <n>", "seed (supported models only, e.g. Ideogram 4.5)").option(
|
|
4180
4183
|
"--ref <url|file>",
|
|
4181
4184
|
"reference image (repeatable; local files are uploaded)",
|
|
@@ -4198,8 +4201,11 @@ function registerGenerateCommands(program) {
|
|
|
4198
4201
|
"prompt expansion (default true): Ideogram 4.5 text-to-image, FLUX 3 generation and edits"
|
|
4199
4202
|
).option(
|
|
4200
4203
|
"--image-width <px>",
|
|
4201
|
-
"Ideogram 4.5 custom width (with --image-height)"
|
|
4202
|
-
).option("--image-height <px>", "
|
|
4204
|
+
"Ideogram 4.5 or Seedream 5.5 custom width (with --image-height)"
|
|
4205
|
+
).option("--image-height <px>", "custom height, with --image-width").option(
|
|
4206
|
+
"--watermark",
|
|
4207
|
+
"Seedream 5.5: add Fal's visible watermark (Fal or VideoDraft only)"
|
|
4208
|
+
).option("--style <id>", "style preset id").option("--project <id>", "attach to a project").option(
|
|
4203
4209
|
"--session <id>",
|
|
4204
4210
|
"pin an AI Studio session id (default: the current connection scope; env VIDEODRAFT_SESSION)",
|
|
4205
4211
|
process.env.VIDEODRAFT_SESSION
|
|
@@ -4213,7 +4219,17 @@ function registerGenerateCommands(program) {
|
|
|
4213
4219
|
const ctx = buildContext(this);
|
|
4214
4220
|
const opts = this.opts();
|
|
4215
4221
|
const prompt = promptWords.join(" ");
|
|
4222
|
+
if (opts.format && (opts.gif || opts.frames !== void 0 || opts.frameMs !== void 0))
|
|
4223
|
+
throw new CliError(
|
|
4224
|
+
"--format cannot be combined with GIF options.",
|
|
4225
|
+
EXIT.USAGE
|
|
4226
|
+
);
|
|
4227
|
+
if (opts.format && !["png", "jpeg"].includes(opts.format))
|
|
4228
|
+
throw new CliError("--format must be png or jpeg.", EXIT.USAGE);
|
|
4216
4229
|
const imageOptions = {
|
|
4230
|
+
background: opts.background,
|
|
4231
|
+
...opts.watermark ? { watermark: true } : {},
|
|
4232
|
+
...opts.format ? { output_format: opts.format } : {},
|
|
4217
4233
|
edit_precision: opts.editPrecision,
|
|
4218
4234
|
enable_prompt_expansion: optionalBooleanChoice(
|
|
4219
4235
|
opts.promptExpansion,
|
|
@@ -6395,6 +6411,12 @@ function registerAccountCommands(program) {
|
|
|
6395
6411
|
"--chars <n>",
|
|
6396
6412
|
'character count (ElevenLabs Dialogue, or voiceover TTS via model id "voiceover", "voiceover-cloned" or "voiceover-turbo")'
|
|
6397
6413
|
).option("--resolution <res>", 'e.g. "720p", "1080p", "1K", "2K"').option("--quality <tier>", 'e.g. "standard", "pro", "fast"').option("--ar <ratio>", "image aspect ratio for accurate credit quotes").option(
|
|
6414
|
+
"--image-width <px>",
|
|
6415
|
+
"custom image output width, paired with --image-height"
|
|
6416
|
+
).option(
|
|
6417
|
+
"--image-height <px>",
|
|
6418
|
+
"custom image output height, paired with --image-width"
|
|
6419
|
+
).option(
|
|
6398
6420
|
"--rendering-speed <tier>",
|
|
6399
6421
|
"Legacy image rendering speed; current Ideogram models use --quality low/medium/high (very_low for regular edits)"
|
|
6400
6422
|
).option("--audio", "include native model audio in the estimate").option("--no-audio", "exclude native model audio").option(
|
|
@@ -6444,6 +6466,8 @@ function registerAccountCommands(program) {
|
|
|
6444
6466
|
resolution: opts.resolution,
|
|
6445
6467
|
quality: opts.quality,
|
|
6446
6468
|
aspect_ratio: opts.ar,
|
|
6469
|
+
image_width: opts.imageWidth !== void 0 ? Number(opts.imageWidth) : void 0,
|
|
6470
|
+
image_height: opts.imageHeight !== void 0 ? Number(opts.imageHeight) : void 0,
|
|
6447
6471
|
rendering_speed: opts.renderingSpeed,
|
|
6448
6472
|
edit_precision: opts.editPrecision,
|
|
6449
6473
|
generate_audio: opts.audio,
|
|
@@ -6998,7 +7022,13 @@ function registerPipelineCommands(program) {
|
|
|
6998
7022
|
).option("--scene <n>", "0-based scene index (omit for all scenes)").option(
|
|
6999
7023
|
"--model <id|name>",
|
|
7000
7024
|
"image model id or display name; run `videodraft models image`"
|
|
7001
|
-
).option("--ar <ratio>", "aspect ratio override").option("--resolution <res>", "image resolution, such as 1K, 2K, 4K").option(
|
|
7025
|
+
).option("--ar <ratio>", "aspect ratio override").option("--resolution <res>", "image resolution, such as 1K, 2K, 4K").option("--background <mode>", "Seedream 5.5: auto | opaque | transparent").option("--format <format>", "Seedream 5.5: png | jpeg").option(
|
|
7026
|
+
"--image-width <px>",
|
|
7027
|
+
"Seedream 5.5 custom output width (Fal or VideoDraft)"
|
|
7028
|
+
).option(
|
|
7029
|
+
"--image-height <px>",
|
|
7030
|
+
"Seedream 5.5 custom output height (Fal or VideoDraft)"
|
|
7031
|
+
).option("--watermark", "Seedream 5.5: add Fal's visible watermark").option(
|
|
7002
7032
|
"--quality <tier>",
|
|
7003
7033
|
"image quality; GPT Image 2.6 adds xhigh and max"
|
|
7004
7034
|
).option("--grid", "grid mode (stronger cross-shot consistency)").option("--regenerate-all", "replace existing shot images too").option("--no-wait", "submit and return job ids immediately").option("--estimate", "estimate the cost and exit (spends nothing)").action(async function(projectId) {
|
|
@@ -7009,20 +7039,32 @@ function registerPipelineCommands(program) {
|
|
|
7009
7039
|
project_id: projectId,
|
|
7010
7040
|
view: "summary"
|
|
7011
7041
|
});
|
|
7042
|
+
const costInputs = compact({
|
|
7043
|
+
model_id: opts.model ?? project?.storyboard?.settings?.defaultImageModel ?? "nano-banana-2.1",
|
|
7044
|
+
type: "image",
|
|
7045
|
+
aspect_ratio: opts.ar ?? project?.storyboard?.settings?.aspectRatio ?? "landscape",
|
|
7046
|
+
resolution: opts.resolution,
|
|
7047
|
+
quality: opts.quality,
|
|
7048
|
+
background: opts.background,
|
|
7049
|
+
output_format: opts.format,
|
|
7050
|
+
image_width: opts.imageWidth !== void 0 ? Number(opts.imageWidth) : void 0,
|
|
7051
|
+
image_height: opts.imageHeight !== void 0 ? Number(opts.imageHeight) : void 0,
|
|
7052
|
+
watermark: opts.watermark ? true : void 0
|
|
7053
|
+
});
|
|
7012
7054
|
const costs = await ctx.client.callTool(
|
|
7013
7055
|
"get_model_costs",
|
|
7014
|
-
|
|
7015
|
-
model_id: opts.model ?? project?.storyboard?.settings?.defaultImageModel ?? "nano-banana-2.1",
|
|
7016
|
-
type: "image",
|
|
7017
|
-
aspect_ratio: opts.ar ?? project?.storyboard?.settings?.aspectRatio ?? "landscape",
|
|
7018
|
-
resolution: opts.resolution,
|
|
7019
|
-
quality: opts.quality
|
|
7020
|
-
})
|
|
7056
|
+
costInputs
|
|
7021
7057
|
);
|
|
7058
|
+
const isSeedream55 = costs?.model === "seedream-v5.5" || !costs?.model && costInputs.model_id === "seedream-v5.5";
|
|
7059
|
+
const gridShotCosts = isSeedream55 && opts.grid ? await ctx.client.callTool("get_model_costs", {
|
|
7060
|
+
...costInputs,
|
|
7061
|
+
reference_image_count: 1
|
|
7062
|
+
}) : void 0;
|
|
7022
7063
|
emit(ctx.out, {
|
|
7023
7064
|
project_scenes: project?.storyboard?.scenes?.length ?? project?.scenes?.length,
|
|
7024
7065
|
per_image_costs: costs,
|
|
7025
|
-
|
|
7066
|
+
...gridShotCosts ? { grid_shot_costs: gridShotCosts } : {},
|
|
7067
|
+
note: isSeedream55 ? opts.grid ? "Base-only quotes assume no references on the grid image and one grid reference per decoded shot. Extra references can increase either cost. Scenes with one target use a single image instead of a grid. No credits were spent." : "Base-only per-image quote with no references. Attached references can increase the cost. No credits were spent." : "Total \u2248 shots missing images \xD7 per-image cost (+1 grid image per scene in grid mode). No credits were spent."
|
|
7026
7068
|
});
|
|
7027
7069
|
return;
|
|
7028
7070
|
}
|
|
@@ -7036,6 +7078,11 @@ function registerPipelineCommands(program) {
|
|
|
7036
7078
|
aspect_ratio: opts.ar,
|
|
7037
7079
|
resolution: opts.resolution,
|
|
7038
7080
|
quality: opts.quality,
|
|
7081
|
+
background: opts.background,
|
|
7082
|
+
output_format: opts.format,
|
|
7083
|
+
image_width: opts.imageWidth !== void 0 ? Number(opts.imageWidth) : void 0,
|
|
7084
|
+
image_height: opts.imageHeight !== void 0 ? Number(opts.imageHeight) : void 0,
|
|
7085
|
+
watermark: opts.watermark ? true : void 0,
|
|
7039
7086
|
grid: opts.grid || void 0,
|
|
7040
7087
|
regenerate_all: opts.regenerateAll || void 0
|
|
7041
7088
|
})
|
|
@@ -8181,8 +8228,8 @@ function bundledSkillDir() {
|
|
|
8181
8228
|
);
|
|
8182
8229
|
}
|
|
8183
8230
|
function bundledSkillFiles() {
|
|
8184
|
-
if ('{"SKILL.md":"---\\nname: videodraft\\ndescription: Create and edit AI videos, images, 3D meshes, Seed Audio, voiceovers, music, sound effects, dialogue, dubbing, storyboards, avatar videos, media upscales, and product/ad videos with VideoDraft. Use whenever the user mentions VideoDraft; asks to generate a video, image, 3D asset, audio asset, ad, explainer, storyboard, avatar, upscale, or batch/CI workflow; wants to download a video from YouTube, Instagram, TikTok, X or another site; or wants to assemble, cut, caption, mix, lay out, inspect, or export a native VideoDraft Editor timeline. Covers cloud `videodraft` CLI/MCP, local `videodraft_editor` MCP, and creative-app routing. Honor the chosen app and existing project; otherwise prefer the native editor when available. Hosted production/export is an explicit choice or fallback when no local editing route is selected or available.\\n---\\n\\n# VideoDraft\\n\\nVideoDraft is an AI video creation platform where asset generation is the priority lane:\\n\\n- **Asset generation**: standalone images, video clips, Seed Audio, voiceovers, music, sound effects, dialogue, voice-changed audio, dubbed media, upscales, and image descriptions. This is the fastest and most important lane. Treat these as complete deliverables when the user asks for assets.\\n- **Asset I/O**: upload local files, download outputs, auto-upload local references, and save generated media where the user can see it.\\n- **3D assets**: standalone Meshy 7.1 and Tripo H3.1 meshes, multi-view generation, complete artifact downloads, and Meshy humanoid rigging through MCP/CLI. Read [references/3d.md](references/3d.md), or `videodraft skills show 3d`. These assets have their own saved library and do not require an AI Studio session or web viewer.\\n- **Cloud render**: render the user\'s own Blender scenes on a cloud GPU with `videodraft render blender`. See [Cloud render](#cloud-render-blender-on-a-cloud-gpu) below and [references/cloud-render.md](references/cloud-render.md), or `videodraft skills show render`.\\n- **Native editing**: local `.vdproject` timelines, cuts, layouts, captions, effects, audio, and exports through the headless VideoDraft Editor. Inside VideoDraft ADE, this is the default production and export lane when `videodraft_editor` is available and no chosen app or existing external project takes precedence.\\n- **Hosted project production**: idea \u2192 script \u2192 storyboard \u2192 hosted production timeline \u2192 exported MP4. Use the early stages for scripts, storyboards, and generated assets when useful. Treat hosted production and export as a fallback when the native editor is unavailable and no external app is selected, or as an explicit destination when the user asks for an editable web project or hosted workflow.\\n\\n## How to connect\\n\\nGeneration billing is selected in VideoDraft Settings \u2192 API Keys on the web, or\\nSettings \u2192 Media providers in VideoDraft ADE. Where enabled,\\n**VideoDraft routing** chooses an equivalent provider internally without changing\\nthe quoted customer credit price. A selected personal key is exclusive: never\\nswitch to VideoDraft credits or another key after an unsupported-model or\\nprovider error. Keep the canonical VideoDraft model ID in CLI/MCP calls. Poll\\nthe original generation after a timeout instead of starting another paid job.\\nNew provider connections can support only a subset of models and settings;\\nfollow the server\'s availability response. ElevenLabs remains audio-only.\\nFor Pika GPT Image 2.6, supply an explicit quality (`low`, `medium`, `high`,\\n`xhigh`, or `max`); `auto` is not supported by that connection. Nano Banana 2\\nLite is 1K only. Never remove requested controls or substitute a different\\nmodel merely to make a personal connection accept the job.\\n\\nCloud generation has two equivalent surfaces (same backend, credits, and hosted projects). Native timeline editing is a separate local surface:\\n\\n1. **CLI** (preferred when you have a shell): run `videodraft` if it\'s on PATH; otherwise `npx -y videodraft@latest` runs it with no install (needs Node \u226520; the `-y` skips npx\'s install prompt so it runs non-interactively; the package is fetched on first use and cached). For heavy use, `npm install -g videodraft`. If there\'s no Node/shell here but the MCP connector below is available, use that instead; if neither works, tell the user how to install (https://videodraft.ai/cli).\\n - Auth \u2014 pick by context, don\'t guess:\\n \u2022 INTERACTIVE (a human is in the session, e.g. Claude Code / Codex): on exit code 3 (\\"not authenticated\\"), tell the user to run `videodraft login` in their terminal \u2014 it opens their browser for a one-click VideoDraft sign-in (OAuth), no key to copy. Wait for them to confirm it succeeded, then retry the command. This is the preferred path when the user is present.\\n \u2022 HEADLESS / CI (no browser): set `VIDEODRAFT_API_KEY=vd_mcp_...` (a token the user mints at https://app.videodraft.ai/mcp-keys).\\n \u2022 SECURITY: never ask the user to paste a `vd_mcp_...` token into the chat \u2014 use browser `login` or the env var so the token never lands in the transcript.\\n - Every command accepts `--json` (parse this, don\'t scrape text). Exit codes: 0 ok, 1 error, 2 usage, 3 auth (see Auth above), 4 insufficient credits (\u2192 tell the user, don\'t retry).\\n - Tool discovery: start with `videodraft tools list` for the grouped catalog, then narrow with `videodraft tools list --lane assets`, `--lane asset_io`, `--lane project_data`, or `--lane production`.\\n - Asset lane: `videodraft generate ...`, `videodraft edit video|motion`, `videodraft avatar ...`, `videodraft upscale ...`, `videodraft interpolate ...`, `videodraft upload`, and `videodraft download`.\\n - Full API access: `videodraft tools schema <name>`, `videodraft call <tool> --args \'<json>\'`.\\n2. **MCP connector**: if VideoDraft MCP tools (e.g. `generate_storyboard_from_idea`) are available, call them directly \u2014 the CLI\'s curated commands map 1:1 onto these tools.\\n3. **Native editor MCP** (`videodraft_editor`): prefer this for project production, timeline assembly, cutting, layouts, transitions, captions, audio placement, and final export when no chosen app or existing external project takes precedence. Inside VideoDraft ADE on a supported Mac, Claude, Codex, OpenCode and Grok receive it automatically in both Code and VideoDraft modes. It runs headlessly, so an Open Editor click is not required. Start with `project_manage` (`operation: \\"project\\"`, action `list`, `open`, or `create`); standalone asset generation remains in the cloud CLI or MCP.\\n\\nSend native editor edits serially, batching everything a request needs into one `edit_apply` recipe. Pass the latest `context` when a person may be editing at the same time, so a stale write is refused. See [references/editor.md](references/editor.md) for project selection, media import, timing units, edit recipes, verification, export, and the `videodraft-editor` terminal bridge.\\n\\nIf you are reading this skill through `videodraft skills show skill`, run `videodraft skills show editor` before native editor work to load that reference.\\n\\n**VideoDraft ADE routing rule:** honor the app named in the current request and the editing surface of an existing project. A `<creative_routes>` block selects the chat\'s routes and overrides this skill\'s generic tool defaults; an explicit current request takes precedence over that block. Work directly in the chosen app, combining its supported scripting, CLI, verified MCP and Computer Use wherever useful. Do not turn a chosen-app request into a native-editor handoff or silently switch destinations after an error. Keep the editable source and dependencies, preserve unsaved work, and verify the saved project and output. Generation model, payer and spending limits remain separate from the editing app.\\n\\nWhen `creative_apps` is actually exposed, read the chosen app\'s bundled guide before using it. App topics include `after-effects`, `blender`, `resolve`, `premiere`, `final-cut`, `capcut`, `unity`, `remotion` and `hyperframes`. These app guides belong to VideoDraft ADE and describe installed-version setup and supported routes; users do not need personal per-app skills. When `creative_mcp` is also exposed, use its live discovery and the app guide for connected tools, and retain request IDs to recover uncertain operations. Computer Use is available only when its tools and permissions are present. These are VideoDraft ADE workspace tools, not public `videodraft` CLI commands. If they are absent, use the available app tools or explain the missing route without inventing commands or assuming a connector is installed.\\n\\nWith no chosen external app or existing external project, the presence of `videodraft_editor` means the native editor is ready, even when no editor window is visible. Use cloud tools to generate or source assets and, when helpful, scripts or storyboards. Do not call hosted `produce_project` / `videodraft produce` or `export_video` / `videodraft export` by default. Import the assets into the native project, assemble there, and export with native `delivery_manage` `submit`. Use hosted production/export when the user explicitly asks for the web workflow, or when the native editor is unavailable and no external app is selected. Do not silently fall back to hosted production after a local tool error.\\n\\n## First decision: asset, hosted project, or native edit?\\n\\n- **One standalone asset** (image, clip, voiceover, music track, sound effect, dialogue track, voice-changed file, dubbed media file, upscale, or description): generate it directly. Do NOT create a project.\\n - `videodraft generate image \\"a red fox in snow, cinematic\\" --ar 16:9 --download ./out/`\\n - `videodraft generate video \\"slow dolly over a misty lake\\" --model gemini-omni-1.2-flash --duration 6 --download ./out/`\\n- **A chosen creative app or existing external project**: continue in that app using the routing rule above. Keep its project editable; use handoff only for a requested transfer or accepted fallback.\\n- **Any final video, production timeline, existing footage, local `.vdproject`, or hands-on edit with no other app selected**: use `videodraft_editor` when available. List or open the intended local project, or create a native project for a new production. The editor can work without showing its UI.\\n- **Assemble the cut on the timeline, not in a script.** Build the edit on the native timeline (or in the user\'s chosen editing app) so the user can trim, reorder and retime it by hand afterwards. Do not stitch or render the deliverable with ffmpeg, Python or moviepy scripts unless the user asks for that; a script leaves them a flat file with nothing to adjust. Code-built video (Remotion, motion graphics, 3D renders) and file conversions the editor needs before import are fine.\\n- **A small set of related assets**: still stay in the asset lane. They are grouped automatically (see [AI Studio sessions](#ai-studio-sessions)); give the current group one useful task-specific name with `videodraft sessions name \\"<name>\\"`. Switch to a project only when the deliverable matches the project criteria below or the user asks to attach the assets to one.\\n- **A generated multi-scene video / ad / explainer**: use hosted tools for any needed script, storyboard, shot planning, or generated assets, then build/export in the selected editing app. With no app selected and the native editor available, stop before hosted production, import the assets, and build/export the native timeline. A hosted project is optional unless the user wants the web project or its storyboard workflow.\\n- **A hosted web project or hosted export**: use the hosted pipeline when the user explicitly asks for it, or the native editor is unavailable and no external app is selected.\\n- **Just a script** (no video asked for): A script-only request creates a script-stage project but stops at the script. Use `videodraft create \\"...\\" --script-only`; do not build a storyboard the user didn\'t ask for.\\n- **Iterating on existing work**: identify the surface first and preserve an external project\'s app unless the user requests a transfer. Use `project_manage` `project` with `action: \\"list\\"` for native projects and `videodraft projects list` only for hosted work. Never create a replacement project just to change an existing one.\\n\\n## Choose the model from the task\\n\\nIf the user names a model, use it when compatible. If it cannot handle the request, explain why and recommend alternatives instead of silently switching. Otherwise inspect the inputs, duration, audio, quality, speed, and cost, check the live catalog, and pass an explicit model.\\n\\n### Seedance 2.x pricing\\n\\nSeedance 2.0 and 2.5 have no real-people option, including for hosted `full_video` production. A video that can\'t be made at the listed rate, usually one showing a real person, costs a higher rate; the difference is charged before it starts. When a real person is involved, quote both prices (`get_model_costs` returns `cost` and `higher_rate_cost`). Don\'t name providers to the user.\\n\\n**How to pick a model. Follow this order every time:**\\n\\n1. The user named a model: use it, never substitute.\\n2. Otherwise pick a **Tier 1** model.\\n3. Use a **Tier 2** model only when no Tier 1 model supports the request, and say why. Never pick Tier 2 on your own for price, speed, novelty or variety.\\n\\nTier 1: images `nano-banana-2.1`, `nano-banana-2`, `nano-banana-pro`, `nano-banana-2-lite`, `gpt-image-2.6-flare`, `gpt-image-2.6-sunburst`, and `recraft-v4` for vector/SVG only; videos `gemini-omni-1.2-flash`, `seedance-2.5`, `seedance-2`, `kling-4.0`, `kling-3.0`, `kling-o3`, `flux-3-max`, `minimax-h3-max`; video edits `gemini-omni-1.2-flash`; talking-head portraits `veed-fabric`, `minimax-h3-max-lipsync`; motion transfer `kling-v3-motion-control`; audio ElevenLabs for speech tools, Lyria 3.5 for music at any length.\\n\\nTier 2 is every other catalog model (`wan-3.0`, `flux-3-image`, `minimax-h3`, `kling-4.0-flash`, `kling-v3-turbo`, `kling-2.6-pro`, `grok-imagine-video-1.5`, `happy-horse`, Veo 3.1, Seedream, Grok Imagine images, FLUX images, `sync-lipsync-2` and the rest). All of them stay available by name. Real Tier 2-only jobs: document or web-page references (`wan-3.0`), re-syncing existing footage (`sync-lipsync-2`).\\n\\nEvery `videodraft models image|video|audio --json` entry carries `tier` (1 or 2), and the top-level `recommended` array is Tier 1, best first. That catalog beats this page when they disagree.\\n\\n**Speech in video:** write the dialogue in the video prompt. `gemini-omni-1.2-flash`, `seedance-2.5`, `seedance-2`, `kling-3.0` and `kling-o3` speak it natively. For a specific voice add a Seedance reference audio clip (`--ref-audio`) or a Kling bound voice. Do not plan silent video + TTS + lip-sync. Lip-sync tools are only for a portrait presenter talking to camera, or for re-syncing footage that already exists. Off-screen narration and voiceover are unaffected: keep using `generate voiceover` for those.\\n\\n**Images:**\\n\\n- `nano-banana-2.1`: general default, editing, text, consistency, and references. Add `--thinking-level medium` or `high` for complex layouts, infographics or dense text.\\n- `nano-banana-2`: the previous default; use it when temperature control is wanted.\\n- `nano-banana-pro`: maximum quality. `nano-banana-2-lite`: fast, inexpensive drafts.\\n- `gpt-image-2.6-flare`: fast everyday generation and editing, and the pick for posters, logos, signs, title cards, readable text and precise composition. Use `gpt-image-2.6-sunburst` when extra precision, fine detail or edit consistency matters (it takes longer). GPT Image 2.6 replaces 2.5, so always pass a 2.6 id. Both use the same basic options as GPT Image 2: references (up to 16), aspect ratio, 1K/2K/4K resolution, image count (1-4), and quality, with PNG output and no seed. Quality adds xhigh/max; auto is charged at the max tier, so pass `--quality high` for a cheaper render (low and medium are only modestly cheaper than high). Other model recommendations are unchanged; explicit `gpt-image-2` requests still use GPT Image 2.\\n- Animated GIFs (stickers, loops, emoji, icons, short reactions): GPT Image 2.6 with `--gif`, plus `--frames 2-16` (default 8) and `--frame-ms 20-2000` (default 120). Describe the motion and a seamless loop in the prompt; `--ref` animates a given subject. Frame size follows `--ar`; `--resolution` does not apply. 2-8 frames cost the same, so prefer 8. GIFs are standalone outputs, not storyboard shots, batches or video start frames, and a personal Pika key cannot make them. For long or smooth motion use a video model.\\n\\n**Videos:**\\n\\n- `gemini-omni-1.2-flash`: default for 3-15s generation and 3-15s source edits, at 360p/720p/1080p/4K with audio always on. Generation takes up to 10 total images including first/last frames, and 3 creative video references (<=15s each). First plus last frame caps output at 10s. Use `--video-task generate` for creative video references; one `--ref-video` without a source remains a legacy source edit. `--source-video` edits a 3-15s source; `--video-task extend` or `--extend` adds 3-10s to a 1-30s source, up to 40s total. Edit/extend accept exactly one source video and up to 2 image references on Google, with no creative video references. `--previous-interaction-id` resolves a completed Google output as the next source; the same source limits apply. Google supports `--seed`; Fal does not. Fal BYOK uses callable v1.2 text/image/reference/edit/extend endpoints at zero VideoDraft credits, requires a prompt, cannot mix frames with references, and cannot take edit/extend references or Google interaction IDs. Never fall back to paid Google under BYOK. Atlas Cloud, Pika and Higgsfield do not expose a verified 1.2 contract and must not list this model. Separate audio references are not available. For silent shots describe quiet ambience and mute the generated track in the editor.\\n- `grok-imagine-video-1.5` (Tier 2): 1-15s text, first-frame, or 1-7 reference-image generation with native audio. Text/first-frame modes support 480p, 720p, and 1080p; reference mode supports 480p/720p. Cite references as `<IMAGE_0>` through `<IMAGE_6>`. It has no last frame, seed, negative prompt, quality tier, reference video, or reference audio.\\n- `minimax-h3` (Tier 2): 480p/768p/2K/4K (768p default), native stereo audio, and 5-15s text, first/last-frame, or mixed-reference generation. Reference mode accepts up to 9 images, 3 videos, and 3 audio clips, with at most 12 files total. Cite them as `Image 1`, `Video 1`, and `Audio 1` in array order.\\n- `flux-3-max` (Tier 1, before `minimax-h3-max`): fast 5-20s video at 720p/1080p, 24fps, optional native audio. Text, first frame, first + last frame, or up to 10 timed keyframes (`--keyframe shot.png@2.5`, repeatable). `--reasoning-level high|low` (high default), `--seed`, and explicit whole-second duration (default 5s). No Draft/quality mode or auto duration. Quote current pricing with `videodraft costs flux-3-max --type video --duration 5 --resolution 720p` or `--estimate`. Keep Gemini Omni as the default.\\n- `minimax-h3-max`: 480p/768p (768p default), native audio, and 5-15s text, first/last-frame, or mixed-reference generation. Reference mode accepts up to 9 images, 3 videos, and 3 audio clips, with at most 12 files total, cited as `Image 1`, `Video 1`, and `Audio 1` in array order. It supports a reproducibility seed and `disabled` / `balanced` / `quality` prompt expansion.\\n- `wan-3.0` (Tier 2): unified 2-30s text, first/last-frame, or ordered mixed-reference generation at 480p/720p/1080p, with optional native audio. Reference mode accepts up to 10 images, 5 videos, and 5 audio clips, at most 20 media files total; video and audio each total at most 15 seconds. `--auto-duration` reserves 30 seconds and reconciles to the provider-reported output length. Document/web references use `--file-url` or `--web-url` and require `--thinking`.\\n- `seedance-2`: video/audio/mixed references, wider ratios, selectable audio, or 11-15s with both first and last frames. Duration alone up to 15s stays on Gemini Omni 1.2. `standard` is the default; use `mini` for a cheaper draft or `fast` for speed (both are 480p/720p only).\\n- `seedance-2.5`: 4-30s single takes and up to 50 references (30 image, 10 video, 10 audio). Same modes as 2.0, one quality tier, 480p/720p/1080p. Reach for it when a shot must run past 15s or carry more references than 2.0 allows.\\n- `kling-4.0` is the preferred Kling, after Gemini and Seedance (details below). `kling-o3`: reference images plus structured image/video elements, first/last frames, multi-prompt, audio control, or 4K. O3 allows 7 combined image references and image-backed elements, reduced to 4 combined items when a video-backed element is present. `kling-3.0`: image-to-video can use structured image/video elements and bind a custom Kling voice ID to either element form. Tier 2, by name: `kling-v3-turbo` (fast polished 3-15s with first frame, multi-prompt, and audio, but no elements) and Kling 2.6 Pro (top-level voice IDs cited as `<<<voice_1>>>` and `<<<voice_2>>>`).\\n- Existing-video edits use `videodraft edit video`, not generic generation. `gemini-omni-1.2-flash` is the preferred edit model and is chosen automatically when you omit `--model`: source from 3 to 15s, up to 2 reference images on Google, 360p/720p/1080p/4K with audio. Creative `--ref-video` inputs are NOT accepted on an edit, because an edit takes exactly one input video; use `generate video --video-task generate` to guide a new clip with video references instead. Omitting `--model` on a longer or unmeasurable source spends nothing and prints a priced menu (what each model edits, what it drops, what it costs) so you can put the choice to the user. **Truncation:** Gemini (15s), `kling-4.0-video-edit` (30s) and `kling-4.0-flash-video-edit` (20s) refuse an over-length source. Happy Horse silently edits just the first 15s, Kling O3 the first 10s, and Grok the first 8s. The command warns you when that will happen; always relay it to the user. `kling-4.0-video-edit` (Tier 2) can edit a whole source longer than 15s and up to 30s, so the priced menu offers it for long sources. Gemini regenerates the audio track, so use Happy Horse or Kling O3 with `--preserve-audio` when the source audio must survive. Choose Grok for the cheapest prompt-only edit, Happy Horse for up to 5 image references, or Kling O3 for controlled reference-image edits.\\n- To edit a source longer than 15s without losing its tail, cut it into <=15s pieces in the selected editing app (`videodraft_editor` by default), edit each with Gemini, and reassemble in that app. VideoDraft has no server-side split/concat, so this path needs a local editing route.\\n- Kling O3 also has a reference-generation mode. Use `videodraft generate video --model kling-o3-video-ref-edit` with exactly one `--ref-video` to generate a new guided clip; use `videodraft edit video` when changing the source itself. For new mixed-reference generation use Seedance 2 / 2.5.\\n- Motion transfer uses `videodraft edit motion` with Kling V3 by default, or Kling 2.6 when explicitly requested or lower cost matters. It requires a subject image and a motion-reference video. For native Higgsfield, choose `--model genjutsu` or `--model genjutsu-light`: one source MP4 (4\u201330s or 4\u201315s), 1\u20138 ordered images (the positional subject plus repeatable `--ref`), optional prompt, and `--resolution 480p|720p|1080p` (default 720p). No quality/orientation/Element/audio/seed controls. Trim longer sources first. `--duration` is estimate-only. Light bills fractional source seconds plus rounded-up output seconds; unused output time is refunded. Runs on VideoDraft credits or a selected Higgsfield API key only.\\n- `kling-4.0` (Tier 1, the preferred Kling; Kling 3.0 and O3 keep 4K): Kling\'s newest model, with three modes like Kling O3. Text mode; image-to-video from `--start-image` with an optional `--end-image` (framing follows the image, so no `--ar`); or reference mode, chosen when you add `--ref`, `--ref-video` or `--element`, with an optional `--start-image` (no end frame), up to 10 images, 5 `--ref-video` clips and 7 `--element` entries (3 with voice, 3 video), cited as @Image1, @Video1, @Element1. 3-30s, 720p/1080p, multi-shot `--segment` up to 30s in total, audio always on; no seed or negative prompt. Reference and element videos are billed by their length plus the output, at least twice the output; quote with `videodraft costs kling-4.0 --type video --duration 10 --ref-video-seconds 6`.\\n- `kling-4.0-video-edit` (Tier 2, by name or for a long source): `videodraft edit video <source> \\"<prompt citing @Video1>\\" --model kling-4.0-video-edit` edits a whole 3-30s source with up to 10 `--ref` images and 7 image-only `--element` entries, 720p/1080p. The output matches the source unless you pass `--duration` (3-30). It bills the source plus the output, at least twice the output, and cannot keep the source audio; quote with `videodraft costs kling-4.0-video-edit --type video --ref-video-seconds <source seconds>`.\\n- `kling-4.0-flash` (Tier 2, by name): the faster, cheaper 720p tier of Kling 4.0, with the same three modes and inputs. Text mode; image-to-video from `--start-image` alone (no `--end-image`); or reference mode with an optional `--start-image`, up to 10 images, 5 `--ref-video` clips of 3-20s and 7 `--element` entries (up to 3 video-backed, 3-8s each; no `voice_id`), cited as @Image1, @Video1, @Element1. Reference and element videos share 5 clips and 20s; 15 inputs in total. 3-20s, 720p only, one prompt (no `--segment`), audio always on. It costs less per second than Kling 4.0 and bills reference and element videos the same way; quote with `videodraft costs kling-4.0-flash --type video --duration 10 --ref-video-seconds 6`. Use `kling-4.0` for multi-shot, an end frame, voices, 1080p or more than 20s.\\n- `kling-4.0-flash-video-edit` (Tier 2, by name): `videodraft edit video <source> \\"<prompt citing @Video1>\\" --model kling-4.0-flash-video-edit` edits a whole 3-20s source with the same inputs as `kling-4.0-video-edit` (up to 10 `--ref` images and 7 image-only `--element` entries) at 720p only. The output matches the source unless you pass `--duration` (3-20). It bills the source plus the output, at least twice the output, and cannot keep the source audio; quote with `videodraft costs kling-4.0-flash-video-edit --type video --ref-video-seconds <source seconds>`.\\n- Veo 3.1, Grok Video 1.5, Happy Horse and the other Tier 2 video models: only when explicitly requested or when no Tier 1 model fits.\\n\\n**Audio and utilities:**\\n\\n- Use Seed Audio 1.0 for open-ended text-to-audio, speech/music/sound synthesis, voice conditioning, or prompt-driven editing with up to three audio references or one image. Use `videodraft generate audio`. Reference clips are `@Audio1`, `@Audio2`, and `@Audio3` in array order. There is no duration input. Output is up to two minutes and is billed per actual output minute; the two-minute maximum is reserved during generation and the unused part refunded. The CLI automatically retries transient responses with one operation key. To recover after the CLI process itself is interrupted, set `--idempotency-key <uuid>` on the original command and reuse it.\\n- Prefer ElevenLabs for voiceover, dialogue, voice changing, dubbing, and sound effects. Honor an explicitly selected supported TTS voice/provider. Use `lyria-3.5` for all music, short or long (up to ~3 minutes, one flat price per track), with vocals/lyrics or instrumental arrangements. When `--model` is omitted the CLI sends no model and the server default applies, which is `lyria-3.5` wherever the backend supports it. If the server answers that `lyria-3.5` is an unknown model, that backend predates it: rerun without `--model` (the server default then applies), or use `lyria-3-pro-preview` for a track longer than 30 seconds. Ask for the length in the prompt. Keep `lyria-3-clip-preview` (fixed ~30s) and `lyria-3-pro-preview` for explicit requests. For Lyria, put desired length, lyrics and \\"instrumental only, no vocals\\" in the prompt; `--length` and `--instrumental` are ElevenLabs-only. Use ElevenLabs Music for exact timing, composition plans, or a style reference track. Lyria allows 10 reference images on Google, 1 on Fal BYOK; Fal 3.5 prompts are limited to 5000 characters. BYOK uses zero VideoDraft credits. ElevenLabs Music means `elevenlabs-music-v2.5` (`elevenlabs-music` is an alias for it); use `elevenlabs-music-v1` only when the user asks for v1 by name.\\n- On a personal ElevenLabs key, the user\'s ElevenLabs plan caps how many requests run at once (often 2 for music, a few for everything else). Run a few ElevenLabs jobs at a time. If one fails with \\"too many concurrent requests\\", rerun it once after the others finish; if it fails again, tell the user instead of retrying. Other ElevenLabs errors (quota, key, permissions) are for the user: report them as given.\\n- ElevenLabs voiceover runs on Eleven v4 in two modes. Standard is the default and the best quality. Turbo (Eleven v4 Turbo) is faster and cheaper. Both are billed per character. Keep Standard unless the user wants faster or cheaper speech. Pick it with `generate voiceover --mode standard|turbo`, `produce --voice-mode standard|turbo`, or MCP `generate_voiceover.mode` / `produce_project.voice_mode`, and quote Turbo with `costs voiceover --chars <n> --mode turbo`. Google, OpenAI and cloned `custom-*` voices ignore the mode (cloned voices cost more per character). v4 has no style or speed settings and no SSML `<break>` tags; audio tags such as `[whispers]` work. Dialogue stays on Eleven v3.\\n- For ElevenLabs voiceover, dialogue, and voice changing, accept a supplied raw voice ID (16-64 alphanumeric characters) or `elevenlabs-<id>`. The voice catalog is for discovery, not an allowlist. Do not reject or substitute a supplied ID because it is absent from `videodraft models voices` / `list_available_voices`. Use `--voice <id>` for voiceover and voice changing, or repeat `--line \\"<id>:Text\\"` for dialogue; for example, `--voice kPzsL2i3teMYv0FxEYQ6` and `--line \\"elevenlabs-kPzsL2i3teMYv0FxEYQ6:Hello.\\"` use the same voice. The voice must be accessible to the provider account used for generation. Private or cloned voices may require the user\'s connected ElevenLabs key. Kling video-control IDs and MiniMax `custom-*` IDs are separate voice systems.\\n- Search the dynamic ElevenLabs catalogue with `videodraft models voices --search \\"warm narrator\\" --language en --source library --page-size 20 --json`. Repeat the same filters with `--page-token <next_page_token>` for more results. `--accent` and `--gender male|female` are optional. ElevenLabs BYOK defaults to the connected account\'s voices; `--source library` explores public voices on that key. Descriptions, previews and access scope help choose a voice. Public discovery does not guarantee Fal access; private voices require their owning/shared ElevenLabs account. Existing VideoDraft prices apply on direct platform generation and Fal fallback; BYOK remains zero VideoDraft credits.\\n\\n- A character who needs to TALK:\\n - **Speaking inside a scene**, or any ordinary clip with dialogue: `generate video` with the line in the prompt, in quotes, with who says it and how. `gemini-omni-1.2-flash`, `seedance-2.5`, `seedance-2`, `kling-3.0` and `kling-o3` all voice it natively. For a specific voice use a Seedance `--ref-audio` clip or a Kling voice bound per element. This is the default path; do not generate speech separately and lip-sync it on.\\n - **Talking to camera from a portrait** (presenter, spokesperson, explainer): the avatar lane, and VEED Fabric is preferred. Use managed `avatar create` then `avatar render` for a reusable avatar record with bundled speech, `avatar fabric` for a one-off portrait plus text or existing audio, and `avatar h3-lipsync` for a short (5-14.8s) portrait clip from existing audio at up to 2K. Not for in-scene shots: Fabric animates a portrait facing the lens, so a cinematic request comes back as a head-on talking headshot.\\n - **Footage that already exists plus replacement audio** (re-dub, translation): `avatar lipsync`. This is the only job for Sync Labs unless the user names it.\\n- Enhancement: use Topaz image/video upscaling only when the content is already correct. Use image 1x for cleanup, 2x by default, 4x when justified; use video 2x by default. Edit or regenerate creative errors.\\n\\nSee [references/models.md](references/models.md) for the detailed routing table and exact capability limits.\\n\\nProvider routing uses a maintained local price catalog, with exact setting compatibility and account rules. Platform requests prefer Google\'s direct image/video APIs and BytePlus for Seedance 2.0/2.5 before comparing public prices. Other models retain their supported provider routing. Agents should keep using normal model IDs and `get_model_costs` / `--estimate` for customer credits. Do not choose a vendor from a marketing starting price or retry an accepted generation to chase a lower price. Unknown or expired comparable costs retain the existing route; a selected personal provider key stays exclusive and overrides platform-account preferences.\\n\\nTemporary provider promotions are excluded from routing prices. With an Atlas personal key, H3 Max supports text or first/last-frame generation at 480P/768P only with `prompt_expansion_mode: \\"disabled\\"` and no seed. Balanced/quality expansion, reference generation and H3 Max Lip Sync require the existing Fal path. Atlas H3 Max is not selected automatically while its published price units remain inconsistent.\\n\\nThe live catalogs show discoverable models. Historical IDs remain valid for explicit requests and recreating saved generations, subject to provider availability. Do not pick a hidden model unless the user explicitly requests it.\\n\\n## Matching AI Studio controls\\n\\nIdeogram 4.5 (`ideogram-v4.5`) replaces 4.0 and remains Tier 2. Quality is low/medium/high (default medium) and is priced per output; regular edits also offer very_low. Supports 1-8 outputs, 1K/2K, seed, and text-only `--prompt-expansion true|false`. Use `--source-image` plus up to four `--ref` images, or source-first `--ref` ordering. `--edit-precision high` and `--mask` require Auto size with no resolution; masks match source dimensions, black edits and white preserves, and reduce additional references to three. See [models](references/models.md) for custom dimensions and examples.\\n\\nFLUX 3 image (`flux-3-image`, separate from `flux-3-max` video) is Tier 2. It generates and edits with up to 10 `--ref` images, `--num 1..4`, `--resolution 1K|2K|4K` (default 1K), `--prompt-expansion true|false` (default true) and `--ar` with 14 ratios plus `auto`. Each image is priced by output size (resolution and ratio); `auto` is quoted at the tier\'s highest price. Without `--ar`, a new image is 16:9 and an edit follows its first reference. No seed.\\n\\nUse `models image --json` / `models video --json` for the accepted options. Nano Banana 2.1 exposes `--thinking-level minimal|medium|high` (default minimal; no extra charge) and `--google-search-grounding true|false`, but no temperature. Nano Banana Pro/2 expose `--temperature 0..2` and `--google-search-grounding true|false`. Qwen uses one `--ref` plus `--horizontal-angle 0..360`, `--vertical-angle -30..90`, and `--zoom 0..10`; its text prompt is optional. Recraft generates SVG and accepts `--quality Normal|Pro`, repeatable `--recraft-color \'#RRGGBB\'`, and `--recraft-background \'#RRGGBB\'`. Original Nano Banana and VideoDraft Image use fixed 1K output.\\n\\nKling 3.0 / 2.5 Pro accept `--cfg-scale 0..1` and `--negative \\"\\"` to clear a negative prompt. Seedance 2/2.5, Wan 3.0, Gemini Omni generation accept `--auto-duration`; do not combine it with `--duration`. Kling O3 reference/edit modes accept image-only `--element` objects, at most four combined with `--ref`.\\n\\nTopaz image results may be immediate or queued. The CLI waits by default and downloads either result with `--download`; `--no-wait` returns a queued job ID. Raw MCP callers must poll `check_generation_status` when `upscale_image` returns `job_id`.\\n\\n## Remove image or video backgrounds\\n\\nUse `videodraft remove-background image <url|file>` for a transparent PNG with Pixelcut, or `videodraft remove-background video <url|file>` for transparent VP9 WebM with VEED Fast. These preserve the existing subject and require no prompt. Local files upload automatically. Both commands wait by default and accept `--download`, `--no-wait`, `--session`, and `--idempotency-key <uuid>`. Keep `.png` / `.webm` extensions; do not name the video `.mp4`.\\n\\nVideo defaults to `--subject person` with refined edges. Use `--subject object` for products/animals, or `--no-refine-edges` for a cheaper pass. Video sources must be VideoDraft-hosted MP4/MOV, at most 100 MB, 5 minutes and 120 fps. Images support original public URLs up to 50 MB. Never send a thumbnail. Quote current pricing with `remove-background video clip.mp4 --estimate`; the server reads actual frames. `--max-credits <n>` caps the authorized charge; `0` requires BYOK.\\n\\nRaw MCP tools are `remove_image_background` and `remove_video_background`; poll `check_generation_status` with their `job_id`. `get_model_costs` accepts `model_id: \\"pixelcut-background-removal\\"` or `\\"veed-background-removal\\"`, plus `source_url` for an exact quote (required for video) and optional `refine_edges`. Supply `max_credits` from the quote. These tools support VideoDraft credits or Fal BYOK only. After an uncertain submission, poll its job ID or reuse the same idempotency key; never start another paid job to recover a lost response.\\n\\nFor an existing native-editor clip, follow the guarded [background-removal handoff](references/editor.md#background-removal-handoff): prepare the original source, process it through the CLI/MCP, import the transparent result, then apply it while keeping the original linked sound. PNG works directly; VP9 WebM requires an alpha-preserving MOV conversion and verification before import. Check conversion availability before spending credits.\\n\\n## Cloud render (Blender on a cloud GPU)\\n\\nUse Cloud render when the user wants their own Blender scene, an animation or a frame range, rendered on a cloud GPU, for example because rendering locally is too slow. It renders a saved `.blend`; it does not generate or edit the scene.\\n\\n```bash\\nvideodraft render prices # live price per GPU-minute for each GPU size on offer\\nvideodraft render blender scene.blend --frames 1-240 # upload, render, wait, download media/renders/<job_id>.mp4\\nvideodraft render stop # switch every GPU off when your task is done\\n```\\n\\n- Pack the scene first (Blender: File > External Data > Pack Resources, then save). Files outside the `.blend` are missing on the GPU, and scripts inside it never run. The engine (Cycles or Eevee) is whatever the scene is set to.\\n- `videodraft render prices` lists the GPU sizes on offer; `--gpu full` (96 GB) is the default and fastest. When smaller sizes (`half`, `quarter`) are offered they cost less per frame but take longer: use them when the user wants it cheaper and is not in a hurry, and run a render again on a bigger size if it fails for GPU memory.\\n- Every job gets its own machine, so several renders run at the same time. A machine bills per second while it is on, at the rate `videodraft render prices` returns, and switches itself off 1 minute after its last job. State the rate and get a go-ahead before long renders; `render status` shows a job\'s cost so far and an estimate. When your task is done, run `videodraft render stop` so idle time is not billed.\\n- Waiting for a GPU is never billed. A job waits for Google to hand over a machine (usually 1 to 10 minutes, longer at busy times), then pays for about 15 seconds of start-up, the rendering, and about a minute of idle time before its machine switches off (none when another job takes the machine over). Test renders cost a few credits, so run tests and proofs in the cloud too, and submit jobs together. A queued job may have a machine starting or charges from an earlier attempt; check its phase and cost. Its displayed machine is only a candidate until the job is claimed.\\n- Name jobs with `--name \\"S4 final\\"` (default: the scene\'s file name and frames); `render status`, `wait`, `cancel` and `resume` take the name, and `render list --name` finds it, so you need no file of job ids.\\n- Exit code 4 means credits ran low, before the job started or mid-render (the job pauses and keeps its finished segments; uploading and starting need a minimum balance). Tell the user; after they top up, run `videodraft render resume <job_id>`.\\n- Renders can take hours. For long jobs use `--no-wait`, then `videodraft render wait <job_id>`. Never submit the same render again to recover from a lost wait; check `videodraft render list`.\\n\\nFlags, outputs and the MCP flow (`cloud_render_*` tools): [references/cloud-render.md](references/cloud-render.md), or `videodraft skills show render`.\\n\\n## Prefer references when continuity matters\\n\\nPure text-to-image or text-to-video is fine for a generic one-off asset. When a specific character, product, location, style, composition, or brand identity must survive generation, use references instead of hoping the prompt recreates it.\\n\\n- If the user supplies reference media, preserve and pass it. Never reduce the request to text alone.\\n- When continuity matters, generate/select a strong still first with the selected image model (`nano-banana-2.1` by default), wait for its URL, then animate it as a start frame/reference. Confirm the combined image and video cost.\\n- When using a hosted storyboard stage for multiple shots, use `videodraft shots <project_id> --model <selected-image-model> --grid`, then animate the decoded shots. Preserve explicit models. In VideoDraft ADE, import the resulting assets into the selected editing app (the native editor by default) instead of continuing into hosted production. A requested non-Seedance video model must use manual per-shot generation instead of Seedance full-video mode.\\n\\n## Cost and credits\\n\\nDo not call `videodraft credits` before routine generations. Paid endpoints validate and deduct atomically; if the balance is insufficient, the request is rejected before the provider job starts (CLI exit code 4). Check the balance only when the user asks, gives a credit budget, or a large workflow needs budget planning.\\n\\nThis skill lists no prices because they change with provider routing and sales. Get the current price from `videodraft costs <model> [settings]` or the command\'s `--estimate` flag; both read live prices from the server and spend nothing. Never quote a price from memory or from older notes. For expensive work, estimate first, state the selected model/settings/cost, and get a go-ahead. This matters most for shot-image batches, long or high-resolution video, AI Production, and paid audio batches. Honor the user\'s confirmation preference for the session.\\n\\nKling voice creation has a small charge on the platform Fal account and is free with Fal BYOK. Preview it with `videodraft kling-voices create <sample> --name <name> --estimate`; the estimate does not create a voice or require consent confirmation. Actual creation requires `--confirm-consent`.\\n\\nMiniMax H3 is billed per output second by resolution (768p by default). In reference mode the first 5 images are included and each additional image adds a charge. Reference video and reference audio are NOT billed.\\n\\nMiniMax H3 Max is billed per output second at 480p or 768p (default), plus pooled reference tokens in reference mode: a free allowance, then a charge per 1,000 tokens, where an image is `(width x height) / 1024` tokens, a reference video is 2,886 tokens per second at 480p or 7,459 at 768p, and reference audio is about 2,121 per second. Use `--prompt-expansion-mode disabled|balanced|quality`; balanced is the default. Fal\'s provider safety checker is OFF by default and is not exposed in the app \u2014 only pass `--safety-checker true` if the user explicitly asks for it.\\n\\nWan 3.0 is billed per output second by resolution. Auto duration reserves the 30-second maximum and refunds the unused reserve after the provider reports the actual whole-second output length. Fal BYOK runs on the connected user key and charges zero VideoDraft credits.\\n\\nGrok Imagine Video 1.5 is billed per output second by resolution, plus a small charge for each first-frame or reference image. Native audio is always generated.\\n\\n`videodraft models image|video` lists the live image and video catalogs with supported inputs. Video entries are grouped as `generation`, `video_edit`, `motion_control`, `avatar_lipsync`, and `upscale`, and each reports the exact tool. Use `videodraft models video --category video_edit` to narrow the list. `videodraft models audio` lists Seed Audio, Google Lyria, and ElevenLabs audio/media tools, while `videodraft models voices` helps discover TTS voices. Consult them for capabilities; a supplied ElevenLabs voice ID does not need to appear in the voice catalog.\\n\\n## Async jobs\\n\\nImage/video generation is asynchronous: commands submit a job and **wait by default**, printing output URLs (and saving files with `--download`). Large downloaded images also get a downscaled copy in `previews/` next to them (the `preview` field / \\"inspect via preview\\" line in the output) \u2014 **look at the preview, deliver the original**; viewing full-resolution images bloats the chat permanently. In scripts/CI prefer explicit control:\\n\\n```bash\\nJOB=$(videodraft generate image \\"...\\" --no-wait --json | jq -r .job_id)\\nvideodraft wait \\"$JOB\\" --download \\"./outputs/{job_id}_{index}.{ext}\\" --json\\n```\\n\\nFor MANY jobs: submit each with `--no-wait`, collect ALL with one command \u2014 `videodraft wait <id1> <id2> ...` polls every job from one process with one batched request per tick. Do NOT spawn parallel `wait`/`generate --wait` processes for a batch.\\n\\nIf a wait times out, the job is still running server-side \u2014 `videodraft status <job_id>` later. Never re-submit just because a wait timed out (that double-spends credits).\\n\\nFor completed Wan 3.0 jobs, MCP `check_generation_status` and CLI `status`/`wait --json` include `outputMetadata` with Fal\'s returned `seed`, `duration`, and `actual_prompt` when present.\\n\\n## AI Studio sessions\\n\\nStandalone image/video/audio generations are filed into an AI Studio session in the web app. 3D assets use `assets 3d list/get` separately. You do not have to create an AI Studio session:\\n\\n- **MCP hosts** (Claude Code, claude.ai, Codex, VideoDraft ADE): on 2025-era MCP the server mints an `Mcp-Session-Id` on `initialize`; your host echoes it, and this conversation\'s generations land in their own session. On stateless MCP (2026-07-28) hosts that send a conversation id (ChatGPT) get the same. Otherwise `name_current_ai_studio_session` returns `pass_session_id: true` with a `session_id`: pass that `session_id` to every later standalone generation in the conversation. Tool results echo the session as `ai_studio_session_id`.\\n- **CLI**: the same handshake runs once per (profile, server, working directory) and is cached for 12 idle hours, so everything generated from one directory shares one session. `videodraft sessions current` shows it; `videodraft sessions reset` starts a new one.\\n- Project generations (`--project <id>` / `project_id`) always go to that project\'s session.\\n\\nOnce you understand the creative task, name the current automatic session before the first standalone generation:\\n\\n```bash\\nvideodraft sessions name \\"Purple Seal Rescue Short\\"\\n```\\n\\nChoose a concise, specific 3-6 word title for the intended work. Do not copy the client name, date, or exact chat title. Name it once: the operation creates the session with that title. If generation, a user, or an earlier agent created the session first, its existing name is preserved.\\n\\nApart from the `pass_session_id: true` case above, pass `--session <id>` / `session_id` only to **continue earlier work** or create an explicit separate group:\\n\\n```bash\\nSESSION=$(videodraft sessions create \\"Fox brand explorations\\" --json | jq -r \'.session.id\')\\nvideodraft generate image \\"a red fox in snow, cinematic\\" --session \\"$SESSION\\"\\nvideodraft generations --session \\"$SESSION\\" # what is in it\\nvideodraft sessions list --name fox # find it again later\\n```\\n\\n`VIDEODRAFT_SESSION=<id>` sets the default for every command (ignored when `--project` is given). While it is set, `sessions name` refuses to run because that command names the current automatic connection session, not the pinned override; unset it first or rename the pinned session in AI Studio. `VIDEODRAFT_SESSION_SCOPE=<label>` groups several directories into one connection session; `VIDEODRAFT_CLIENT_NAME=<host>` labels the fallback placeholder used when generation creates the session before `sessions name`; `VIDEODRAFT_NO_SESSION=1` disables the handshake. Generations that reach the server with no session at all fall back to the account-wide \\"Agent (MCP)\\" session; if you see work landing there, pass `--session` explicitly.\\n\\n## Generation history\\n\\nPast work is queryable \u2014 reuse a previous setup instead of guessing. `videodraft generations` lists recent generations; scope with `--session <id>` or `--project <id>` (includes collaborators\' rows in shared scopes; pass one, project wins), and filter with `--type`, `--model`, `--favorites`. `--full --json` returns each row\'s exact parameters (aspect ratio, resolution, duration, references) \u2014 the human table stays compact, so pair `--full` with `--json`. `videodraft generation <id>` prints one generation\'s complete recipe (prompt, input image, parameters, outputs); `--favorite` / `--unfavorite` stars it. `videodraft sessions list` shows AI Studio sessions (owned + shared) with `--name` search \u2014 take a session id from there to read its history.\\n\\n## Free stock footage and photos\\n\\nPexels and Pixabay are wired in through `search_stock_media` / `import_stock_media` (`videodraft stock search \\"<query>\\"`, `videodraft stock import <ref>`). Both libraries are free, watermark-free and cost **zero credits**, so use stock for b-roll, establishing shots, backgrounds and ordinary real-world footage, and spend credits on the shots that must be specific: the product, the character, the scripted action.\\n\\n```bash\\nvideodraft stock search \\"city skyline night\\" --min-duration 5 --orientation landscape\\nURL=$(videodraft stock import pexels:video:35379336 --quality hd --json | jq -r .url)\\n```\\n\\n- Always two steps. A search result\'s `preview_url` is a thumbnail for judging the shot; never place it on a timeline, attach it to a shot or send it to a model. `import_stock_media` copies the file onto the VideoDraft CDN and returns the URL every other surface accepts, including the native editor\'s `library_manage` import.\\n- `--quality hd` (default) caps video at 1080p; `4k` caps at 2160p, `best` takes the largest the provider has, `sd` suits rough cuts. Stills ignore quality and import at full size. Use `--orientation portrait` for 9:16, and `--min-resolution 1920` to drop anything below HD on its long edge.\\n- Photos come from Pexels. Pixabay contributes video only, because its full-size image host refuses server-side downloads.\\n- Credit the creator and link the provider page when you show results or deliver the finished work; both come back on every result. Skip clips that imply a person or brand endorses the product, and avoid recognisable logos in ads.\\n- Search and import are rate limited per user (30 searches and 15 imports a minute) and searches are cached for 24h, so a burst of searches while planning a montage is fine. Bulk downloading a stock library is prohibited by both providers. A note saying Pixabay was skipped means its provider budget for that minute is spent; the Pexels results still stand.\\n\\n## Downloading from YouTube, Instagram, TikTok and other sites\\n\\nVideoDraft ships no downloader. When the user asks to pull a video from YouTube, Instagram, TikTok, X, LinkedIn or anywhere else, `yt-dlp` on the user\'s own machine does the work. Check for it with `command -v yt-dlp` before promising anything.\\n\\n**Present:** pin the format. On its defaults yt-dlp takes the best stream, usually VP9 or AV1 in WebM, which the native editor\'s import rejects (mp4, mov and m4v only). This returns one pre-muxed H.264 + AAC MP4 and needs no ffmpeg:\\n\\n```bash\\nyt-dlp -f \\"b[ext=mp4]\\" -o \\"media/%(title)s.%(ext)s\\" \\"<url>\\"\\n```\\n\\n**Missing:** say so in one line, then offer `brew install yt-dlp` only where `brew` exists, and only after asking. With no Homebrew, say the tool is unavailable and stop.\\n\\n- Never install Homebrew, never `sudo`, never write to `/usr/local/bin` or `/opt`, never pipe a script into a shell.\\n- `ffmpeg` is optional, matters only above 720p, and the selector above never needs it.\\n- Auth-gated content needs `--cookies-from-browser`; raise it only after a download fails on auth.\\n- Fetch only what was asked for, never a channel, playlist or back catalogue.\\n\\n## Local files and reference images\\n\\nReference inputs must be public URLs. The CLI uploads local files automatically wherever a URL is expected (`--ref photo.jpg`, `--start-image frame.png`), or explicitly:\\n\\n```bash\\nURL=$(videodraft upload ./product.png --json | jq -r .url)\\n```\\n\\nNever silently drop a reference you couldn\'t upload \u2014 stop and tell the user. Never upload a user\'s file to a third-party host.\\n\\nWhen the user attaches media for a native production, import actual footage into the editor by default. For hosted generation/storyboarding, classify each item before acting: a recurring **visual asset** (character/product/location/style), actual **footage to place as shots**, or **inspiration only**. See [references/pipeline.md](references/pipeline.md) for the hosted role mapping.\\n\\n## Showing media to the user\\n\\nGenerated media is **not** displayed in the chat automatically \u2014 you decide what to show. To preview an asset inline, save it locally (use `--download` so it lands under `media/`) and reference its **local path** as a Markdown link with a **leading `./`**:\\n\\n```\\n[ferrari shot](./media/ferrari_01.png) \u2190 image card\\n[the clip](./media/clip.mp4) \u2190 video player\\n[voiceover](./media/vo.mp3) \u2190 audio player\\n```\\n\\nPut the Markdown link **in your message text** \u2014 video and audio embed exactly like images. Do **not** use `SendUserFile` (or other file-send tools) to display media: that renders inside a collapsible tool card and gets buried in the tool list. The Markdown link in your prose is what produces the inline card.\\n\\nUse the path you saved to: a **workspace-relative** path (`./media/clip.mp4`, or `./<any-folder>/clip.mp4` \u2014 any folder in the workspace works), or the **absolute** path for a file outside the workspace (e.g. `/Users/you/Desktop/clip.mp4` or another workspace\'s path). Both render. Show the finished results worth showing (and only those \u2014 not every intermediate job). A bare CDN URL or a JSON dump of output URLs does **not** render; the local-path Markdown link is what produces an inline card.\\n\\n## Native-first VideoDraft ADE pipeline (idea \u2192 MP4)\\n\\nWhen `videodraft_editor` is present and no chosen app or existing external project takes precedence:\\n\\n1. Generate or source the script, storyboard, shot images, clips, voiceovers, music, and other assets through the cloud CLI/MCP as needed.\\n2. Call native `project_manage` (`project`, action `open` or `create`) to open or create the `.vdproject`.\\n3. Call native `library_manage` `import`, wait for imports to become ready, then assemble and refine the timeline with `edit_apply` recipes.\\n4. Call native `delivery_manage` `submit` and use its `jobs` operation for progress and results.\\n\\nDo not run the hosted production or export steps in this path unless the user explicitly asks for a web production.\\n\\n## Hosted fallback pipeline (idea \u2192 MP4)\\n\\nUse this when the user explicitly requests the hosted web workflow, or there is NO native editor\\nand no external app is selected. The native surface is not only the injected `videodraft_editor` MCP: a `videodraft-editor`\\nexecutable on PATH is the same editor reached through its terminal bridge, and\\n[references/editor.md](references/editor.md) covers driving it that way. Treating a missing MCP as\\n\\"no editor\\" sends sessions that have the binary into hosted production for no reason.\\n\\n```bash\\nvideodraft create \\"<idea>\\" --ar 9:16 # project: script \u2192 visual assets \u2192 storyboard\\nvideodraft shots <project_id> --grid --estimate # cost preview, confirm with user\\nvideodraft shots <project_id> --grid # batch shot images (waits, writes onto shot cards)\\nvideodraft produce <project_id> # voiceovers + captions + production timeline\\nvideodraft export <project_id> --download final.mp4\\n```\\n\\nOptional between produce and export: per-shot motion clips (`videodraft generate video ... --project <id>` then place it with `videodraft attach <project> --scene N --shot M --media <url|file> --type video --duration <s>`), music (`videodraft generate music \\"...\\" --attach <project_id>`), and standalone audio assets (`generate audio`, `generate sound-effect`, `generate dialogue`, `generate voice-changer`, `generate dub`). Details, per-step tools and editing rules: [references/pipeline.md](references/pipeline.md).\\n\\n## Avatar and talking-head videos (both surfaces)\\n\\nAvatar generation is cloud-only, so this applies whether or not `videodraft_editor` is present. Generate the avatar in the cloud; when a larger edit is requested, import the rendered clip into the selected editing app (the native editor by default) and cut it like any other footage.\\n\\nAvatar/talking-head videos use dedicated commands. For a reusable managed avatar, obtain or generate a clear portrait \u2192 `videodraft avatar script` when needed \u2192 `videodraft avatar create` \u2192 `videodraft avatar render --resolution 720p`. For a one-off portrait, use `videodraft avatar fabric <portrait> --text \\"...\\"` or `--audio <file>`, or `videodraft avatar h3-lipsync <portrait> --audio <file>` for a short high-resolution clip from existing audio. For an existing video plus replacement audio, use `videodraft avatar lipsync <video> --audio <file>`. Managed script/creation is bundled/free; direct Fabric, H3 Max Lip Sync, Sync, the managed Fabric render, and optional portrait generation/upscaling are paid. Confirm expensive steps first.\\n\\n## Working with hosted project data\\n\\nA hosted project is one JSON blob (script, storyboard scenes, shot cards, visual assets, production timeline). To inspect: `videodraft projects get <id>`. To edit: fetch `--raw`, modify, then `videodraft call update_project` \u2014 objects deep-merge, **arrays replace wholesale** (send the complete `storyboard.scenes` array to change one scene). Snapshot first with `videodraft checkpoint create <id>` before risky edits. Schema reference: `videodraft call get_project_schema`. This does not replace the chosen app\'s project or the native editor\'s `.vdproject` for the production itself.\\n\\n## More\\n\\n- [references/pipeline.md](references/pipeline.md) \u2014 hosted fallback data model and production workflow\\n- [references/editor.md](references/editor.md) \u2014 native headless editor routing, project selection, import, timeline edits, verification, and export\\n- [references/models.md](references/models.md) \u2014 choosing image/video models, pricing patterns, voices and styles\\n- [references/examples.md](references/examples.md) \u2014 recipes: batch product videos from a CSV, talking-head from a script, changelog video in CI\\n- [references/cloud-render.md](references/cloud-render.md): Cloud render commands, flags, exit codes, cost and the MCP flow\\n","references/3d.md":"# Standalone 3D assets through MCP and CLI\\n\\nUse this lane for downloadable meshes, textured 3D models, and humanoid rigging. These are independent of AI Studio sessions and do not require a storyboard or web viewer. Never create a project just to generate a mesh. Native editor media import does not establish support for GLB/FBX assets; use external 3D software unless the live editor schema explicitly supports them.\\n\\n## Discover and quote\\n\\n```bash\\nvideodraft models 3d --json\\nvideodraft generate 3d \\"a worn brass telescope\\" --model meshy-7 --estimate\\nvideodraft generate 3d --model tripo-h3.1 --ref ./reference.png --options @options.json --estimate\\nvideodraft rig 3d --estimate\\n```\\n\\nMCP tools: `get_3d_models`, `estimate_3d`, `generate_3d`, `rig_3d`, `check_generation_status`, `list_3d_assets`, `get_3d_asset`, `create_3d_upload`, and `finalize_3d_upload`.\\n\\nThe generator catalog is deliberately limited to `meshy-7` (Meshy 7.1; the CLI also accepts `meshy-7.1`) and `tripo-h3.1`. Both expose text/image/multi-image modes; use the live schemas for option availability, view order, limits, topology, texture/PBR, and pose controls. Do not invent common provider option names. Server defaults prioritize quality. Meshy\'s `geometry_resolution` sets geometry detail: text/image default to `2k` and also take `standard` or `4k` (4k costs more than 2k); multi-image takes `standard` (default) or `2k`. `ultra_mode` is a deprecated alias for 2k. Rigging is a separate Meshy operation for compatible textured humanoid GLBs; it is not an arbitrary creature or facial rig service.\\n\\nEvery option is accessible through `--options` JSON (`@path.json` supported), plus repeatable `--option key=value` overrides. Values parse as JSON when valid. Options and explicit input mode affect pricing, so obtain a fresh quote for the exact recipe. Estimates perform no file upload or provider generation. VideoDraft bills whole credits at 100 credits per dollar using the server\'s rounding rules. BYOK costs zero VideoDraft credits and runs on the connected user Fal key. Do not infer the user\'s Fal-account charges from a zero VideoDraft-credit quote.\\n\\n## Generate and retrieve\\n\\n```bash\\nvideodraft generate 3d \\"a worn brass telescope\\" --model meshy-7 --download --json\\nvideodraft generate 3d --model meshy-7 --ref ./hero.png --no-wait --json\\nvideodraft generate 3d --model tripo-h3.1 --input-mode multi_image --ref ./front.png --ref ./left.png --ref ./back.png --ref ./right.png --no-wait --json\\nvideodraft status JOB_ID --json\\nvideodraft wait JOB_ID --download --json\\nvideodraft assets 3d list --status completed --json\\nvideodraft assets 3d get ASSET_ID --download ./media/3d --json\\nvideodraft rig 3d --asset ASSET_ID --download --json\\nvideodraft rig 3d ./textured-humanoid.glb --download --json\\n```\\n\\nLocal image references upload automatically. Local rigging inputs must be self-contained `.glb` files and upload via the dedicated 3D route. Input mode is inferred from reference count unless `--input-mode text|image|multi_image` is supplied. A text prompt requires no images; image mode requires exactly one and no geometry prompt. Meshy multi-image accepts 1-4 views, and Tripo accepts 2-4 in front, left, back, right order. Use Meshy\'s `texture_prompt` option when texturing guidance is needed with image inputs. Do not mix unrelated images as if they were views of the same object.\\n\\nGeneration and rigging wait by default. `--no-wait` returns a persisted job that continues server-side. For many jobs use one `wait ID1 ID2 ... --download`; do not run parallel polling processes. Recover timeout with the same job ID, not another paid generation.\\n\\nSubmission returns a `request_id` UUID. A same-request retry must use `--request-id UUID` and the original arguments. The CLI journals resolved uploads in its private config directory so retries reuse the same remote files. Changed inputs under that UUID are rejected. Submission errors include the UUID in JSON `details.request_id` where available. Never retry a failed request with a new UUID until the prior job status is known.\\n\\n## Complete artifact packages\\n\\n`--download` defaults to `media/3d/<asset_id>/`. A user directory is respected and receives a per-asset folder. `{job_id}` and `{asset_id}` directory templates are accepted. Do not pass a `.glb` filename or a media `{index}.{ext}` template: a 3D result can contain multiple formats and texture/material dependencies.\\n\\nDownloads preserve every returned artifact. The manifest records provider URLs, source filenames, local paths, role, content type, and actual downloaded sizes. glTF/OBJ/MTL references are rewritten to saved dependency paths; binary GLB/FBX and provider ZIPs are retained as returned. Supplied dependency aliases become local copies at the paths needed by original FBX files. Unsafe or colliding aliases produce warnings. Existing packages are never overwritten. A successful package has `manifest.json`; read its `complete` field and `warnings`, plus CLI `package_warnings`. Do not claim a package with unresolved dependencies is ready for offline use.\\n\\nMachine results use `type: \\"model3d\\"` with `output_files` for files and `output_media` only for ordinary preview media. Texture maps and models are not image/video gallery entries. Show a supplied preview via a local image Markdown link and deliver the original mesh/package files. Do not imply an interactive 3D viewer exists in AI Studio or VideoDraft ADE.\\n","references/cloud-render.md":"# Cloud render: Blender scenes on a cloud GPU\\n\\nCloud render renders the user\'s own `.blend` scene on cloud GPUs (NVIDIA RTX PRO 6000). Every job gets its own machine, so several jobs render at the same time; a machine starts on demand, takes the user\'s next job of its size when one is waiting, and switches itself off 1 minute after its last job. Waiting for a GPU is never billed. It generates nothing. Build or change the scene in Blender itself (in VideoDraft ADE, the `blender` app guide covers that); Cloud render only renders a saved file.\\n\\n## Commands\\n\\n```bash\\nvideodraft render prices # live price per GPU-minute for each GPU size\\nvideodraft render blender scene.blend --frames 1-240\\nvideodraft render blender scene.blend --frames 1-240 --blender 4.5 --out ./media/renders/ --json\\nvideodraft render blender scene.blend --frames 1001-1500 --name \\"S4 final\\" --no-wait --json\\nvideodraft render wait \\"S4 final\\" --out ./media/renders/ # a job id works everywhere a name does\\nvideodraft render status \\"S4 final\\" --json\\nvideodraft render list --limit 10 # names, status, cost, and what each machine is doing\\nvideodraft render list --name \\"S4 final\\"\\nvideodraft render cancel JOB_ID\\nvideodraft render resume JOB_ID\\nvideodraft render machine # each machine\'s phase, what you pay now, 24 h and all-time spend\\nvideodraft render stop # switch every GPU off now\\n```\\n\\n`render blender` flags:\\n\\n- `--frames <first>-<last>` (required): the inclusive frame range, or one frame such as `--frames 42`.\\n- `--name <label>`: what to call the job, up to 80 characters (default: the scene\'s file name and the frames, such as `main_v8 845-1350`). `render status`, `wait`, `cancel` and `resume` accept the name instead of the job id (the newest job with it; cancel and resume refuse when two jobs of that name qualify), and `render list --name` finds them. Name each job after its shot or purpose and you never need your own file of job ids.\\n- `--fps <n>`: frame rate of the output MP4 (default: the scene\'s own).\\n- `--chunk <n>`: frames per segment. Segments render in order, and finished ones are kept when a job pauses, fails or is cancelled.\\n- `--procs <n>`: Blender processes running in parallel on the GPU, 1-4.\\n- `--blender 5.2|4.5`: Blender version (default 5.2).\\n- `--gpu full|half|quarter`: GPU size (default `full`). See [Choosing a GPU size](#choosing-a-gpu-size).\\n- `--out <dir|file.mp4>`: where the clip goes (default `media/renders/<job_id>.mp4`).\\n- `--no-wait`: submit, print the job id and return. Resume with `videodraft render wait <job_id>`.\\n\\n## What the CLI does\\n\\n1. Hashes the file (SHA-256). A scene with the same bytes is uploaded only once, so re-rendering other frames skips the upload.\\n2. Uploads a new scene to its upload session in resumable 64 MiB chunks; after a dropped connection it asks the session what arrived and continues from there.\\n3. Submits the job. It waits for Google to hand over a GPU: usually 1 to 10 minutes, 15 or more at busy times. This wait is not billed, and the job keeps its place in the queue.\\n4. Polls every 10 seconds with no time limit (renders can take hours), printing each change: `waiting for a free GPU (not billed)`, `a GPU is starting for queued jobs (billed)`, `rendering (2/4 segments)`. After 5 minutes queued with a candidate still waiting for a GPU it says once that this can take longer. `--wait-timeout` and `--wait-interval` still apply when given.\\n5. Downloads the finished MP4, then says what the job cost and where the billed time went, for example `Billed 2m 18s of GPU time (start-up 15s, rendering 38s, idle before switch-off 1m 25s). Waited 8m 19s for a GPU, not billed.`\\n\\n`--json` prints one document: the job (`job_id`, `name`, `status`, `message`, `queued_seconds`, `wait_seconds`, `segments_done`, `segments_total`, `timing`, `cost`, `clip_url`) plus `scene_sha`, `uploaded` and `downloaded_files`. A queued job\'s machine is only a candidate and can change; `queued_seconds` can include billed start-up, while `wait_seconds` is the unbilled wait once known. With `--no-wait` it is the submitted job: `job_id`, `name`, `status`, `message`, `machine`, `credits_per_minute` and `segments`.\\n\\nExit codes: 0 done; 1 failed, cancelled or another error; 2 bad flags; 3 not signed in; 4 out of credits. Code 4 comes either before the job starts (the balance is below the minimum a job needs) or mid-render: the job pauses, keeps its finished segments, and waits. Tell the user, and after they add credits run `videodraft render resume <job_id>`. A failed job carries its error; `render resume` retries its unfinished segments, but fix the scene first when the error points at it.\\n\\n## Choosing a GPU size\\n\\n`videodraft render prices` lists the sizes on offer and each one\'s rate:\\n\\n| `--gpu` | GPU memory | Speed | Cost per frame |\\n| ------------------------ | ---------- | ------- | ---------------------------- |\\n| `full` (default) | 96 GB | fastest | highest |\\n| `half` (when offered) | 48 GB | slower | lower |\\n| `quarter` (when offered) | 24 GB | slowest | lowest, most of all on Eevee |\\n\\nAll bill per second. A smaller GPU is cheaper overall, not just per minute, because one render rarely uses a whole RTX PRO 6000. Use `full` when the user is waiting, has a deadline or the scene is heavy; a smaller size when they want it cheaper and are not in a hurry. The scene has to fit in the GPU memory: if a render fails for memory, run it again on a bigger size. `render status` shows a job\'s cost so far and, while it renders, an estimate for the whole job.\\n\\n## Scenes must be self-contained\\n\\nPack external files before rendering: in Blender, File > External Data > Pack Resources, then save. Linked libraries, simulation caches and images outside the `.blend` are missing on the machine, and the machine has no internet. Blender runs in background mode with auto-run off, so scripts and drivers that need Python inside the file do not run.\\n\\n## Cost and machine time\\n\\nWhat a job is billed for, at its GPU size\'s rate from `videodraft render prices` (MCP `cloud_render_prices`), per second:\\n\\n| Part | Billed | Typical |\\n| -------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------- |\\n| Waiting for Google to hand over a GPU | **No** | 1 to 10 minutes; 15 or more at busy times |\\n| Start-up, once Google hands the machine over | Yes | about 15 seconds, only on a machine\'s first job |\\n| Rendering | Yes | the frames |\\n| Idle wait and power-off after the job | Yes | about 85 seconds, only when no job of its size is waiting; a waiting job takes the machine over at once |\\n\\nEach start has a one-minute minimum. So a short test job costs only a few credits, mostly its minute of start-up and idle time, and test renders, proofs and previews belong in the cloud as much as finals. Submit all the jobs you have at once: each gets its own machine, and jobs that wait for the same GPU size take over finished machines with no start-up or idle time.\\n\\n`render status` and `render wait` show the split: `waited` (not billed), then `billed` as start-up, rendering and idle. A job\'s cost can still grow for about a minute after it is done, while its machine waits for more work; `cost.final` says when it is settled, and until then `cost.estimated_total_credits` says what it will be. `render machine` shows what each machine is doing: `waiting for a GPU (not billed)`, `starting up`, `rendering`, `idle` or `switching off`, and `billing now` adds up only the machines Google has handed over.\\n\\nWaiting for a GPU is free. A queued job may also have a machine starting, which is billed, or charges from an earlier attempt; check its phase and cost. If a GPU takes long, say Google is short of GPUs at the moment and the job keeps its place.\\n\\nUploading and starting need a minimum balance; when only about two minutes of credit are left, every machine stops and the jobs pause. State the rate and get a go-ahead before long renders. When your task is finished, run `videodraft render stop` so idle time is not billed, unless the user still has renders queued.\\n\\nNever submit the same render twice to recover from a lost wait or a timeout: the first job keeps running and billing. Check `videodraft render list` (or `render list --name <name>`) and continue with `render wait`.\\n\\n## Without the CLI (MCP)\\n\\n1. `cloud_render_upload_scene` with the file\'s `sha256` and `size`. `exists: true` means skip to step 3.\\n2. PUT the bytes to `upload_url`: one PUT of the whole file, or chunks that are multiples of 256 KiB with `Content-Range: bytes <first>-<last>/<size>` (308 means send the next chunk from the Range header, 200 or 201 means complete). Then `cloud_render_finalize_scene` with the same `sha256`.\\n3. `cloud_render_submit` with `scene_sha`, `start`, `end` and optional `name`, `gpu`, `fps`, `chunk`, `procs`, `blender_version`.\\n4. Poll `cloud_render_status` every 10 seconds or more. `message` and `machine.phase` distinguish a free GPU wait from billable start-up; a queued job\'s machine is a candidate that can change. `queued_seconds` includes time queued; `wait_seconds` gives the free wait when known. `clip_url` is the finished MP4; `segment_urls` lists finished pieces before then; `cost` has the credits so far, `start_up_seconds`, `render_seconds` and `idle_seconds`, and `estimated_total_credits` (plus `estimated_minutes_left` while rendering).\\n5. `cloud_render_stop` when the work is done. `cloud_render_list` (with `name` to find jobs by name), `cloud_render_cancel`, `cloud_render_resume` and `cloud_render_machine` (each machine\'s `phase` and `billing`) match the CLI commands above.\\n","references/editor.md":"# Native VideoDraft Editor reference\\n\\nUse this reference when the user wants to assemble, cut, caption, mix, lay out, inspect, or export a local VideoDraft Editor project. The native editor is deterministic and local. Cloud generation remains in the `videodraft` CLI or hosted MCP.\\n\\n## VideoDraft ADE preference rule\\n\\nWhen `videodraft_editor` tools are exposed and no chosen app or existing external project takes precedence, treat the native editor as available and make it the default surface for production, timeline assembly, and final export. It is headless by design, so a hidden window or an untouched Open Editor button does not justify using hosted production instead.\\n\\nHonor the user\'s chosen app, an existing project\'s editing surface, and VideoDraft ADE\'s `<creative_routes>` before applying this native-editor reference. An explicit current request takes precedence over the saved route. For a chosen external app, work directly there with its available scripting, CLI, verified MCP and Computer Use, preserving the editable project. When `creative_apps` is actually exposed, read that app\'s bundled guide; when `creative_mcp` is exposed, use its live discovery and the guide\'s connection/recovery rules. Neither tool is a public `videodraft` CLI command or guaranteed outside VideoDraft ADE. Do not create a `.vdproject` merely to hand an external-app task back to the chosen application.\\n\\nFor a native production, use cloud tools for asset generation and optional script/storyboard work, then import the results. Do not call hosted `produce_project` / `videodraft produce` or `export_video` / `videodraft export` unless the user explicitly requests an editable web production, or the native editor is unavailable and no external app is selected. If a native tool call fails after the editor was available, report or recover that native failure rather than silently switching surfaces. The editing destination does not change the generation model, payer or spending limits.\\n\\n## Choose the correct surface\\n\\n- `videodraft` and the hosted VideoDraft MCP generate assets and can manage hosted web projects. They use the user\'s VideoDraft account and credits. In VideoDraft ADE, use them mainly as the source of generated media and optional storyboards for the native production.\\n- `videodraft_editor` edits local `.vdproject` packages. It has no generation, account, model, or credit tools.\\n- Inside VideoDraft ADE on a supported Mac, the editor MCP is injected automatically for Claude, Codex, OpenCode and Grok in both Code and VideoDraft modes. It starts headlessly before the chat opens. The user does not need to click Open Editor, and closing or hiding the editor window does not stop headless editing.\\n- Outside that environment, use the editor only if `videodraft_editor` MCP tools are already exposed or the `videodraft-editor` executable is on PATH. Do not confuse the public `videodraft` cloud CLI with the separate native editor executable.\\n\\nPrefer the direct MCP tools when they are available. The terminal bridge is useful for scripts, diagnostics, or an agent session where the MCP was not injected.\\n\\n## Which editor tools you have\\n\\nCurrent editors expose eight workflow tools: `project_manage`, `edit_snapshot`, `edit_apply`, `edit_undo`, `library_manage`, `inspect`, `speech_apply`, and `delivery_manage`. Use them whenever `edit_apply` is available. Everything below describes them.\\n\\nEarlier editors expose a different set of tools. If `edit_apply` is not in your catalog, follow the live tool descriptions; the working rules below still apply.\\n\\nThe live tool descriptions and schemas are authoritative. When they differ from this reference, follow them.\\n\\nService tools (`project_manage`, `library_manage`, `inspect`, `speech_apply`, `delivery_manage`) take `operation` and `parameters`, plus an optional `context` (see [Keep a reliable editing model](#keep-a-reliable-editing-model)):\\n\\n```json\\n{\\"operation\\": \\"import\\", \\"parameters\\": {\\"source\\": {\\"path\\": \\"/Users/me/clips\\"}}}\\n```\\n\\n### Parameters at a glance\\n\\nEach operation\'s schema has the full list. These are the fields that matter most, and the ones most often confused:\\n\\n| Tool and operation | Key `parameters` |\\n| --- | --- |\\n| `project_manage` `project` | `action` (`list`, `open`, `create`, `close`); `id`, `name` or `path` to open; `name`, `fps`, `aspectRatio`, `quality` to create |\\n| `edit_snapshot` (no `parameters`) | `includeLibrary`, a `startFrame`/`endFrame` window, `offset`/`limit` paging, `context` for later pages |\\n| `edit_apply` (no `parameters`) | `actions`; optional `context`, `requestId`, `previewOnly` |\\n| `library_manage` `import` | `source` with one of `path`, `url`, `bytes` + `mimeType`, or `matte`; optional `name`, `folder`. A `.srt` or `.vtt` file becomes captions |\\n| `library_manage` `list` | `ids` to poll imports, `pending`, `folder` |\\n| `inspect` `timeline` | a `startFrame`/`endFrame` window; there is no clip filter |\\n| `inspect` `frame` | `startFrame` for one frame; add `endFrame` and `maxFrames` to sample a range |\\n| `inspect` `media` | `mediaRef` (a library asset, not a file path), `startSeconds`/`endSeconds` in source seconds, `wordTimestamps`, `overview` |\\n| `inspect` `transcript` | a `startFrame`/`endFrame` window, `granularity` (`words` or `segments`), `clipId` |\\n| `inspect` `color` | `clipId` with `atFrame`, or `mediaRef`; optional `reference` |\\n| `speech_apply` `words` | `words`: transcript word indices, each one index or a `[first, last]` pair; or `matches`: exact words to remove everywhere; `pacing` |\\n| `speech_apply` `silence` | none |\\n| `speech_apply` `captions` | caption `style`, `position` and look fields; it finds the speech itself. `style` `plain` (sentences without a preset) takes `positionY` or `transform.centerY`, not `position` or `punctuation` |\\n| `delivery_manage` `submit` | `mode`, `codec`, `resolution`, `outputPath` (its folder must already exist); `captionGroupId` and `wordTiming` for `srt` and `vtt`; `check: false` skips a video\'s export check |\\n| `delivery_manage` `jobs` | `action` `list` (every job with its progress, warnings, output path and check findings; with a `jobId`, that job with all its findings), `cancel` with a `jobId`, or `dismiss` with a `jobId` and optional `findingIds` |\\n\\n`previewOnly` exists only on `edit_apply`. Service operations apply immediately.\\n\\n### `edit_apply` actions at a glance\\n\\nEvery action puts its fields beside `kind`, for example `{\\"kind\\": \\"adjust\\", \\"clipId\\": \\"c1\\", \\"speed\\": 2}`. `remove`, `adjust`, `replace`, `transition`, `mask`, `text`, `grade` and `effects` take `clipId` for one clip or `clipIds` for several; `animate`, `extract`, and the rows of `move` and `split` take a single `clipId`. Advanced actions cannot take `as`, but their clip ids accept `@name`. The one exception is `transition`, whose own `kind` field names the style, so its fields go inside `parameters`: `{\\"kind\\": \\"transition\\", \\"parameters\\": {\\"clipId\\": \\"c2\\", \\"kind\\": \\"dipToBlack\\"}}`. These `actions` place a clip, warm it and add a vignette:\\n\\n```json\\n[{\\"kind\\": \\"place\\", \\"assetId\\": \\"\u2026\\", \\"atFrame\\": 0, \\"as\\": \\"shot\\"},\\n {\\"kind\\": \\"grade\\", \\"clipId\\": \\"@shot\\", \\"adjustments\\": {\\"temperature\\": 7500}},\\n {\\"kind\\": \\"effects\\", \\"clipId\\": \\"@shot\\", \\"effects\\": [{\\"type\\": \\"finish.vignette\\", \\"params\\": {\\"strength\\": 35}}]}]\\n```\\n\\n| Advanced `kind` | Key fields |\\n| --- | --- |\\n| `place_batch` | `entries: [{mediaRef, startFrame, endFrame or source, trackIndex}]`, not the concise `assetId`, `atFrame`, `durationFrames`; leave `trackIndex` off every entry for a new track |\\n| `insert_batch` | `trackIndex`, `atFrame`, `entries: [{mediaRef, durationFrames or source}]`; later clips move right |\\n| `move` | `moves: [{clipId, toFrame, toTrack}]` |\\n| `remove` | `clipId` or `clipIds`; leaves a gap |\\n| `split` | `splits: [{clipId, atFrame}]`, or `trackIndex` with `frames` |\\n| `extract` | `trackIndex` with `ranges: [[start, end]]` in frames, or `clipId` with `ranges` and `units` (`frames`, or source `seconds`); closes the gap |\\n| `adjust` | `clipId` or `clipIds` plus any of `durationFrames`, `trimStartFrame`, `trimEndFrame`, `speed`, `speedCurve` (`{preset}`, or `{points: [{t, rate}]}` with `t` from 0 to 1 along the source), `preservesPitch`, `volume`, `opacity`, `transform` (`centerX`, `centerY`, `width`, `height`, `flipHorizontal`, `flipVertical`), `blendMode` |\\n| `animate` | `clipId`, `property` (`volume`, `opacity`, `rotation`, `position`, `scale`, `crop`), `keyframes: [[frame, ...values]]` with frames counted from the clip\'s start; `position` is the top-left corner |\\n| `arrange` | `layout`, `slots: [{slot, clipIds or mediaRef, anchor}]`, `fit` (`fill` or `fit`); `mediaRef` slots also need `endFrame` |\\n| `transition` (fields inside `parameters`) | `clipId` or `clipIds` (the clip after each cut), `kind` (`crossDissolve`, `dipToBlack`, `dipToWhite`, `blurDissolve`, `push`, `linearWipe`, `whipPan`, `crossZoom`, or `none` to remove), `durationFrames`, `params` (`direction` 0 to 3 for left, right, up, down; `feather`; `blur`; `intensity`) |\\n| `mask` | `clipId` or `clipIds`, `shape` (`rectangle`, `ellipse`, `none`), `centerX`, `centerY`, `width`, `height` (0 to 1 of the clip\'s own frame), `feather`, `strength`, `inverted` |\\n| `replace` | `clipId` or `clipIds`, `mediaRef` (a library asset of the same kind), `trim` (`keep`, the default, or `reset`), `linkedAudio` (`follow`, the default, or `keep`) |\\n| `tracks` | `reorder: [{trackId, to}]`, `set: [{trackId, muted, hidden, syncLocked}]`, `remove: [{trackId}]`; there is no add, since placing without a track makes one |\\n| `titles` | `entries: [{startFrame, endFrame, content}]`, optionally with `trackIndex` (on every entry or none), `style`, `animation`, `transform` and typography (`fontName`, `fontSize`, `color`) |\\n| `text` | `clipId`, `clipIds` or `captionGroupId`, with `content`, `style`, `position`, `animation` or typography |\\n| `grade` | `clipId` or `clipIds`, `adjustments`, `wheels`, `curves`, `hueCurves`, `lut`, `reset` |\\n| `effects` | `clipId` or `clipIds`, `effects: [{type, params, enabled}]`, `remove: [type]` |\\n\\n- `grade`: `adjustments` holds `exposure` (EV, -4 to 4), `temperature` (kelvin, 1800 to 15000, 6500 neutral, higher is warmer), `tint` (-150 magenta to 150 green); `contrast`, `highlights`, `shadows`, `whites`, `blacks`, `vibrance` and `saturation` are signed percents (-100 to 100, 0 neutral), not factors like 1.2. `wheels`: `shadows`, `midtones`, `highlights`, each `{hue, strength, brightness}`. `curves`: `luma`, `red`, `green`, `blue` as `[x, y]` points from 0 to 1. `hueCurves`: `targets: [{hue, rotate, saturation, lightness}]`. `lut`: `{path, mix}`, with the `storedPath` from `prepare_look`. Out-of-range values are refused.\\n- Effect `type` ids and their knobs, which go inside `params` and run 0 to 100 unless noted. Defaults leave the picture unchanged, so send the knob you want to see:\\n - `finish.vignette`: `strength` and `curvature` (-100 to 100; positive `strength` darkens the edges), `size`, `falloff`\\n - `finish.grain`: `strength`, `grainSize` (0.5 to 6 px); `finish.glow`: `strength`, `haloRadius` (px), `cutoff`, `halation`\\n - `defocus.gaussian`: `blurRadius` (px); `defocus.motion`: `streakLength` (px), `streakAngle` (-180 to 180 degrees)\\n - `texture.clarity`: `localContrast`, `hazeRemoval` (-100 to 100); `texture.sharpen`: `strength` (0 to 200); `texture.denoise`: `strength`\\n - `matte.chroma`: `screenHue` (0 to 360 degrees, 120 is green), `range`, `edgeSoftness`, `spillSuppression`\\n- `arrange` layouts and their slots (fill every slot): `fullscreen` (`stage`); `split` (`left`, `right`); `stack` (`top`, `bottom`); `corner_top_left`, `corner_top_right`, `corner_bottom_left`, `corner_bottom_right` (`stage`, `corner`); `quad` (`top_left`, `top_right`, `bottom_left`, `bottom_right`); `side_panel` (`stage`, `panel`); `thirds` (`left`, `middle`, `right`). The layout picks the corner; `anchor` only biases the crop.\\n- `trackIndex` and `toTrack` are an existing track\'s `order` from `edit_snapshot` (0 draws on top), counted at that point in the recipe: a track an earlier action adds shifts them. `tracks` takes `trackId` handles instead.\\n\\n## Start with the intended project\\n\\nAn MCP session can begin without a project selected. Project selection belongs to the session, not to whichever editor window happens to be frontmost.\\n\\n1. If the user named an existing project but its identity is unclear, call `project_manage` with `operation: \\"project\\"` and `parameters.action: \\"list\\"`.\\n2. Open the exact project with `action: \\"open\\"` and the returned `id`, an unambiguous `name`, or the `.vdproject` `path`.\\n3. Create only when the user wants a new local edit. `action: \\"create\\"` accepts optional `name`, `fps`, `aspectRatio`, and `quality`.\\n4. Treat `isActive` as this session\'s target and `isVisible` as the project shown in the UI. Headless editing only needs the session target.\\n5. Use `action: \\"close\\"` only when closing is part of the task. It saves first and never deletes the project. Afterwards other calls answer `no_project` until you open or create a project again.\\n6. Your session edits its own project even while another project\'s window is in front. If the user says \\"this clip\\" or \\"here\\" and `edit_snapshot` has no `selection`, or `selection.visible` is false, they are looking at something else: ask before editing. An older editor may instead refuse the write because another project is in front; tell the user rather than taking the front yourself. Never change which project is in front with Computer Use or other UI automation.\\n\\nOther `project_manage` operations: `create_timeline` and `select_timeline` for additional timelines, and `configure` for project settings (a frame-rate change applies to every timeline).\\n\\nDo not substitute a hosted project ID for a native project. A hosted project can supply scripts, storyboards, and generated media, but the native edit is a separate `.vdproject` package.\\n\\n## Keep a reliable editing model\\n\\n- Opening or creating a project, and creating or selecting a timeline, returns `data.snapshot` (the `edit_snapshot` view with the library: format, tracks, clips and assets) and a `context`, so you can edit right away. Call `edit_snapshot` only after an out-of-band user edit, to page a long timeline with `offset` and `limit`, or for handles you lack.\\n- `context` (`epoch`, `timelineId`, `revision`) is optional on every write except `edit_undo` and `project_manage` `project`, which take none. Without it, a write applies to the current state. With it, the editor refuses the write if the project changed since that context, which is what you want when a person may be editing at the same time. Every reply returns a fresh `context`. After `context_expired` (a reopen or restart), take a new snapshot.\\n- Timeline positions and durations are frames at `format.fps`. `sourceSeconds` values are seconds in the source file. Pass values as returned; do not multiply or divide by fps yourself.\\n- IDs are short handles. Pass them back exactly as returned; do not derive them from UUIDs. Tracks keep stable handles; indexes can change.\\n- When the user says \\"this clip\\", \\"these captions\\", or \\"here\\", take a fresh `edit_snapshot` (a one-frame window is enough). Its `selection` names what they selected in the project\'s window, in the snapshot\'s handles: `clipIds`, `captionGroupIds`, a `gap`, the marked `range`, and library `mediaIds`; no `selection` means nothing is selected. `currentFrame` is the playhead. `visible: false` means the user is not looking at this project.\\n- Send writes serially. Parallel writes against one project race each other\'s context.\\n- A refused call answers `status: \\"rejected\\"`: nothing changed, so fix what the message names and send it again. A service write that answers `failed` may have applied before a save or connection failed; inspect before repeating it.\\n- Use `inspect` for detail and verification: `timeline` for exact clip and track properties, `frame` for rendered frames of the composited result, `media` before describing source content, `color` for scopes, and `transcript` to locate spoken words.\\n- Clip `volume` is linear gain: `0` is silent, `1` plays the clip as recorded, and up to `5.62` (+15 dB) boosts it. Volume keyframes stay `0` to `1`. Boost sparingly and read the export check, which reports clipping.\\n\\n## Edit with recipes\\n\\n`edit_apply` takes an ordered list of `actions`, plus an optional `context` and `requestId`. The editor validates the whole recipe before changing anything, then applies it as one undo step. If any action fails, nothing changes and the error names the action. An applied reply lists the resulting `clips` (position, length, source window, text); use it to confirm the edit instead of re-reading.\\n\\n- Concise actions: `place` (an `assetId` at `atFrame`, optionally on a `trackId`, with `durationFrames` or `sourceSeconds`, `mode` `overwrite` or `insert`), `trim` (a `clipId` to a `sourceSeconds` window), and `title` (`text` at `atFrame` for `durationFrames`, optional `look` and `motion`). Name an action with `as` and address its clip in later actions as `@name`.\\n- Advanced actions put their fields beside `kind` too: `place_batch`, `insert_batch`, `move`, `remove`, `split`, `extract`, `adjust`, `animate`, `arrange`, `transition` (fields inside `parameters`), `mask`, `replace`, `tracks`, `titles`, `text`, `grade`, and `effects`. Their field help lists every supported effect, grading control, mask, layout, speed curve, and caption control.\\n- Use `arrange` for split screens, picture-in-picture, grids, and canvas placement, and `tracks` to fix stacking. Do not synthesize layouts from generic transforms or keyframes.\\n- Use `replace` to swap a clip\'s media and keep its timing, effects, keyframes, and links, for example a re-render of the same shot. `trim: \\"keep\\"` holds the clip\'s source offsets; `trim: \\"reset\\"` plays the new media from its first frame and keeps linked audio in sync.\\n- Put every edit a request needs into one recipe: placing, trimming, titling, grading and effects together are one call and one undo step. Use `previewOnly: true` to validate a large or risky recipe without editing.\\n- Send a `requestId` when a retry must not edit twice: repeating the identical request with the same `requestId` returns the original receipt, even after a dropped connection. Without one, a repeated request applies again. Use a new `requestId` for a different edit.\\n- `applied_unsaved` means the edit applied but saving failed. If you sent your own `requestId`, repeat the identical request to retry the save, not the edit. Without one, do not resend: a repeat would apply the edit again.\\n- `edit_undo` reverses this connection\'s latest edit while it is still the top undo step. It never undoes the user\'s own edits. Take a new snapshot afterward.\\n\\nEdits are undoable. Do not ask for confirmation before each ordinary edit. Ask one focused question only when the user\'s creative direction is materially ambiguous.\\n\\n## Bring generated or local media into the editor\\n\\nFor b-roll and establishing shots, search free stock first (`videodraft stock search \\"<query>\\"`), import the pick with `videodraft stock import <ref>`, and feed the returned CDN URL to `library_manage` `import` as `source.url`. It costs no credits.\\n\\nOtherwise use cloud generation for new assets, save or download the outputs, then call `library_manage` with `operation: \\"import\\"`:\\n\\n- `source.path`: absolute local file or directory. A directory imports recursively and preserves its folder structure.\\n- `source.url`: HTTPS asset URL. Set `mimeType` when a signed URL has no usable extension.\\n- `source.bytes`: small base64 media with a required `mimeType`.\\n- `source.matte`: generated solid-color image.\\n\\nReadiness differs by source, and so does the poll that detects it:\\n\\n- **URL and single-file path** imports return `status: \\"downloading\\"` with one `mediaRef`. Poll `library_manage` `list` with `parameters.ids: [mediaRef]` until `generationStatus` is absent.\\n- **Directory** imports also return `status: \\"downloading\\"` with one placeholder `mediaRef` for the batch. Poll it the same way; the folder\'s assets appear when `generationStatus` clears. (`pending: true` remains a fallback that lists every unresolved import.)\\n- **Inline bytes and matte** imports finish inline and come back `status: \\"ready\\"`; no polling is needed.\\n\\nAn import\'s `mediaRef` is the `assetId` that recipe actions take. Never place a pending asset on the timeline. `generationStatus` is the signal: `preparing`, `generating`, `downloading`, and `rendering` mean keep polling, absent means usable, and **`failed` is terminal**. Report it or retry the import explicitly; never poll on. Do not treat \\"not downloading\\" as ready.\\n\\nA `.srt` or `.vtt` caption file (by `path`, `url`, or `bytes` with `mimeType` `application/x-subrip`, `text/srt`, or `text/vtt`) is not added to the library. Its captions go onto a new caption track at the times the file gives, as one undo step, and the reply names the new `captionGroupId` to restyle with a `text` action.\\n\\nFor a batch of local outputs, download them into one workspace directory and import that directory once when practical. This is safer and faster than racing many import calls.\\n\\nTo apply a LUT, first store it with `library_manage` `prepare_look` (`parameters.path` to a `.cube` file), then use the returned `storedPath` in a `grade` action.\\n\\n## Background-removal handoff\\n\\nKeep paid processing in the VideoDraft CLI or cloud MCP. The editor\'s\\n`library_manage` operation `background_removal`, when present in the live schema,\\nconnects an existing clip to that workflow without replacing its linked sound.\\nIt does not generate, upload, quote or charge. Older editors without this operation\\ncan keep the completed asset for later; do not claim the guarded handoff is available.\\n\\n1. Read the selection if the user means an existing clip. Call `library_manage`\\n with `operation: \\"background_removal\\"` and `parameters: {\\"action\\":\\"prepare\\",\\n \\"clipId\\":\\"\u2026\\"}`. Keep its `sourceToken` and use `source.path`, the original\\n full file. Do not send a thumbnail, a composited timeline frame, or a trimmed\\n excerpt. Video limits apply to the whole source, even if the timeline uses only\\n a small part of it. This handoff currently requires a result of the same full\\n source duration and aspect ratio.\\n2. Check the removal tool exists before any paid submission. In VideoDraft ADE, use the\\n exact app-bundled CLI from the session instructions. A pre-release CLI may lack\\n `remove-background`; do not install or substitute another CLI. Its generic\\n `tools schema remove_image_background` / `remove_video_background` and `call`\\n can reach these tools once the server deploys them. If the server also lacks\\n the tool, keep the edit unchanged and explain that the release is pending.\\n Generic `call` takes a public URL, not a local path: use `upload` first and\\n retain that exact uploaded URL with the operation UUID for every retry.\\n3. Quote the actual source and settings, then submit with `max_credits` (CLI\\n `--max-credits`) and a retained UUID idempotency key. Images return transparent\\n PNG; video returns VP9 WebM with alpha. A timeout is a status check or a retry\\n of the same operation, never a second paid submission.\\n4. PNG imports directly. The native editor cannot decode WebM. Before charging\\n for a video intended for this editor, establish that an existing FFmpeg with\\n the `libvpx-vp9` decoder and `prores_ks` encoder is available. When VideoDraft ADE\'s runtime\\n discovery is exposed, its installed FFmpeg may be used by absolute path. If\\n none is available, explain that video conversion needs setup; never silently\\n install a runtime or flatten the output. Keep the original WebM under `media/`.\\n Convert a separate MOV with the explicit `libvpx-vp9` input decoder; FFmpeg\'s\\n other VP9 decoder can discard alpha. For constant-frame-rate output, use the\\n measured output frame rate, not an assumed 30 fps:\\n\\n ```sh\\n /absolute/path/to/ffmpeg -nostdin -n -c:v libvpx-vp9 -i media/cutout.webm \\\\\\n -map 0:v:0 -an -vf \'setpts=PTS-STARTPTS\' -r <measured-output-fps> \\\\\\n -fps_mode cfr -c:v prores_ks -profile:v 4 -pix_fmt yuva444p10le \\\\\\n media/cutout-alpha.mov\\n ```\\n\\n This MOV intentionally has no sound; applying it keeps the clip\'s original\\n linked audio. Check frame count, duration, dimensions and alpha before import.\\n Do not use H.264, rename `.webm` to `.mov`, assume a codec\'s alpha capability\\n proves the particular output retains transparency, or overwrite the WebM.\\n For variable-rate output, use a timestamp-preserving conversion and verify\\n its last-frame duration; do not force the example\'s constant-rate path.\\n ProRes intermediates can be much larger than the WebM, so check disk space.\\n5. Import the PNG/MOV with `library_manage import` and wait for its asset to\\n become ready. Call `library_manage` `background_removal` with\\n `parameters: {\\"action\\":\\"apply\\",\\"clipId\\":\\"\u2026\\",\\"sourceToken\\":\\"\u2026\\",\\n \\"assetId\\":\\"\u2026\\"}`. It verifies transparency and source identity, preserves\\n the cut and original linked sound, and makes one undoable replacement.\\n An edited clip or changed source refuses the old token. Review the existing\\n result and prepare again; do not regenerate automatically.\\n6. Inspect frames against a contrasting background and verify the final export.\\n A plain MP4 cannot carry alpha; a composited export should show the intended\\n background through the cutout. Original media and the returned cutout stay\\n available after Undo.\\n\\n## Speech edits\\n\\n`speech_apply` runs speech work as separate operations, not recipe actions: `words` removes transcript words, `silence` trims dead air, and `captions` generates styled captions. Read a fresh transcript with `inspect` `transcript` after any speech edit, because word positions change.\\n\\n## Service operations and timeouts\\n\\n`project_manage`, `library_manage`, `speech_apply`, and `delivery_manage` writes have no retry receipts. After a timeout, inspect the outcome (a snapshot, a library `list`, or delivery `jobs`) before repeating a write. A failed service write may have applied an edit before saving failed, so read its `data` and the current state.\\n\\n## Edit and verify\\n\\nA dependable sequence:\\n\\n1. `project_manage` to select or create the local project; its reply carries the snapshot.\\n2. `inspect` `media` when content selection matters.\\n3. One `edit_apply` recipe with every clip, track, layout, text, audio, color, and effect change the request needs; `speech_apply` for word cuts, silence, and captions.\\n4. Check the reply\'s `clips`; use `inspect` `frame` only when visual composition or layer order matters.\\n5. `edit_undo` if the result is wrong and the next recipe would not cleanly correct it.\\n\\n## Export\\n\\nCall `delivery_manage` with `operation: \\"submit\\"`. Submission is not completion: it returns a job, destination, and `started` or `queued` status.\\n\\n- Use `mode: \\"video\\"` for H.264, H.265, or ProRes.\\n- Use `mode: \\"xml\\"` (XMEML) for Premiere Pro **and DaVinci Resolve**; Resolve reads XMEML natively. Use `mode: \\"fcpxml\\"` with `fcpxmlTarget: \\"fcp\\"` for Final Cut Pro: the default target writes the Resolve flavor. `fcpxmlTarget: \\"resolve\\"` stays for older Resolve workflows, but new Resolve handoffs use `xml`.\\n- Use `mode: \\"videodraft\\"` for a self-contained project package.\\n- Use `mode: \\"srt\\"` or `mode: \\"vtt\\"` for a subtitle file of the captions: words and timing only, without styling. `captionGroupId` picks a caption group; `wordTiming: true` adds each word\'s start to a `vtt`.\\n- Omit `outputPath` unless the user named a destination; the default is `~/Downloads`. The editor does not create folders, so a named destination\'s folder must already exist.\\n- Use `operation: \\"jobs\\"` with `parameters.action` `list` to follow progress, warnings, and results. Cancel only when the user asks or the just-queued settings were wrong. Do not infer that an export is stuck from elapsed time alone.\\n- A finished video export is then checked in the background for black picture, gaps, sound that drops out or clips, and missing media. `list` shows each job\'s `findingCount` and its first three findings; `list` with that `jobId` returns every finding. Findings are warnings on a completed export: tell the user what was found and where, rather than treating the export as failed.\\n\\n## Terminal bridge\\n\\nVideoDraft desktop terminals expose `videodraft-editor`, which controls the same process and tools:\\n\\n```bash\\nvideodraft-editor status\\nvideodraft-editor list-tools\\nvideodraft-editor tool project_manage --json \'{\\"operation\\":\\"project\\",\\"parameters\\":{\\"action\\":\\"list\\"}}\'\\nvideodraft-editor tool edit_snapshot --project \\"/path/to/My Video.vdproject\\" --json \'{\\"includeLibrary\\":true}\'\\nvideodraft-editor show\\nvideodraft-editor hide\\n```\\n\\nEach `videodraft-editor` invocation is a separate connection, so a project opened by one call is NOT remembered by the next. Pass `--project <path>` on every `tool` call that operates on a project; without it, a follow-up call answers `no_project` (no project is open for this session) even though the open succeeded. For the same reason, `edit_undo` has nothing to undo from the terminal: it only reverses an edit made on its own connection.\\n\\nControl and tool commands auto-start a headless editor if none is running. `show` only reveals the already-running UI. Use `videodraft-editor tool <name> --json -` to read a JSON object from stdin when shell quoting would be fragile. Never read, copy, or expose the editor\'s rotating local authentication secret.\\n","references/examples.md":"# Recipes\\n\\nWorking patterns for common asks. All assume auth (`videodraft login` once, or `VIDEODRAFT_API_KEY` in the environment) and use `--json` for parsing.\\n\\nInside VideoDraft ADE, use these recipes for asset generation and optional script/storyboard stages.\\nHonor the chosen app, existing project and `<creative_routes>` as described in SKILL.md. Hand the\\nresults to that app for production and export ONLY when the user asked for a composed production;\\nthe native editor is the default when available and no other app takes precedence. A standalone\\noutput, such as the batch product clips in recipe 1 or the upscale in recipe 7, is finished when\\ngenerated. Recipes below that call `videodraft produce` or `videodraft export` are hosted fallbacks\\nonly. Use them when explicitly requested, or when the native editor is unavailable and no external\\napp is selected. Do not switch an external-app request to a hosted or native production silently.\\n\\n## 1. Batch product videos from a CSV\\n\\nOne 9:16 product clip per row of `products.csv` (`name,image_url,tagline`):\\n\\n```bash\\n#!/usr/bin/env bash\\nset -euo pipefail\\nmkdir -p outputs\\n\\nwhile IFS=, read -r name image tagline; do\\n job=$(videodraft generate video \\\\\\n \\"Premium product shot of ${name}: ${tagline}. Slow orbit, studio lighting.\\" \\\\\\n --model gemini-omni-1.2-flash --ar 9:16 --duration 6 \\\\\\n --start-image \\"$image\\" \\\\\\n --no-wait --json | jq -r .job_id)\\n echo \\"$name,$job\\" >> outputs/jobs.csv\\ndone < <(tail -n +2 products.csv)\\n\\n# Collect ALL results with ONE process (batched polling \u2014 one request per tick)\\nvideodraft wait $(cut -d, -f2 outputs/jobs.csv) \\\\\\n --download \\"outputs/{job_id}_{index}.{ext}\\" --json > outputs/results.json\\n# map job ids back to product names via outputs/jobs.csv\\n```\\n\\nSubmit-then-collect parallelizes server-side generation; the single multi-id `wait` keeps it to one local process and one batched poll request per tick no matter how many jobs. Gemini Omni 1.2 Flash is selected because these are six-second first-frame product clips. Estimate first: `videodraft costs gemini-omni-1.2-flash --type video --duration 6 --resolution 720p --audio` \xD7 rows, and confirm with the user.\\n\\nExtend an uploaded clip or conversationally edit an official Google interaction with Gemini Omni 1.2 Flash:\\n\\nEach extension appends 3-10 seconds at the end. Edit and extend accept EXACTLY ONE input video, so `--ref-video` cannot accompany `--source-video` or `--previous-interaction-id`; only `--ref` images can. New dialogue is allowed only when the source video is silent, so a chain of spoken beats must carry its speech in the first turn. A continuation is submitted as the prior turn\'s output, so 40 seconds total is reachable only by extending from a source of 30s or less, and a ladder dead-ends past 30s.\\n\\n```bash\\n# Google uploaded-video extension. Up to two reference images are allowed; reference videos are not.\\nvideodraft generate video --model gemini-omni-1.2-flash \\\\\\n --source-video ./ending.mp4 --ref ./wardrobe.png \\\\\\n --extend --duration 6 --resolution 1080p \\\\\\n --download ./media/extended.mp4\\n\\n# Conversational edit from the interaction_id of an earlier generation. Add --extend to lengthen instead.\\nvideodraft generate video --model gemini-omni-1.2-flash \\\\\\n --previous-interaction-id \\"$INTERACTION_ID\\" \\\\\\n --resolution 720p \\\\\\n --download ./media/continued.mp4\\n```\\n\\nFal BYOK supports the currently callable Gemini Omni 1.2 generation, basic source-edit and source-extension endpoints at zero VideoDraft credits. Its published callable v1.2 endpoints support uploaded-source extension, but not Google interaction IDs or separate edit/extend references. Do not infer a Fal route or retry on paid Google while Fal BYOK is active.\\n\\n## 2. Hosted full marketing video from one idea (fallback)\\n\\n```bash\\nvideodraft create \\"30-second launch video for Solace, a sleep-tracking ring. Calm, premium, dark palette.\\" \\\\\\n --ar 9:16 --style cinematic --json > project.json\\nPROJECT=$(jq -r .project_id project.json)\\n\\nvideodraft shots \\"$PROJECT\\" --grid --estimate # show the user the cost; get a go-ahead\\nvideodraft shots \\"$PROJECT\\" --grid\\nvideodraft produce \\"$PROJECT\\"\\nvideodraft generate music \\"minimal ambient, warm pads, 60 BPM\\" --attach \\"$PROJECT\\"\\nvideodraft generate audio \\"Extend @Audio1 into a 20-second transition\\" --ref-audio ./intro.wav --format wav --download ./transition.wav\\nvideodraft export \\"$PROJECT\\" --download solace-launch.mp4\\n```\\n\\nUse this complete hosted path only when the user requested a web project, or the native editor is unavailable and no external app is selected. Otherwise stop after the storyboard/assets and finish in the selected editing app; for the default native `.vdproject`, export with `delivery_manage`. The hosted project stays editable at the URL in `project.json` (`.urls`).\\n\\n## 3. Talking-head (avatar) video\\n\\nWhen the user has no portrait, generate a clear front-facing avatar image first. Skip this step when they supplied one or an existing character should be reused.\\n\\n```bash\\nvideodraft generate image \\\\\\n \\"Front-facing head-and-shoulders portrait of a friendly coffee expert, direct eye contact, natural expression, clean studio background\\" \\\\\\n --model nano-banana-2.1 --ar 9:16 --download ./media/avatar.png\\n\\nSCRIPT=$(videodraft avatar script \\"why our espresso subscription saves you money\\" --style ad-style --json | jq -r .script)\\nAVATAR=$(videodraft avatar create ./media/avatar.png --script \\"$SCRIPT\\" --voice elevenlabs-kPzsL2i3teMYv0FxEYQ6 --ar 9:16 --json | jq -r .avatar_video_id)\\nvideodraft avatar render \\"$AVATAR\\" --resolution 720p # VEED Fabric paid step; check the cost first with --estimate\\n```\\n\\n`avatar script` and `avatar create` (including speech) are bundled/free. In this example only the optional portrait generation and Fabric render spend credits.\\n\\nIf the portrait is low resolution, enhance it before `avatar create`:\\n\\n```bash\\nvideodraft upscale image ./founder-small.jpg --scale 2x --download ./media/founder-upscaled.png\\n```\\n\\nFor a one-off portrait animation without creating a managed avatar record:\\n\\n```bash\\nvideodraft avatar fabric ./founder.jpg \\\\\\n --text \\"Welcome to the weekly product update.\\" \\\\\\n --voice-description \\"warm, confident American presenter\\" \\\\\\n --resolution 720p --download ./media/presenter.mp4\\n```\\n\\nFor a short, sharp clip from speech or a song the user already has (5-14.8s of audio is used):\\n\\n```bash\\nvideodraft avatar h3-lipsync ./singer.png --audio ./chorus.mp3 \\\\\\n --resolution 1080P --audio-duration 12 --estimate\\nvideodraft avatar h3-lipsync ./singer.png --audio ./chorus.mp3 \\\\\\n --resolution 1080P --download ./media/singer-lipsync.mp4\\n```\\n\\nWhen the user already has both the video and replacement speech:\\n\\n```bash\\nvideodraft avatar lipsync ./presenter.mp4 \\\\\\n --audio ./localized-voiceover.mp3 \\\\\\n --sync-mode loop --download ./media/presenter-localized.mp4\\n```\\n\\nEdit an existing video with a dedicated edit model. Image references in the Gemini example require Google; Fal BYOK source edits accept no additional reference media:\\n\\n```bash\\nvideodraft models video --category video_edit\\nvideodraft edit video ./product-demo.mp4 \\\\\\n \\"Preserve the product and camera motion, and match the reference lighting\\" \\\\\\n --model gemini-omni-1.2-flash --ref ./evening-style.jpg \\\\\\n --resolution 1080p \\\\\\n --download ./media/product-demo-reframed.mp4\\n\\nvideodraft edit video ./product-demo.mp4 \\\\\\n \\"Turn the room into a warm evening scene while preserving the product and camera motion\\" \\\\\\n --model kling-o3-video-ref-edit --ref ./evening-style.jpg \\\\\\n --preserve-audio --download ./media/product-demo-evening.mp4\\n```\\n\\nTransfer motion from a reference clip onto a character image:\\n\\n```bash\\nvideodraft edit motion ./character.png \\\\\\n \\"Apply the dancer\'s movement to this character while preserving identity\\" \\\\\\n --motion-video ./dance-reference.mp4 \\\\\\n --model kling-v3-motion-control --quality pro \\\\\\n --download ./media/character-dance.mp4\\n```\\n\\n## 4. Hosted changelog video in CI\\n\\nIn a GitHub Action with `VIDEODRAFT_API_KEY` set as a secret:\\n\\n```bash\\nNOTES=$(git log --oneline v1.2.0..HEAD | head -20)\\nvideodraft create \\"Weekly product update video. Energetic, 20 seconds. Changes: ${NOTES}\\" --ar 16:9 --json > p.json\\nPROJECT=$(jq -r .project_id p.json)\\nvideodraft shots \\"$PROJECT\\" && videodraft produce \\"$PROJECT\\"\\nvideodraft export \\"$PROJECT\\" --download changelog.mp4 --wait-timeout 30m\\n```\\n\\n## 5. Variations and picking a winner\\n\\n```bash\\nvideodraft generate image \\"logo concept: minimalist fox, geometric\\" --num 4 --download \\"./concepts/{job_id}_{index}.{ext}\\" --json\\n# Show all 4 to the user; regenerate the chosen one at higher res:\\nvideodraft generate image \\"<same prompt>\\" --model nano-banana-pro --resolution 4K\\n```\\n\\n## 6. Reaching tools without a curated command\\n\\n```bash\\nvideodraft tools list --json | jq -r \'.[].name\'\\nvideodraft tools schema attach_media_to_shot --json\\nvideodraft call attach_media_to_shot --args \'{\\"project_id\\":\\"...\\",\\"scene_index\\":0,\\"shot_index\\":1,\\"media_url\\":\\"https://...\\",\\"media_type\\":\\"video\\",\\"duration_seconds\\":6}\'\\n```\\n\\nAnything the hosted VideoDraft MCP exposes, including character studio, product studio, and hosted project data, is reachable this way even before it gets a curated command. Native `.vdproject` editing uses the separate `videodraft_editor` MCP described in SKILL.md.\\n\\n## 7. Enhance an existing asset without changing it\\n\\n```bash\\n# Light image cleanup, no enlargement\\nvideodraft upscale image ./poster.png --scale 1x --download ./media/poster-enhanced.png\\n\\n# General image and video enlargement\\nvideodraft upscale image ./frame.png --scale 2x --download ./media/frame-2x.png\\nvideodraft upscale video ./clip.mp4 --resolution 1080p --download ./media/clip-1080p.mp4\\n\\n# Rebuild detail in a tiny/blurry source (generative), or reimagine it (creative)\\nvideodraft upscale image ./tiny.jpg --scale 4x --mode generative --model \\"Wonder 3.5\\" --download ./media/tiny-4x.png\\nvideodraft upscale video ./ai-clip.mp4 --resolution 4k --mode generative --download ./media/ai-clip-4k.mp4\\n\\n# Smoother motion or slow motion (resolution unchanged)\\nvideodraft interpolate ./clip.mp4 --fps 60 --download ./media/clip-60fps.mp4\\nvideodraft interpolate ./clip.mp4 --model Chronos --slowdown 4 --download ./media/clip-slowmo.mp4\\n```\\n\\nUse these when the content is correct and only quality or resolution needs improvement. If the poster text, composition, subject, or motion is wrong, edit or regenerate instead.\\n","references/models.md":"# Choosing models (and predicting cost)\\n\\nAlways consult the live catalog instead of memorizing this page \u2014 models change weekly:\\n\\n```bash\\nvideodraft models image --json # every image model + inputs (aspect ratios, resolutions, max refs)\\nvideodraft models video --json # every video model + inputs + per-second pricing metadata\\nvideodraft models audio --json # standalone audio/media models + pricing inputs\\nvideodraft models voices --json # TTS voices\\nvideodraft models styles --json # visual style presets\\n```\\n\\n## Task-based model selection\\n\\nFollow this order every time:\\n\\n1. The user named a model: use it, never substitute.\\n2. Otherwise pick a **Tier 1** model from the task\'s inputs, duration, audio, quality, speed, and cost, and pass it explicitly instead of relying on a blind platform fallback.\\n3. Use a **Tier 2** model only when no Tier 1 model supports the request, and say why. Never pick Tier 2 on your own for price, speed, novelty or variety.\\n\\nTier 1 is the rows marked **T1** below. Every other catalog model is Tier 2 and stays available by name. The catalogs carry this themselves: every `videodraft models image|video|audio --json` entry has `tier` (1 or 2) plus `recommended` / `recommended_for`, and the top-level `recommended` array is Tier 1, best first. Trust the catalog over this page when they disagree.\\n\\n### Images\\n\\n| Need | Choose | Why |\\n| ------------------------------------------------------------------------------------------ | ------------------------ | ----------------------------------------------------------------- |\\n| T1: Most generation, editing, text, character consistency, or reference work | `nano-banana-2.1` | Best general default; 1K/2K/4K, 14 references, thinking levels |\\n| T1: Previous default, or when temperature control is wanted | `nano-banana-2` | 1K/2K/4K and up to 14 reference images; temperature 0-2 |\\n| T1: Highest-quality complex generation or reasoning | `nano-banana-pro` | Premium Nano Banana quality and reasoning |\\n| T1: Fast, inexpensive drafts and iteration | `nano-banana-2-lite` | Fastest/cheapest Nano Banana option; 1K only, up to 14 references |\\n| T1: Posters, title cards, signs, logos, or any image with important readable text | `gpt-image-2.6-flare` | Fast OpenAI everyday generation/editing; 16 refs, 1K/2K/4K, PNG |\\n| T1: Complex multi-image composition, precise editing, or a strong alternate interpretation | `gpt-image-2.6-sunburst` | More precision, fine detail, edit consistency; slower; 16 refs |\\n| T1: Animated GIF (sticker, emoji, icon, logo sting, short looping reaction) | `gpt-image-2.6-flare` | `--gif`: 2-16 frames, looping GIF, frame size follows `--ar` |\\n| T1: Vector / SVG output (logos, icons, illustrations that must scale) | `recraft-v4` | Recraft V4.1 text-to-vector; SVG only, no reference images |\\n| T2: xAI at 2K or with a quality tier, up to 3 edit references | `grok-imagine-2.0` | 1K/2K, low/medium quality, small charge per reference image |\\n\\nIdeogram 4.5 (`ideogram-v4.5`) replaces 4.0 in the same Tier 2 position. Text-to-image: `--quality low|medium|high` (medium default), `--resolution 1K|2K`, `--ar`, `--num 1..8`, `--seed`, `--prompt-expansion true|false`. Editing: `--source-image <url|file>` plus up to four `--ref` images; without a source flag the first `--ref` is the source. `--edit-precision regular|high`; regular edits also support `--quality very_low`. `--mask <url|file>` uses black for edits, white for preserved regions and must match source dimensions; masked edits allow three additional references. Precise/masked edits require `--ar auto` with no resolution or custom dimensions. `--image-width` and `--image-height` select exact supported generation sizes or 32px-grid regular-edit sizes (min 256px, max 4MP, within 6:1). Expansion is text-to-image only. Reference/mask/precision do not add a separate surcharge.\\n\\n```bash\\nvideodraft generate image \'A poster with the exact title \\"SUMMER\\"\' --model ideogram-v4.5 --quality high --resolution 2K --num 2 --estimate\\nvideodraft generate image \'Replace the sign text with \\"OPEN\\"\' --model ideogram-v4.5 --source-image source.png --ref lettering.png --mask mask.png --edit-precision high --ar auto --quality medium\\nvideodraft costs ideogram-v4.5 --type image --quality very_low --ref-images 1 --num 2\\n```\\n\\nFLUX 3 image (`flux-3-image`, separate from `flux-3-max` video) is Tier 2: Black Forest Labs\' newest image model, on Fal or your Fal key. It generates and edits with up to 10 `--ref` images (call them \\"image 1\\", \\"image 2\\" in the prompt), `--num 1..4`, `--resolution 1K|2K|4K` (default 1K), `--prompt-expansion true|false` (default true) and `--ar` with 14 ratios (21:9 to 1:2, including 7:5 and 5:7) plus `auto`. Each image is priced by output size (resolution and ratio); `auto` lets the model pick, or follows the first reference, and is quoted at the tier\'s highest price. Without `--ar`, a new image is 16:9 and an edit is `auto`. No seed. Output is JPEG.\\n\\n```bash\\nvideodraft generate image \'Studio photo of a ceramic mug on a walnut desk, soft light from the left\' --model flux-3-image --ar 4:5 --resolution 2K --estimate\\nvideodraft generate image \'Place the mug from image 1 on the desk in image 2, keep the lighting of image 2\' --model flux-3-image --ref mug.png --ref desk.png --num 2\\n```\\n\\nGPT Image 2.6 replaces 2.5 and has two IDs: `gpt-image-2.6-flare` (fast everyday generation and editing, readable text and posters, precise composition) takes the Flare recommendation; `gpt-image-2.6-sunburst` is the alternative when extra precision, fine detail or edit consistency matters, with longer latency. Always pass a 2.6 ID; an older 2.5 ID runs on the matching 2.6 model. Other model recommendations are unchanged. Explicit `gpt-image-2` selections continue to use the previous model.\\n\\nUse the same basic image controls as GPT Image 2: `--ref` (up to 16), `--ar` (10 ratios), `--resolution 1K|2K|4K`, `--quality`, and `--num 1..4`. Output is PNG, with no seed. GPT Image 2.6 quality supports auto/low/medium/high/xhigh/max. Auto is priced at Max in customer-credit estimates, so pass `--quality high` for a cheaper render; on 2.6, low and medium are only modestly cheaper than high. The default platform path uses OpenAI; a selected personal connection stays exclusive. A Pika personal connection requires an explicit quality from low/medium/high/xhigh/max because its upstream API has no auto value. Atlas Cloud keys also run 2.6. Other unsupported connection settings return an error instead of switching payer or changing the request. 2.6\'s own complexity, markup and SVG options are not offered.\\n\\nGPT Image 2.6 also returns looping animated GIFs: add `--gif`, with `--frames 2-16` (default 8) and `--frame-ms 20-2000` (default 120; 8 frames at 120 ms is about a 1 s loop). Describe the motion and a seamless loop in the prompt, and pass `--ref` to animate a given subject. Each frame\'s size follows `--ar` (1:1 frames are 720x720, 16:9 frames 944x528); `--resolution` does not apply. OpenAI draws the frames on one grid and bills it like one still at the grid\'s size, so 2-8 frames cost the same and 9 costs about twice as much; quote with `--estimate`. GIFs suit stickers, emoji, icons, logo stings and short reactions; use a video model for long or smooth motion. GIFs are standalone AI Studio outputs, not storyboard shots or batches, and a personal Pika connection cannot make them (OpenAI, Fal and Atlas Cloud can).\\n\\n```bash\\nvideodraft generate image \'A blue glass bird\' --model gpt-image-2.6-flare --ar 1:1 --resolution 2K --quality high --estimate\\nvideodraft generate image \'A blue glass bird\' --model gpt-image-2.6-flare --ar 1:1 --resolution 2K --quality high --num 2\\nvideodraft generate image \'A blue glass bird flapping its wings, seamless loop\' --model gpt-image-2.6-flare --gif --frames 8 --frame-ms 120 --ar 1:1 --quality high --estimate\\n```\\n\\n`videodraft shots` forwards resolution and quality for both normal and grid generation. Estimates use the project\'s model and aspect when omitted; grid canvas costs may differ from ordinary shot costs. Use `videodraft costs --model <id> --ar <ratio> --resolution <tier> --quality <tier>` for a specific per-image quote.\\n\\n### Videos\\n\\n| Need | Choose | Important limits |\\n| ------------------------------------------------------------------------------------------------------ | ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\\n| T1: Most generation, first/last-frame, mixed-reference, source-edit, or extension requests | `gemini-omni-1.2-flash` | 3-15s output (first+last frames: 3-10s); 360p/720p/1080p/4K; audio always; up to 10 image inputs, and 3 reference videos <=15s each on generate only; edit source 3-15s; continuation or 3-10s extension of a 1-30s source, 40s total reachable only by extending from <=30s |\\n| T2: Grok 1.5 text, first-frame, or 1-7 image-reference clips with native audio and optional 1080p | `grok-imagine-video-1.5` | 1-15s; 480p/720p/1080p for text/first-frame; references are 480p/720p only; no last frame |\\n| T2: Document or webpage reference generation; by name otherwise | `wan-3.0` | 2-30s or auto; 480p/720p/1080p; 10 image, 5 video, 5 audio refs, 20 media files total; document/web refs require thinking |\\n| T2: 480p/768p/2K/4K with native stereo audio, first/last frames, or mixed image/video/audio references | `minimax-h3` | 5-15s; up to 9 image, 3 video, 3 audio refs, 12 files total; first 5 reference images included; reference video/audio each total <=15s |\\n| T1: Fast video and timed keyframes, before H3 Max | `flux-3-max` | 5-20s, default 5s; 720p/1080p; optional audio; first/last frames or up to 10 keyframes; High/Low reasoning (`--reasoning-level`), `--seed`; no Draft or auto duration |\\n| T1: Text, first/last-frame, or mixed-reference video with native audio and stronger prompt adherence | `minimax-h3-max` | 5-15s; 480p/768p plus pooled reference tokens; up to 9 image, 3 video, 3 audio refs, 12 files total; seed and disabled/balanced/quality prompt expansion; provider safety checker off by default |\\n| T1: Video/audio references, mixed reference media, broad aspect ratios, first+last frames over 10s | `seedance-2` | 4-15s or auto; up to 9 image, 3 video, and 3 audio refs; audio toggle; Mini/Fast are 480p/720p only |\\n| T1: Single takes past 15s, or more references than Seedance 2.0 allows | `seedance-2.5` | 4-30s or auto; up to 30 image, 10 video, and 10 audio refs (50 files total); one quality tier; 480p/720p/1080p |\\n| T2: Fast polished 3-15s video with first frame, multi-prompt, and native audio | `kling-v3-turbo` | Audio always on; Pro default; no end frame, reference-media mode, or elements |\\n| T1: Preferred Kling: 3-30s text, start/end-frame or reference video with voiced elements, no 4K | `kling-4.0` | 3-30s, 720p/1080p, audio on; text, image-to-video (start + optional end frame) or reference mode (optional start image, 10 images, 5 videos, 7 elements: 3 voiced, 3 video; 15 total); cite @Image1, @Video1, @Element1; no seed |\\n| T2: Faster, cheaper Kling 4.0 at 720p, by name | `kling-4.0-flash` | 3-20s, 720p only, audio on; same modes as Kling 4.0 but one prompt (no `--segment`), no end frame, no voices; reference mode: optional start image, 10 images, 5 videos (3-20s), 7 elements (3 video, 3-8s); 15 total; videos share 5 clips and 20s |\\n| T1: Cinematic 3-15s with reference images, image/video elements, first+last frame, audio, or 4K | `kling-o3` | 7 combined image refs/elements, reduced to 4 with a video element; Standard/Pro/4K |\\n| T1: Kling 3-15s image-to-video with first+last frame, image/video elements, multi-prompt, audio, or 4K | `kling-3.0` | Elements require a start image; image or video elements can bind voice_id; Standard/Pro/4K |\\n| T2: User explicitly requests Veo, or the selected workflow specifically needs Veo | `google-veo3.1` | Good fallback, but not the preferred general model |\\n\\nRouting rules:\\n\\n- Inexpensive pass or draft at 480p/768p with native audio: use MiniMax H3 Max.\\n- Grok 1.5 reference mode accepts 1-7 images only. Address them in array order as `<IMAGE_0>` through `<IMAGE_6>`. Do not combine reference images with `--start-image`, `--end-image`, `--ref-video`, or `--ref-audio`.\\n- Grok 1.5 first-frame mode accepts one `--start-image`, derives the output aspect ratio from that image, and does not support `--end-image`. Text and first-frame modes support 480p, 720p, or 1080p. Reference mode supports 480p or 720p.\\n- Grok 1.5 always generates native audio. Do not pass `--no-audio`, `--seed`, `--negative`, or `--quality`.\\n- Around 11-15 seconds with native audio: keep Gemini Omni 1.2 Flash as the default. With both first and last frames, choose a compatible Tier 1 alternative because Gemini caps that mode at 10s. Past 15 seconds: Seedance 2.5.\\n- Dialogue: write the line in the prompt, in quotes, with who says it and how. `gemini-omni-1.2-flash`, `seedance-2.5`, `seedance-2`, `kling-3.0` and `kling-o3` speak it natively; add `--ref-audio` on Seedance or a bound Kling voice for a specific voice. Do not generate speech separately and lip-sync it on.\\n- One existing source video that should be edited: use `videodraft edit video`, which auto-selects Gemini Omni 1.2 Flash for a source from 3 to 15s. Generic `generate video --ref-video` retains source-edit behavior when `--video-task` is omitted, but the dedicated edit command is clearer.\\n- Video supplied as a creative reference: Gemini Omni 1.2 Flash accepts up to 3 videos of at most 15 seconds each, including mixed image and video input. Creative video references are accepted on `--video-task generate` ONLY: edit and extend take exactly one input video, so `--ref-video` cannot accompany `--source-video` or `--previous-interaction-id`. Use Seedance 2.5 for more or longer video/audio references, or Seedance 2.0 when quality-tier control matters.\\n- First and last frame control: every Tier 1 video model supports it (Gemini Omni 1.2 Flash, Seedance, Kling 4.0 in image-to-video, Kling O3, Kling 3.0, MiniMax H3 Max, FLUX 3 Max). For Gemini, every start/end frame counts toward the 10-image total, leaving up to 9 references with a start frame or 8 with both frames.\\n- Extension with a 1-30s uploaded source uses Gemini Omni 1.2 Flash plus `--source-video` and `--video-task extend` (or `--extend`). Pass an explicit 3-10s output duration; the model appends it at the end, up to 40 seconds total. Creative `--ref-video` clips CANNOT accompany the source: edit and extend take exactly one input video. New dialogue is allowed only when the source video is silent; adding speech on top of a source that already has speech is refused with \\"the model is currently unable to process speech edits\\". Continuation uses `--previous-interaction-id <id>` and defaults to a conversational edit; `--video-task extend` lengthens it. A continuation is submitted as the prior turn\'s output video, so it obeys the same source limits (<=30s to extend, <=15s to edit) and the same silent-source dialogue rule. 40s total is reachable only by extending from a source of 30s or less, so a ladder dead-ends past 30s. Fal returns the video only, and its currently published callable v1.2 endpoints support uploaded-source extension through /v1.2/extend, but not Google interaction IDs or mixed source-edit references; never infer a route or silently fall back to paid Google.\\n- Wan 3.0 reference mode and frame mode are separate. It accepts 10 images, 5 videos, and 5 audio clips, at most 20 media files total. Video and audio each total at most 15 seconds. `--file-url` and `--web-url` require `--thinking`. `--auto-duration` cannot be combined with `--duration`.\\n- MiniMax H3 and H3 Max reference mode and first-plus-last-frame mode are separate. Audio cannot be the only reference. Address references as `Image 1`, `Video 1`, and `Audio 1` in array order.\\n- Seedance reference mode and first-plus-last-frame mode are separate. Do not promise reference video/audio plus a last frame in one generation.\\n- Multi-prompt sequencing: use Kling 4.0 (shots of 1-30s, 3-30s total), or Kling 3.0 Turbo, Kling O3 or Kling 3.0 (shots of 1-15s, 3-15s total). Kling 4.0 Flash takes one prompt.\\n- Kling 3.0 image-to-video and Kling O3 reference-to-video accept repeatable structured `--element` JSON. Each element is image-backed (`frontal_image_url` plus 1-3 `reference_image_urls`) or video-backed (`video_url`). Either form may include `voice_id`. Keep the voice ID inside the same element so the association is preserved. Reference them as `@Element1`, `@Element2`. Kling V3 Turbo rejects elements.\\n- Kling 2.6 Pro image-to-video accepts one or two repeatable `--voice-id` values. Cite them as `<<<voice_1>>>` and `<<<voice_2>>>` in the prompt. Voice control costs more per second. Use `videodraft kling-voices list|create|delete` to manage the separate Kling video-control voice library. Creating a voice requires a clean 5-30 second, up-to-50MB single-speaker `.mp3`, `.wav`, `.mp4`, or `.mov` sample plus `--confirm-consent`. Creation has a small charge on the platform Fal account and is free with Fal BYOK; use the create command\'s `--estimate` flag to check without creating.\\n- Kling V3 voice control (Standard and Pro) also costs more per second than plain generation.\\n- Kling 4.0 (Tier 1, the preferred Kling; Kling 3.0 and O3 keep 4K) has three modes, like Kling O3: text; image-to-video from `--start-image` with an optional `--end-image` (framing follows the image, so no `--ar`); and reference mode, chosen when you add `--ref`, `--ref-video` or `--element`. Reference mode takes an optional `--start-image`, up to 10 images including it (`--ref`, cited as @Image1), up to 5 `--ref-video` clips (cited as @Video1, 3-30s each), and up to 7 `--element` entries (cited as @Element1; up to 3 with `voice_id`, up to 3 video-backed). Reference and element videos share 5 clips and 30 seconds, and 15 inputs is the total. Reference mode has no end frame. Audio is always on. With any reference or element video it bills the video length plus the output, at least twice the output, so pass `--ref-video-seconds` to `costs` or `--estimate` for an exact quote.\\n- Kling 4.0 Flash (`kling-4.0-flash`, Tier 2, by name) is the faster, cheaper tier of Kling 4.0, with the same three modes and inputs, at 720p only and 3-20 whole seconds (default 5). It takes one prompt (no `--segment`), no `--end-image` (image-to-video uses `--start-image` alone) and no `voice_id` on elements. Reference mode takes an optional `--start-image`, up to 10 images including it, up to 5 `--ref-video` clips of 3-20s each, and up to 7 `--element` entries (up to 3 video-backed, 3-8s each); reference and element videos share 5 clips and 20 seconds, and 15 inputs is the total. Audio is always on. It costs less per second than Kling 4.0 and bills reference and element videos the same way (`--ref-video-seconds`, up to 20). Use Kling 4.0 for multi-shot prompts, an end frame, voices, 1080p or clips past 20s.\\n- Seedance quality: `mini` for the lowest cost, `fast` for speed, `standard` for maximum quality and for 1080p/4K. Seedance 2.5 has a single tier and ignores `--quality`.\\n- Longer than 15 seconds, or more than 9 image / 3 video / 3 audio references: use Seedance 2.5. It reaches 30s and 30/10/10 references (50 files total) at 480p/720p/1080p, but has no 4K.\\n- Seedance 2.x has no real-people option. A video that can\'t be made at the listed rate, usually one showing a real person, costs a higher rate, charged before it starts.\\n\\n### Video edit and motion-control categories\\n\\nUse `videodraft models video --category video_edit` for existing-video transforms and `--category motion_control` for motion transfer.\\n\\n| Need | Command/model | Important limits |\\n| -------------------------------------------------- | ---------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\\n| Most edits of a source from 3 to 15s (DEFAULT) | `videodraft edit video <video> \\"...\\"` (auto-selects `gemini-omni-1.2-flash`) | Source 3-15s or it REFUSES; up to 2 image refs on Google, no creative video refs; 360p/720p/1080p/4K; audio always regenerated (no `--preserve-audio`) |\\n| Cheapest simple prompt edit | `videodraft edit video <video> \\"...\\" --model grok-imagine-video-edit` | No image refs; source silently truncated to 8s; auto/480p/720p |\\n| Edit with several image references | `--model happy-horse-video-edit --ref ...` | Up to 5 refs; 720p/1080p; source silently truncated to 15s; highest rate |\\n| Controlled Kling edit | `--model kling-o3-video-ref-edit --ref ...` | Up to 4 refs; Standard/Pro; source silently clamped to 3-10s |\\n| Whole source over 15s and up to 30s, or 7 elements | `--model kling-4.0-video-edit --ref ...` | Tier 2. Up to 10 refs and 7 image elements; 720p/1080p; edits a whole 3-30s source; `--duration` 3-30 sets a new length |\\n| Kling 4.0 Flash edit, when the user names it | `--model kling-4.0-flash-video-edit --ref ...` | Tier 2, by name: the faster, cheaper Kling 4.0 edit. Up to 10 refs and 7 image elements; 720p only; edits a whole 3-20s source; `--duration` 3-20 sets a new length |\\n| Transfer reference motion to an image | `videodraft edit motion <image> [direction] --motion-video <video>` | Prompt/direction is optional; Kling V3 default; optional one image-only `--element`; element requires video orientation |\\n\\nIf the user explicitly names one of these models, preserve it. The CLI uploads local source videos and reference images automatically. Editing returns an async job and waits by default.\\n\\n**Omit `--model` and the SERVER chooses**, because only it can measure the source. It picks `gemini-omni-1.2-flash` for any source from 3 to 15s. When that is not safe (source longer than 15s, unmeasurable duration, `--preserve-audio`, more than 2 refs, or Fal BYOK with refs) it spends nothing and returns a priced menu: per model, the seconds it would edit, the seconds it would drop, and the credit cost. The CLI prints that table and exits 2. Show it to the user, then re-run with `--model`.\\n\\n**Truncation is the trap here.** Gemini, Kling 4.0 Video Edit (up to 30s) and Kling 4.0 Flash Video Edit (up to 20s) refuse sources they cannot fully consume. Other edit models accept a 30s clip but return only its first 8-15 seconds. `videodraft edit video` now warns when this will happen and the tool response carries `source.truncated` / `source.dropped_seconds`; relay it to the user rather than letting them discover it in the output.\\n\\nTo edit a longer source without losing its tail, cut it into <=15s pieces in the selected editing app (`videodraft_editor` by default), edit each with Gemini, then reassemble and export in that app. VideoDraft has no server-side split/concat, so this needs a local editing route.\\n\\nKling O3 is also exposed for reference generation. `videodraft generate video --model kling-o3-video-ref-edit` requires exactly one `--ref-video` and generates a new reference-guided clip. Wan 3.0 handles new text, frame, and mixed-reference generation, but is not an existing-source edit model.\\n\\n### Reference-first video workflow\\n\\n- Prefer a start frame or reference image whenever a specific character, product, location, style, composition, or brand identity must stay recognizable.\\n- If the user gives a reference, pass it. Never silently replace it with a text description.\\n- If no reference exists and continuity matters, generate a still first with the user\'s explicitly requested compatible image model, otherwise use Nano Banana 2.1. Wait for the image URL, then animate it with the selected video model. Confirm the combined image plus video cost before starting.\\n- For multi-shot scenes, generate shot images with `videodraft shots <project_id> --model <selected-image-model> --grid`. Preserve an explicitly requested compatible image model; otherwise use `nano-banana-2.1`. The grid establishes the scene and characters together, then decodes into individual shot images.\\n- Animate the decoded shot images as per-shot start frames or references. Do not independently text-generate each video clip when the shots need to match.\\n- Pure text-to-video remains appropriate for generic one-off footage where no subject, composition, or continuity needs to be preserved.\\n\\n### Audio\\n\\n- **Seed Audio 1.0**: use `videodraft generate audio` for open-ended speech, sound, music, or prompt-driven audio editing. It accepts up to three audio references or one image. Address audio references as `@Audio1`, `@Audio2`, and `@Audio3`. Preset and custom cloned voice IDs are supported. Output is up to 120 seconds. There is no requested-duration input. The CLI automatically retries transient responses with one idempotency key. To recover after the CLI process itself is interrupted, set `--idempotency-key <uuid>` on the original command and reuse it.\\n- **Voiceover/TTS**: prefer ElevenLabs. Brittney is the platform default voice; under ElevenLabs BYOK, use a compatible voice from the user\'s account. Honor another supported voice/provider when the user explicitly selects it. ElevenLabs voices run on Eleven v4 in one of two modes: Standard (the default, best quality) or Turbo (Eleven v4 Turbo, faster and half the price). Keep Standard unless the user wants faster or cheaper speech. Pick the mode with `generate voiceover --mode standard|turbo` or `produce --voice-mode standard|turbo`; over MCP, pass `mode` to `generate_voiceover` or `voice_mode` to `produce_project`. Google, OpenAI and cloned `custom-*` voices ignore it. v4 takes no style or speed settings and no SSML `<break>` tags; audio tags such as `[whispers]` work. Dialogue stays on Eleven v3.\\n- **Dialogue, voice changing, and dubbing**: ElevenLabs only.\\n- **Sound effects**: ElevenLabs Sound Effects v3 only, 0.5-30 seconds.\\n- **Music**: use `lyria-3.5` for all music, short or long (up to ~3 minutes), with vocals/lyrics or instrumental music. When `--model` is omitted the CLI sends no model and the server default applies, which is `lyria-3.5` wherever the backend supports it. If the server answers that `lyria-3.5` is an unknown model, that backend predates it: rerun without `--model` (the server default then applies), or use `lyria-3-pro-preview` for a track longer than 30 seconds. `lyria-3-clip-preview` (fixed ~30s) and `lyria-3-pro-preview` remain available for explicit requests. Lyria length and structure are prompt-guided, not exact; for an instrumental, include \\"instrumental only, no vocals\\" in the prompt. `--length` and `--instrumental` only apply to ElevenLabs. Use `elevenlabs-music-v2.5` when a specified 3-300 second length, composition plan, or style reference track matters. Lyria references: up to 10 images on Google, 1 on Fal BYOK; 3.5 Fal prompts are 1-5000 characters (an image-only request gets a neutral prompt). `elevenlabs-music` is an alias for v2.5. Use `elevenlabs-music-v1` only when the user asks for v1 by name; it takes a prompt, `--length` and `--instrumental` only.\\n- **ElevenLabs Music v2.5 inputs**: either a prompt (`--length`, `--instrumental`) or a composition plan, never both. A plan is 1-30 sections of 3-120 seconds each, up to 300 seconds in total, and `--plan`/`--section` pick v2.5 when `--model` is omitted. Empty section parts default to 20 seconds and an instrumental part. Build one with repeatable `--section \\"<seconds>|<style, style>|<text>\\"` (use `\\\\n` for line breaks) or pass `--plan plan.json` with `{\\"chunks\\":[{\\"text\\",\\"duration_ms\\",\\"positive_styles\\",\\"negative_styles\\",\\"context_adherence\\",\\"audio_reference\\"}]}`. Section text is an optional `[Section name]`, lyric lines, and `{inline directions}`. Put 6-7 specific English styles on the first section; it sets the genre. `--ref-audio <url|file>` adds a style reference clip to the first section (window up to 30 seconds via `--ref-start`/`--ref-end` in ms, `--ref-strength low|medium|high|xhigh`); local files are uploaded, including relative `audio_reference.audio_url` paths in a plan file. `--seed` works only with a plan. `--format` picks the output (`mp3_48000_192` default on v2.5; `pcm_*`, `ulaw_8000` and `alaw_8000` arrive as stereo WAV files). Style references don\'t run on the user\'s own ElevenLabs key; with that key connected, drop the reference or ask the user to turn the key off. The CLI retries transient responses with one idempotency key; set `--idempotency-key <uuid>` to recover after an interruption.\\n- Voice Changer and Dubbing require the source media duration and currently accept source media up to 300 seconds.\\n\\n**User-supplied ElevenLabs voice IDs:** voiceover, dialogue, and voice changing accept raw IDs (16-64 alphanumeric characters) or `elevenlabs-<id>`. `videodraft models voices` / MCP `list_available_voices` is for discovery, not an allowlist. Pass a supplied ID directly even when it is absent from the catalog; do not reject it or substitute a catalog voice. The voice must be accessible to the provider account used for generation. Private or cloned voices may require the user\'s connected ElevenLabs key. A failed voice listing does not prove that a supplied ID cannot generate; a connected key with generation access may still work. If the provider rejects generation access, report that error rather than silently changing the voice.\\n\\nUse `--voice <id>` for voiceover and voice changing, and repeat `--line \\"<id>:Text\\"` for dialogue. These examples show both ID forms; replace the sample IDs with the user\'s supplied IDs:\\n\\n```bash\\nvideodraft generate voiceover \\"Hello there.\\" --voice kPzsL2i3teMYv0FxEYQ6 --download ./media/voiceover.mp3\\nvideodraft generate dialogue --line \\"kPzsL2i3teMYv0FxEYQ6:Hello.\\" --line \\"elevenlabs-kmSVBPu7loj4ayNinwWM:Welcome back.\\" --download ./media/dialogue.mp3\\nvideodraft generate voice-changer ./media/source.wav --voice elevenlabs-kPzsL2i3teMYv0FxEYQ6 --duration 12 --download ./media/changed-voice.mp3\\n```\\n\\nFor MCP, use `generate_voiceover.voice_id`, `generate_dialogue.lines[].voice_id`, or `change_voice.voice_id` with either form. ElevenLabs IDs are separate from Kling video-control voice IDs and MiniMax `custom-*` cloned-voice IDs. Do not convert IDs from those systems into ElevenLabs IDs.\\n\\n### Avatar / talking head\\n\\n**First decide the framing, not just \\"someone talks\\".** This lane animates a PORTRAIT facing the lens. A character delivering a line inside a real scene, with blocking, framing or camera movement, belongs to `generate video` instead: write the dialogue in the prompt and `gemini-omni-1.2-flash`, `seedance-2.5`, `seedance-2`, `kling-3.0` or `kling-o3` voices it natively (add a Seedance `--ref-audio` clip or a Kling voice bound per element for a specific voice). That is the default for any talking character; never plan silent video + TTS + lip-sync. Sending a cinematic shot to Fabric returns a head-on talking headshot, not the shot that was asked for. `videodraft models video --json` lists these under `recommended.in_scene_dialogue`.\\n\\nFor a presenter, spokesperson or explainer speaking to camera, VEED Fabric is the preferred model. Choose the dedicated path from the media the user already has:\\n\\n| Starting media | Command | Use |\\n| ------------------------------------------ | ------------------------------------------------------------------------- | ---------------------------------------------------------- |\\n| Portrait + script, reusable avatar record | `videodraft avatar create <portrait> --script \\"...\\"` then `avatar render` | Managed avatar flow with bundled speech preparation |\\n| Portrait + text | `videodraft avatar fabric <portrait> --text \\"...\\"` | One-off direct VEED Fabric text mode |\\n| Portrait + existing audio | `videodraft avatar fabric <portrait> --audio <audio>` | One-off direct VEED Fabric audio lip sync |\\n| Portrait + existing audio, short and sharp | `videodraft avatar h3-lipsync <portrait> --audio <audio>` | MiniMax H3 Max Lip Sync, 5-14.8s at up to 2K |\\n| Existing video + existing audio | `videodraft avatar lipsync <video> --audio <audio>` | Sync Labs Lipsync 2 (Tier 2): re-dub existing footage only |\\n\\nThe managed renderer is VEED Fabric Fast (`veed/fabric-1.0/fast`). Direct Fabric, MiniMax H3 Max Lip Sync, and Sync Labs are paid AI Studio generations and return async job IDs.\\n\\n1. Obtain the avatar image. Prefer the user\'s supplied portrait or an existing character. If none exists, use the user\'s explicitly requested compatible image model, otherwise generate a front-facing head-and-shoulders portrait with `nano-banana-2.1`, direct eye contact, a natural expression, and a clean background. Match the intended video aspect ratio when practical.\\n2. If the portrait is visibly soft or too small, run Topaz image enhancement/upscaling before animation.\\n3. Generate a script only if needed: `videodraft avatar script \\"<idea>\\"`.\\n4. Create the avatar record and speech: `videodraft avatar create <portrait-url-or-file> --script \\"...\\" --voice <id> --ar 9:16`. Prefer ElevenLabs when unspecified, but honor another explicitly selected supported voice/provider.\\n5. Render with VEED Fabric: `videodraft avatar render <avatar_video_id> --resolution 720p`.\\n\\nThe portrait is passed as the avatar\'s character image, not as a generic video\'s start frame. Prefer rendering directly at 720p. Use 480p only when the user prioritizes lower cost. Avatar script generation and `avatar create` (including speech) are bundled/free. Confirm the Fabric render cost, plus portrait generation or upscaling when needed.\\n\\nDirect Fabric text/audio, H3 Max Lip Sync, and Sync Labs do not use the managed avatar record. The CLI uploads local portrait, video, and audio files automatically. `avatar fabric --speed fast` applies only to audio mode. `avatar h3-lipsync` takes no prompt: pick `--resolution 480P|768P|1080P|2K` (default 768P), an optional `--seed`, `--no-transcription` to sync without transcribing the audio (transcription is on by default), and `--safety-checker` only when the user asks for Fal\'s checker. The portrait\'s width / height must be 0.4-2.5, and audio shorter than 5 seconds is refused before any charge. Sync is billed per verified audio second; under Fal BYOK, `sync_mode` remains available but `temperature` and `active_speaker` are ignored by the provider.\\n\\n### Upscaling / enhancement\\n\\n- **Images**: Topaz via `videodraft upscale image <url-or-file> --scale 1x|2x|4x [--mode precision|generative|creative] [--model <name>]`. Modes: `generative` (default; Wonder 3.5, Topaz\'s recommended model for AI-generated images; `Redefine` takes `--prompt`, `--creativity 1-6`, `--texture 1-5`), `precision` (faithful and cheapest; Standard V2, High Fidelity V3, Low Resolution V2, CGI, Text Refine; use for clean real photos), `creative` (Bloom 2; artistic, `--prompt`, `--creativity 1-9`). Extra knobs: `--no-face-enhance`, `--face-strength`, `--sharpen`, `--denoise`, `--fix-compression`, `--format png`. Use 1x for light enhancement without enlargement, 2x as the general default, and 4x only when the source quality and target size justify it. The server must verify dimensions from a readable image of at most 50 MB; `--width` and `--height` are compatibility hints and cannot bypass a failed probe. The result may be immediate or queued; the CLI waits by default. Use `--no-wait` for an async job ID, and poll it with `status` or `wait`. Cost: per started block of output megapixels; precision is cheapest, then generative, then creative.\\n- **Videos**: Topaz via `videodraft upscale video <url-or-file> --resolution 720p|1080p|4k` (preferred) or `--scale 2x`, plus `--mode precision|generative|creative` and `--model <name>`. `generative` (default; Starlight Precise 2.6, Topaz\'s recommended model for AI-generated footage; Starlight Fast 2 at half price) is billed per second, more at 4K. `precision` (Proteus, Proteus Natural, Iris, Gaia 2 for animation, Rhea, Theia, Artemis, Dione) is much cheaper, billed per second by output resolution; use it for real footage or when cost matters. `creative` (Astra 2, `--prompt`, `--creativity`, `--realism`, `--sharp`) always renders 4K and costs the most. `--fps 60` delivers 60fps on the same pass; any output above 30fps (including a 50/60fps source) doubles every rate; the server must verify duration, dimensions, and frame rate from an MP4/MOV source of at most 100 MB. `--duration`, `--width`, `--height`, and `--source-fps` are compatibility hints and cannot override billing or bypass a failed probe. The same source-verification requirement applies to frame interpolation. `--scale` also accepts intermediate factors such as `1.5x`. Max source length 5 minutes. The job is asynchronous; the CLI waits by default, while MCP callers poll `check_generation_status`. MCP video input must be VideoDraft-hosted, so upload local or external sources first.\\n- **Frame interpolation / slow motion**: `videodraft interpolate <url-or-file> --fps 60 [--model Apollo|Chronos|Aion] [--slowdown 1-8]` (MCP `interpolate_video`). Resolution is unchanged. Apollo (default) for smooth general conversion, Chronos for natural slow motion, Aion for extreme slow motion. Apollo/Chronos are billed per output second (more at 4K); Aion costs more. These rates cover targets up to 60fps; above 60fps multiply by target FPS / 60 (120fps doubles the rate). Output seconds = source seconds \xD7 slowdown. The final charge rounds up to a whole credit.\\n- Use upscaling to preserve the image/video while improving detail, resolution, or cleanup. It cannot fix the wrong subject, misspelled text, bad framing, unwanted objects, broken continuity, or incorrect motion. Use an edit or regeneration for those problems. Keep `generative` for AI-generated sources; switch to `precision` for clean real photos/footage or a cheap pass, and `creative` only when the user wants an artistic reinterpretation.\\n- For a new Fabric avatar, render directly at 720p instead of rendering at 480p and then upscaling. Upscale the source portrait first only when the portrait itself is low quality.\\n\\n## Capability gotchas\\n\\n- Each model\'s `inputs` block is authoritative: supported `aspect_ratios`, `resolutions`, `quality_options`, `start_frame`/`end_frame`, `max_reference_images/videos/audio`, `multi_prompt`, `audio_toggle`. Passing an unsupported input fails with a clear error \u2014 check first, don\'t trial-and-error paid calls.\\n- Most video models support only 16:9 / 9:16 / 1:1. A 3:4 request hard-fails on most.\\n- `--seed` reproduces a specific output on models that support it (e.g. Ideogram 4.5). GPT Image 2.6 and FLUX 3 Image reject any explicit seed; older models may ignore unsupported seeds. You do not need a seed for variation \u2014 `--num` already varies.\\n- `--rendering-speed` remains accepted for explicit legacy image requests and their cost estimates. Current Ideogram models use `--quality`. Always trust `videodraft models image --json` over this list; new models and tiers appear there the moment the platform ships them, with no CLI update.\\n- `seedream-v5-pro` supports unified text-to-image and reference-image editing with up to 10 image references. Use `--resolution 1K` or `--resolution 2K` (2K costs more per image).\\n- Reference inputs: `--ref <img>` (images, including up to 10 total for Gemini Omni 1.2 Flash and Wan 3.0, and 7 for Grok 1.5), `--source-video <v>` (Gemini uploaded edit/extension source), `--ref-video <v>` (up to 3 creative videos <=15s each for Gemini Omni 1.2 Flash; also Wan 3.0, MiniMax H3, MiniMax H3 Max, and Seedance 2), `--ref-audio <a>` (Wan 3.0, MiniMax H3, MiniMax H3 Max, Seedance 2), and `--element \'<json>\'` or `--element @elements.json` for Kling V3/O3. For an exact Seedance 2.x reference-video `--estimate`, add `--ref-video-seconds <combined-seconds>`; Seedance bills input seconds alongside output. Wan 3.0 and MiniMax H3 do not bill input reference seconds; MiniMax H3 Max bills them as pooled reference tokens. The CLI uploads local media references and every structured element without flattening the source/reference roles. `--segment \\"<prompt>:<seconds>\\"` (repeatable) drives Kling 3.0, Kling 3.0 Turbo, and O3 multi-prompt generation. Use 1-6 segments of 1-15 whole seconds each, with 3-15 seconds total. `generate image --video-ref` is the nano-banana-2 video reference.\\n- The top-level prompt is OPTIONAL for Gemini Omni 1.2 Flash media-input or continuation calls, Wan 3.0 frame/reference modes, `generate video` with multi-prompt models, and Kling 3.0 Turbo (`--model kling-v3-turbo`) image-to-video. Text-only Gemini and Wan calls still require a prompt unless their live schema says otherwise.\\n- Hosted AI Production fallback: `videodraft produce <project> --mode full_video` generates one Seedance 2 video per scene. The MCP equivalent is `produce_project` with `mode: \\"full_video\\"`. Poll with `videodraft generations`, then `videodraft finalize <project>` swaps them into the hosted timeline before `export`. In VideoDraft ADE, do not choose this path while `videodraft_editor` is available unless the user explicitly requests hosted production. A selected external app or existing external project also takes precedence over this hosted fallback. Generate or download the scene assets, import them, and assemble/export in the selected app (the native editor by default). If the user explicitly requests another compatible video model for a hosted production, do not use this fixed Seedance path; generate the project shots manually with the requested model and attach them to the hosted timeline.\\n\\n## Cost model\\n\\nThis skill lists no prices because they change with provider routing and sales. Get the current price from `videodraft costs <model> [settings]` or the command\'s `--estimate` flag; both read live prices from the server and spend nothing. Never quote a price from memory. What each kind of job is billed on:\\n\\n- Images: per image (x `--num`). Matrix-priced models (GPT Image, Nano Banana 2.1 and Pro, Seedream v5 Pro, Ideogram 4.5, Grok Imagine 2.0) vary by resolution and/or quality (Nano Banana 2.1 thinking and web search are free); Grok Imagine 2.0 also charges per reference image (up to 3).\\n- Video: per output second; the rate depends on model, resolution, quality and native audio on/off.\\n- Gemini Omni 1.2 Flash: per output second by resolution (720p default). Extend appends an explicit 3-10 seconds to a 1-30s source, whether uploaded or resolved from a prior interaction; 40 seconds total is reachable only while the source stays at or under 30s. Fal BYOK generation, basic source edits and extensions cost zero VideoDraft credits; interaction-ID continuation and separate edit/extend references are unavailable under Fal BYOK; uploaded-source extension is supported.\\n- MiniMax H3: per output second by resolution (768p default). The first 5 reference images are included, then each additional image adds a charge. Reference video and reference audio are NOT billed.\\n- MiniMax H3 Max: per output second at 480p or 768p (default), plus pooled reference tokens: a free allowance, then a charge per 1,000 tokens. An image is `(width x height) / 1024` tokens; a reference video is 2,886 tokens per second at 480p or 7,459 at 768p; reference audio is about 2,121 per second. Pass `--ref-audio-seconds` for an exact estimate with audio references. The server measures each reference image, so a quote that assumes 1024x1024 is a floor.\\n- Wan 3.0: per output second by resolution. Auto duration reserves 30 seconds and reconciles unused credits from the provider-reported output duration. Fal BYOK charges zero VideoDraft credits.\\n- Grok Imagine Video 1.5: per output second by resolution, plus a small charge for each first-frame or reference image. Native generated audio is part of every output.\\n- Kling: per output second by tier and audio; voice control costs more.\\n- Seedance 2.0 / 2.5: per output second by tier and resolution. A video that can\'t be made at the base rate, usually one showing a real person, costs a higher rate; the difference is charged before it starts. `get_model_costs` returns both (`cost` and `higher_rate_cost`). Reference videos bill input seconds alongside output.\\n- Shot-image batches: one image per shot (+1 grid image per scene in `--grid` mode) \u2014 the largest single spend in the pipeline.\\n- VEED Fabric avatar renders: per second by resolution. Avatar creation and its speech are bundled/free; only optional portrait generation/upscaling adds cost before the render.\\n- Direct VEED Fabric: per second by resolution; fast audio costs more than text or normal audio.\\n- MiniMax H3 Max Lip Sync: per output second by resolution (768P default). The video runs as long as the audio (at least 5s; only the first 14.8s is used), billed on the server-measured length rounded up, so at most 15 seconds. Use MP3, WAV, M4A (AAC), or AAC audio; other formats run only on the user\'s own Fal key.\\n- Sync Labs Lipsync 2: per verified audio second.\\n- Voiceover TTS: per character. ElevenLabs Turbo (Eleven v4 Turbo) costs less than Standard (Eleven v4), and cloned `custom-*` voices cost more; this applies to standalone voiceovers AND per-scene narration during `produce`. Quote Turbo with model id `voiceover-turbo` (CLI: `costs voiceover --mode turbo`) and cloned voices with `voiceover-cloned`. Silent tracks are free. Voice cloning itself is a flat fee per clone.\\n- Lyria music: one flat price per track (Clip, 3.5 and legacy Pro differ). Fal BYOK uses zero VideoDraft credits.\\n- Seed Audio 1.0: per actual output minute, prorated and rounded up to a whole credit. VideoDraft reserves the 120-second maximum and refunds the unused portion after generation. Fal BYOK is free.\\n- ElevenLabs audio: sound effects are per second, dialogue is per character, music/voice-changer/dubbing are per started minute (Music v2.5 and v1 cost the same); estimate a composition plan with its total length. Voice changer and dubbing reject source media above 300s in the current synchronous flow.\\n- xAI bills refused requests, so failed Grok generations are not refunded.\\n- Upscales: priced by output size, mode, and (video) duration/fps; see the Upscaling section above.\\n\\nQuote before spending:\\n\\n```bash\\nvideodraft costs gemini-omni-1.2-flash --type video --duration 8 --resolution 720p --audio\\nvideodraft costs topaz-upscale-video --type video --duration 10 --width 1920 --height 1080 --resolution 4k --mode generative\\nvideodraft costs topaz-upscale --type image --width 2048 --height 2048 --scale 2x\\nvideodraft costs topaz-interpolate-video --type video --duration 10 --width 1920 --height 1080 --fps 60 --topaz-model Apollo\\nvideodraft costs minimax-h3 --type video --duration 10 --resolution 2K --ref-images 7\\nvideodraft costs minimax-h3-max --type video --duration 10 --resolution 768p --ref-images 2\\nvideodraft costs flux-3-max --type video --duration 5 --resolution 720p\\nvideodraft costs kling-4.0 --type video --duration 10 --resolution 1080p --ref-video-seconds 6\\nvideodraft costs kling-4.0-video-edit --type video --resolution 720p --ref-video-seconds 12 # source length; output matches it\\nvideodraft costs kling-4.0-flash --type video --duration 10 --ref-video-seconds 6\\nvideodraft costs kling-4.0-flash-video-edit --type video --ref-video-seconds 12 # source length; output matches it\\nvideodraft costs grok-imagine-video-1.5 --type video --duration 8 --resolution 720p --ref-images 4\\nvideodraft costs seedance-2 --type video --duration 15 --resolution 720p --quality standard --audio\\nvideodraft costs grok-imagine-2.0 --type image --resolution 2K --quality medium --num 2\\nvideodraft costs elevenlabs-dubbing --type audio --duration 60\\nvideodraft costs seed-audio-1.0 --type audio --duration 60 # scenario only; model controls actual length\\nvideodraft costs elevenlabs-dialogue --type audio --chars 350\\nvideodraft costs voiceover --type audio --chars 800 # TTS, per character\\nvideodraft costs voiceover --type audio --chars 800 --mode turbo # ElevenLabs Turbo, cheaper per character\\nvideodraft generate video \\"...\\" --model gemini-omni-1.2-flash --estimate # same quote, inline\\nvideodraft generate video \\"...\\" --model minimax-h3-max --duration 8 --resolution 768p --prompt-expansion-mode balanced\\n```\\n\\nMiniMax H3 Max and FLUX 3 Max are Tier 1; Gemini Omni remains the default. Use `videodraft costs` or `--estimate` for current prices before spending.\\n\\n## GenJutsu motion transfer\\n\\n`genjutsu` and `genjutsu-light` are two separate native Higgsfield models. Use `videodraft edit motion` with one subject image, a required `--motion-video`, and up to seven additional `--ref` images. Prompt text is optional. Resolution is `480p`, `720p` (default), or `1080p`. GenJutsu accepts 4\u201330 seconds; Light accepts 4\u201315 seconds. Use MP4 under 100 MB and trim longer sources before submission.\\n\\n```bash\\nvideodraft edit motion character.png \'Use this character throughout the performance\' --model genjutsu --motion-video performance.mp4 --ref outfit.png --resolution 720p --download ./result.mp4\\nvideodraft edit motion character.png --model genjutsu-light --motion-video performance.mp4 --resolution 480p --duration 4.208333 --estimate\\nvideodraft generate video --model genjutsu-light --ref character.png --ref-video performance.mp4 --resolution 480p --no-wait\\n```\\n\\nMCP uses `generate_motion_control_video` with `model`, `motion_video_url`, `reference_images` (1\u20138 URLs), optional `prompt`, and `resolution`. A single `image_url` is accepted instead of `reference_images`; do not send both. `idempotency_key` is an optional UUID for an identical retry. Poll `check_generation_status` with `job_id` and attach completed output to a project shot when required.\\n\\nNo provider settings exist for duration, aspect ratio, seed, FPS, quality tier, orientation, Elements, or audio toggles. Existing Kling flags remain Kling-only. Output follows source motion; Motion Transfer can rebuild the scene rather than preserving every background detail. Both modes use Higgsfield directly; unsupported personal-provider selection returns an error without switching payer.\\n\\nGenJutsu bills each rounded-up source second, priced by resolution. Light bills billable seconds: fractional source seconds plus rounded-up output seconds. Quote with `videodraft costs` or `--estimate`; `get_model_costs` and `--estimate` take the source duration. The server measures the source and rounds the total credit charge up once; Light refunds unused output time. No promotional discount is assumed.\\n","references/pipeline.md":"# VideoDraft pipeline reference\\n\\nEverything here describes the hosted fallback pipeline through the CLI (`videodraft <command>` / `videodraft call <tool>`) or hosted MCP connector (tool names in backticks). Honor the chosen app, existing project\'s editing surface and VideoDraft ADE\'s `<creative_routes>` as described in SKILL.md. Use hosted tools for asset generation and optional script/storyboard stages, then finish in the selected editing app. With no external app selected and the local `videodraft_editor` MCP available, use the native editor reference linked from SKILL.md. Continue through `produce_project` and `export_video` only when the user explicitly requests a hosted web production, or the native editor is unavailable and no external app is selected.\\n\\nUse direct asset tools for standalone images, clips, audio, upscales, and descriptions. Use a hosted project when the user explicitly wants the editable web project, when a hosted storyboard stage is useful, or when the native editor is unavailable and no external app is selected. Script-only uses a script-stage project and stops at the script. For a local production, stop before hosted production, import the generated assets into the selected app, and build/export there; the native editor remains the default when available and no other app or existing project takes precedence.\\n\\n## Stages and their tools\\n\\n| Stage | CLI | Underlying tool |\\n| ---------------------------------------- | --------------------------------------------------------------------------- | ------------------------------------------- |\\n| Idea \u2192 full storyboard project | `videodraft create \\"<idea>\\"` | `generate_storyboard_from_idea` |\\n| Idea \u2192 script only (stop there) | `videodraft create \\"<idea>\\" --script-only` | `generate_script_from_idea` |\\n| Footage IS the video | `videodraft call generate_storyboard_from_media` | `generate_storyboard_from_media` |\\n| Batch shot images | `videodraft shots <project>` | `generate_shot_images` |\\n| One shot image | `videodraft generate image --project <id> --scene N --shot M` | `generate_image` |\\n| Produce (voiceover, captions, timeline) | `videodraft produce <project>` | `produce_project` |\\n| Seedance full-video production | `videodraft produce <project> --mode full_video` | `produce_project` with `mode: \\"full_video\\"` |\\n| Per-shot motion prompts | `videodraft video-prompts <project>` | `generate_video_prompts` |\\n| Motion clip for a shot | `videodraft generate video --project <id>` | `generate_video` |\\n| Attach a finished clip to the timeline | `videodraft attach <project> --scene N --shot M --media <url> --type video` | `attach_media_to_shot` |\\n| Find free b-roll (no credits) | `videodraft stock search \\"<query>\\"` | `search_stock_media` |\\n| Copy stock media onto the CDN | `videodraft stock import <ref>` | `import_stock_media` |\\n| Background music | `videodraft generate music --attach <project>` | `generate_music` / `set_background_music` |\\n| Song with vocals, lyrics or sections | `videodraft generate music --model elevenlabs-music-v2.5 --section \\"...\\"` | `generate_music` with `composition_plan` |\\n| General or reference-driven audio | `videodraft generate audio \\"...\\"` | `generate_audio` |\\n| Sound effect | `videodraft generate sound-effect \\"...\\"` | `generate_sound_effect` |\\n| Dialogue audio | `videodraft generate dialogue --line \\"voice:text\\"` | `generate_dialogue` |\\n| Voice changer | `videodraft generate voice-changer <audio>` | `change_voice` |\\n| Dubbing | `videodraft generate dub <audio_or_video>` | `dub_media` |\\n| Scene voiceover | `videodraft generate voiceover --project <id> --scene N` | `generate_voiceover` |\\n| Avatar script | `videodraft avatar script \\"<idea>\\"` | `generate_avatar_script` |\\n| Avatar + speech | `videodraft avatar create <portrait> --script \\"...\\"` | `create_avatar_video` |\\n| Talking-head render | `videodraft avatar render <avatar_video_id>` | `render_avatar_video` + `get_avatar_video` |\\n| Direct portrait + text/audio | `videodraft avatar fabric <portrait> --text \\"...\\"` or `--audio <file>` | `generate_veed_fabric_video` |\\n| Short portrait clip from audio, up to 2K | `videodraft avatar h3-lipsync <portrait> --audio <file>` | `generate_minimax_h3_lipsync_video` |\\n| Existing video + replacement audio | `videodraft avatar lipsync <video> --audio <file>` | `generate_sync_lipsync_video` |\\n| Existing-video AI edit | `videodraft edit video <video> \\"<change>\\" --model <video-edit-model>` | `edit_video` |\\n| Motion transfer | `videodraft edit motion <image> [direction] --motion-video <video>` | `generate_motion_control_video` |\\n| Image enhancement/upscale | `videodraft upscale image <image>` | `upscale_image` |\\n| Video enhancement/upscale | `videodraft upscale video <video>` | `upscale_video` |\\n| Frame rate / slow motion | `videodraft interpolate <video> --fps 60 [--slowdown 4]` | `interpolate_video` |\\n| Final MP4 | `videodraft export <project>` | `export_video` + `check_export_status` |\\n\\n## Rules that prevent broken results\\n\\n- **The storyboard is generated FROM the script**, never from the raw idea. `videodraft create` runs the whole chain correctly. Don\'t call `generate_storyboard_scenes` with a raw idea as the \\"script\\".\\n- **Visual consistency**: never generate a storyboard shot in isolation. Shot prompts carry `[[asset:Name]]` / `[[shot:X-Y]]` tags that `generate_shot_images` resolves against the project\'s visual assets and prior shots. When generating a single shot whose prompt has no tags, pass `--ref` images yourself (the project\'s visual assets and/or the previous shot\'s image; `projects get` exposes both). For scenes with multiple shots or recurring characters, prefer `videodraft shots <project> --model <selected-image-model> --grid`: preserve an explicitly requested compatible image model, otherwise use `nano-banana-2`. It creates one coherent scene grid, then decodes it into individual shot images.\\n- **Reference-first video**: when identity, styling, or composition matters, do not generate each motion clip from text alone. Generate or select the shot still first, then pass the decoded shot image as `--start-image` or `--ref` to the selected video model. AI Production already composes scene grids and sends them to Seedance as references. If the user explicitly requests another compatible video model, bypass fixed Seedance full-video mode and generate the per-shot clips with the requested model, using the individual decoded shot images as anchors.\\n- **Seedance full-video pricing**: hosted `full_video` has no real-people option. A scene video that can\'t be made at the listed rate, usually one showing a real person, costs a higher rate, charged before it starts.\\n- **Narration voice mode**: ElevenLabs narration runs on Eleven v4. Standard is the default and the best quality. `videodraft produce <project> --voice-mode turbo` (MCP `produce_project` with `voice_mode: \\"turbo\\"`) uses Eleven v4 Turbo, which is faster and cheaper. For one scene, `videodraft generate voiceover --project <id> --scene N --mode turbo` (MCP `generate_voiceover` with `mode: \\"turbo\\"`) does the same. Google, OpenAI and cloned `custom-*` voices ignore the mode.\\n- **Hold off generating shot images while the user is still iterating** on storyboard structure.\\n- **produce \u2192 export ordering**: `export` requires a produced project where every production scene has timeline media. If `produce` returns `generating_shot_images`, poll the job ids it returns, then re-run produce.\\n- **Do not attach motion clips before production exists**: run `produce` successfully first, then attach finished motion clips to the production timeline. Attaching before `production_data` exists cannot place them in the final timeline.\\n- **Generated motion clips do not auto-attach**: after `generate video` completes, attach the clip with `attach_media_to_shot` (`media_type:\\"video\\"`, include `duration_seconds`) \u2014 it replaces the production timeline clip while keeping the storyboard still.\\n- **Talking heads use dedicated avatar tools**: do not use `generate video`. Use managed `avatar create` and `avatar render` for reusable avatars, direct `avatar fabric` for a portrait plus text/audio, `avatar h3-lipsync` for a short (5-14.8s) portrait clip from existing audio at up to 2K, and `avatar lipsync` for an existing video plus replacement audio. Reuse a supplied person image or generate a clear front-facing portrait with the explicitly requested compatible image model, otherwise Nano Banana 2. Managed avatar creation and speech are bundled/free; direct Fabric, H3 Max Lip Sync, Sync, and render are paid.\\n- **Existing-video edits use their own category**: call `edit_video` or `videodraft edit video` with a `video_edit` model when transforming the source itself. Kling O3 also has a reference-generation mode that creates a new guided clip. Wan 3.0 is a text/frame/reference generation model, not a source-video editor. Motion transfer similarly uses `generate_motion_control_video` or `videodraft edit motion` with a `motion_control` model.\\n- **Upscaling preserves rather than redesigns**: use Topaz when resolution, detail, or cleanup is the problem (generative mode by default: Wonder 3.5 / Starlight Precise 2.6, Topaz\'s pick for AI sources; precision for real photos/footage or the cheapest pass; creative only for an artistic reinterpretation; `interpolate` for frame rate or slow motion). Regenerate or edit when the subject, text, framing, continuity, or motion is wrong. Upscale a low-quality avatar portrait before Fabric; do not render a new avatar at 480p just to upscale the result.\\n- **Timeouts on the one-shot create**: if `create` times out at the transport layer, the project was still created server-side \u2014 `videodraft projects list`, take the most recent, and resume with its id. Don\'t start a duplicate.\\n\\n## User-attached media: classify roles first\\n\\nFor EACH attached file decide:\\n\\n- **visual_asset** \u2014 recurring reference (character / product / location / style). Upload, then pass in `visual_assets` of `generate_storyboard_from_idea` (via `videodraft call`), or add to an existing project with `add_visual_assets`. Type must be one of `character | object | location | style | custom` with a short name + concrete description.\\n- **shot** \u2014 the media IS footage for the video. Whole video = footage \u2192 `generate_storyboard_from_media`. Idea + footage \u2192 `generate_storyboard_from_idea` with `shot_media`. Existing storyboard \u2192 `attach_media_to_shots`.\\n- **reference** \u2014 inspiration only \u2192 fold a description into the idea/instructions; don\'t place it as a shot or asset.\\n\\nAmbiguous (e.g. a person holding a product)? Ask the user.\\n\\nUploads persist in the media library \u2014 recall later with `videodraft media list`.\\n\\n## Editing project data safely\\n\\n1. `videodraft call get_project_schema` \u2014 read the structure once per session.\\n2. `videodraft projects get <id> --raw` \u2014 the exact editable blob.\\n3. Modify; then `videodraft call update_project --stdin` with `{\\"project_id\\": \\"...\\", \\"data\\": {...}}`.\\n - Objects deep-merge key-by-key; **arrays replace wholesale** \u2014 send the complete array you\'re changing (e.g. all of `storyboard.scenes`).\\n - Scene shot arrays (`image_prompt` / `shot_types` / `shot_actions` / `search_prompt` / `preview_media`) are auto-aligned; fix-ups come back as warnings.\\n4. Snapshot before risky edits: `videodraft checkpoint create <id> --name \\"before re-script\\"`. Restore with `videodraft checkpoint restore <id> <version>`.\\n\\n## AI Studio sessions (standalone generations)\\n\\nProject generations group automatically, and standalone work is grouped per conversation (MCP) or per working directory (CLI) by the connection session \u2014 see the \\"AI Studio sessions\\" section of SKILL.md. Once the task is clear, give that automatic session a concise 3-6 word title before the first generation:\\n\\n```bash\\nvideodraft sessions name \\"Fox Brand Explorations\\"\\nvideodraft generate image \\"...\\"\\n```\\n\\nNaming creates the session with that title. If generation, a user, or an earlier agent created it first, the existing name is preserved. The command refuses to run while `VIDEODRAFT_SESSION` is set, because that override would send later generations to a different session. Use `sessions create` plus `--session` only to continue or deliberately create a separate group.\\n"}') {
|
|
8185
|
-
return JSON.parse('{"SKILL.md":"---\\nname: videodraft\\ndescription: Create and edit AI videos, images, 3D meshes, Seed Audio, voiceovers, music, sound effects, dialogue, dubbing, storyboards, avatar videos, media upscales, and product/ad videos with VideoDraft. Use whenever the user mentions VideoDraft; asks to generate a video, image, 3D asset, audio asset, ad, explainer, storyboard, avatar, upscale, or batch/CI workflow; wants to download a video from YouTube, Instagram, TikTok, X or another site; or wants to assemble, cut, caption, mix, lay out, inspect, or export a native VideoDraft Editor timeline. Covers cloud `videodraft` CLI/MCP, local `videodraft_editor` MCP, and creative-app routing. Honor the chosen app and existing project; otherwise prefer the native editor when available. Hosted production/export is an explicit choice or fallback when no local editing route is selected or available.\\n---\\n\\n# VideoDraft\\n\\nVideoDraft is an AI video creation platform where asset generation is the priority lane:\\n\\n- **Asset generation**: standalone images, video clips, Seed Audio, voiceovers, music, sound effects, dialogue, voice-changed audio, dubbed media, upscales, and image descriptions. This is the fastest and most important lane. Treat these as complete deliverables when the user asks for assets.\\n- **Asset I/O**: upload local files, download outputs, auto-upload local references, and save generated media where the user can see it.\\n- **3D assets**: standalone Meshy 7.1 and Tripo H3.1 meshes, multi-view generation, complete artifact downloads, and Meshy humanoid rigging through MCP/CLI. Read [references/3d.md](references/3d.md), or `videodraft skills show 3d`. These assets have their own saved library and do not require an AI Studio session or web viewer.\\n- **Cloud render**: render the user\'s own Blender scenes on a cloud GPU with `videodraft render blender`. See [Cloud render](#cloud-render-blender-on-a-cloud-gpu) below and [references/cloud-render.md](references/cloud-render.md), or `videodraft skills show render`.\\n- **Native editing**: local `.vdproject` timelines, cuts, layouts, captions, effects, audio, and exports through the headless VideoDraft Editor. Inside VideoDraft ADE, this is the default production and export lane when `videodraft_editor` is available and no chosen app or existing external project takes precedence.\\n- **Hosted project production**: idea \u2192 script \u2192 storyboard \u2192 hosted production timeline \u2192 exported MP4. Use the early stages for scripts, storyboards, and generated assets when useful. Treat hosted production and export as a fallback when the native editor is unavailable and no external app is selected, or as an explicit destination when the user asks for an editable web project or hosted workflow.\\n\\n## How to connect\\n\\nGeneration billing is selected in VideoDraft Settings \u2192 API Keys on the web, or\\nSettings \u2192 Media providers in VideoDraft ADE. Where enabled,\\n**VideoDraft routing** chooses an equivalent provider internally without changing\\nthe quoted customer credit price. A selected personal key is exclusive: never\\nswitch to VideoDraft credits or another key after an unsupported-model or\\nprovider error. Keep the canonical VideoDraft model ID in CLI/MCP calls. Poll\\nthe original generation after a timeout instead of starting another paid job.\\nNew provider connections can support only a subset of models and settings;\\nfollow the server\'s availability response. ElevenLabs remains audio-only.\\nFor Pika GPT Image 2.6, supply an explicit quality (`low`, `medium`, `high`,\\n`xhigh`, or `max`); `auto` is not supported by that connection. Nano Banana 2\\nLite is 1K only. Never remove requested controls or substitute a different\\nmodel merely to make a personal connection accept the job.\\n\\nCloud generation has two equivalent surfaces (same backend, credits, and hosted projects). Native timeline editing is a separate local surface:\\n\\n1. **CLI** (preferred when you have a shell): run `videodraft` if it\'s on PATH; otherwise `npx -y videodraft@latest` runs it with no install (needs Node \u226520; the `-y` skips npx\'s install prompt so it runs non-interactively; the package is fetched on first use and cached). For heavy use, `npm install -g videodraft`. If there\'s no Node/shell here but the MCP connector below is available, use that instead; if neither works, tell the user how to install (https://videodraft.ai/cli).\\n - Auth \u2014 pick by context, don\'t guess:\\n \u2022 INTERACTIVE (a human is in the session, e.g. Claude Code / Codex): on exit code 3 (\\"not authenticated\\"), tell the user to run `videodraft login` in their terminal \u2014 it opens their browser for a one-click VideoDraft sign-in (OAuth), no key to copy. Wait for them to confirm it succeeded, then retry the command. This is the preferred path when the user is present.\\n \u2022 HEADLESS / CI (no browser): set `VIDEODRAFT_API_KEY=vd_mcp_...` (a token the user mints at https://app.videodraft.ai/mcp-keys).\\n \u2022 SECURITY: never ask the user to paste a `vd_mcp_...` token into the chat \u2014 use browser `login` or the env var so the token never lands in the transcript.\\n - Every command accepts `--json` (parse this, don\'t scrape text). Exit codes: 0 ok, 1 error, 2 usage, 3 auth (see Auth above), 4 insufficient credits (\u2192 tell the user, don\'t retry).\\n - Tool discovery: start with `videodraft tools list` for the grouped catalog, then narrow with `videodraft tools list --lane assets`, `--lane asset_io`, `--lane project_data`, or `--lane production`.\\n - Asset lane: `videodraft generate ...`, `videodraft edit video|motion`, `videodraft avatar ...`, `videodraft upscale ...`, `videodraft interpolate ...`, `videodraft upload`, and `videodraft download`.\\n - Full API access: `videodraft tools schema <name>`, `videodraft call <tool> --args \'<json>\'`.\\n2. **MCP connector**: if VideoDraft MCP tools (e.g. `generate_storyboard_from_idea`) are available, call them directly \u2014 the CLI\'s curated commands map 1:1 onto these tools.\\n3. **Native editor MCP** (`videodraft_editor`): prefer this for project production, timeline assembly, cutting, layouts, transitions, captions, audio placement, and final export when no chosen app or existing external project takes precedence. Inside VideoDraft ADE on a supported Mac, Claude, Codex, OpenCode and Grok receive it automatically in both Code and VideoDraft modes. It runs headlessly, so an Open Editor click is not required. Start with `project_manage` (`operation: \\"project\\"`, action `list`, `open`, or `create`); standalone asset generation remains in the cloud CLI or MCP.\\n\\nSend native editor edits serially, batching everything a request needs into one `edit_apply` recipe. Pass the latest `context` when a person may be editing at the same time, so a stale write is refused. See [references/editor.md](references/editor.md) for project selection, media import, timing units, edit recipes, verification, export, and the `videodraft-editor` terminal bridge.\\n\\nIf you are reading this skill through `videodraft skills show skill`, run `videodraft skills show editor` before native editor work to load that reference.\\n\\n**VideoDraft ADE routing rule:** honor the app named in the current request and the editing surface of an existing project. A `<creative_routes>` block selects the chat\'s routes and overrides this skill\'s generic tool defaults; an explicit current request takes precedence over that block. Work directly in the chosen app, combining its supported scripting, CLI, verified MCP and Computer Use wherever useful. Do not turn a chosen-app request into a native-editor handoff or silently switch destinations after an error. Keep the editable source and dependencies, preserve unsaved work, and verify the saved project and output. Generation model, payer and spending limits remain separate from the editing app.\\n\\nWhen `creative_apps` is actually exposed, read the chosen app\'s bundled guide before using it. App topics include `after-effects`, `blender`, `resolve`, `premiere`, `final-cut`, `capcut`, `unity`, `remotion` and `hyperframes`. These app guides belong to VideoDraft ADE and describe installed-version setup and supported routes; users do not need personal per-app skills. When `creative_mcp` is also exposed, use its live discovery and the app guide for connected tools, and retain request IDs to recover uncertain operations. Computer Use is available only when its tools and permissions are present. These are VideoDraft ADE workspace tools, not public `videodraft` CLI commands. If they are absent, use the available app tools or explain the missing route without inventing commands or assuming a connector is installed.\\n\\nWith no chosen external app or existing external project, the presence of `videodraft_editor` means the native editor is ready, even when no editor window is visible. Use cloud tools to generate or source assets and, when helpful, scripts or storyboards. Do not call hosted `produce_project` / `videodraft produce` or `export_video` / `videodraft export` by default. Import the assets into the native project, assemble there, and export with native `delivery_manage` `submit`. Use hosted production/export when the user explicitly asks for the web workflow, or when the native editor is unavailable and no external app is selected. Do not silently fall back to hosted production after a local tool error.\\n\\n## First decision: asset, hosted project, or native edit?\\n\\n- **One standalone asset** (image, clip, voiceover, music track, sound effect, dialogue track, voice-changed file, dubbed media file, upscale, or description): generate it directly. Do NOT create a project.\\n - `videodraft generate image \\"a red fox in snow, cinematic\\" --ar 16:9 --download ./out/`\\n - `videodraft generate video \\"slow dolly over a misty lake\\" --model gemini-omni-1.2-flash --duration 6 --download ./out/`\\n- **A chosen creative app or existing external project**: continue in that app using the routing rule above. Keep its project editable; use handoff only for a requested transfer or accepted fallback.\\n- **Any final video, production timeline, existing footage, local `.vdproject`, or hands-on edit with no other app selected**: use `videodraft_editor` when available. List or open the intended local project, or create a native project for a new production. The editor can work without showing its UI.\\n- **Assemble the cut on the timeline, not in a script.** Build the edit on the native timeline (or in the user\'s chosen editing app) so the user can trim, reorder and retime it by hand afterwards. Do not stitch or render the deliverable with ffmpeg, Python or moviepy scripts unless the user asks for that; a script leaves them a flat file with nothing to adjust. Code-built video (Remotion, motion graphics, 3D renders) and file conversions the editor needs before import are fine.\\n- **A small set of related assets**: still stay in the asset lane. They are grouped automatically (see [AI Studio sessions](#ai-studio-sessions)); give the current group one useful task-specific name with `videodraft sessions name \\"<name>\\"`. Switch to a project only when the deliverable matches the project criteria below or the user asks to attach the assets to one.\\n- **A generated multi-scene video / ad / explainer**: use hosted tools for any needed script, storyboard, shot planning, or generated assets, then build/export in the selected editing app. With no app selected and the native editor available, stop before hosted production, import the assets, and build/export the native timeline. A hosted project is optional unless the user wants the web project or its storyboard workflow.\\n- **A hosted web project or hosted export**: use the hosted pipeline when the user explicitly asks for it, or the native editor is unavailable and no external app is selected.\\n- **Just a script** (no video asked for): A script-only request creates a script-stage project but stops at the script. Use `videodraft create \\"...\\" --script-only`; do not build a storyboard the user didn\'t ask for.\\n- **Iterating on existing work**: identify the surface first and preserve an external project\'s app unless the user requests a transfer. Use `project_manage` `project` with `action: \\"list\\"` for native projects and `videodraft projects list` only for hosted work. Never create a replacement project just to change an existing one.\\n\\n## Choose the model from the task\\n\\nIf the user names a model, use it when compatible. If it cannot handle the request, explain why and recommend alternatives instead of silently switching. Otherwise inspect the inputs, duration, audio, quality, speed, and cost, check the live catalog, and pass an explicit model.\\n\\n### Seedance 2.x pricing\\n\\nSeedance 2.0 and 2.5 have no real-people option, including for hosted `full_video` production. A video that can\'t be made at the listed rate, usually one showing a real person, costs a higher rate; the difference is charged before it starts. When a real person is involved, quote both prices (`get_model_costs` returns `cost` and `higher_rate_cost`). Don\'t name providers to the user.\\n\\n**How to pick a model. Follow this order every time:**\\n\\n1. The user named a model: use it, never substitute.\\n2. Otherwise pick a **Tier 1** model.\\n3. Use a **Tier 2** model only when no Tier 1 model supports the request, and say why. Never pick Tier 2 on your own for price, speed, novelty or variety.\\n\\nTier 1: images `nano-banana-2.1`, `nano-banana-2`, `nano-banana-pro`, `nano-banana-2-lite`, `gpt-image-2.6-flare`, `gpt-image-2.6-sunburst`, and `recraft-v4` for vector/SVG only; videos `gemini-omni-1.2-flash`, `seedance-2.5`, `seedance-2`, `kling-4.0`, `kling-3.0`, `kling-o3`, `flux-3-max`, `minimax-h3-max`; video edits `gemini-omni-1.2-flash`; talking-head portraits `veed-fabric`, `minimax-h3-max-lipsync`; motion transfer `kling-v3-motion-control`; audio ElevenLabs for speech tools, Lyria 3.5 for music at any length.\\n\\nTier 2 is every other catalog model (`wan-3.0`, `flux-3-image`, `minimax-h3`, `kling-4.0-flash`, `kling-v3-turbo`, `kling-2.6-pro`, `grok-imagine-video-1.5`, `happy-horse`, Veo 3.1, Seedream, Grok Imagine images, FLUX images, `sync-lipsync-2` and the rest). All of them stay available by name. Real Tier 2-only jobs: document or web-page references (`wan-3.0`), re-syncing existing footage (`sync-lipsync-2`).\\n\\nEvery `videodraft models image|video|audio --json` entry carries `tier` (1 or 2), and the top-level `recommended` array is Tier 1, best first. That catalog beats this page when they disagree.\\n\\n**Speech in video:** write the dialogue in the video prompt. `gemini-omni-1.2-flash`, `seedance-2.5`, `seedance-2`, `kling-3.0` and `kling-o3` speak it natively. For a specific voice add a Seedance reference audio clip (`--ref-audio`) or a Kling bound voice. Do not plan silent video + TTS + lip-sync. Lip-sync tools are only for a portrait presenter talking to camera, or for re-syncing footage that already exists. Off-screen narration and voiceover are unaffected: keep using `generate voiceover` for those.\\n\\n**Images:**\\n\\n- `nano-banana-2.1`: general default, editing, text, consistency, and references. Add `--thinking-level medium` or `high` for complex layouts, infographics or dense text.\\n- `nano-banana-2`: the previous default; use it when temperature control is wanted.\\n- `nano-banana-pro`: maximum quality. `nano-banana-2-lite`: fast, inexpensive drafts.\\n- `gpt-image-2.6-flare`: fast everyday generation and editing, and the pick for posters, logos, signs, title cards, readable text and precise composition. Use `gpt-image-2.6-sunburst` when extra precision, fine detail or edit consistency matters (it takes longer). GPT Image 2.6 replaces 2.5, so always pass a 2.6 id. Both use the same basic options as GPT Image 2: references (up to 16), aspect ratio, 1K/2K/4K resolution, image count (1-4), and quality, with PNG output and no seed. Quality adds xhigh/max; auto is charged at the max tier, so pass `--quality high` for a cheaper render (low and medium are only modestly cheaper than high). Other model recommendations are unchanged; explicit `gpt-image-2` requests still use GPT Image 2.\\n- Animated GIFs (stickers, loops, emoji, icons, short reactions): GPT Image 2.6 with `--gif`, plus `--frames 2-16` (default 8) and `--frame-ms 20-2000` (default 120). Describe the motion and a seamless loop in the prompt; `--ref` animates a given subject. Frame size follows `--ar`; `--resolution` does not apply. 2-8 frames cost the same, so prefer 8. GIFs are standalone outputs, not storyboard shots, batches or video start frames, and a personal Pika key cannot make them. For long or smooth motion use a video model.\\n\\n**Videos:**\\n\\n- `gemini-omni-1.2-flash`: default for 3-15s generation and 3-15s source edits, at 360p/720p/1080p/4K with audio always on. Generation takes up to 10 total images including first/last frames, and 3 creative video references (<=15s each). First plus last frame caps output at 10s. Use `--video-task generate` for creative video references; one `--ref-video` without a source remains a legacy source edit. `--source-video` edits a 3-15s source; `--video-task extend` or `--extend` adds 3-10s to a 1-30s source, up to 40s total. Edit/extend accept exactly one source video and up to 2 image references on Google, with no creative video references. `--previous-interaction-id` resolves a completed Google output as the next source; the same source limits apply. Google supports `--seed`; Fal does not. Fal BYOK uses callable v1.2 text/image/reference/edit/extend endpoints at zero VideoDraft credits, requires a prompt, cannot mix frames with references, and cannot take edit/extend references or Google interaction IDs. Never fall back to paid Google under BYOK. Atlas Cloud, Pika and Higgsfield do not expose a verified 1.2 contract and must not list this model. Separate audio references are not available. For silent shots describe quiet ambience and mute the generated track in the editor.\\n- `grok-imagine-video-1.5` (Tier 2): 1-15s text, first-frame, or 1-7 reference-image generation with native audio. Text/first-frame modes support 480p, 720p, and 1080p; reference mode supports 480p/720p. Cite references as `<IMAGE_0>` through `<IMAGE_6>`. It has no last frame, seed, negative prompt, quality tier, reference video, or reference audio.\\n- `minimax-h3` (Tier 2): 480p/768p/2K/4K (768p default), native stereo audio, and 5-15s text, first/last-frame, or mixed-reference generation. Reference mode accepts up to 9 images, 3 videos, and 3 audio clips, with at most 12 files total. Cite them as `Image 1`, `Video 1`, and `Audio 1` in array order.\\n- `flux-3-max` (Tier 1, before `minimax-h3-max`): fast 5-20s video at 720p/1080p, 24fps, optional native audio. Text, first frame, first + last frame, or up to 10 timed keyframes (`--keyframe shot.png@2.5`, repeatable). `--reasoning-level high|low` (high default), `--seed`, and explicit whole-second duration (default 5s). No Draft/quality mode or auto duration. Quote current pricing with `videodraft costs flux-3-max --type video --duration 5 --resolution 720p` or `--estimate`. Keep Gemini Omni as the default.\\n- `minimax-h3-max`: 480p/768p (768p default), native audio, and 5-15s text, first/last-frame, or mixed-reference generation. Reference mode accepts up to 9 images, 3 videos, and 3 audio clips, with at most 12 files total, cited as `Image 1`, `Video 1`, and `Audio 1` in array order. It supports a reproducibility seed and `disabled` / `balanced` / `quality` prompt expansion.\\n- `wan-3.0` (Tier 2): unified 2-30s text, first/last-frame, or ordered mixed-reference generation at 480p/720p/1080p, with optional native audio. Reference mode accepts up to 10 images, 5 videos, and 5 audio clips, at most 20 media files total; video and audio each total at most 15 seconds. `--auto-duration` reserves 30 seconds and reconciles to the provider-reported output length. Document/web references use `--file-url` or `--web-url` and require `--thinking`.\\n- `seedance-2`: video/audio/mixed references, wider ratios, selectable audio, or 11-15s with both first and last frames. Duration alone up to 15s stays on Gemini Omni 1.2. `standard` is the default; use `mini` for a cheaper draft or `fast` for speed (both are 480p/720p only).\\n- `seedance-2.5`: 4-30s single takes and up to 50 references (30 image, 10 video, 10 audio). Same modes as 2.0, one quality tier, 480p/720p/1080p. Reach for it when a shot must run past 15s or carry more references than 2.0 allows.\\n- `kling-4.0` is the preferred Kling, after Gemini and Seedance (details below). `kling-o3`: reference images plus structured image/video elements, first/last frames, multi-prompt, audio control, or 4K. O3 allows 7 combined image references and image-backed elements, reduced to 4 combined items when a video-backed element is present. `kling-3.0`: image-to-video can use structured image/video elements and bind a custom Kling voice ID to either element form. Tier 2, by name: `kling-v3-turbo` (fast polished 3-15s with first frame, multi-prompt, and audio, but no elements) and Kling 2.6 Pro (top-level voice IDs cited as `<<<voice_1>>>` and `<<<voice_2>>>`).\\n- Existing-video edits use `videodraft edit video`, not generic generation. `gemini-omni-1.2-flash` is the preferred edit model and is chosen automatically when you omit `--model`: source from 3 to 15s, up to 2 reference images on Google, 360p/720p/1080p/4K with audio. Creative `--ref-video` inputs are NOT accepted on an edit, because an edit takes exactly one input video; use `generate video --video-task generate` to guide a new clip with video references instead. Omitting `--model` on a longer or unmeasurable source spends nothing and prints a priced menu (what each model edits, what it drops, what it costs) so you can put the choice to the user. **Truncation:** Gemini (15s), `kling-4.0-video-edit` (30s) and `kling-4.0-flash-video-edit` (20s) refuse an over-length source. Happy Horse silently edits just the first 15s, Kling O3 the first 10s, and Grok the first 8s. The command warns you when that will happen; always relay it to the user. `kling-4.0-video-edit` (Tier 2) can edit a whole source longer than 15s and up to 30s, so the priced menu offers it for long sources. Gemini regenerates the audio track, so use Happy Horse or Kling O3 with `--preserve-audio` when the source audio must survive. Choose Grok for the cheapest prompt-only edit, Happy Horse for up to 5 image references, or Kling O3 for controlled reference-image edits.\\n- To edit a source longer than 15s without losing its tail, cut it into <=15s pieces in the selected editing app (`videodraft_editor` by default), edit each with Gemini, and reassemble in that app. VideoDraft has no server-side split/concat, so this path needs a local editing route.\\n- Kling O3 also has a reference-generation mode. Use `videodraft generate video --model kling-o3-video-ref-edit` with exactly one `--ref-video` to generate a new guided clip; use `videodraft edit video` when changing the source itself. For new mixed-reference generation use Seedance 2 / 2.5.\\n- Motion transfer uses `videodraft edit motion` with Kling V3 by default, or Kling 2.6 when explicitly requested or lower cost matters. It requires a subject image and a motion-reference video. For native Higgsfield, choose `--model genjutsu` or `--model genjutsu-light`: one source MP4 (4\u201330s or 4\u201315s), 1\u20138 ordered images (the positional subject plus repeatable `--ref`), optional prompt, and `--resolution 480p|720p|1080p` (default 720p). No quality/orientation/Element/audio/seed controls. Trim longer sources first. `--duration` is estimate-only. Light bills fractional source seconds plus rounded-up output seconds; unused output time is refunded. Runs on VideoDraft credits or a selected Higgsfield API key only.\\n- `kling-4.0` (Tier 1, the preferred Kling; Kling 3.0 and O3 keep 4K): Kling\'s newest model, with three modes like Kling O3. Text mode; image-to-video from `--start-image` with an optional `--end-image` (framing follows the image, so no `--ar`); or reference mode, chosen when you add `--ref`, `--ref-video` or `--element`, with an optional `--start-image` (no end frame), up to 10 images, 5 `--ref-video` clips and 7 `--element` entries (3 with voice, 3 video), cited as @Image1, @Video1, @Element1. 3-30s, 720p/1080p, multi-shot `--segment` up to 30s in total, audio always on; no seed or negative prompt. Reference and element videos are billed by their length plus the output, at least twice the output; quote with `videodraft costs kling-4.0 --type video --duration 10 --ref-video-seconds 6`.\\n- `kling-4.0-video-edit` (Tier 2, by name or for a long source): `videodraft edit video <source> \\"<prompt citing @Video1>\\" --model kling-4.0-video-edit` edits a whole 3-30s source with up to 10 `--ref` images and 7 image-only `--element` entries, 720p/1080p. The output matches the source unless you pass `--duration` (3-30). It bills the source plus the output, at least twice the output, and cannot keep the source audio; quote with `videodraft costs kling-4.0-video-edit --type video --ref-video-seconds <source seconds>`.\\n- `kling-4.0-flash` (Tier 2, by name): the faster, cheaper 720p tier of Kling 4.0, with the same three modes and inputs. Text mode; image-to-video from `--start-image` alone (no `--end-image`); or reference mode with an optional `--start-image`, up to 10 images, 5 `--ref-video` clips of 3-20s and 7 `--element` entries (up to 3 video-backed, 3-8s each; no `voice_id`), cited as @Image1, @Video1, @Element1. Reference and element videos share 5 clips and 20s; 15 inputs in total. 3-20s, 720p only, one prompt (no `--segment`), audio always on. It costs less per second than Kling 4.0 and bills reference and element videos the same way; quote with `videodraft costs kling-4.0-flash --type video --duration 10 --ref-video-seconds 6`. Use `kling-4.0` for multi-shot, an end frame, voices, 1080p or more than 20s.\\n- `kling-4.0-flash-video-edit` (Tier 2, by name): `videodraft edit video <source> \\"<prompt citing @Video1>\\" --model kling-4.0-flash-video-edit` edits a whole 3-20s source with the same inputs as `kling-4.0-video-edit` (up to 10 `--ref` images and 7 image-only `--element` entries) at 720p only. The output matches the source unless you pass `--duration` (3-20). It bills the source plus the output, at least twice the output, and cannot keep the source audio; quote with `videodraft costs kling-4.0-flash-video-edit --type video --ref-video-seconds <source seconds>`.\\n- Veo 3.1, Grok Video 1.5, Happy Horse and the other Tier 2 video models: only when explicitly requested or when no Tier 1 model fits.\\n\\n**Audio and utilities:**\\n\\n- Use Seed Audio 1.0 for open-ended text-to-audio, speech/music/sound synthesis, voice conditioning, or prompt-driven editing with up to three audio references or one image. Use `videodraft generate audio`. Reference clips are `@Audio1`, `@Audio2`, and `@Audio3` in array order. There is no duration input. Output is up to two minutes and is billed per actual output minute; the two-minute maximum is reserved during generation and the unused part refunded. The CLI automatically retries transient responses with one operation key. To recover after the CLI process itself is interrupted, set `--idempotency-key <uuid>` on the original command and reuse it.\\n- Prefer ElevenLabs for voiceover, dialogue, voice changing, dubbing, and sound effects. Honor an explicitly selected supported TTS voice/provider. Use `lyria-3.5` for all music, short or long (up to ~3 minutes, one flat price per track), with vocals/lyrics or instrumental arrangements. When `--model` is omitted the CLI sends no model and the server default applies, which is `lyria-3.5` wherever the backend supports it. If the server answers that `lyria-3.5` is an unknown model, that backend predates it: rerun without `--model` (the server default then applies), or use `lyria-3-pro-preview` for a track longer than 30 seconds. Ask for the length in the prompt. Keep `lyria-3-clip-preview` (fixed ~30s) and `lyria-3-pro-preview` for explicit requests. For Lyria, put desired length, lyrics and \\"instrumental only, no vocals\\" in the prompt; `--length` and `--instrumental` are ElevenLabs-only. Use ElevenLabs Music for exact timing, composition plans, or a style reference track. Lyria allows 10 reference images on Google, 1 on Fal BYOK; Fal 3.5 prompts are limited to 5000 characters. BYOK uses zero VideoDraft credits. ElevenLabs Music means `elevenlabs-music-v2.5` (`elevenlabs-music` is an alias for it); use `elevenlabs-music-v1` only when the user asks for v1 by name.\\n- On a personal ElevenLabs key, the user\'s ElevenLabs plan caps how many requests run at once (often 2 for music, a few for everything else). Run a few ElevenLabs jobs at a time. If one fails with \\"too many concurrent requests\\", rerun it once after the others finish; if it fails again, tell the user instead of retrying. Other ElevenLabs errors (quota, key, permissions) are for the user: report them as given.\\n- ElevenLabs voiceover runs on Eleven v4 in two modes. Standard is the default and the best quality. Turbo (Eleven v4 Turbo) is faster and cheaper. Both are billed per character. Keep Standard unless the user wants faster or cheaper speech. Pick it with `generate voiceover --mode standard|turbo`, `produce --voice-mode standard|turbo`, or MCP `generate_voiceover.mode` / `produce_project.voice_mode`, and quote Turbo with `costs voiceover --chars <n> --mode turbo`. Google, OpenAI and cloned `custom-*` voices ignore the mode (cloned voices cost more per character). v4 has no style or speed settings and no SSML `<break>` tags; audio tags such as `[whispers]` work. Dialogue stays on Eleven v3.\\n- For ElevenLabs voiceover, dialogue, and voice changing, accept a supplied raw voice ID (16-64 alphanumeric characters) or `elevenlabs-<id>`. The voice catalog is for discovery, not an allowlist. Do not reject or substitute a supplied ID because it is absent from `videodraft models voices` / `list_available_voices`. Use `--voice <id>` for voiceover and voice changing, or repeat `--line \\"<id>:Text\\"` for dialogue; for example, `--voice kPzsL2i3teMYv0FxEYQ6` and `--line \\"elevenlabs-kPzsL2i3teMYv0FxEYQ6:Hello.\\"` use the same voice. The voice must be accessible to the provider account used for generation. Private or cloned voices may require the user\'s connected ElevenLabs key. Kling video-control IDs and MiniMax `custom-*` IDs are separate voice systems.\\n- Search the dynamic ElevenLabs catalogue with `videodraft models voices --search \\"warm narrator\\" --language en --source library --page-size 20 --json`. Repeat the same filters with `--page-token <next_page_token>` for more results. `--accent` and `--gender male|female` are optional. ElevenLabs BYOK defaults to the connected account\'s voices; `--source library` explores public voices on that key. Descriptions, previews and access scope help choose a voice. Public discovery does not guarantee Fal access; private voices require their owning/shared ElevenLabs account. Existing VideoDraft prices apply on direct platform generation and Fal fallback; BYOK remains zero VideoDraft credits.\\n\\n- A character who needs to TALK:\\n - **Speaking inside a scene**, or any ordinary clip with dialogue: `generate video` with the line in the prompt, in quotes, with who says it and how. `gemini-omni-1.2-flash`, `seedance-2.5`, `seedance-2`, `kling-3.0` and `kling-o3` all voice it natively. For a specific voice use a Seedance `--ref-audio` clip or a Kling voice bound per element. This is the default path; do not generate speech separately and lip-sync it on.\\n - **Talking to camera from a portrait** (presenter, spokesperson, explainer): the avatar lane, and VEED Fabric is preferred. Use managed `avatar create` then `avatar render` for a reusable avatar record with bundled speech, `avatar fabric` for a one-off portrait plus text or existing audio, and `avatar h3-lipsync` for a short (5-14.8s) portrait clip from existing audio at up to 2K. Not for in-scene shots: Fabric animates a portrait facing the lens, so a cinematic request comes back as a head-on talking headshot.\\n - **Footage that already exists plus replacement audio** (re-dub, translation): `avatar lipsync`. This is the only job for Sync Labs unless the user names it.\\n- Enhancement: use Topaz image/video upscaling only when the content is already correct. Use image 1x for cleanup, 2x by default, 4x when justified; use video 2x by default. Edit or regenerate creative errors.\\n\\nSee [references/models.md](references/models.md) for the detailed routing table and exact capability limits.\\n\\nProvider routing uses a maintained local price catalog, with exact setting compatibility and account rules. Platform requests prefer Google\'s direct image/video APIs and BytePlus for Seedance 2.0/2.5 before comparing public prices. Other models retain their supported provider routing. Agents should keep using normal model IDs and `get_model_costs` / `--estimate` for customer credits. Do not choose a vendor from a marketing starting price or retry an accepted generation to chase a lower price. Unknown or expired comparable costs retain the existing route; a selected personal provider key stays exclusive and overrides platform-account preferences.\\n\\nTemporary provider promotions are excluded from routing prices. With an Atlas personal key, H3 Max supports text or first/last-frame generation at 480P/768P only with `prompt_expansion_mode: \\"disabled\\"` and no seed. Balanced/quality expansion, reference generation and H3 Max Lip Sync require the existing Fal path. Atlas H3 Max is not selected automatically while its published price units remain inconsistent.\\n\\nThe live catalogs show discoverable models. Historical IDs remain valid for explicit requests and recreating saved generations, subject to provider availability. Do not pick a hidden model unless the user explicitly requests it.\\n\\n## Matching AI Studio controls\\n\\nIdeogram 4.5 (`ideogram-v4.5`) replaces 4.0 and remains Tier 2. Quality is low/medium/high (default medium) and is priced per output; regular edits also offer very_low. Supports 1-8 outputs, 1K/2K, seed, and text-only `--prompt-expansion true|false`. Use `--source-image` plus up to four `--ref` images, or source-first `--ref` ordering. `--edit-precision high` and `--mask` require Auto size with no resolution; masks match source dimensions, black edits and white preserves, and reduce additional references to three. See [models](references/models.md) for custom dimensions and examples.\\n\\nFLUX 3 image (`flux-3-image`, separate from `flux-3-max` video) is Tier 2. It generates and edits with up to 10 `--ref` images, `--num 1..4`, `--resolution 1K|2K|4K` (default 1K), `--prompt-expansion true|false` (default true) and `--ar` with 14 ratios plus `auto`. Each image is priced by output size (resolution and ratio); `auto` is quoted at the tier\'s highest price. Without `--ar`, a new image is 16:9 and an edit follows its first reference. No seed.\\n\\nUse `models image --json` / `models video --json` for the accepted options. Nano Banana 2.1 exposes `--thinking-level minimal|medium|high` (default minimal; no extra charge) and `--google-search-grounding true|false`, but no temperature. Nano Banana Pro/2 expose `--temperature 0..2` and `--google-search-grounding true|false`. Qwen uses one `--ref` plus `--horizontal-angle 0..360`, `--vertical-angle -30..90`, and `--zoom 0..10`; its text prompt is optional. Recraft generates SVG and accepts `--quality Normal|Pro`, repeatable `--recraft-color \'#RRGGBB\'`, and `--recraft-background \'#RRGGBB\'`. Original Nano Banana and VideoDraft Image use fixed 1K output.\\n\\nKling 3.0 / 2.5 Pro accept `--cfg-scale 0..1` and `--negative \\"\\"` to clear a negative prompt. Seedance 2/2.5, Wan 3.0, Gemini Omni generation accept `--auto-duration`; do not combine it with `--duration`. Kling O3 reference/edit modes accept image-only `--element` objects, at most four combined with `--ref`.\\n\\nTopaz image results may be immediate or queued. The CLI waits by default and downloads either result with `--download`; `--no-wait` returns a queued job ID. Raw MCP callers must poll `check_generation_status` when `upscale_image` returns `job_id`.\\n\\n## Remove image or video backgrounds\\n\\nUse `videodraft remove-background image <url|file>` for a transparent PNG with Pixelcut, or `videodraft remove-background video <url|file>` for transparent VP9 WebM with VEED Fast. These preserve the existing subject and require no prompt. Local files upload automatically. Both commands wait by default and accept `--download`, `--no-wait`, `--session`, and `--idempotency-key <uuid>`. Keep `.png` / `.webm` extensions; do not name the video `.mp4`.\\n\\nVideo defaults to `--subject person` with refined edges. Use `--subject object` for products/animals, or `--no-refine-edges` for a cheaper pass. Video sources must be VideoDraft-hosted MP4/MOV, at most 100 MB, 5 minutes and 120 fps. Images support original public URLs up to 50 MB. Never send a thumbnail. Quote current pricing with `remove-background video clip.mp4 --estimate`; the server reads actual frames. `--max-credits <n>` caps the authorized charge; `0` requires BYOK.\\n\\nRaw MCP tools are `remove_image_background` and `remove_video_background`; poll `check_generation_status` with their `job_id`. `get_model_costs` accepts `model_id: \\"pixelcut-background-removal\\"` or `\\"veed-background-removal\\"`, plus `source_url` for an exact quote (required for video) and optional `refine_edges`. Supply `max_credits` from the quote. These tools support VideoDraft credits or Fal BYOK only. After an uncertain submission, poll its job ID or reuse the same idempotency key; never start another paid job to recover a lost response.\\n\\nFor an existing native-editor clip, follow the guarded [background-removal handoff](references/editor.md#background-removal-handoff): prepare the original source, process it through the CLI/MCP, import the transparent result, then apply it while keeping the original linked sound. PNG works directly; VP9 WebM requires an alpha-preserving MOV conversion and verification before import. Check conversion availability before spending credits.\\n\\n## Cloud render (Blender on a cloud GPU)\\n\\nUse Cloud render when the user wants their own Blender scene, an animation or a frame range, rendered on a cloud GPU, for example because rendering locally is too slow. It renders a saved `.blend`; it does not generate or edit the scene.\\n\\n```bash\\nvideodraft render prices # live price per GPU-minute for each GPU size on offer\\nvideodraft render blender scene.blend --frames 1-240 # upload, render, wait, download media/renders/<job_id>.mp4\\nvideodraft render stop # switch every GPU off when your task is done\\n```\\n\\n- Pack the scene first (Blender: File > External Data > Pack Resources, then save). Files outside the `.blend` are missing on the GPU, and scripts inside it never run. The engine (Cycles or Eevee) is whatever the scene is set to.\\n- `videodraft render prices` lists the GPU sizes on offer; `--gpu full` (96 GB) is the default and fastest. When smaller sizes (`half`, `quarter`) are offered they cost less per frame but take longer: use them when the user wants it cheaper and is not in a hurry, and run a render again on a bigger size if it fails for GPU memory.\\n- Every job gets its own machine, so several renders run at the same time. A machine bills per second while it is on, at the rate `videodraft render prices` returns, and switches itself off 1 minute after its last job. State the rate and get a go-ahead before long renders; `render status` shows a job\'s cost so far and an estimate. When your task is done, run `videodraft render stop` so idle time is not billed.\\n- Waiting for a GPU is never billed. A job waits for Google to hand over a machine (usually 1 to 10 minutes, longer at busy times), then pays for about 15 seconds of start-up, the rendering, and about a minute of idle time before its machine switches off (none when another job takes the machine over). Test renders cost a few credits, so run tests and proofs in the cloud too, and submit jobs together. A queued job may have a machine starting or charges from an earlier attempt; check its phase and cost. Its displayed machine is only a candidate until the job is claimed.\\n- Name jobs with `--name \\"S4 final\\"` (default: the scene\'s file name and frames); `render status`, `wait`, `cancel` and `resume` take the name, and `render list --name` finds it, so you need no file of job ids.\\n- Exit code 4 means credits ran low, before the job started or mid-render (the job pauses and keeps its finished segments; uploading and starting need a minimum balance). Tell the user; after they top up, run `videodraft render resume <job_id>`.\\n- Renders can take hours. For long jobs use `--no-wait`, then `videodraft render wait <job_id>`. Never submit the same render again to recover from a lost wait; check `videodraft render list`.\\n\\nFlags, outputs and the MCP flow (`cloud_render_*` tools): [references/cloud-render.md](references/cloud-render.md), or `videodraft skills show render`.\\n\\n## Prefer references when continuity matters\\n\\nPure text-to-image or text-to-video is fine for a generic one-off asset. When a specific character, product, location, style, composition, or brand identity must survive generation, use references instead of hoping the prompt recreates it.\\n\\n- If the user supplies reference media, preserve and pass it. Never reduce the request to text alone.\\n- When continuity matters, generate/select a strong still first with the selected image model (`nano-banana-2.1` by default), wait for its URL, then animate it as a start frame/reference. Confirm the combined image and video cost.\\n- When using a hosted storyboard stage for multiple shots, use `videodraft shots <project_id> --model <selected-image-model> --grid`, then animate the decoded shots. Preserve explicit models. In VideoDraft ADE, import the resulting assets into the selected editing app (the native editor by default) instead of continuing into hosted production. A requested non-Seedance video model must use manual per-shot generation instead of Seedance full-video mode.\\n\\n## Cost and credits\\n\\nDo not call `videodraft credits` before routine generations. Paid endpoints validate and deduct atomically; if the balance is insufficient, the request is rejected before the provider job starts (CLI exit code 4). Check the balance only when the user asks, gives a credit budget, or a large workflow needs budget planning.\\n\\nThis skill lists no prices because they change with provider routing and sales. Get the current price from `videodraft costs <model> [settings]` or the command\'s `--estimate` flag; both read live prices from the server and spend nothing. Never quote a price from memory or from older notes. For expensive work, estimate first, state the selected model/settings/cost, and get a go-ahead. This matters most for shot-image batches, long or high-resolution video, AI Production, and paid audio batches. Honor the user\'s confirmation preference for the session.\\n\\nKling voice creation has a small charge on the platform Fal account and is free with Fal BYOK. Preview it with `videodraft kling-voices create <sample> --name <name> --estimate`; the estimate does not create a voice or require consent confirmation. Actual creation requires `--confirm-consent`.\\n\\nMiniMax H3 is billed per output second by resolution (768p by default). In reference mode the first 5 images are included and each additional image adds a charge. Reference video and reference audio are NOT billed.\\n\\nMiniMax H3 Max is billed per output second at 480p or 768p (default), plus pooled reference tokens in reference mode: a free allowance, then a charge per 1,000 tokens, where an image is `(width x height) / 1024` tokens, a reference video is 2,886 tokens per second at 480p or 7,459 at 768p, and reference audio is about 2,121 per second. Use `--prompt-expansion-mode disabled|balanced|quality`; balanced is the default. Fal\'s provider safety checker is OFF by default and is not exposed in the app \u2014 only pass `--safety-checker true` if the user explicitly asks for it.\\n\\nWan 3.0 is billed per output second by resolution. Auto duration reserves the 30-second maximum and refunds the unused reserve after the provider reports the actual whole-second output length. Fal BYOK runs on the connected user key and charges zero VideoDraft credits.\\n\\nGrok Imagine Video 1.5 is billed per output second by resolution, plus a small charge for each first-frame or reference image. Native audio is always generated.\\n\\n`videodraft models image|video` lists the live image and video catalogs with supported inputs. Video entries are grouped as `generation`, `video_edit`, `motion_control`, `avatar_lipsync`, and `upscale`, and each reports the exact tool. Use `videodraft models video --category video_edit` to narrow the list. `videodraft models audio` lists Seed Audio, Google Lyria, and ElevenLabs audio/media tools, while `videodraft models voices` helps discover TTS voices. Consult them for capabilities; a supplied ElevenLabs voice ID does not need to appear in the voice catalog.\\n\\n## Async jobs\\n\\nImage/video generation is asynchronous: commands submit a job and **wait by default**, printing output URLs (and saving files with `--download`). Large downloaded images also get a downscaled copy in `previews/` next to them (the `preview` field / \\"inspect via preview\\" line in the output) \u2014 **look at the preview, deliver the original**; viewing full-resolution images bloats the chat permanently. In scripts/CI prefer explicit control:\\n\\n```bash\\nJOB=$(videodraft generate image \\"...\\" --no-wait --json | jq -r .job_id)\\nvideodraft wait \\"$JOB\\" --download \\"./outputs/{job_id}_{index}.{ext}\\" --json\\n```\\n\\nFor MANY jobs: submit each with `--no-wait`, collect ALL with one command \u2014 `videodraft wait <id1> <id2> ...` polls every job from one process with one batched request per tick. Do NOT spawn parallel `wait`/`generate --wait` processes for a batch.\\n\\nIf a wait times out, the job is still running server-side \u2014 `videodraft status <job_id>` later. Never re-submit just because a wait timed out (that double-spends credits).\\n\\nFor completed Wan 3.0 jobs, MCP `check_generation_status` and CLI `status`/`wait --json` include `outputMetadata` with Fal\'s returned `seed`, `duration`, and `actual_prompt` when present.\\n\\n## AI Studio sessions\\n\\nStandalone image/video/audio generations are filed into an AI Studio session in the web app. 3D assets use `assets 3d list/get` separately. You do not have to create an AI Studio session:\\n\\n- **MCP hosts** (Claude Code, claude.ai, Codex, VideoDraft ADE): on 2025-era MCP the server mints an `Mcp-Session-Id` on `initialize`; your host echoes it, and this conversation\'s generations land in their own session. On stateless MCP (2026-07-28) hosts that send a conversation id (ChatGPT) get the same. Otherwise `name_current_ai_studio_session` returns `pass_session_id: true` with a `session_id`: pass that `session_id` to every later standalone generation in the conversation. Tool results echo the session as `ai_studio_session_id`.\\n- **CLI**: the same handshake runs once per (profile, server, working directory) and is cached for 12 idle hours, so everything generated from one directory shares one session. `videodraft sessions current` shows it; `videodraft sessions reset` starts a new one.\\n- Project generations (`--project <id>` / `project_id`) always go to that project\'s session.\\n\\nOnce you understand the creative task, name the current automatic session before the first standalone generation:\\n\\n```bash\\nvideodraft sessions name \\"Purple Seal Rescue Short\\"\\n```\\n\\nChoose a concise, specific 3-6 word title for the intended work. Do not copy the client name, date, or exact chat title. Name it once: the operation creates the session with that title. If generation, a user, or an earlier agent created the session first, its existing name is preserved.\\n\\nApart from the `pass_session_id: true` case above, pass `--session <id>` / `session_id` only to **continue earlier work** or create an explicit separate group:\\n\\n```bash\\nSESSION=$(videodraft sessions create \\"Fox brand explorations\\" --json | jq -r \'.session.id\')\\nvideodraft generate image \\"a red fox in snow, cinematic\\" --session \\"$SESSION\\"\\nvideodraft generations --session \\"$SESSION\\" # what is in it\\nvideodraft sessions list --name fox # find it again later\\n```\\n\\n`VIDEODRAFT_SESSION=<id>` sets the default for every command (ignored when `--project` is given). While it is set, `sessions name` refuses to run because that command names the current automatic connection session, not the pinned override; unset it first or rename the pinned session in AI Studio. `VIDEODRAFT_SESSION_SCOPE=<label>` groups several directories into one connection session; `VIDEODRAFT_CLIENT_NAME=<host>` labels the fallback placeholder used when generation creates the session before `sessions name`; `VIDEODRAFT_NO_SESSION=1` disables the handshake. Generations that reach the server with no session at all fall back to the account-wide \\"Agent (MCP)\\" session; if you see work landing there, pass `--session` explicitly.\\n\\n## Generation history\\n\\nPast work is queryable \u2014 reuse a previous setup instead of guessing. `videodraft generations` lists recent generations; scope with `--session <id>` or `--project <id>` (includes collaborators\' rows in shared scopes; pass one, project wins), and filter with `--type`, `--model`, `--favorites`. `--full --json` returns each row\'s exact parameters (aspect ratio, resolution, duration, references) \u2014 the human table stays compact, so pair `--full` with `--json`. `videodraft generation <id>` prints one generation\'s complete recipe (prompt, input image, parameters, outputs); `--favorite` / `--unfavorite` stars it. `videodraft sessions list` shows AI Studio sessions (owned + shared) with `--name` search \u2014 take a session id from there to read its history.\\n\\n## Free stock footage and photos\\n\\nPexels and Pixabay are wired in through `search_stock_media` / `import_stock_media` (`videodraft stock search \\"<query>\\"`, `videodraft stock import <ref>`). Both libraries are free, watermark-free and cost **zero credits**, so use stock for b-roll, establishing shots, backgrounds and ordinary real-world footage, and spend credits on the shots that must be specific: the product, the character, the scripted action.\\n\\n```bash\\nvideodraft stock search \\"city skyline night\\" --min-duration 5 --orientation landscape\\nURL=$(videodraft stock import pexels:video:35379336 --quality hd --json | jq -r .url)\\n```\\n\\n- Always two steps. A search result\'s `preview_url` is a thumbnail for judging the shot; never place it on a timeline, attach it to a shot or send it to a model. `import_stock_media` copies the file onto the VideoDraft CDN and returns the URL every other surface accepts, including the native editor\'s `library_manage` import.\\n- `--quality hd` (default) caps video at 1080p; `4k` caps at 2160p, `best` takes the largest the provider has, `sd` suits rough cuts. Stills ignore quality and import at full size. Use `--orientation portrait` for 9:16, and `--min-resolution 1920` to drop anything below HD on its long edge.\\n- Photos come from Pexels. Pixabay contributes video only, because its full-size image host refuses server-side downloads.\\n- Credit the creator and link the provider page when you show results or deliver the finished work; both come back on every result. Skip clips that imply a person or brand endorses the product, and avoid recognisable logos in ads.\\n- Search and import are rate limited per user (30 searches and 15 imports a minute) and searches are cached for 24h, so a burst of searches while planning a montage is fine. Bulk downloading a stock library is prohibited by both providers. A note saying Pixabay was skipped means its provider budget for that minute is spent; the Pexels results still stand.\\n\\n## Downloading from YouTube, Instagram, TikTok and other sites\\n\\nVideoDraft ships no downloader. When the user asks to pull a video from YouTube, Instagram, TikTok, X, LinkedIn or anywhere else, `yt-dlp` on the user\'s own machine does the work. Check for it with `command -v yt-dlp` before promising anything.\\n\\n**Present:** pin the format. On its defaults yt-dlp takes the best stream, usually VP9 or AV1 in WebM, which the native editor\'s import rejects (mp4, mov and m4v only). This returns one pre-muxed H.264 + AAC MP4 and needs no ffmpeg:\\n\\n```bash\\nyt-dlp -f \\"b[ext=mp4]\\" -o \\"media/%(title)s.%(ext)s\\" \\"<url>\\"\\n```\\n\\n**Missing:** say so in one line, then offer `brew install yt-dlp` only where `brew` exists, and only after asking. With no Homebrew, say the tool is unavailable and stop.\\n\\n- Never install Homebrew, never `sudo`, never write to `/usr/local/bin` or `/opt`, never pipe a script into a shell.\\n- `ffmpeg` is optional, matters only above 720p, and the selector above never needs it.\\n- Auth-gated content needs `--cookies-from-browser`; raise it only after a download fails on auth.\\n- Fetch only what was asked for, never a channel, playlist or back catalogue.\\n\\n## Local files and reference images\\n\\nReference inputs must be public URLs. The CLI uploads local files automatically wherever a URL is expected (`--ref photo.jpg`, `--start-image frame.png`), or explicitly:\\n\\n```bash\\nURL=$(videodraft upload ./product.png --json | jq -r .url)\\n```\\n\\nNever silently drop a reference you couldn\'t upload \u2014 stop and tell the user. Never upload a user\'s file to a third-party host.\\n\\nWhen the user attaches media for a native production, import actual footage into the editor by default. For hosted generation/storyboarding, classify each item before acting: a recurring **visual asset** (character/product/location/style), actual **footage to place as shots**, or **inspiration only**. See [references/pipeline.md](references/pipeline.md) for the hosted role mapping.\\n\\n## Showing media to the user\\n\\nGenerated media is **not** displayed in the chat automatically \u2014 you decide what to show. To preview an asset inline, save it locally (use `--download` so it lands under `media/`) and reference its **local path** as a Markdown link with a **leading `./`**:\\n\\n```\\n[ferrari shot](./media/ferrari_01.png) \u2190 image card\\n[the clip](./media/clip.mp4) \u2190 video player\\n[voiceover](./media/vo.mp3) \u2190 audio player\\n```\\n\\nPut the Markdown link **in your message text** \u2014 video and audio embed exactly like images. Do **not** use `SendUserFile` (or other file-send tools) to display media: that renders inside a collapsible tool card and gets buried in the tool list. The Markdown link in your prose is what produces the inline card.\\n\\nUse the path you saved to: a **workspace-relative** path (`./media/clip.mp4`, or `./<any-folder>/clip.mp4` \u2014 any folder in the workspace works), or the **absolute** path for a file outside the workspace (e.g. `/Users/you/Desktop/clip.mp4` or another workspace\'s path). Both render. Show the finished results worth showing (and only those \u2014 not every intermediate job). A bare CDN URL or a JSON dump of output URLs does **not** render; the local-path Markdown link is what produces an inline card.\\n\\n## Native-first VideoDraft ADE pipeline (idea \u2192 MP4)\\n\\nWhen `videodraft_editor` is present and no chosen app or existing external project takes precedence:\\n\\n1. Generate or source the script, storyboard, shot images, clips, voiceovers, music, and other assets through the cloud CLI/MCP as needed.\\n2. Call native `project_manage` (`project`, action `open` or `create`) to open or create the `.vdproject`.\\n3. Call native `library_manage` `import`, wait for imports to become ready, then assemble and refine the timeline with `edit_apply` recipes.\\n4. Call native `delivery_manage` `submit` and use its `jobs` operation for progress and results.\\n\\nDo not run the hosted production or export steps in this path unless the user explicitly asks for a web production.\\n\\n## Hosted fallback pipeline (idea \u2192 MP4)\\n\\nUse this when the user explicitly requests the hosted web workflow, or there is NO native editor\\nand no external app is selected. The native surface is not only the injected `videodraft_editor` MCP: a `videodraft-editor`\\nexecutable on PATH is the same editor reached through its terminal bridge, and\\n[references/editor.md](references/editor.md) covers driving it that way. Treating a missing MCP as\\n\\"no editor\\" sends sessions that have the binary into hosted production for no reason.\\n\\n```bash\\nvideodraft create \\"<idea>\\" --ar 9:16 # project: script \u2192 visual assets \u2192 storyboard\\nvideodraft shots <project_id> --grid --estimate # cost preview, confirm with user\\nvideodraft shots <project_id> --grid # batch shot images (waits, writes onto shot cards)\\nvideodraft produce <project_id> # voiceovers + captions + production timeline\\nvideodraft export <project_id> --download final.mp4\\n```\\n\\nOptional between produce and export: per-shot motion clips (`videodraft generate video ... --project <id>` then place it with `videodraft attach <project> --scene N --shot M --media <url|file> --type video --duration <s>`), music (`videodraft generate music \\"...\\" --attach <project_id>`), and standalone audio assets (`generate audio`, `generate sound-effect`, `generate dialogue`, `generate voice-changer`, `generate dub`). Details, per-step tools and editing rules: [references/pipeline.md](references/pipeline.md).\\n\\n## Avatar and talking-head videos (both surfaces)\\n\\nAvatar generation is cloud-only, so this applies whether or not `videodraft_editor` is present. Generate the avatar in the cloud; when a larger edit is requested, import the rendered clip into the selected editing app (the native editor by default) and cut it like any other footage.\\n\\nAvatar/talking-head videos use dedicated commands. For a reusable managed avatar, obtain or generate a clear portrait \u2192 `videodraft avatar script` when needed \u2192 `videodraft avatar create` \u2192 `videodraft avatar render --resolution 720p`. For a one-off portrait, use `videodraft avatar fabric <portrait> --text \\"...\\"` or `--audio <file>`, or `videodraft avatar h3-lipsync <portrait> --audio <file>` for a short high-resolution clip from existing audio. For an existing video plus replacement audio, use `videodraft avatar lipsync <video> --audio <file>`. Managed script/creation is bundled/free; direct Fabric, H3 Max Lip Sync, Sync, the managed Fabric render, and optional portrait generation/upscaling are paid. Confirm expensive steps first.\\n\\n## Working with hosted project data\\n\\nA hosted project is one JSON blob (script, storyboard scenes, shot cards, visual assets, production timeline). To inspect: `videodraft projects get <id>`. To edit: fetch `--raw`, modify, then `videodraft call update_project` \u2014 objects deep-merge, **arrays replace wholesale** (send the complete `storyboard.scenes` array to change one scene). Snapshot first with `videodraft checkpoint create <id>` before risky edits. Schema reference: `videodraft call get_project_schema`. This does not replace the chosen app\'s project or the native editor\'s `.vdproject` for the production itself.\\n\\n## More\\n\\n- [references/pipeline.md](references/pipeline.md) \u2014 hosted fallback data model and production workflow\\n- [references/editor.md](references/editor.md) \u2014 native headless editor routing, project selection, import, timeline edits, verification, and export\\n- [references/models.md](references/models.md) \u2014 choosing image/video models, pricing patterns, voices and styles\\n- [references/examples.md](references/examples.md) \u2014 recipes: batch product videos from a CSV, talking-head from a script, changelog video in CI\\n- [references/cloud-render.md](references/cloud-render.md): Cloud render commands, flags, exit codes, cost and the MCP flow\\n","references/3d.md":"# Standalone 3D assets through MCP and CLI\\n\\nUse this lane for downloadable meshes, textured 3D models, and humanoid rigging. These are independent of AI Studio sessions and do not require a storyboard or web viewer. Never create a project just to generate a mesh. Native editor media import does not establish support for GLB/FBX assets; use external 3D software unless the live editor schema explicitly supports them.\\n\\n## Discover and quote\\n\\n```bash\\nvideodraft models 3d --json\\nvideodraft generate 3d \\"a worn brass telescope\\" --model meshy-7 --estimate\\nvideodraft generate 3d --model tripo-h3.1 --ref ./reference.png --options @options.json --estimate\\nvideodraft rig 3d --estimate\\n```\\n\\nMCP tools: `get_3d_models`, `estimate_3d`, `generate_3d`, `rig_3d`, `check_generation_status`, `list_3d_assets`, `get_3d_asset`, `create_3d_upload`, and `finalize_3d_upload`.\\n\\nThe generator catalog is deliberately limited to `meshy-7` (Meshy 7.1; the CLI also accepts `meshy-7.1`) and `tripo-h3.1`. Both expose text/image/multi-image modes; use the live schemas for option availability, view order, limits, topology, texture/PBR, and pose controls. Do not invent common provider option names. Server defaults prioritize quality. Meshy\'s `geometry_resolution` sets geometry detail: text/image default to `2k` and also take `standard` or `4k` (4k costs more than 2k); multi-image takes `standard` (default) or `2k`. `ultra_mode` is a deprecated alias for 2k. Rigging is a separate Meshy operation for compatible textured humanoid GLBs; it is not an arbitrary creature or facial rig service.\\n\\nEvery option is accessible through `--options` JSON (`@path.json` supported), plus repeatable `--option key=value` overrides. Values parse as JSON when valid. Options and explicit input mode affect pricing, so obtain a fresh quote for the exact recipe. Estimates perform no file upload or provider generation. VideoDraft bills whole credits at 100 credits per dollar using the server\'s rounding rules. BYOK costs zero VideoDraft credits and runs on the connected user Fal key. Do not infer the user\'s Fal-account charges from a zero VideoDraft-credit quote.\\n\\n## Generate and retrieve\\n\\n```bash\\nvideodraft generate 3d \\"a worn brass telescope\\" --model meshy-7 --download --json\\nvideodraft generate 3d --model meshy-7 --ref ./hero.png --no-wait --json\\nvideodraft generate 3d --model tripo-h3.1 --input-mode multi_image --ref ./front.png --ref ./left.png --ref ./back.png --ref ./right.png --no-wait --json\\nvideodraft status JOB_ID --json\\nvideodraft wait JOB_ID --download --json\\nvideodraft assets 3d list --status completed --json\\nvideodraft assets 3d get ASSET_ID --download ./media/3d --json\\nvideodraft rig 3d --asset ASSET_ID --download --json\\nvideodraft rig 3d ./textured-humanoid.glb --download --json\\n```\\n\\nLocal image references upload automatically. Local rigging inputs must be self-contained `.glb` files and upload via the dedicated 3D route. Input mode is inferred from reference count unless `--input-mode text|image|multi_image` is supplied. A text prompt requires no images; image mode requires exactly one and no geometry prompt. Meshy multi-image accepts 1-4 views, and Tripo accepts 2-4 in front, left, back, right order. Use Meshy\'s `texture_prompt` option when texturing guidance is needed with image inputs. Do not mix unrelated images as if they were views of the same object.\\n\\nGeneration and rigging wait by default. `--no-wait` returns a persisted job that continues server-side. For many jobs use one `wait ID1 ID2 ... --download`; do not run parallel polling processes. Recover timeout with the same job ID, not another paid generation.\\n\\nSubmission returns a `request_id` UUID. A same-request retry must use `--request-id UUID` and the original arguments. The CLI journals resolved uploads in its private config directory so retries reuse the same remote files. Changed inputs under that UUID are rejected. Submission errors include the UUID in JSON `details.request_id` where available. Never retry a failed request with a new UUID until the prior job status is known.\\n\\n## Complete artifact packages\\n\\n`--download` defaults to `media/3d/<asset_id>/`. A user directory is respected and receives a per-asset folder. `{job_id}` and `{asset_id}` directory templates are accepted. Do not pass a `.glb` filename or a media `{index}.{ext}` template: a 3D result can contain multiple formats and texture/material dependencies.\\n\\nDownloads preserve every returned artifact. The manifest records provider URLs, source filenames, local paths, role, content type, and actual downloaded sizes. glTF/OBJ/MTL references are rewritten to saved dependency paths; binary GLB/FBX and provider ZIPs are retained as returned. Supplied dependency aliases become local copies at the paths needed by original FBX files. Unsafe or colliding aliases produce warnings. Existing packages are never overwritten. A successful package has `manifest.json`; read its `complete` field and `warnings`, plus CLI `package_warnings`. Do not claim a package with unresolved dependencies is ready for offline use.\\n\\nMachine results use `type: \\"model3d\\"` with `output_files` for files and `output_media` only for ordinary preview media. Texture maps and models are not image/video gallery entries. Show a supplied preview via a local image Markdown link and deliver the original mesh/package files. Do not imply an interactive 3D viewer exists in AI Studio or VideoDraft ADE.\\n","references/cloud-render.md":"# Cloud render: Blender scenes on a cloud GPU\\n\\nCloud render renders the user\'s own `.blend` scene on cloud GPUs (NVIDIA RTX PRO 6000). Every job gets its own machine, so several jobs render at the same time; a machine starts on demand, takes the user\'s next job of its size when one is waiting, and switches itself off 1 minute after its last job. Waiting for a GPU is never billed. It generates nothing. Build or change the scene in Blender itself (in VideoDraft ADE, the `blender` app guide covers that); Cloud render only renders a saved file.\\n\\n## Commands\\n\\n```bash\\nvideodraft render prices # live price per GPU-minute for each GPU size\\nvideodraft render blender scene.blend --frames 1-240\\nvideodraft render blender scene.blend --frames 1-240 --blender 4.5 --out ./media/renders/ --json\\nvideodraft render blender scene.blend --frames 1001-1500 --name \\"S4 final\\" --no-wait --json\\nvideodraft render wait \\"S4 final\\" --out ./media/renders/ # a job id works everywhere a name does\\nvideodraft render status \\"S4 final\\" --json\\nvideodraft render list --limit 10 # names, status, cost, and what each machine is doing\\nvideodraft render list --name \\"S4 final\\"\\nvideodraft render cancel JOB_ID\\nvideodraft render resume JOB_ID\\nvideodraft render machine # each machine\'s phase, what you pay now, 24 h and all-time spend\\nvideodraft render stop # switch every GPU off now\\n```\\n\\n`render blender` flags:\\n\\n- `--frames <first>-<last>` (required): the inclusive frame range, or one frame such as `--frames 42`.\\n- `--name <label>`: what to call the job, up to 80 characters (default: the scene\'s file name and the frames, such as `main_v8 845-1350`). `render status`, `wait`, `cancel` and `resume` accept the name instead of the job id (the newest job with it; cancel and resume refuse when two jobs of that name qualify), and `render list --name` finds them. Name each job after its shot or purpose and you never need your own file of job ids.\\n- `--fps <n>`: frame rate of the output MP4 (default: the scene\'s own).\\n- `--chunk <n>`: frames per segment. Segments render in order, and finished ones are kept when a job pauses, fails or is cancelled.\\n- `--procs <n>`: Blender processes running in parallel on the GPU, 1-4.\\n- `--blender 5.2|4.5`: Blender version (default 5.2).\\n- `--gpu full|half|quarter`: GPU size (default `full`). See [Choosing a GPU size](#choosing-a-gpu-size).\\n- `--out <dir|file.mp4>`: where the clip goes (default `media/renders/<job_id>.mp4`).\\n- `--no-wait`: submit, print the job id and return. Resume with `videodraft render wait <job_id>`.\\n\\n## What the CLI does\\n\\n1. Hashes the file (SHA-256). A scene with the same bytes is uploaded only once, so re-rendering other frames skips the upload.\\n2. Uploads a new scene to its upload session in resumable 64 MiB chunks; after a dropped connection it asks the session what arrived and continues from there.\\n3. Submits the job. It waits for Google to hand over a GPU: usually 1 to 10 minutes, 15 or more at busy times. This wait is not billed, and the job keeps its place in the queue.\\n4. Polls every 10 seconds with no time limit (renders can take hours), printing each change: `waiting for a free GPU (not billed)`, `a GPU is starting for queued jobs (billed)`, `rendering (2/4 segments)`. After 5 minutes queued with a candidate still waiting for a GPU it says once that this can take longer. `--wait-timeout` and `--wait-interval` still apply when given.\\n5. Downloads the finished MP4, then says what the job cost and where the billed time went, for example `Billed 2m 18s of GPU time (start-up 15s, rendering 38s, idle before switch-off 1m 25s). Waited 8m 19s for a GPU, not billed.`\\n\\n`--json` prints one document: the job (`job_id`, `name`, `status`, `message`, `queued_seconds`, `wait_seconds`, `segments_done`, `segments_total`, `timing`, `cost`, `clip_url`) plus `scene_sha`, `uploaded` and `downloaded_files`. A queued job\'s machine is only a candidate and can change; `queued_seconds` can include billed start-up, while `wait_seconds` is the unbilled wait once known. With `--no-wait` it is the submitted job: `job_id`, `name`, `status`, `message`, `machine`, `credits_per_minute` and `segments`.\\n\\nExit codes: 0 done; 1 failed, cancelled or another error; 2 bad flags; 3 not signed in; 4 out of credits. Code 4 comes either before the job starts (the balance is below the minimum a job needs) or mid-render: the job pauses, keeps its finished segments, and waits. Tell the user, and after they add credits run `videodraft render resume <job_id>`. A failed job carries its error; `render resume` retries its unfinished segments, but fix the scene first when the error points at it.\\n\\n## Choosing a GPU size\\n\\n`videodraft render prices` lists the sizes on offer and each one\'s rate:\\n\\n| `--gpu` | GPU memory | Speed | Cost per frame |\\n| ------------------------ | ---------- | ------- | ---------------------------- |\\n| `full` (default) | 96 GB | fastest | highest |\\n| `half` (when offered) | 48 GB | slower | lower |\\n| `quarter` (when offered) | 24 GB | slowest | lowest, most of all on Eevee |\\n\\nAll bill per second. A smaller GPU is cheaper overall, not just per minute, because one render rarely uses a whole RTX PRO 6000. Use `full` when the user is waiting, has a deadline or the scene is heavy; a smaller size when they want it cheaper and are not in a hurry. The scene has to fit in the GPU memory: if a render fails for memory, run it again on a bigger size. `render status` shows a job\'s cost so far and, while it renders, an estimate for the whole job.\\n\\n## Scenes must be self-contained\\n\\nPack external files before rendering: in Blender, File > External Data > Pack Resources, then save. Linked libraries, simulation caches and images outside the `.blend` are missing on the machine, and the machine has no internet. Blender runs in background mode with auto-run off, so scripts and drivers that need Python inside the file do not run.\\n\\n## Cost and machine time\\n\\nWhat a job is billed for, at its GPU size\'s rate from `videodraft render prices` (MCP `cloud_render_prices`), per second:\\n\\n| Part | Billed | Typical |\\n| -------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------- |\\n| Waiting for Google to hand over a GPU | **No** | 1 to 10 minutes; 15 or more at busy times |\\n| Start-up, once Google hands the machine over | Yes | about 15 seconds, only on a machine\'s first job |\\n| Rendering | Yes | the frames |\\n| Idle wait and power-off after the job | Yes | about 85 seconds, only when no job of its size is waiting; a waiting job takes the machine over at once |\\n\\nEach start has a one-minute minimum. So a short test job costs only a few credits, mostly its minute of start-up and idle time, and test renders, proofs and previews belong in the cloud as much as finals. Submit all the jobs you have at once: each gets its own machine, and jobs that wait for the same GPU size take over finished machines with no start-up or idle time.\\n\\n`render status` and `render wait` show the split: `waited` (not billed), then `billed` as start-up, rendering and idle. A job\'s cost can still grow for about a minute after it is done, while its machine waits for more work; `cost.final` says when it is settled, and until then `cost.estimated_total_credits` says what it will be. `render machine` shows what each machine is doing: `waiting for a GPU (not billed)`, `starting up`, `rendering`, `idle` or `switching off`, and `billing now` adds up only the machines Google has handed over.\\n\\nWaiting for a GPU is free. A queued job may also have a machine starting, which is billed, or charges from an earlier attempt; check its phase and cost. If a GPU takes long, say Google is short of GPUs at the moment and the job keeps its place.\\n\\nUploading and starting need a minimum balance; when only about two minutes of credit are left, every machine stops and the jobs pause. State the rate and get a go-ahead before long renders. When your task is finished, run `videodraft render stop` so idle time is not billed, unless the user still has renders queued.\\n\\nNever submit the same render twice to recover from a lost wait or a timeout: the first job keeps running and billing. Check `videodraft render list` (or `render list --name <name>`) and continue with `render wait`.\\n\\n## Without the CLI (MCP)\\n\\n1. `cloud_render_upload_scene` with the file\'s `sha256` and `size`. `exists: true` means skip to step 3.\\n2. PUT the bytes to `upload_url`: one PUT of the whole file, or chunks that are multiples of 256 KiB with `Content-Range: bytes <first>-<last>/<size>` (308 means send the next chunk from the Range header, 200 or 201 means complete). Then `cloud_render_finalize_scene` with the same `sha256`.\\n3. `cloud_render_submit` with `scene_sha`, `start`, `end` and optional `name`, `gpu`, `fps`, `chunk`, `procs`, `blender_version`.\\n4. Poll `cloud_render_status` every 10 seconds or more. `message` and `machine.phase` distinguish a free GPU wait from billable start-up; a queued job\'s machine is a candidate that can change. `queued_seconds` includes time queued; `wait_seconds` gives the free wait when known. `clip_url` is the finished MP4; `segment_urls` lists finished pieces before then; `cost` has the credits so far, `start_up_seconds`, `render_seconds` and `idle_seconds`, and `estimated_total_credits` (plus `estimated_minutes_left` while rendering).\\n5. `cloud_render_stop` when the work is done. `cloud_render_list` (with `name` to find jobs by name), `cloud_render_cancel`, `cloud_render_resume` and `cloud_render_machine` (each machine\'s `phase` and `billing`) match the CLI commands above.\\n","references/editor.md":"# Native VideoDraft Editor reference\\n\\nUse this reference when the user wants to assemble, cut, caption, mix, lay out, inspect, or export a local VideoDraft Editor project. The native editor is deterministic and local. Cloud generation remains in the `videodraft` CLI or hosted MCP.\\n\\n## VideoDraft ADE preference rule\\n\\nWhen `videodraft_editor` tools are exposed and no chosen app or existing external project takes precedence, treat the native editor as available and make it the default surface for production, timeline assembly, and final export. It is headless by design, so a hidden window or an untouched Open Editor button does not justify using hosted production instead.\\n\\nHonor the user\'s chosen app, an existing project\'s editing surface, and VideoDraft ADE\'s `<creative_routes>` before applying this native-editor reference. An explicit current request takes precedence over the saved route. For a chosen external app, work directly there with its available scripting, CLI, verified MCP and Computer Use, preserving the editable project. When `creative_apps` is actually exposed, read that app\'s bundled guide; when `creative_mcp` is exposed, use its live discovery and the guide\'s connection/recovery rules. Neither tool is a public `videodraft` CLI command or guaranteed outside VideoDraft ADE. Do not create a `.vdproject` merely to hand an external-app task back to the chosen application.\\n\\nFor a native production, use cloud tools for asset generation and optional script/storyboard work, then import the results. Do not call hosted `produce_project` / `videodraft produce` or `export_video` / `videodraft export` unless the user explicitly requests an editable web production, or the native editor is unavailable and no external app is selected. If a native tool call fails after the editor was available, report or recover that native failure rather than silently switching surfaces. The editing destination does not change the generation model, payer or spending limits.\\n\\n## Choose the correct surface\\n\\n- `videodraft` and the hosted VideoDraft MCP generate assets and can manage hosted web projects. They use the user\'s VideoDraft account and credits. In VideoDraft ADE, use them mainly as the source of generated media and optional storyboards for the native production.\\n- `videodraft_editor` edits local `.vdproject` packages. It has no generation, account, model, or credit tools.\\n- Inside VideoDraft ADE on a supported Mac, the editor MCP is injected automatically for Claude, Codex, OpenCode and Grok in both Code and VideoDraft modes. It starts headlessly before the chat opens. The user does not need to click Open Editor, and closing or hiding the editor window does not stop headless editing.\\n- Outside that environment, use the editor only if `videodraft_editor` MCP tools are already exposed or the `videodraft-editor` executable is on PATH. Do not confuse the public `videodraft` cloud CLI with the separate native editor executable.\\n\\nPrefer the direct MCP tools when they are available. The terminal bridge is useful for scripts, diagnostics, or an agent session where the MCP was not injected.\\n\\n## Which editor tools you have\\n\\nCurrent editors expose eight workflow tools: `project_manage`, `edit_snapshot`, `edit_apply`, `edit_undo`, `library_manage`, `inspect`, `speech_apply`, and `delivery_manage`. Use them whenever `edit_apply` is available. Everything below describes them.\\n\\nEarlier editors expose a different set of tools. If `edit_apply` is not in your catalog, follow the live tool descriptions; the working rules below still apply.\\n\\nThe live tool descriptions and schemas are authoritative. When they differ from this reference, follow them.\\n\\nService tools (`project_manage`, `library_manage`, `inspect`, `speech_apply`, `delivery_manage`) take `operation` and `parameters`, plus an optional `context` (see [Keep a reliable editing model](#keep-a-reliable-editing-model)):\\n\\n```json\\n{\\"operation\\": \\"import\\", \\"parameters\\": {\\"source\\": {\\"path\\": \\"/Users/me/clips\\"}}}\\n```\\n\\n### Parameters at a glance\\n\\nEach operation\'s schema has the full list. These are the fields that matter most, and the ones most often confused:\\n\\n| Tool and operation | Key `parameters` |\\n| --- | --- |\\n| `project_manage` `project` | `action` (`list`, `open`, `create`, `close`); `id`, `name` or `path` to open; `name`, `fps`, `aspectRatio`, `quality` to create |\\n| `edit_snapshot` (no `parameters`) | `includeLibrary`, a `startFrame`/`endFrame` window, `offset`/`limit` paging, `context` for later pages |\\n| `edit_apply` (no `parameters`) | `actions`; optional `context`, `requestId`, `previewOnly` |\\n| `library_manage` `import` | `source` with one of `path`, `url`, `bytes` + `mimeType`, or `matte`; optional `name`, `folder`. A `.srt` or `.vtt` file becomes captions |\\n| `library_manage` `list` | `ids` to poll imports, `pending`, `folder` |\\n| `inspect` `timeline` | a `startFrame`/`endFrame` window; there is no clip filter |\\n| `inspect` `frame` | `startFrame` for one frame; add `endFrame` and `maxFrames` to sample a range |\\n| `inspect` `media` | `mediaRef` (a library asset, not a file path), `startSeconds`/`endSeconds` in source seconds, `wordTimestamps`, `overview` |\\n| `inspect` `transcript` | a `startFrame`/`endFrame` window, `granularity` (`words` or `segments`), `clipId` |\\n| `inspect` `color` | `clipId` with `atFrame`, or `mediaRef`; optional `reference` |\\n| `speech_apply` `words` | `words`: transcript word indices, each one index or a `[first, last]` pair; or `matches`: exact words to remove everywhere; `pacing` |\\n| `speech_apply` `silence` | none |\\n| `speech_apply` `captions` | caption `style`, `position` and look fields; it finds the speech itself. `style` `plain` (sentences without a preset) takes `positionY` or `transform.centerY`, not `position` or `punctuation` |\\n| `delivery_manage` `submit` | `mode`, `codec`, `resolution`, `outputPath` (its folder must already exist); `captionGroupId` and `wordTiming` for `srt` and `vtt`; `check: false` skips a video\'s export check |\\n| `delivery_manage` `jobs` | `action` `list` (every job with its progress, warnings, output path and check findings; with a `jobId`, that job with all its findings), `cancel` with a `jobId`, or `dismiss` with a `jobId` and optional `findingIds` |\\n\\n`previewOnly` exists only on `edit_apply`. Service operations apply immediately.\\n\\n### `edit_apply` actions at a glance\\n\\nEvery action puts its fields beside `kind`, for example `{\\"kind\\": \\"adjust\\", \\"clipId\\": \\"c1\\", \\"speed\\": 2}`. `remove`, `adjust`, `replace`, `transition`, `mask`, `text`, `grade` and `effects` take `clipId` for one clip or `clipIds` for several; `animate`, `extract`, and the rows of `move` and `split` take a single `clipId`. Advanced actions cannot take `as`, but their clip ids accept `@name`. The one exception is `transition`, whose own `kind` field names the style, so its fields go inside `parameters`: `{\\"kind\\": \\"transition\\", \\"parameters\\": {\\"clipId\\": \\"c2\\", \\"kind\\": \\"dipToBlack\\"}}`. These `actions` place a clip, warm it and add a vignette:\\n\\n```json\\n[{\\"kind\\": \\"place\\", \\"assetId\\": \\"\u2026\\", \\"atFrame\\": 0, \\"as\\": \\"shot\\"},\\n {\\"kind\\": \\"grade\\", \\"clipId\\": \\"@shot\\", \\"adjustments\\": {\\"temperature\\": 7500}},\\n {\\"kind\\": \\"effects\\", \\"clipId\\": \\"@shot\\", \\"effects\\": [{\\"type\\": \\"finish.vignette\\", \\"params\\": {\\"strength\\": 35}}]}]\\n```\\n\\n| Advanced `kind` | Key fields |\\n| --- | --- |\\n| `place_batch` | `entries: [{mediaRef, startFrame, endFrame or source, trackIndex}]`, not the concise `assetId`, `atFrame`, `durationFrames`; leave `trackIndex` off every entry for a new track |\\n| `insert_batch` | `trackIndex`, `atFrame`, `entries: [{mediaRef, durationFrames or source}]`; later clips move right |\\n| `move` | `moves: [{clipId, toFrame, toTrack}]` |\\n| `remove` | `clipId` or `clipIds`; leaves a gap |\\n| `split` | `splits: [{clipId, atFrame}]`, or `trackIndex` with `frames` |\\n| `extract` | `trackIndex` with `ranges: [[start, end]]` in frames, or `clipId` with `ranges` and `units` (`frames`, or source `seconds`); closes the gap |\\n| `adjust` | `clipId` or `clipIds` plus any of `durationFrames`, `trimStartFrame`, `trimEndFrame`, `speed`, `speedCurve` (`{preset}`, or `{points: [{t, rate}]}` with `t` from 0 to 1 along the source), `preservesPitch`, `volume`, `opacity`, `transform` (`centerX`, `centerY`, `width`, `height`, `flipHorizontal`, `flipVertical`), `blendMode` |\\n| `animate` | `clipId`, `property` (`volume`, `opacity`, `rotation`, `position`, `scale`, `crop`), `keyframes: [[frame, ...values]]` with frames counted from the clip\'s start; `position` is the top-left corner |\\n| `arrange` | `layout`, `slots: [{slot, clipIds or mediaRef, anchor}]`, `fit` (`fill` or `fit`); `mediaRef` slots also need `endFrame` |\\n| `transition` (fields inside `parameters`) | `clipId` or `clipIds` (the clip after each cut), `kind` (`crossDissolve`, `dipToBlack`, `dipToWhite`, `blurDissolve`, `push`, `linearWipe`, `whipPan`, `crossZoom`, or `none` to remove), `durationFrames`, `params` (`direction` 0 to 3 for left, right, up, down; `feather`; `blur`; `intensity`) |\\n| `mask` | `clipId` or `clipIds`, `shape` (`rectangle`, `ellipse`, `none`), `centerX`, `centerY`, `width`, `height` (0 to 1 of the clip\'s own frame), `feather`, `strength`, `inverted` |\\n| `replace` | `clipId` or `clipIds`, `mediaRef` (a library asset of the same kind), `trim` (`keep`, the default, or `reset`), `linkedAudio` (`follow`, the default, or `keep`) |\\n| `tracks` | `reorder: [{trackId, to}]`, `set: [{trackId, muted, hidden, syncLocked}]`, `remove: [{trackId}]`; there is no add, since placing without a track makes one |\\n| `titles` | `entries: [{startFrame, endFrame, content}]`, optionally with `trackIndex` (on every entry or none), `style`, `animation`, `transform` and typography (`fontName`, `fontSize`, `color`) |\\n| `text` | `clipId`, `clipIds` or `captionGroupId`, with `content`, `style`, `position`, `animation` or typography |\\n| `grade` | `clipId` or `clipIds`, `adjustments`, `wheels`, `curves`, `hueCurves`, `lut`, `reset` |\\n| `effects` | `clipId` or `clipIds`, `effects: [{type, params, enabled}]`, `remove: [type]` |\\n\\n- `grade`: `adjustments` holds `exposure` (EV, -4 to 4), `temperature` (kelvin, 1800 to 15000, 6500 neutral, higher is warmer), `tint` (-150 magenta to 150 green); `contrast`, `highlights`, `shadows`, `whites`, `blacks`, `vibrance` and `saturation` are signed percents (-100 to 100, 0 neutral), not factors like 1.2. `wheels`: `shadows`, `midtones`, `highlights`, each `{hue, strength, brightness}`. `curves`: `luma`, `red`, `green`, `blue` as `[x, y]` points from 0 to 1. `hueCurves`: `targets: [{hue, rotate, saturation, lightness}]`. `lut`: `{path, mix}`, with the `storedPath` from `prepare_look`. Out-of-range values are refused.\\n- Effect `type` ids and their knobs, which go inside `params` and run 0 to 100 unless noted. Defaults leave the picture unchanged, so send the knob you want to see:\\n - `finish.vignette`: `strength` and `curvature` (-100 to 100; positive `strength` darkens the edges), `size`, `falloff`\\n - `finish.grain`: `strength`, `grainSize` (0.5 to 6 px); `finish.glow`: `strength`, `haloRadius` (px), `cutoff`, `halation`\\n - `defocus.gaussian`: `blurRadius` (px); `defocus.motion`: `streakLength` (px), `streakAngle` (-180 to 180 degrees)\\n - `texture.clarity`: `localContrast`, `hazeRemoval` (-100 to 100); `texture.sharpen`: `strength` (0 to 200); `texture.denoise`: `strength`\\n - `matte.chroma`: `screenHue` (0 to 360 degrees, 120 is green), `range`, `edgeSoftness`, `spillSuppression`\\n- `arrange` layouts and their slots (fill every slot): `fullscreen` (`stage`); `split` (`left`, `right`); `stack` (`top`, `bottom`); `corner_top_left`, `corner_top_right`, `corner_bottom_left`, `corner_bottom_right` (`stage`, `corner`); `quad` (`top_left`, `top_right`, `bottom_left`, `bottom_right`); `side_panel` (`stage`, `panel`); `thirds` (`left`, `middle`, `right`). The layout picks the corner; `anchor` only biases the crop.\\n- `trackIndex` and `toTrack` are an existing track\'s `order` from `edit_snapshot` (0 draws on top), counted at that point in the recipe: a track an earlier action adds shifts them. `tracks` takes `trackId` handles instead.\\n\\n## Start with the intended project\\n\\nAn MCP session can begin without a project selected. Project selection belongs to the session, not to whichever editor window happens to be frontmost.\\n\\n1. If the user named an existing project but its identity is unclear, call `project_manage` with `operation: \\"project\\"` and `parameters.action: \\"list\\"`.\\n2. Open the exact project with `action: \\"open\\"` and the returned `id`, an unambiguous `name`, or the `.vdproject` `path`.\\n3. Create only when the user wants a new local edit. `action: \\"create\\"` accepts optional `name`, `fps`, `aspectRatio`, and `quality`.\\n4. Treat `isActive` as this session\'s target and `isVisible` as the project shown in the UI. Headless editing only needs the session target.\\n5. Use `action: \\"close\\"` only when closing is part of the task. It saves first and never deletes the project. Afterwards other calls answer `no_project` until you open or create a project again.\\n6. Your session edits its own project even while another project\'s window is in front. If the user says \\"this clip\\" or \\"here\\" and `edit_snapshot` has no `selection`, or `selection.visible` is false, they are looking at something else: ask before editing. An older editor may instead refuse the write because another project is in front; tell the user rather than taking the front yourself. Never change which project is in front with Computer Use or other UI automation.\\n\\nOther `project_manage` operations: `create_timeline` and `select_timeline` for additional timelines, and `configure` for project settings (a frame-rate change applies to every timeline).\\n\\nDo not substitute a hosted project ID for a native project. A hosted project can supply scripts, storyboards, and generated media, but the native edit is a separate `.vdproject` package.\\n\\n## Keep a reliable editing model\\n\\n- Opening or creating a project, and creating or selecting a timeline, returns `data.snapshot` (the `edit_snapshot` view with the library: format, tracks, clips and assets) and a `context`, so you can edit right away. Call `edit_snapshot` only after an out-of-band user edit, to page a long timeline with `offset` and `limit`, or for handles you lack.\\n- `context` (`epoch`, `timelineId`, `revision`) is optional on every write except `edit_undo` and `project_manage` `project`, which take none. Without it, a write applies to the current state. With it, the editor refuses the write if the project changed since that context, which is what you want when a person may be editing at the same time. Every reply returns a fresh `context`. After `context_expired` (a reopen or restart), take a new snapshot.\\n- Timeline positions and durations are frames at `format.fps`. `sourceSeconds` values are seconds in the source file. Pass values as returned; do not multiply or divide by fps yourself.\\n- IDs are short handles. Pass them back exactly as returned; do not derive them from UUIDs. Tracks keep stable handles; indexes can change.\\n- When the user says \\"this clip\\", \\"these captions\\", or \\"here\\", take a fresh `edit_snapshot` (a one-frame window is enough). Its `selection` names what they selected in the project\'s window, in the snapshot\'s handles: `clipIds`, `captionGroupIds`, a `gap`, the marked `range`, and library `mediaIds`; no `selection` means nothing is selected. `currentFrame` is the playhead. `visible: false` means the user is not looking at this project.\\n- Send writes serially. Parallel writes against one project race each other\'s context.\\n- A refused call answers `status: \\"rejected\\"`: nothing changed, so fix what the message names and send it again. A service write that answers `failed` may have applied before a save or connection failed; inspect before repeating it.\\n- Use `inspect` for detail and verification: `timeline` for exact clip and track properties, `frame` for rendered frames of the composited result, `media` before describing source content, `color` for scopes, and `transcript` to locate spoken words.\\n- Clip `volume` is linear gain: `0` is silent, `1` plays the clip as recorded, and up to `5.62` (+15 dB) boosts it. Volume keyframes stay `0` to `1`. Boost sparingly and read the export check, which reports clipping.\\n\\n## Edit with recipes\\n\\n`edit_apply` takes an ordered list of `actions`, plus an optional `context` and `requestId`. The editor validates the whole recipe before changing anything, then applies it as one undo step. If any action fails, nothing changes and the error names the action. An applied reply lists the resulting `clips` (position, length, source window, text); use it to confirm the edit instead of re-reading.\\n\\n- Concise actions: `place` (an `assetId` at `atFrame`, optionally on a `trackId`, with `durationFrames` or `sourceSeconds`, `mode` `overwrite` or `insert`), `trim` (a `clipId` to a `sourceSeconds` window), and `title` (`text` at `atFrame` for `durationFrames`, optional `look` and `motion`). Name an action with `as` and address its clip in later actions as `@name`.\\n- Advanced actions put their fields beside `kind` too: `place_batch`, `insert_batch`, `move`, `remove`, `split`, `extract`, `adjust`, `animate`, `arrange`, `transition` (fields inside `parameters`), `mask`, `replace`, `tracks`, `titles`, `text`, `grade`, and `effects`. Their field help lists every supported effect, grading control, mask, layout, speed curve, and caption control.\\n- Use `arrange` for split screens, picture-in-picture, grids, and canvas placement, and `tracks` to fix stacking. Do not synthesize layouts from generic transforms or keyframes.\\n- Use `replace` to swap a clip\'s media and keep its timing, effects, keyframes, and links, for example a re-render of the same shot. `trim: \\"keep\\"` holds the clip\'s source offsets; `trim: \\"reset\\"` plays the new media from its first frame and keeps linked audio in sync.\\n- Put every edit a request needs into one recipe: placing, trimming, titling, grading and effects together are one call and one undo step. Use `previewOnly: true` to validate a large or risky recipe without editing.\\n- Send a `requestId` when a retry must not edit twice: repeating the identical request with the same `requestId` returns the original receipt, even after a dropped connection. Without one, a repeated request applies again. Use a new `requestId` for a different edit.\\n- `applied_unsaved` means the edit applied but saving failed. If you sent your own `requestId`, repeat the identical request to retry the save, not the edit. Without one, do not resend: a repeat would apply the edit again.\\n- `edit_undo` reverses this connection\'s latest edit while it is still the top undo step. It never undoes the user\'s own edits. Take a new snapshot afterward.\\n\\nEdits are undoable. Do not ask for confirmation before each ordinary edit. Ask one focused question only when the user\'s creative direction is materially ambiguous.\\n\\n## Bring generated or local media into the editor\\n\\nFor b-roll and establishing shots, search free stock first (`videodraft stock search \\"<query>\\"`), import the pick with `videodraft stock import <ref>`, and feed the returned CDN URL to `library_manage` `import` as `source.url`. It costs no credits.\\n\\nOtherwise use cloud generation for new assets, save or download the outputs, then call `library_manage` with `operation: \\"import\\"`:\\n\\n- `source.path`: absolute local file or directory. A directory imports recursively and preserves its folder structure.\\n- `source.url`: HTTPS asset URL. Set `mimeType` when a signed URL has no usable extension.\\n- `source.bytes`: small base64 media with a required `mimeType`.\\n- `source.matte`: generated solid-color image.\\n\\nReadiness differs by source, and so does the poll that detects it:\\n\\n- **URL and single-file path** imports return `status: \\"downloading\\"` with one `mediaRef`. Poll `library_manage` `list` with `parameters.ids: [mediaRef]` until `generationStatus` is absent.\\n- **Directory** imports also return `status: \\"downloading\\"` with one placeholder `mediaRef` for the batch. Poll it the same way; the folder\'s assets appear when `generationStatus` clears. (`pending: true` remains a fallback that lists every unresolved import.)\\n- **Inline bytes and matte** imports finish inline and come back `status: \\"ready\\"`; no polling is needed.\\n\\nAn import\'s `mediaRef` is the `assetId` that recipe actions take. Never place a pending asset on the timeline. `generationStatus` is the signal: `preparing`, `generating`, `downloading`, and `rendering` mean keep polling, absent means usable, and **`failed` is terminal**. Report it or retry the import explicitly; never poll on. Do not treat \\"not downloading\\" as ready.\\n\\nA `.srt` or `.vtt` caption file (by `path`, `url`, or `bytes` with `mimeType` `application/x-subrip`, `text/srt`, or `text/vtt`) is not added to the library. Its captions go onto a new caption track at the times the file gives, as one undo step, and the reply names the new `captionGroupId` to restyle with a `text` action.\\n\\nFor a batch of local outputs, download them into one workspace directory and import that directory once when practical. This is safer and faster than racing many import calls.\\n\\nTo apply a LUT, first store it with `library_manage` `prepare_look` (`parameters.path` to a `.cube` file), then use the returned `storedPath` in a `grade` action.\\n\\n## Background-removal handoff\\n\\nKeep paid processing in the VideoDraft CLI or cloud MCP. The editor\'s\\n`library_manage` operation `background_removal`, when present in the live schema,\\nconnects an existing clip to that workflow without replacing its linked sound.\\nIt does not generate, upload, quote or charge. Older editors without this operation\\ncan keep the completed asset for later; do not claim the guarded handoff is available.\\n\\n1. Read the selection if the user means an existing clip. Call `library_manage`\\n with `operation: \\"background_removal\\"` and `parameters: {\\"action\\":\\"prepare\\",\\n \\"clipId\\":\\"\u2026\\"}`. Keep its `sourceToken` and use `source.path`, the original\\n full file. Do not send a thumbnail, a composited timeline frame, or a trimmed\\n excerpt. Video limits apply to the whole source, even if the timeline uses only\\n a small part of it. This handoff currently requires a result of the same full\\n source duration and aspect ratio.\\n2. Check the removal tool exists before any paid submission. In VideoDraft ADE, use the\\n exact app-bundled CLI from the session instructions. A pre-release CLI may lack\\n `remove-background`; do not install or substitute another CLI. Its generic\\n `tools schema remove_image_background` / `remove_video_background` and `call`\\n can reach these tools once the server deploys them. If the server also lacks\\n the tool, keep the edit unchanged and explain that the release is pending.\\n Generic `call` takes a public URL, not a local path: use `upload` first and\\n retain that exact uploaded URL with the operation UUID for every retry.\\n3. Quote the actual source and settings, then submit with `max_credits` (CLI\\n `--max-credits`) and a retained UUID idempotency key. Images return transparent\\n PNG; video returns VP9 WebM with alpha. A timeout is a status check or a retry\\n of the same operation, never a second paid submission.\\n4. PNG imports directly. The native editor cannot decode WebM. Before charging\\n for a video intended for this editor, establish that an existing FFmpeg with\\n the `libvpx-vp9` decoder and `prores_ks` encoder is available. When VideoDraft ADE\'s runtime\\n discovery is exposed, its installed FFmpeg may be used by absolute path. If\\n none is available, explain that video conversion needs setup; never silently\\n install a runtime or flatten the output. Keep the original WebM under `media/`.\\n Convert a separate MOV with the explicit `libvpx-vp9` input decoder; FFmpeg\'s\\n other VP9 decoder can discard alpha. For constant-frame-rate output, use the\\n measured output frame rate, not an assumed 30 fps:\\n\\n ```sh\\n /absolute/path/to/ffmpeg -nostdin -n -c:v libvpx-vp9 -i media/cutout.webm \\\\\\n -map 0:v:0 -an -vf \'setpts=PTS-STARTPTS\' -r <measured-output-fps> \\\\\\n -fps_mode cfr -c:v prores_ks -profile:v 4 -pix_fmt yuva444p10le \\\\\\n media/cutout-alpha.mov\\n ```\\n\\n This MOV intentionally has no sound; applying it keeps the clip\'s original\\n linked audio. Check frame count, duration, dimensions and alpha before import.\\n Do not use H.264, rename `.webm` to `.mov`, assume a codec\'s alpha capability\\n proves the particular output retains transparency, or overwrite the WebM.\\n For variable-rate output, use a timestamp-preserving conversion and verify\\n its last-frame duration; do not force the example\'s constant-rate path.\\n ProRes intermediates can be much larger than the WebM, so check disk space.\\n5. Import the PNG/MOV with `library_manage import` and wait for its asset to\\n become ready. Call `library_manage` `background_removal` with\\n `parameters: {\\"action\\":\\"apply\\",\\"clipId\\":\\"\u2026\\",\\"sourceToken\\":\\"\u2026\\",\\n \\"assetId\\":\\"\u2026\\"}`. It verifies transparency and source identity, preserves\\n the cut and original linked sound, and makes one undoable replacement.\\n An edited clip or changed source refuses the old token. Review the existing\\n result and prepare again; do not regenerate automatically.\\n6. Inspect frames against a contrasting background and verify the final export.\\n A plain MP4 cannot carry alpha; a composited export should show the intended\\n background through the cutout. Original media and the returned cutout stay\\n available after Undo.\\n\\n## Speech edits\\n\\n`speech_apply` runs speech work as separate operations, not recipe actions: `words` removes transcript words, `silence` trims dead air, and `captions` generates styled captions. Read a fresh transcript with `inspect` `transcript` after any speech edit, because word positions change.\\n\\n## Service operations and timeouts\\n\\n`project_manage`, `library_manage`, `speech_apply`, and `delivery_manage` writes have no retry receipts. After a timeout, inspect the outcome (a snapshot, a library `list`, or delivery `jobs`) before repeating a write. A failed service write may have applied an edit before saving failed, so read its `data` and the current state.\\n\\n## Edit and verify\\n\\nA dependable sequence:\\n\\n1. `project_manage` to select or create the local project; its reply carries the snapshot.\\n2. `inspect` `media` when content selection matters.\\n3. One `edit_apply` recipe with every clip, track, layout, text, audio, color, and effect change the request needs; `speech_apply` for word cuts, silence, and captions.\\n4. Check the reply\'s `clips`; use `inspect` `frame` only when visual composition or layer order matters.\\n5. `edit_undo` if the result is wrong and the next recipe would not cleanly correct it.\\n\\n## Export\\n\\nCall `delivery_manage` with `operation: \\"submit\\"`. Submission is not completion: it returns a job, destination, and `started` or `queued` status.\\n\\n- Use `mode: \\"video\\"` for H.264, H.265, or ProRes.\\n- Use `mode: \\"xml\\"` (XMEML) for Premiere Pro **and DaVinci Resolve**; Resolve reads XMEML natively. Use `mode: \\"fcpxml\\"` with `fcpxmlTarget: \\"fcp\\"` for Final Cut Pro: the default target writes the Resolve flavor. `fcpxmlTarget: \\"resolve\\"` stays for older Resolve workflows, but new Resolve handoffs use `xml`.\\n- Use `mode: \\"videodraft\\"` for a self-contained project package.\\n- Use `mode: \\"srt\\"` or `mode: \\"vtt\\"` for a subtitle file of the captions: words and timing only, without styling. `captionGroupId` picks a caption group; `wordTiming: true` adds each word\'s start to a `vtt`.\\n- Omit `outputPath` unless the user named a destination; the default is `~/Downloads`. The editor does not create folders, so a named destination\'s folder must already exist.\\n- Use `operation: \\"jobs\\"` with `parameters.action` `list` to follow progress, warnings, and results. Cancel only when the user asks or the just-queued settings were wrong. Do not infer that an export is stuck from elapsed time alone.\\n- A finished video export is then checked in the background for black picture, gaps, sound that drops out or clips, and missing media. `list` shows each job\'s `findingCount` and its first three findings; `list` with that `jobId` returns every finding. Findings are warnings on a completed export: tell the user what was found and where, rather than treating the export as failed.\\n\\n## Terminal bridge\\n\\nVideoDraft desktop terminals expose `videodraft-editor`, which controls the same process and tools:\\n\\n```bash\\nvideodraft-editor status\\nvideodraft-editor list-tools\\nvideodraft-editor tool project_manage --json \'{\\"operation\\":\\"project\\",\\"parameters\\":{\\"action\\":\\"list\\"}}\'\\nvideodraft-editor tool edit_snapshot --project \\"/path/to/My Video.vdproject\\" --json \'{\\"includeLibrary\\":true}\'\\nvideodraft-editor show\\nvideodraft-editor hide\\n```\\n\\nEach `videodraft-editor` invocation is a separate connection, so a project opened by one call is NOT remembered by the next. Pass `--project <path>` on every `tool` call that operates on a project; without it, a follow-up call answers `no_project` (no project is open for this session) even though the open succeeded. For the same reason, `edit_undo` has nothing to undo from the terminal: it only reverses an edit made on its own connection.\\n\\nControl and tool commands auto-start a headless editor if none is running. `show` only reveals the already-running UI. Use `videodraft-editor tool <name> --json -` to read a JSON object from stdin when shell quoting would be fragile. Never read, copy, or expose the editor\'s rotating local authentication secret.\\n","references/examples.md":"# Recipes\\n\\nWorking patterns for common asks. All assume auth (`videodraft login` once, or `VIDEODRAFT_API_KEY` in the environment) and use `--json` for parsing.\\n\\nInside VideoDraft ADE, use these recipes for asset generation and optional script/storyboard stages.\\nHonor the chosen app, existing project and `<creative_routes>` as described in SKILL.md. Hand the\\nresults to that app for production and export ONLY when the user asked for a composed production;\\nthe native editor is the default when available and no other app takes precedence. A standalone\\noutput, such as the batch product clips in recipe 1 or the upscale in recipe 7, is finished when\\ngenerated. Recipes below that call `videodraft produce` or `videodraft export` are hosted fallbacks\\nonly. Use them when explicitly requested, or when the native editor is unavailable and no external\\napp is selected. Do not switch an external-app request to a hosted or native production silently.\\n\\n## 1. Batch product videos from a CSV\\n\\nOne 9:16 product clip per row of `products.csv` (`name,image_url,tagline`):\\n\\n```bash\\n#!/usr/bin/env bash\\nset -euo pipefail\\nmkdir -p outputs\\n\\nwhile IFS=, read -r name image tagline; do\\n job=$(videodraft generate video \\\\\\n \\"Premium product shot of ${name}: ${tagline}. Slow orbit, studio lighting.\\" \\\\\\n --model gemini-omni-1.2-flash --ar 9:16 --duration 6 \\\\\\n --start-image \\"$image\\" \\\\\\n --no-wait --json | jq -r .job_id)\\n echo \\"$name,$job\\" >> outputs/jobs.csv\\ndone < <(tail -n +2 products.csv)\\n\\n# Collect ALL results with ONE process (batched polling \u2014 one request per tick)\\nvideodraft wait $(cut -d, -f2 outputs/jobs.csv) \\\\\\n --download \\"outputs/{job_id}_{index}.{ext}\\" --json > outputs/results.json\\n# map job ids back to product names via outputs/jobs.csv\\n```\\n\\nSubmit-then-collect parallelizes server-side generation; the single multi-id `wait` keeps it to one local process and one batched poll request per tick no matter how many jobs. Gemini Omni 1.2 Flash is selected because these are six-second first-frame product clips. Estimate first: `videodraft costs gemini-omni-1.2-flash --type video --duration 6 --resolution 720p --audio` \xD7 rows, and confirm with the user.\\n\\nExtend an uploaded clip or conversationally edit an official Google interaction with Gemini Omni 1.2 Flash:\\n\\nEach extension appends 3-10 seconds at the end. Edit and extend accept EXACTLY ONE input video, so `--ref-video` cannot accompany `--source-video` or `--previous-interaction-id`; only `--ref` images can. New dialogue is allowed only when the source video is silent, so a chain of spoken beats must carry its speech in the first turn. A continuation is submitted as the prior turn\'s output, so 40 seconds total is reachable only by extending from a source of 30s or less, and a ladder dead-ends past 30s.\\n\\n```bash\\n# Google uploaded-video extension. Up to two reference images are allowed; reference videos are not.\\nvideodraft generate video --model gemini-omni-1.2-flash \\\\\\n --source-video ./ending.mp4 --ref ./wardrobe.png \\\\\\n --extend --duration 6 --resolution 1080p \\\\\\n --download ./media/extended.mp4\\n\\n# Conversational edit from the interaction_id of an earlier generation. Add --extend to lengthen instead.\\nvideodraft generate video --model gemini-omni-1.2-flash \\\\\\n --previous-interaction-id \\"$INTERACTION_ID\\" \\\\\\n --resolution 720p \\\\\\n --download ./media/continued.mp4\\n```\\n\\nFal BYOK supports the currently callable Gemini Omni 1.2 generation, basic source-edit and source-extension endpoints at zero VideoDraft credits. Its published callable v1.2 endpoints support uploaded-source extension, but not Google interaction IDs or separate edit/extend references. Do not infer a Fal route or retry on paid Google while Fal BYOK is active.\\n\\n## 2. Hosted full marketing video from one idea (fallback)\\n\\n```bash\\nvideodraft create \\"30-second launch video for Solace, a sleep-tracking ring. Calm, premium, dark palette.\\" \\\\\\n --ar 9:16 --style cinematic --json > project.json\\nPROJECT=$(jq -r .project_id project.json)\\n\\nvideodraft shots \\"$PROJECT\\" --grid --estimate # show the user the cost; get a go-ahead\\nvideodraft shots \\"$PROJECT\\" --grid\\nvideodraft produce \\"$PROJECT\\"\\nvideodraft generate music \\"minimal ambient, warm pads, 60 BPM\\" --attach \\"$PROJECT\\"\\nvideodraft generate audio \\"Extend @Audio1 into a 20-second transition\\" --ref-audio ./intro.wav --format wav --download ./transition.wav\\nvideodraft export \\"$PROJECT\\" --download solace-launch.mp4\\n```\\n\\nUse this complete hosted path only when the user requested a web project, or the native editor is unavailable and no external app is selected. Otherwise stop after the storyboard/assets and finish in the selected editing app; for the default native `.vdproject`, export with `delivery_manage`. The hosted project stays editable at the URL in `project.json` (`.urls`).\\n\\n## 3. Talking-head (avatar) video\\n\\nWhen the user has no portrait, generate a clear front-facing avatar image first. Skip this step when they supplied one or an existing character should be reused.\\n\\n```bash\\nvideodraft generate image \\\\\\n \\"Front-facing head-and-shoulders portrait of a friendly coffee expert, direct eye contact, natural expression, clean studio background\\" \\\\\\n --model nano-banana-2.1 --ar 9:16 --download ./media/avatar.png\\n\\nSCRIPT=$(videodraft avatar script \\"why our espresso subscription saves you money\\" --style ad-style --json | jq -r .script)\\nAVATAR=$(videodraft avatar create ./media/avatar.png --script \\"$SCRIPT\\" --voice elevenlabs-kPzsL2i3teMYv0FxEYQ6 --ar 9:16 --json | jq -r .avatar_video_id)\\nvideodraft avatar render \\"$AVATAR\\" --resolution 720p # VEED Fabric paid step; check the cost first with --estimate\\n```\\n\\n`avatar script` and `avatar create` (including speech) are bundled/free. In this example only the optional portrait generation and Fabric render spend credits.\\n\\nIf the portrait is low resolution, enhance it before `avatar create`:\\n\\n```bash\\nvideodraft upscale image ./founder-small.jpg --scale 2x --download ./media/founder-upscaled.png\\n```\\n\\nFor a one-off portrait animation without creating a managed avatar record:\\n\\n```bash\\nvideodraft avatar fabric ./founder.jpg \\\\\\n --text \\"Welcome to the weekly product update.\\" \\\\\\n --voice-description \\"warm, confident American presenter\\" \\\\\\n --resolution 720p --download ./media/presenter.mp4\\n```\\n\\nFor a short, sharp clip from speech or a song the user already has (5-14.8s of audio is used):\\n\\n```bash\\nvideodraft avatar h3-lipsync ./singer.png --audio ./chorus.mp3 \\\\\\n --resolution 1080P --audio-duration 12 --estimate\\nvideodraft avatar h3-lipsync ./singer.png --audio ./chorus.mp3 \\\\\\n --resolution 1080P --download ./media/singer-lipsync.mp4\\n```\\n\\nWhen the user already has both the video and replacement speech:\\n\\n```bash\\nvideodraft avatar lipsync ./presenter.mp4 \\\\\\n --audio ./localized-voiceover.mp3 \\\\\\n --sync-mode loop --download ./media/presenter-localized.mp4\\n```\\n\\nEdit an existing video with a dedicated edit model. Image references in the Gemini example require Google; Fal BYOK source edits accept no additional reference media:\\n\\n```bash\\nvideodraft models video --category video_edit\\nvideodraft edit video ./product-demo.mp4 \\\\\\n \\"Preserve the product and camera motion, and match the reference lighting\\" \\\\\\n --model gemini-omni-1.2-flash --ref ./evening-style.jpg \\\\\\n --resolution 1080p \\\\\\n --download ./media/product-demo-reframed.mp4\\n\\nvideodraft edit video ./product-demo.mp4 \\\\\\n \\"Turn the room into a warm evening scene while preserving the product and camera motion\\" \\\\\\n --model kling-o3-video-ref-edit --ref ./evening-style.jpg \\\\\\n --preserve-audio --download ./media/product-demo-evening.mp4\\n```\\n\\nTransfer motion from a reference clip onto a character image:\\n\\n```bash\\nvideodraft edit motion ./character.png \\\\\\n \\"Apply the dancer\'s movement to this character while preserving identity\\" \\\\\\n --motion-video ./dance-reference.mp4 \\\\\\n --model kling-v3-motion-control --quality pro \\\\\\n --download ./media/character-dance.mp4\\n```\\n\\n## 4. Hosted changelog video in CI\\n\\nIn a GitHub Action with `VIDEODRAFT_API_KEY` set as a secret:\\n\\n```bash\\nNOTES=$(git log --oneline v1.2.0..HEAD | head -20)\\nvideodraft create \\"Weekly product update video. Energetic, 20 seconds. Changes: ${NOTES}\\" --ar 16:9 --json > p.json\\nPROJECT=$(jq -r .project_id p.json)\\nvideodraft shots \\"$PROJECT\\" && videodraft produce \\"$PROJECT\\"\\nvideodraft export \\"$PROJECT\\" --download changelog.mp4 --wait-timeout 30m\\n```\\n\\n## 5. Variations and picking a winner\\n\\n```bash\\nvideodraft generate image \\"logo concept: minimalist fox, geometric\\" --num 4 --download \\"./concepts/{job_id}_{index}.{ext}\\" --json\\n# Show all 4 to the user; regenerate the chosen one at higher res:\\nvideodraft generate image \\"<same prompt>\\" --model nano-banana-pro --resolution 4K\\n```\\n\\n## 6. Reaching tools without a curated command\\n\\n```bash\\nvideodraft tools list --json | jq -r \'.[].name\'\\nvideodraft tools schema attach_media_to_shot --json\\nvideodraft call attach_media_to_shot --args \'{\\"project_id\\":\\"...\\",\\"scene_index\\":0,\\"shot_index\\":1,\\"media_url\\":\\"https://...\\",\\"media_type\\":\\"video\\",\\"duration_seconds\\":6}\'\\n```\\n\\nAnything the hosted VideoDraft MCP exposes, including character studio, product studio, and hosted project data, is reachable this way even before it gets a curated command. Native `.vdproject` editing uses the separate `videodraft_editor` MCP described in SKILL.md.\\n\\n## 7. Enhance an existing asset without changing it\\n\\n```bash\\n# Light image cleanup, no enlargement\\nvideodraft upscale image ./poster.png --scale 1x --download ./media/poster-enhanced.png\\n\\n# General image and video enlargement\\nvideodraft upscale image ./frame.png --scale 2x --download ./media/frame-2x.png\\nvideodraft upscale video ./clip.mp4 --resolution 1080p --download ./media/clip-1080p.mp4\\n\\n# Rebuild detail in a tiny/blurry source (generative), or reimagine it (creative)\\nvideodraft upscale image ./tiny.jpg --scale 4x --mode generative --model \\"Wonder 3.5\\" --download ./media/tiny-4x.png\\nvideodraft upscale video ./ai-clip.mp4 --resolution 4k --mode generative --download ./media/ai-clip-4k.mp4\\n\\n# Smoother motion or slow motion (resolution unchanged)\\nvideodraft interpolate ./clip.mp4 --fps 60 --download ./media/clip-60fps.mp4\\nvideodraft interpolate ./clip.mp4 --model Chronos --slowdown 4 --download ./media/clip-slowmo.mp4\\n```\\n\\nUse these when the content is correct and only quality or resolution needs improvement. If the poster text, composition, subject, or motion is wrong, edit or regenerate instead.\\n","references/models.md":"# Choosing models (and predicting cost)\\n\\nAlways consult the live catalog instead of memorizing this page \u2014 models change weekly:\\n\\n```bash\\nvideodraft models image --json # every image model + inputs (aspect ratios, resolutions, max refs)\\nvideodraft models video --json # every video model + inputs + per-second pricing metadata\\nvideodraft models audio --json # standalone audio/media models + pricing inputs\\nvideodraft models voices --json # TTS voices\\nvideodraft models styles --json # visual style presets\\n```\\n\\n## Task-based model selection\\n\\nFollow this order every time:\\n\\n1. The user named a model: use it, never substitute.\\n2. Otherwise pick a **Tier 1** model from the task\'s inputs, duration, audio, quality, speed, and cost, and pass it explicitly instead of relying on a blind platform fallback.\\n3. Use a **Tier 2** model only when no Tier 1 model supports the request, and say why. Never pick Tier 2 on your own for price, speed, novelty or variety.\\n\\nTier 1 is the rows marked **T1** below. Every other catalog model is Tier 2 and stays available by name. The catalogs carry this themselves: every `videodraft models image|video|audio --json` entry has `tier` (1 or 2) plus `recommended` / `recommended_for`, and the top-level `recommended` array is Tier 1, best first. Trust the catalog over this page when they disagree.\\n\\n### Images\\n\\n| Need | Choose | Why |\\n| ------------------------------------------------------------------------------------------ | ------------------------ | ----------------------------------------------------------------- |\\n| T1: Most generation, editing, text, character consistency, or reference work | `nano-banana-2.1` | Best general default; 1K/2K/4K, 14 references, thinking levels |\\n| T1: Previous default, or when temperature control is wanted | `nano-banana-2` | 1K/2K/4K and up to 14 reference images; temperature 0-2 |\\n| T1: Highest-quality complex generation or reasoning | `nano-banana-pro` | Premium Nano Banana quality and reasoning |\\n| T1: Fast, inexpensive drafts and iteration | `nano-banana-2-lite` | Fastest/cheapest Nano Banana option; 1K only, up to 14 references |\\n| T1: Posters, title cards, signs, logos, or any image with important readable text | `gpt-image-2.6-flare` | Fast OpenAI everyday generation/editing; 16 refs, 1K/2K/4K, PNG |\\n| T1: Complex multi-image composition, precise editing, or a strong alternate interpretation | `gpt-image-2.6-sunburst` | More precision, fine detail, edit consistency; slower; 16 refs |\\n| T1: Animated GIF (sticker, emoji, icon, logo sting, short looping reaction) | `gpt-image-2.6-flare` | `--gif`: 2-16 frames, looping GIF, frame size follows `--ar` |\\n| T1: Vector / SVG output (logos, icons, illustrations that must scale) | `recraft-v4` | Recraft V4.1 text-to-vector; SVG only, no reference images |\\n| T2: xAI at 2K or with a quality tier, up to 3 edit references | `grok-imagine-2.0` | 1K/2K, low/medium quality, small charge per reference image |\\n\\nIdeogram 4.5 (`ideogram-v4.5`) replaces 4.0 in the same Tier 2 position. Text-to-image: `--quality low|medium|high` (medium default), `--resolution 1K|2K`, `--ar`, `--num 1..8`, `--seed`, `--prompt-expansion true|false`. Editing: `--source-image <url|file>` plus up to four `--ref` images; without a source flag the first `--ref` is the source. `--edit-precision regular|high`; regular edits also support `--quality very_low`. `--mask <url|file>` uses black for edits, white for preserved regions and must match source dimensions; masked edits allow three additional references. Precise/masked edits require `--ar auto` with no resolution or custom dimensions. `--image-width` and `--image-height` select exact supported generation sizes or 32px-grid regular-edit sizes (min 256px, max 4MP, within 6:1). Expansion is text-to-image only. Reference/mask/precision do not add a separate surcharge.\\n\\n```bash\\nvideodraft generate image \'A poster with the exact title \\"SUMMER\\"\' --model ideogram-v4.5 --quality high --resolution 2K --num 2 --estimate\\nvideodraft generate image \'Replace the sign text with \\"OPEN\\"\' --model ideogram-v4.5 --source-image source.png --ref lettering.png --mask mask.png --edit-precision high --ar auto --quality medium\\nvideodraft costs ideogram-v4.5 --type image --quality very_low --ref-images 1 --num 2\\n```\\n\\nFLUX 3 image (`flux-3-image`, separate from `flux-3-max` video) is Tier 2: Black Forest Labs\' newest image model, on Fal or your Fal key. It generates and edits with up to 10 `--ref` images (call them \\"image 1\\", \\"image 2\\" in the prompt), `--num 1..4`, `--resolution 1K|2K|4K` (default 1K), `--prompt-expansion true|false` (default true) and `--ar` with 14 ratios (21:9 to 1:2, including 7:5 and 5:7) plus `auto`. Each image is priced by output size (resolution and ratio); `auto` lets the model pick, or follows the first reference, and is quoted at the tier\'s highest price. Without `--ar`, a new image is 16:9 and an edit is `auto`. No seed. Output is JPEG.\\n\\n```bash\\nvideodraft generate image \'Studio photo of a ceramic mug on a walnut desk, soft light from the left\' --model flux-3-image --ar 4:5 --resolution 2K --estimate\\nvideodraft generate image \'Place the mug from image 1 on the desk in image 2, keep the lighting of image 2\' --model flux-3-image --ref mug.png --ref desk.png --num 2\\n```\\n\\nGPT Image 2.6 replaces 2.5 and has two IDs: `gpt-image-2.6-flare` (fast everyday generation and editing, readable text and posters, precise composition) takes the Flare recommendation; `gpt-image-2.6-sunburst` is the alternative when extra precision, fine detail or edit consistency matters, with longer latency. Always pass a 2.6 ID; an older 2.5 ID runs on the matching 2.6 model. Other model recommendations are unchanged. Explicit `gpt-image-2` selections continue to use the previous model.\\n\\nUse the same basic image controls as GPT Image 2: `--ref` (up to 16), `--ar` (10 ratios), `--resolution 1K|2K|4K`, `--quality`, and `--num 1..4`. Output is PNG, with no seed. GPT Image 2.6 quality supports auto/low/medium/high/xhigh/max. Auto is priced at Max in customer-credit estimates, so pass `--quality high` for a cheaper render; on 2.6, low and medium are only modestly cheaper than high. The default platform path uses OpenAI; a selected personal connection stays exclusive. A Pika personal connection requires an explicit quality from low/medium/high/xhigh/max because its upstream API has no auto value. Atlas Cloud keys also run 2.6. Other unsupported connection settings return an error instead of switching payer or changing the request. 2.6\'s own complexity, markup and SVG options are not offered.\\n\\nGPT Image 2.6 also returns looping animated GIFs: add `--gif`, with `--frames 2-16` (default 8) and `--frame-ms 20-2000` (default 120; 8 frames at 120 ms is about a 1 s loop). Describe the motion and a seamless loop in the prompt, and pass `--ref` to animate a given subject. Each frame\'s size follows `--ar` (1:1 frames are 720x720, 16:9 frames 944x528); `--resolution` does not apply. OpenAI draws the frames on one grid and bills it like one still at the grid\'s size, so 2-8 frames cost the same and 9 costs about twice as much; quote with `--estimate`. GIFs suit stickers, emoji, icons, logo stings and short reactions; use a video model for long or smooth motion. GIFs are standalone AI Studio outputs, not storyboard shots or batches, and a personal Pika connection cannot make them (OpenAI, Fal and Atlas Cloud can).\\n\\n```bash\\nvideodraft generate image \'A blue glass bird\' --model gpt-image-2.6-flare --ar 1:1 --resolution 2K --quality high --estimate\\nvideodraft generate image \'A blue glass bird\' --model gpt-image-2.6-flare --ar 1:1 --resolution 2K --quality high --num 2\\nvideodraft generate image \'A blue glass bird flapping its wings, seamless loop\' --model gpt-image-2.6-flare --gif --frames 8 --frame-ms 120 --ar 1:1 --quality high --estimate\\n```\\n\\n`videodraft shots` forwards resolution and quality for both normal and grid generation. Estimates use the project\'s model and aspect when omitted; grid canvas costs may differ from ordinary shot costs. Use `videodraft costs --model <id> --ar <ratio> --resolution <tier> --quality <tier>` for a specific per-image quote.\\n\\n### Videos\\n\\n| Need | Choose | Important limits |\\n| ------------------------------------------------------------------------------------------------------ | ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\\n| T1: Most generation, first/last-frame, mixed-reference, source-edit, or extension requests | `gemini-omni-1.2-flash` | 3-15s output (first+last frames: 3-10s); 360p/720p/1080p/4K; audio always; up to 10 image inputs, and 3 reference videos <=15s each on generate only; edit source 3-15s; continuation or 3-10s extension of a 1-30s source, 40s total reachable only by extending from <=30s |\\n| T2: Grok 1.5 text, first-frame, or 1-7 image-reference clips with native audio and optional 1080p | `grok-imagine-video-1.5` | 1-15s; 480p/720p/1080p for text/first-frame; references are 480p/720p only; no last frame |\\n| T2: Document or webpage reference generation; by name otherwise | `wan-3.0` | 2-30s or auto; 480p/720p/1080p; 10 image, 5 video, 5 audio refs, 20 media files total; document/web refs require thinking |\\n| T2: 480p/768p/2K/4K with native stereo audio, first/last frames, or mixed image/video/audio references | `minimax-h3` | 5-15s; up to 9 image, 3 video, 3 audio refs, 12 files total; first 5 reference images included; reference video/audio each total <=15s |\\n| T1: Fast video and timed keyframes, before H3 Max | `flux-3-max` | 5-20s, default 5s; 720p/1080p; optional audio; first/last frames or up to 10 keyframes; High/Low reasoning (`--reasoning-level`), `--seed`; no Draft or auto duration |\\n| T1: Text, first/last-frame, or mixed-reference video with native audio and stronger prompt adherence | `minimax-h3-max` | 5-15s; 480p/768p plus pooled reference tokens; up to 9 image, 3 video, 3 audio refs, 12 files total; seed and disabled/balanced/quality prompt expansion; provider safety checker off by default |\\n| T1: Video/audio references, mixed reference media, broad aspect ratios, first+last frames over 10s | `seedance-2` | 4-15s or auto; up to 9 image, 3 video, and 3 audio refs; audio toggle; Mini/Fast are 480p/720p only |\\n| T1: Single takes past 15s, or more references than Seedance 2.0 allows | `seedance-2.5` | 4-30s or auto; up to 30 image, 10 video, and 10 audio refs (50 files total); one quality tier; 480p/720p/1080p |\\n| T2: Fast polished 3-15s video with first frame, multi-prompt, and native audio | `kling-v3-turbo` | Audio always on; Pro default; no end frame, reference-media mode, or elements |\\n| T1: Preferred Kling: 3-30s text, start/end-frame or reference video with voiced elements, no 4K | `kling-4.0` | 3-30s, 720p/1080p, audio on; text, image-to-video (start + optional end frame) or reference mode (optional start image, 10 images, 5 videos, 7 elements: 3 voiced, 3 video; 15 total); cite @Image1, @Video1, @Element1; no seed |\\n| T2: Faster, cheaper Kling 4.0 at 720p, by name | `kling-4.0-flash` | 3-20s, 720p only, audio on; same modes as Kling 4.0 but one prompt (no `--segment`), no end frame, no voices; reference mode: optional start image, 10 images, 5 videos (3-20s), 7 elements (3 video, 3-8s); 15 total; videos share 5 clips and 20s |\\n| T1: Cinematic 3-15s with reference images, image/video elements, first+last frame, audio, or 4K | `kling-o3` | 7 combined image refs/elements, reduced to 4 with a video element; Standard/Pro/4K |\\n| T1: Kling 3-15s image-to-video with first+last frame, image/video elements, multi-prompt, audio, or 4K | `kling-3.0` | Elements require a start image; image or video elements can bind voice_id; Standard/Pro/4K |\\n| T2: User explicitly requests Veo, or the selected workflow specifically needs Veo | `google-veo3.1` | Good fallback, but not the preferred general model |\\n\\nRouting rules:\\n\\n- Inexpensive pass or draft at 480p/768p with native audio: use MiniMax H3 Max.\\n- Grok 1.5 reference mode accepts 1-7 images only. Address them in array order as `<IMAGE_0>` through `<IMAGE_6>`. Do not combine reference images with `--start-image`, `--end-image`, `--ref-video`, or `--ref-audio`.\\n- Grok 1.5 first-frame mode accepts one `--start-image`, derives the output aspect ratio from that image, and does not support `--end-image`. Text and first-frame modes support 480p, 720p, or 1080p. Reference mode supports 480p or 720p.\\n- Grok 1.5 always generates native audio. Do not pass `--no-audio`, `--seed`, `--negative`, or `--quality`.\\n- Around 11-15 seconds with native audio: keep Gemini Omni 1.2 Flash as the default. With both first and last frames, choose a compatible Tier 1 alternative because Gemini caps that mode at 10s. Past 15 seconds: Seedance 2.5.\\n- Dialogue: write the line in the prompt, in quotes, with who says it and how. `gemini-omni-1.2-flash`, `seedance-2.5`, `seedance-2`, `kling-3.0` and `kling-o3` speak it natively; add `--ref-audio` on Seedance or a bound Kling voice for a specific voice. Do not generate speech separately and lip-sync it on.\\n- One existing source video that should be edited: use `videodraft edit video`, which auto-selects Gemini Omni 1.2 Flash for a source from 3 to 15s. Generic `generate video --ref-video` retains source-edit behavior when `--video-task` is omitted, but the dedicated edit command is clearer.\\n- Video supplied as a creative reference: Gemini Omni 1.2 Flash accepts up to 3 videos of at most 15 seconds each, including mixed image and video input. Creative video references are accepted on `--video-task generate` ONLY: edit and extend take exactly one input video, so `--ref-video` cannot accompany `--source-video` or `--previous-interaction-id`. Use Seedance 2.5 for more or longer video/audio references, or Seedance 2.0 when quality-tier control matters.\\n- First and last frame control: every Tier 1 video model supports it (Gemini Omni 1.2 Flash, Seedance, Kling 4.0 in image-to-video, Kling O3, Kling 3.0, MiniMax H3 Max, FLUX 3 Max). For Gemini, every start/end frame counts toward the 10-image total, leaving up to 9 references with a start frame or 8 with both frames.\\n- Extension with a 1-30s uploaded source uses Gemini Omni 1.2 Flash plus `--source-video` and `--video-task extend` (or `--extend`). Pass an explicit 3-10s output duration; the model appends it at the end, up to 40 seconds total. Creative `--ref-video` clips CANNOT accompany the source: edit and extend take exactly one input video. New dialogue is allowed only when the source video is silent; adding speech on top of a source that already has speech is refused with \\"the model is currently unable to process speech edits\\". Continuation uses `--previous-interaction-id <id>` and defaults to a conversational edit; `--video-task extend` lengthens it. A continuation is submitted as the prior turn\'s output video, so it obeys the same source limits (<=30s to extend, <=15s to edit) and the same silent-source dialogue rule. 40s total is reachable only by extending from a source of 30s or less, so a ladder dead-ends past 30s. Fal returns the video only, and its currently published callable v1.2 endpoints support uploaded-source extension through /v1.2/extend, but not Google interaction IDs or mixed source-edit references; never infer a route or silently fall back to paid Google.\\n- Wan 3.0 reference mode and frame mode are separate. It accepts 10 images, 5 videos, and 5 audio clips, at most 20 media files total. Video and audio each total at most 15 seconds. `--file-url` and `--web-url` require `--thinking`. `--auto-duration` cannot be combined with `--duration`.\\n- MiniMax H3 and H3 Max reference mode and first-plus-last-frame mode are separate. Audio cannot be the only reference. Address references as `Image 1`, `Video 1`, and `Audio 1` in array order.\\n- Seedance reference mode and first-plus-last-frame mode are separate. Do not promise reference video/audio plus a last frame in one generation.\\n- Multi-prompt sequencing: use Kling 4.0 (shots of 1-30s, 3-30s total), or Kling 3.0 Turbo, Kling O3 or Kling 3.0 (shots of 1-15s, 3-15s total). Kling 4.0 Flash takes one prompt.\\n- Kling 3.0 image-to-video and Kling O3 reference-to-video accept repeatable structured `--element` JSON. Each element is image-backed (`frontal_image_url` plus 1-3 `reference_image_urls`) or video-backed (`video_url`). Either form may include `voice_id`. Keep the voice ID inside the same element so the association is preserved. Reference them as `@Element1`, `@Element2`. Kling V3 Turbo rejects elements.\\n- Kling 2.6 Pro image-to-video accepts one or two repeatable `--voice-id` values. Cite them as `<<<voice_1>>>` and `<<<voice_2>>>` in the prompt. Voice control costs more per second. Use `videodraft kling-voices list|create|delete` to manage the separate Kling video-control voice library. Creating a voice requires a clean 5-30 second, up-to-50MB single-speaker `.mp3`, `.wav`, `.mp4`, or `.mov` sample plus `--confirm-consent`. Creation has a small charge on the platform Fal account and is free with Fal BYOK; use the create command\'s `--estimate` flag to check without creating.\\n- Kling V3 voice control (Standard and Pro) also costs more per second than plain generation.\\n- Kling 4.0 (Tier 1, the preferred Kling; Kling 3.0 and O3 keep 4K) has three modes, like Kling O3: text; image-to-video from `--start-image` with an optional `--end-image` (framing follows the image, so no `--ar`); and reference mode, chosen when you add `--ref`, `--ref-video` or `--element`. Reference mode takes an optional `--start-image`, up to 10 images including it (`--ref`, cited as @Image1), up to 5 `--ref-video` clips (cited as @Video1, 3-30s each), and up to 7 `--element` entries (cited as @Element1; up to 3 with `voice_id`, up to 3 video-backed). Reference and element videos share 5 clips and 30 seconds, and 15 inputs is the total. Reference mode has no end frame. Audio is always on. With any reference or element video it bills the video length plus the output, at least twice the output, so pass `--ref-video-seconds` to `costs` or `--estimate` for an exact quote.\\n- Kling 4.0 Flash (`kling-4.0-flash`, Tier 2, by name) is the faster, cheaper tier of Kling 4.0, with the same three modes and inputs, at 720p only and 3-20 whole seconds (default 5). It takes one prompt (no `--segment`), no `--end-image` (image-to-video uses `--start-image` alone) and no `voice_id` on elements. Reference mode takes an optional `--start-image`, up to 10 images including it, up to 5 `--ref-video` clips of 3-20s each, and up to 7 `--element` entries (up to 3 video-backed, 3-8s each); reference and element videos share 5 clips and 20 seconds, and 15 inputs is the total. Audio is always on. It costs less per second than Kling 4.0 and bills reference and element videos the same way (`--ref-video-seconds`, up to 20). Use Kling 4.0 for multi-shot prompts, an end frame, voices, 1080p or clips past 20s.\\n- Seedance quality: `mini` for the lowest cost, `fast` for speed, `standard` for maximum quality and for 1080p/4K. Seedance 2.5 has a single tier and ignores `--quality`.\\n- Longer than 15 seconds, or more than 9 image / 3 video / 3 audio references: use Seedance 2.5. It reaches 30s and 30/10/10 references (50 files total) at 480p/720p/1080p, but has no 4K.\\n- Seedance 2.x has no real-people option. A video that can\'t be made at the listed rate, usually one showing a real person, costs a higher rate, charged before it starts.\\n\\n### Video edit and motion-control categories\\n\\nUse `videodraft models video --category video_edit` for existing-video transforms and `--category motion_control` for motion transfer.\\n\\n| Need | Command/model | Important limits |\\n| -------------------------------------------------- | ---------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\\n| Most edits of a source from 3 to 15s (DEFAULT) | `videodraft edit video <video> \\"...\\"` (auto-selects `gemini-omni-1.2-flash`) | Source 3-15s or it REFUSES; up to 2 image refs on Google, no creative video refs; 360p/720p/1080p/4K; audio always regenerated (no `--preserve-audio`) |\\n| Cheapest simple prompt edit | `videodraft edit video <video> \\"...\\" --model grok-imagine-video-edit` | No image refs; source silently truncated to 8s; auto/480p/720p |\\n| Edit with several image references | `--model happy-horse-video-edit --ref ...` | Up to 5 refs; 720p/1080p; source silently truncated to 15s; highest rate |\\n| Controlled Kling edit | `--model kling-o3-video-ref-edit --ref ...` | Up to 4 refs; Standard/Pro; source silently clamped to 3-10s |\\n| Whole source over 15s and up to 30s, or 7 elements | `--model kling-4.0-video-edit --ref ...` | Tier 2. Up to 10 refs and 7 image elements; 720p/1080p; edits a whole 3-30s source; `--duration` 3-30 sets a new length |\\n| Kling 4.0 Flash edit, when the user names it | `--model kling-4.0-flash-video-edit --ref ...` | Tier 2, by name: the faster, cheaper Kling 4.0 edit. Up to 10 refs and 7 image elements; 720p only; edits a whole 3-20s source; `--duration` 3-20 sets a new length |\\n| Transfer reference motion to an image | `videodraft edit motion <image> [direction] --motion-video <video>` | Prompt/direction is optional; Kling V3 default; optional one image-only `--element`; element requires video orientation |\\n\\nIf the user explicitly names one of these models, preserve it. The CLI uploads local source videos and reference images automatically. Editing returns an async job and waits by default.\\n\\n**Omit `--model` and the SERVER chooses**, because only it can measure the source. It picks `gemini-omni-1.2-flash` for any source from 3 to 15s. When that is not safe (source longer than 15s, unmeasurable duration, `--preserve-audio`, more than 2 refs, or Fal BYOK with refs) it spends nothing and returns a priced menu: per model, the seconds it would edit, the seconds it would drop, and the credit cost. The CLI prints that table and exits 2. Show it to the user, then re-run with `--model`.\\n\\n**Truncation is the trap here.** Gemini, Kling 4.0 Video Edit (up to 30s) and Kling 4.0 Flash Video Edit (up to 20s) refuse sources they cannot fully consume. Other edit models accept a 30s clip but return only its first 8-15 seconds. `videodraft edit video` now warns when this will happen and the tool response carries `source.truncated` / `source.dropped_seconds`; relay it to the user rather than letting them discover it in the output.\\n\\nTo edit a longer source without losing its tail, cut it into <=15s pieces in the selected editing app (`videodraft_editor` by default), edit each with Gemini, then reassemble and export in that app. VideoDraft has no server-side split/concat, so this needs a local editing route.\\n\\nKling O3 is also exposed for reference generation. `videodraft generate video --model kling-o3-video-ref-edit` requires exactly one `--ref-video` and generates a new reference-guided clip. Wan 3.0 handles new text, frame, and mixed-reference generation, but is not an existing-source edit model.\\n\\n### Reference-first video workflow\\n\\n- Prefer a start frame or reference image whenever a specific character, product, location, style, composition, or brand identity must stay recognizable.\\n- If the user gives a reference, pass it. Never silently replace it with a text description.\\n- If no reference exists and continuity matters, generate a still first with the user\'s explicitly requested compatible image model, otherwise use Nano Banana 2.1. Wait for the image URL, then animate it with the selected video model. Confirm the combined image plus video cost before starting.\\n- For multi-shot scenes, generate shot images with `videodraft shots <project_id> --model <selected-image-model> --grid`. Preserve an explicitly requested compatible image model; otherwise use `nano-banana-2.1`. The grid establishes the scene and characters together, then decodes into individual shot images.\\n- Animate the decoded shot images as per-shot start frames or references. Do not independently text-generate each video clip when the shots need to match.\\n- Pure text-to-video remains appropriate for generic one-off footage where no subject, composition, or continuity needs to be preserved.\\n\\n### Audio\\n\\n- **Seed Audio 1.0**: use `videodraft generate audio` for open-ended speech, sound, music, or prompt-driven audio editing. It accepts up to three audio references or one image. Address audio references as `@Audio1`, `@Audio2`, and `@Audio3`. Preset and custom cloned voice IDs are supported. Output is up to 120 seconds. There is no requested-duration input. The CLI automatically retries transient responses with one idempotency key. To recover after the CLI process itself is interrupted, set `--idempotency-key <uuid>` on the original command and reuse it.\\n- **Voiceover/TTS**: prefer ElevenLabs. Brittney is the platform default voice; under ElevenLabs BYOK, use a compatible voice from the user\'s account. Honor another supported voice/provider when the user explicitly selects it. ElevenLabs voices run on Eleven v4 in one of two modes: Standard (the default, best quality) or Turbo (Eleven v4 Turbo, faster and half the price). Keep Standard unless the user wants faster or cheaper speech. Pick the mode with `generate voiceover --mode standard|turbo` or `produce --voice-mode standard|turbo`; over MCP, pass `mode` to `generate_voiceover` or `voice_mode` to `produce_project`. Google, OpenAI and cloned `custom-*` voices ignore it. v4 takes no style or speed settings and no SSML `<break>` tags; audio tags such as `[whispers]` work. Dialogue stays on Eleven v3.\\n- **Dialogue, voice changing, and dubbing**: ElevenLabs only.\\n- **Sound effects**: ElevenLabs Sound Effects v3 only, 0.5-30 seconds.\\n- **Music**: use `lyria-3.5` for all music, short or long (up to ~3 minutes), with vocals/lyrics or instrumental music. When `--model` is omitted the CLI sends no model and the server default applies, which is `lyria-3.5` wherever the backend supports it. If the server answers that `lyria-3.5` is an unknown model, that backend predates it: rerun without `--model` (the server default then applies), or use `lyria-3-pro-preview` for a track longer than 30 seconds. `lyria-3-clip-preview` (fixed ~30s) and `lyria-3-pro-preview` remain available for explicit requests. Lyria length and structure are prompt-guided, not exact; for an instrumental, include \\"instrumental only, no vocals\\" in the prompt. `--length` and `--instrumental` only apply to ElevenLabs. Use `elevenlabs-music-v2.5` when a specified 3-300 second length, composition plan, or style reference track matters. Lyria references: up to 10 images on Google, 1 on Fal BYOK; 3.5 Fal prompts are 1-5000 characters (an image-only request gets a neutral prompt). `elevenlabs-music` is an alias for v2.5. Use `elevenlabs-music-v1` only when the user asks for v1 by name; it takes a prompt, `--length` and `--instrumental` only.\\n- **ElevenLabs Music v2.5 inputs**: either a prompt (`--length`, `--instrumental`) or a composition plan, never both. A plan is 1-30 sections of 3-120 seconds each, up to 300 seconds in total, and `--plan`/`--section` pick v2.5 when `--model` is omitted. Empty section parts default to 20 seconds and an instrumental part. Build one with repeatable `--section \\"<seconds>|<style, style>|<text>\\"` (use `\\\\n` for line breaks) or pass `--plan plan.json` with `{\\"chunks\\":[{\\"text\\",\\"duration_ms\\",\\"positive_styles\\",\\"negative_styles\\",\\"context_adherence\\",\\"audio_reference\\"}]}`. Section text is an optional `[Section name]`, lyric lines, and `{inline directions}`. Put 6-7 specific English styles on the first section; it sets the genre. `--ref-audio <url|file>` adds a style reference clip to the first section (window up to 30 seconds via `--ref-start`/`--ref-end` in ms, `--ref-strength low|medium|high|xhigh`); local files are uploaded, including relative `audio_reference.audio_url` paths in a plan file. `--seed` works only with a plan. `--format` picks the output (`mp3_48000_192` default on v2.5; `pcm_*`, `ulaw_8000` and `alaw_8000` arrive as stereo WAV files). Style references don\'t run on the user\'s own ElevenLabs key; with that key connected, drop the reference or ask the user to turn the key off. The CLI retries transient responses with one idempotency key; set `--idempotency-key <uuid>` to recover after an interruption.\\n- Voice Changer and Dubbing require the source media duration and currently accept source media up to 300 seconds.\\n\\n**User-supplied ElevenLabs voice IDs:** voiceover, dialogue, and voice changing accept raw IDs (16-64 alphanumeric characters) or `elevenlabs-<id>`. `videodraft models voices` / MCP `list_available_voices` is for discovery, not an allowlist. Pass a supplied ID directly even when it is absent from the catalog; do not reject it or substitute a catalog voice. The voice must be accessible to the provider account used for generation. Private or cloned voices may require the user\'s connected ElevenLabs key. A failed voice listing does not prove that a supplied ID cannot generate; a connected key with generation access may still work. If the provider rejects generation access, report that error rather than silently changing the voice.\\n\\nUse `--voice <id>` for voiceover and voice changing, and repeat `--line \\"<id>:Text\\"` for dialogue. These examples show both ID forms; replace the sample IDs with the user\'s supplied IDs:\\n\\n```bash\\nvideodraft generate voiceover \\"Hello there.\\" --voice kPzsL2i3teMYv0FxEYQ6 --download ./media/voiceover.mp3\\nvideodraft generate dialogue --line \\"kPzsL2i3teMYv0FxEYQ6:Hello.\\" --line \\"elevenlabs-kmSVBPu7loj4ayNinwWM:Welcome back.\\" --download ./media/dialogue.mp3\\nvideodraft generate voice-changer ./media/source.wav --voice elevenlabs-kPzsL2i3teMYv0FxEYQ6 --duration 12 --download ./media/changed-voice.mp3\\n```\\n\\nFor MCP, use `generate_voiceover.voice_id`, `generate_dialogue.lines[].voice_id`, or `change_voice.voice_id` with either form. ElevenLabs IDs are separate from Kling video-control voice IDs and MiniMax `custom-*` cloned-voice IDs. Do not convert IDs from those systems into ElevenLabs IDs.\\n\\n### Avatar / talking head\\n\\n**First decide the framing, not just \\"someone talks\\".** This lane animates a PORTRAIT facing the lens. A character delivering a line inside a real scene, with blocking, framing or camera movement, belongs to `generate video` instead: write the dialogue in the prompt and `gemini-omni-1.2-flash`, `seedance-2.5`, `seedance-2`, `kling-3.0` or `kling-o3` voices it natively (add a Seedance `--ref-audio` clip or a Kling voice bound per element for a specific voice). That is the default for any talking character; never plan silent video + TTS + lip-sync. Sending a cinematic shot to Fabric returns a head-on talking headshot, not the shot that was asked for. `videodraft models video --json` lists these under `recommended.in_scene_dialogue`.\\n\\nFor a presenter, spokesperson or explainer speaking to camera, VEED Fabric is the preferred model. Choose the dedicated path from the media the user already has:\\n\\n| Starting media | Command | Use |\\n| ------------------------------------------ | ------------------------------------------------------------------------- | ---------------------------------------------------------- |\\n| Portrait + script, reusable avatar record | `videodraft avatar create <portrait> --script \\"...\\"` then `avatar render` | Managed avatar flow with bundled speech preparation |\\n| Portrait + text | `videodraft avatar fabric <portrait> --text \\"...\\"` | One-off direct VEED Fabric text mode |\\n| Portrait + existing audio | `videodraft avatar fabric <portrait> --audio <audio>` | One-off direct VEED Fabric audio lip sync |\\n| Portrait + existing audio, short and sharp | `videodraft avatar h3-lipsync <portrait> --audio <audio>` | MiniMax H3 Max Lip Sync, 5-14.8s at up to 2K |\\n| Existing video + existing audio | `videodraft avatar lipsync <video> --audio <audio>` | Sync Labs Lipsync 2 (Tier 2): re-dub existing footage only |\\n\\nThe managed renderer is VEED Fabric Fast (`veed/fabric-1.0/fast`). Direct Fabric, MiniMax H3 Max Lip Sync, and Sync Labs are paid AI Studio generations and return async job IDs.\\n\\n1. Obtain the avatar image. Prefer the user\'s supplied portrait or an existing character. If none exists, use the user\'s explicitly requested compatible image model, otherwise generate a front-facing head-and-shoulders portrait with `nano-banana-2.1`, direct eye contact, a natural expression, and a clean background. Match the intended video aspect ratio when practical.\\n2. If the portrait is visibly soft or too small, run Topaz image enhancement/upscaling before animation.\\n3. Generate a script only if needed: `videodraft avatar script \\"<idea>\\"`.\\n4. Create the avatar record and speech: `videodraft avatar create <portrait-url-or-file> --script \\"...\\" --voice <id> --ar 9:16`. Prefer ElevenLabs when unspecified, but honor another explicitly selected supported voice/provider.\\n5. Render with VEED Fabric: `videodraft avatar render <avatar_video_id> --resolution 720p`.\\n\\nThe portrait is passed as the avatar\'s character image, not as a generic video\'s start frame. Prefer rendering directly at 720p. Use 480p only when the user prioritizes lower cost. Avatar script generation and `avatar create` (including speech) are bundled/free. Confirm the Fabric render cost, plus portrait generation or upscaling when needed.\\n\\nDirect Fabric text/audio, H3 Max Lip Sync, and Sync Labs do not use the managed avatar record. The CLI uploads local portrait, video, and audio files automatically. `avatar fabric --speed fast` applies only to audio mode. `avatar h3-lipsync` takes no prompt: pick `--resolution 480P|768P|1080P|2K` (default 768P), an optional `--seed`, `--no-transcription` to sync without transcribing the audio (transcription is on by default), and `--safety-checker` only when the user asks for Fal\'s checker. The portrait\'s width / height must be 0.4-2.5, and audio shorter than 5 seconds is refused before any charge. Sync is billed per verified audio second; under Fal BYOK, `sync_mode` remains available but `temperature` and `active_speaker` are ignored by the provider.\\n\\n### Upscaling / enhancement\\n\\n- **Images**: Topaz via `videodraft upscale image <url-or-file> --scale 1x|2x|4x [--mode precision|generative|creative] [--model <name>]`. Modes: `generative` (default; Wonder 3.5, Topaz\'s recommended model for AI-generated images; `Redefine` takes `--prompt`, `--creativity 1-6`, `--texture 1-5`), `precision` (faithful and cheapest; Standard V2, High Fidelity V3, Low Resolution V2, CGI, Text Refine; use for clean real photos), `creative` (Bloom 2; artistic, `--prompt`, `--creativity 1-9`). Extra knobs: `--no-face-enhance`, `--face-strength`, `--sharpen`, `--denoise`, `--fix-compression`, `--format png`. Use 1x for light enhancement without enlargement, 2x as the general default, and 4x only when the source quality and target size justify it. The server must verify dimensions from a readable image of at most 50 MB; `--width` and `--height` are compatibility hints and cannot bypass a failed probe. The result may be immediate or queued; the CLI waits by default. Use `--no-wait` for an async job ID, and poll it with `status` or `wait`. Cost: per started block of output megapixels; precision is cheapest, then generative, then creative.\\n- **Videos**: Topaz via `videodraft upscale video <url-or-file> --resolution 720p|1080p|4k` (preferred) or `--scale 2x`, plus `--mode precision|generative|creative` and `--model <name>`. `generative` (default; Starlight Precise 2.6, Topaz\'s recommended model for AI-generated footage; Starlight Fast 2 at half price) is billed per second, more at 4K. `precision` (Proteus, Proteus Natural, Iris, Gaia 2 for animation, Rhea, Theia, Artemis, Dione) is much cheaper, billed per second by output resolution; use it for real footage or when cost matters. `creative` (Astra 2, `--prompt`, `--creativity`, `--realism`, `--sharp`) always renders 4K and costs the most. `--fps 60` delivers 60fps on the same pass; any output above 30fps (including a 50/60fps source) doubles every rate; the server must verify duration, dimensions, and frame rate from an MP4/MOV source of at most 100 MB. `--duration`, `--width`, `--height`, and `--source-fps` are compatibility hints and cannot override billing or bypass a failed probe. The same source-verification requirement applies to frame interpolation. `--scale` also accepts intermediate factors such as `1.5x`. Max source length 5 minutes. The job is asynchronous; the CLI waits by default, while MCP callers poll `check_generation_status`. MCP video input must be VideoDraft-hosted, so upload local or external sources first.\\n- **Frame interpolation / slow motion**: `videodraft interpolate <url-or-file> --fps 60 [--model Apollo|Chronos|Aion] [--slowdown 1-8]` (MCP `interpolate_video`). Resolution is unchanged. Apollo (default) for smooth general conversion, Chronos for natural slow motion, Aion for extreme slow motion. Apollo/Chronos are billed per output second (more at 4K); Aion costs more. These rates cover targets up to 60fps; above 60fps multiply by target FPS / 60 (120fps doubles the rate). Output seconds = source seconds \xD7 slowdown. The final charge rounds up to a whole credit.\\n- Use upscaling to preserve the image/video while improving detail, resolution, or cleanup. It cannot fix the wrong subject, misspelled text, bad framing, unwanted objects, broken continuity, or incorrect motion. Use an edit or regeneration for those problems. Keep `generative` for AI-generated sources; switch to `precision` for clean real photos/footage or a cheap pass, and `creative` only when the user wants an artistic reinterpretation.\\n- For a new Fabric avatar, render directly at 720p instead of rendering at 480p and then upscaling. Upscale the source portrait first only when the portrait itself is low quality.\\n\\n## Capability gotchas\\n\\n- Each model\'s `inputs` block is authoritative: supported `aspect_ratios`, `resolutions`, `quality_options`, `start_frame`/`end_frame`, `max_reference_images/videos/audio`, `multi_prompt`, `audio_toggle`. Passing an unsupported input fails with a clear error \u2014 check first, don\'t trial-and-error paid calls.\\n- Most video models support only 16:9 / 9:16 / 1:1. A 3:4 request hard-fails on most.\\n- `--seed` reproduces a specific output on models that support it (e.g. Ideogram 4.5). GPT Image 2.6 and FLUX 3 Image reject any explicit seed; older models may ignore unsupported seeds. You do not need a seed for variation \u2014 `--num` already varies.\\n- `--rendering-speed` remains accepted for explicit legacy image requests and their cost estimates. Current Ideogram models use `--quality`. Always trust `videodraft models image --json` over this list; new models and tiers appear there the moment the platform ships them, with no CLI update.\\n- `seedream-v5-pro` supports unified text-to-image and reference-image editing with up to 10 image references. Use `--resolution 1K` or `--resolution 2K` (2K costs more per image).\\n- Reference inputs: `--ref <img>` (images, including up to 10 total for Gemini Omni 1.2 Flash and Wan 3.0, and 7 for Grok 1.5), `--source-video <v>` (Gemini uploaded edit/extension source), `--ref-video <v>` (up to 3 creative videos <=15s each for Gemini Omni 1.2 Flash; also Wan 3.0, MiniMax H3, MiniMax H3 Max, and Seedance 2), `--ref-audio <a>` (Wan 3.0, MiniMax H3, MiniMax H3 Max, Seedance 2), and `--element \'<json>\'` or `--element @elements.json` for Kling V3/O3. For an exact Seedance 2.x reference-video `--estimate`, add `--ref-video-seconds <combined-seconds>`; Seedance bills input seconds alongside output. Wan 3.0 and MiniMax H3 do not bill input reference seconds; MiniMax H3 Max bills them as pooled reference tokens. The CLI uploads local media references and every structured element without flattening the source/reference roles. `--segment \\"<prompt>:<seconds>\\"` (repeatable) drives Kling 3.0, Kling 3.0 Turbo, and O3 multi-prompt generation. Use 1-6 segments of 1-15 whole seconds each, with 3-15 seconds total. `generate image --video-ref` is the nano-banana-2 video reference.\\n- The top-level prompt is OPTIONAL for Gemini Omni 1.2 Flash media-input or continuation calls, Wan 3.0 frame/reference modes, `generate video` with multi-prompt models, and Kling 3.0 Turbo (`--model kling-v3-turbo`) image-to-video. Text-only Gemini and Wan calls still require a prompt unless their live schema says otherwise.\\n- Hosted AI Production fallback: `videodraft produce <project> --mode full_video` generates one Seedance 2 video per scene. The MCP equivalent is `produce_project` with `mode: \\"full_video\\"`. Poll with `videodraft generations`, then `videodraft finalize <project>` swaps them into the hosted timeline before `export`. In VideoDraft ADE, do not choose this path while `videodraft_editor` is available unless the user explicitly requests hosted production. A selected external app or existing external project also takes precedence over this hosted fallback. Generate or download the scene assets, import them, and assemble/export in the selected app (the native editor by default). If the user explicitly requests another compatible video model for a hosted production, do not use this fixed Seedance path; generate the project shots manually with the requested model and attach them to the hosted timeline.\\n\\n## Cost model\\n\\nThis skill lists no prices because they change with provider routing and sales. Get the current price from `videodraft costs <model> [settings]` or the command\'s `--estimate` flag; both read live prices from the server and spend nothing. Never quote a price from memory. What each kind of job is billed on:\\n\\n- Images: per image (x `--num`). Matrix-priced models (GPT Image, Nano Banana 2.1 and Pro, Seedream v5 Pro, Ideogram 4.5, Grok Imagine 2.0) vary by resolution and/or quality (Nano Banana 2.1 thinking and web search are free); Grok Imagine 2.0 also charges per reference image (up to 3).\\n- Video: per output second; the rate depends on model, resolution, quality and native audio on/off.\\n- Gemini Omni 1.2 Flash: per output second by resolution (720p default). Extend appends an explicit 3-10 seconds to a 1-30s source, whether uploaded or resolved from a prior interaction; 40 seconds total is reachable only while the source stays at or under 30s. Fal BYOK generation, basic source edits and extensions cost zero VideoDraft credits; interaction-ID continuation and separate edit/extend references are unavailable under Fal BYOK; uploaded-source extension is supported.\\n- MiniMax H3: per output second by resolution (768p default). The first 5 reference images are included, then each additional image adds a charge. Reference video and reference audio are NOT billed.\\n- MiniMax H3 Max: per output second at 480p or 768p (default), plus pooled reference tokens: a free allowance, then a charge per 1,000 tokens. An image is `(width x height) / 1024` tokens; a reference video is 2,886 tokens per second at 480p or 7,459 at 768p; reference audio is about 2,121 per second. Pass `--ref-audio-seconds` for an exact estimate with audio references. The server measures each reference image, so a quote that assumes 1024x1024 is a floor.\\n- Wan 3.0: per output second by resolution. Auto duration reserves 30 seconds and reconciles unused credits from the provider-reported output duration. Fal BYOK charges zero VideoDraft credits.\\n- Grok Imagine Video 1.5: per output second by resolution, plus a small charge for each first-frame or reference image. Native generated audio is part of every output.\\n- Kling: per output second by tier and audio; voice control costs more.\\n- Seedance 2.0 / 2.5: per output second by tier and resolution. A video that can\'t be made at the base rate, usually one showing a real person, costs a higher rate; the difference is charged before it starts. `get_model_costs` returns both (`cost` and `higher_rate_cost`). Reference videos bill input seconds alongside output.\\n- Shot-image batches: one image per shot (+1 grid image per scene in `--grid` mode) \u2014 the largest single spend in the pipeline.\\n- VEED Fabric avatar renders: per second by resolution. Avatar creation and its speech are bundled/free; only optional portrait generation/upscaling adds cost before the render.\\n- Direct VEED Fabric: per second by resolution; fast audio costs more than text or normal audio.\\n- MiniMax H3 Max Lip Sync: per output second by resolution (768P default). The video runs as long as the audio (at least 5s; only the first 14.8s is used), billed on the server-measured length rounded up, so at most 15 seconds. Use MP3, WAV, M4A (AAC), or AAC audio; other formats run only on the user\'s own Fal key.\\n- Sync Labs Lipsync 2: per verified audio second.\\n- Voiceover TTS: per character. ElevenLabs Turbo (Eleven v4 Turbo) costs less than Standard (Eleven v4), and cloned `custom-*` voices cost more; this applies to standalone voiceovers AND per-scene narration during `produce`. Quote Turbo with model id `voiceover-turbo` (CLI: `costs voiceover --mode turbo`) and cloned voices with `voiceover-cloned`. Silent tracks are free. Voice cloning itself is a flat fee per clone.\\n- Lyria music: one flat price per track (Clip, 3.5 and legacy Pro differ). Fal BYOK uses zero VideoDraft credits.\\n- Seed Audio 1.0: per actual output minute, prorated and rounded up to a whole credit. VideoDraft reserves the 120-second maximum and refunds the unused portion after generation. Fal BYOK is free.\\n- ElevenLabs audio: sound effects are per second, dialogue is per character, music/voice-changer/dubbing are per started minute (Music v2.5 and v1 cost the same); estimate a composition plan with its total length. Voice changer and dubbing reject source media above 300s in the current synchronous flow.\\n- xAI bills refused requests, so failed Grok generations are not refunded.\\n- Upscales: priced by output size, mode, and (video) duration/fps; see the Upscaling section above.\\n\\nQuote before spending:\\n\\n```bash\\nvideodraft costs gemini-omni-1.2-flash --type video --duration 8 --resolution 720p --audio\\nvideodraft costs topaz-upscale-video --type video --duration 10 --width 1920 --height 1080 --resolution 4k --mode generative\\nvideodraft costs topaz-upscale --type image --width 2048 --height 2048 --scale 2x\\nvideodraft costs topaz-interpolate-video --type video --duration 10 --width 1920 --height 1080 --fps 60 --topaz-model Apollo\\nvideodraft costs minimax-h3 --type video --duration 10 --resolution 2K --ref-images 7\\nvideodraft costs minimax-h3-max --type video --duration 10 --resolution 768p --ref-images 2\\nvideodraft costs flux-3-max --type video --duration 5 --resolution 720p\\nvideodraft costs kling-4.0 --type video --duration 10 --resolution 1080p --ref-video-seconds 6\\nvideodraft costs kling-4.0-video-edit --type video --resolution 720p --ref-video-seconds 12 # source length; output matches it\\nvideodraft costs kling-4.0-flash --type video --duration 10 --ref-video-seconds 6\\nvideodraft costs kling-4.0-flash-video-edit --type video --ref-video-seconds 12 # source length; output matches it\\nvideodraft costs grok-imagine-video-1.5 --type video --duration 8 --resolution 720p --ref-images 4\\nvideodraft costs seedance-2 --type video --duration 15 --resolution 720p --quality standard --audio\\nvideodraft costs grok-imagine-2.0 --type image --resolution 2K --quality medium --num 2\\nvideodraft costs elevenlabs-dubbing --type audio --duration 60\\nvideodraft costs seed-audio-1.0 --type audio --duration 60 # scenario only; model controls actual length\\nvideodraft costs elevenlabs-dialogue --type audio --chars 350\\nvideodraft costs voiceover --type audio --chars 800 # TTS, per character\\nvideodraft costs voiceover --type audio --chars 800 --mode turbo # ElevenLabs Turbo, cheaper per character\\nvideodraft generate video \\"...\\" --model gemini-omni-1.2-flash --estimate # same quote, inline\\nvideodraft generate video \\"...\\" --model minimax-h3-max --duration 8 --resolution 768p --prompt-expansion-mode balanced\\n```\\n\\nMiniMax H3 Max and FLUX 3 Max are Tier 1; Gemini Omni remains the default. Use `videodraft costs` or `--estimate` for current prices before spending.\\n\\n## GenJutsu motion transfer\\n\\n`genjutsu` and `genjutsu-light` are two separate native Higgsfield models. Use `videodraft edit motion` with one subject image, a required `--motion-video`, and up to seven additional `--ref` images. Prompt text is optional. Resolution is `480p`, `720p` (default), or `1080p`. GenJutsu accepts 4\u201330 seconds; Light accepts 4\u201315 seconds. Use MP4 under 100 MB and trim longer sources before submission.\\n\\n```bash\\nvideodraft edit motion character.png \'Use this character throughout the performance\' --model genjutsu --motion-video performance.mp4 --ref outfit.png --resolution 720p --download ./result.mp4\\nvideodraft edit motion character.png --model genjutsu-light --motion-video performance.mp4 --resolution 480p --duration 4.208333 --estimate\\nvideodraft generate video --model genjutsu-light --ref character.png --ref-video performance.mp4 --resolution 480p --no-wait\\n```\\n\\nMCP uses `generate_motion_control_video` with `model`, `motion_video_url`, `reference_images` (1\u20138 URLs), optional `prompt`, and `resolution`. A single `image_url` is accepted instead of `reference_images`; do not send both. `idempotency_key` is an optional UUID for an identical retry. Poll `check_generation_status` with `job_id` and attach completed output to a project shot when required.\\n\\nNo provider settings exist for duration, aspect ratio, seed, FPS, quality tier, orientation, Elements, or audio toggles. Existing Kling flags remain Kling-only. Output follows source motion; Motion Transfer can rebuild the scene rather than preserving every background detail. Both modes use Higgsfield directly; unsupported personal-provider selection returns an error without switching payer.\\n\\nGenJutsu bills each rounded-up source second, priced by resolution. Light bills billable seconds: fractional source seconds plus rounded-up output seconds. Quote with `videodraft costs` or `--estimate`; `get_model_costs` and `--estimate` take the source duration. The server measures the source and rounds the total credit charge up once; Light refunds unused output time. No promotional discount is assumed.\\n","references/pipeline.md":"# VideoDraft pipeline reference\\n\\nEverything here describes the hosted fallback pipeline through the CLI (`videodraft <command>` / `videodraft call <tool>`) or hosted MCP connector (tool names in backticks). Honor the chosen app, existing project\'s editing surface and VideoDraft ADE\'s `<creative_routes>` as described in SKILL.md. Use hosted tools for asset generation and optional script/storyboard stages, then finish in the selected editing app. With no external app selected and the local `videodraft_editor` MCP available, use the native editor reference linked from SKILL.md. Continue through `produce_project` and `export_video` only when the user explicitly requests a hosted web production, or the native editor is unavailable and no external app is selected.\\n\\nUse direct asset tools for standalone images, clips, audio, upscales, and descriptions. Use a hosted project when the user explicitly wants the editable web project, when a hosted storyboard stage is useful, or when the native editor is unavailable and no external app is selected. Script-only uses a script-stage project and stops at the script. For a local production, stop before hosted production, import the generated assets into the selected app, and build/export there; the native editor remains the default when available and no other app or existing project takes precedence.\\n\\n## Stages and their tools\\n\\n| Stage | CLI | Underlying tool |\\n| ---------------------------------------- | --------------------------------------------------------------------------- | ------------------------------------------- |\\n| Idea \u2192 full storyboard project | `videodraft create \\"<idea>\\"` | `generate_storyboard_from_idea` |\\n| Idea \u2192 script only (stop there) | `videodraft create \\"<idea>\\" --script-only` | `generate_script_from_idea` |\\n| Footage IS the video | `videodraft call generate_storyboard_from_media` | `generate_storyboard_from_media` |\\n| Batch shot images | `videodraft shots <project>` | `generate_shot_images` |\\n| One shot image | `videodraft generate image --project <id> --scene N --shot M` | `generate_image` |\\n| Produce (voiceover, captions, timeline) | `videodraft produce <project>` | `produce_project` |\\n| Seedance full-video production | `videodraft produce <project> --mode full_video` | `produce_project` with `mode: \\"full_video\\"` |\\n| Per-shot motion prompts | `videodraft video-prompts <project>` | `generate_video_prompts` |\\n| Motion clip for a shot | `videodraft generate video --project <id>` | `generate_video` |\\n| Attach a finished clip to the timeline | `videodraft attach <project> --scene N --shot M --media <url> --type video` | `attach_media_to_shot` |\\n| Find free b-roll (no credits) | `videodraft stock search \\"<query>\\"` | `search_stock_media` |\\n| Copy stock media onto the CDN | `videodraft stock import <ref>` | `import_stock_media` |\\n| Background music | `videodraft generate music --attach <project>` | `generate_music` / `set_background_music` |\\n| Song with vocals, lyrics or sections | `videodraft generate music --model elevenlabs-music-v2.5 --section \\"...\\"` | `generate_music` with `composition_plan` |\\n| General or reference-driven audio | `videodraft generate audio \\"...\\"` | `generate_audio` |\\n| Sound effect | `videodraft generate sound-effect \\"...\\"` | `generate_sound_effect` |\\n| Dialogue audio | `videodraft generate dialogue --line \\"voice:text\\"` | `generate_dialogue` |\\n| Voice changer | `videodraft generate voice-changer <audio>` | `change_voice` |\\n| Dubbing | `videodraft generate dub <audio_or_video>` | `dub_media` |\\n| Scene voiceover | `videodraft generate voiceover --project <id> --scene N` | `generate_voiceover` |\\n| Avatar script | `videodraft avatar script \\"<idea>\\"` | `generate_avatar_script` |\\n| Avatar + speech | `videodraft avatar create <portrait> --script \\"...\\"` | `create_avatar_video` |\\n| Talking-head render | `videodraft avatar render <avatar_video_id>` | `render_avatar_video` + `get_avatar_video` |\\n| Direct portrait + text/audio | `videodraft avatar fabric <portrait> --text \\"...\\"` or `--audio <file>` | `generate_veed_fabric_video` |\\n| Short portrait clip from audio, up to 2K | `videodraft avatar h3-lipsync <portrait> --audio <file>` | `generate_minimax_h3_lipsync_video` |\\n| Existing video + replacement audio | `videodraft avatar lipsync <video> --audio <file>` | `generate_sync_lipsync_video` |\\n| Existing-video AI edit | `videodraft edit video <video> \\"<change>\\" --model <video-edit-model>` | `edit_video` |\\n| Motion transfer | `videodraft edit motion <image> [direction] --motion-video <video>` | `generate_motion_control_video` |\\n| Image enhancement/upscale | `videodraft upscale image <image>` | `upscale_image` |\\n| Video enhancement/upscale | `videodraft upscale video <video>` | `upscale_video` |\\n| Frame rate / slow motion | `videodraft interpolate <video> --fps 60 [--slowdown 4]` | `interpolate_video` |\\n| Final MP4 | `videodraft export <project>` | `export_video` + `check_export_status` |\\n\\n## Rules that prevent broken results\\n\\n- **The storyboard is generated FROM the script**, never from the raw idea. `videodraft create` runs the whole chain correctly. Don\'t call `generate_storyboard_scenes` with a raw idea as the \\"script\\".\\n- **Visual consistency**: never generate a storyboard shot in isolation. Shot prompts carry `[[asset:Name]]` / `[[shot:X-Y]]` tags that `generate_shot_images` resolves against the project\'s visual assets and prior shots. When generating a single shot whose prompt has no tags, pass `--ref` images yourself (the project\'s visual assets and/or the previous shot\'s image; `projects get` exposes both). For scenes with multiple shots or recurring characters, prefer `videodraft shots <project> --model <selected-image-model> --grid`: preserve an explicitly requested compatible image model, otherwise use `nano-banana-2`. It creates one coherent scene grid, then decodes it into individual shot images.\\n- **Reference-first video**: when identity, styling, or composition matters, do not generate each motion clip from text alone. Generate or select the shot still first, then pass the decoded shot image as `--start-image` or `--ref` to the selected video model. AI Production already composes scene grids and sends them to Seedance as references. If the user explicitly requests another compatible video model, bypass fixed Seedance full-video mode and generate the per-shot clips with the requested model, using the individual decoded shot images as anchors.\\n- **Seedance full-video pricing**: hosted `full_video` has no real-people option. A scene video that can\'t be made at the listed rate, usually one showing a real person, costs a higher rate, charged before it starts.\\n- **Narration voice mode**: ElevenLabs narration runs on Eleven v4. Standard is the default and the best quality. `videodraft produce <project> --voice-mode turbo` (MCP `produce_project` with `voice_mode: \\"turbo\\"`) uses Eleven v4 Turbo, which is faster and cheaper. For one scene, `videodraft generate voiceover --project <id> --scene N --mode turbo` (MCP `generate_voiceover` with `mode: \\"turbo\\"`) does the same. Google, OpenAI and cloned `custom-*` voices ignore the mode.\\n- **Hold off generating shot images while the user is still iterating** on storyboard structure.\\n- **produce \u2192 export ordering**: `export` requires a produced project where every production scene has timeline media. If `produce` returns `generating_shot_images`, poll the job ids it returns, then re-run produce.\\n- **Do not attach motion clips before production exists**: run `produce` successfully first, then attach finished motion clips to the production timeline. Attaching before `production_data` exists cannot place them in the final timeline.\\n- **Generated motion clips do not auto-attach**: after `generate video` completes, attach the clip with `attach_media_to_shot` (`media_type:\\"video\\"`, include `duration_seconds`) \u2014 it replaces the production timeline clip while keeping the storyboard still.\\n- **Talking heads use dedicated avatar tools**: do not use `generate video`. Use managed `avatar create` and `avatar render` for reusable avatars, direct `avatar fabric` for a portrait plus text/audio, `avatar h3-lipsync` for a short (5-14.8s) portrait clip from existing audio at up to 2K, and `avatar lipsync` for an existing video plus replacement audio. Reuse a supplied person image or generate a clear front-facing portrait with the explicitly requested compatible image model, otherwise Nano Banana 2. Managed avatar creation and speech are bundled/free; direct Fabric, H3 Max Lip Sync, Sync, and render are paid.\\n- **Existing-video edits use their own category**: call `edit_video` or `videodraft edit video` with a `video_edit` model when transforming the source itself. Kling O3 also has a reference-generation mode that creates a new guided clip. Wan 3.0 is a text/frame/reference generation model, not a source-video editor. Motion transfer similarly uses `generate_motion_control_video` or `videodraft edit motion` with a `motion_control` model.\\n- **Upscaling preserves rather than redesigns**: use Topaz when resolution, detail, or cleanup is the problem (generative mode by default: Wonder 3.5 / Starlight Precise 2.6, Topaz\'s pick for AI sources; precision for real photos/footage or the cheapest pass; creative only for an artistic reinterpretation; `interpolate` for frame rate or slow motion). Regenerate or edit when the subject, text, framing, continuity, or motion is wrong. Upscale a low-quality avatar portrait before Fabric; do not render a new avatar at 480p just to upscale the result.\\n- **Timeouts on the one-shot create**: if `create` times out at the transport layer, the project was still created server-side \u2014 `videodraft projects list`, take the most recent, and resume with its id. Don\'t start a duplicate.\\n\\n## User-attached media: classify roles first\\n\\nFor EACH attached file decide:\\n\\n- **visual_asset** \u2014 recurring reference (character / product / location / style). Upload, then pass in `visual_assets` of `generate_storyboard_from_idea` (via `videodraft call`), or add to an existing project with `add_visual_assets`. Type must be one of `character | object | location | style | custom` with a short name + concrete description.\\n- **shot** \u2014 the media IS footage for the video. Whole video = footage \u2192 `generate_storyboard_from_media`. Idea + footage \u2192 `generate_storyboard_from_idea` with `shot_media`. Existing storyboard \u2192 `attach_media_to_shots`.\\n- **reference** \u2014 inspiration only \u2192 fold a description into the idea/instructions; don\'t place it as a shot or asset.\\n\\nAmbiguous (e.g. a person holding a product)? Ask the user.\\n\\nUploads persist in the media library \u2014 recall later with `videodraft media list`.\\n\\n## Editing project data safely\\n\\n1. `videodraft call get_project_schema` \u2014 read the structure once per session.\\n2. `videodraft projects get <id> --raw` \u2014 the exact editable blob.\\n3. Modify; then `videodraft call update_project --stdin` with `{\\"project_id\\": \\"...\\", \\"data\\": {...}}`.\\n - Objects deep-merge key-by-key; **arrays replace wholesale** \u2014 send the complete array you\'re changing (e.g. all of `storyboard.scenes`).\\n - Scene shot arrays (`image_prompt` / `shot_types` / `shot_actions` / `search_prompt` / `preview_media`) are auto-aligned; fix-ups come back as warnings.\\n4. Snapshot before risky edits: `videodraft checkpoint create <id> --name \\"before re-script\\"`. Restore with `videodraft checkpoint restore <id> <version>`.\\n\\n## AI Studio sessions (standalone generations)\\n\\nProject generations group automatically, and standalone work is grouped per conversation (MCP) or per working directory (CLI) by the connection session \u2014 see the \\"AI Studio sessions\\" section of SKILL.md. Once the task is clear, give that automatic session a concise 3-6 word title before the first generation:\\n\\n```bash\\nvideodraft sessions name \\"Fox Brand Explorations\\"\\nvideodraft generate image \\"...\\"\\n```\\n\\nNaming creates the session with that title. If generation, a user, or an earlier agent created it first, the existing name is preserved. The command refuses to run while `VIDEODRAFT_SESSION` is set, because that override would send later generations to a different session. Use `sessions create` plus `--session` only to continue or deliberately create a separate group.\\n"}');
|
|
8231
|
+
if ('{"SKILL.md":"---\\nname: videodraft\\ndescription: Create and edit AI videos, images, 3D meshes, Seed Audio, voiceovers, music, sound effects, dialogue, dubbing, storyboards, avatar videos, media upscales, and product/ad videos with VideoDraft. Use whenever the user mentions VideoDraft; asks to generate a video, image, 3D asset, audio asset, ad, explainer, storyboard, avatar, upscale, or batch/CI workflow; wants to download a video from YouTube, Instagram, TikTok, X or another site; or wants to assemble, cut, caption, mix, lay out, inspect, or export a native VideoDraft Editor timeline. Covers cloud `videodraft` CLI/MCP, local `videodraft_editor` MCP, and creative-app routing. Honor the chosen app and existing project; otherwise prefer the native editor when available. Hosted production/export is an explicit choice or fallback when no local editing route is selected or available.\\n---\\n\\n# VideoDraft\\n\\nVideoDraft is an AI video creation platform where asset generation is the priority lane:\\n\\n- **Asset generation**: standalone images, video clips, Seed Audio, voiceovers, music, sound effects, dialogue, voice-changed audio, dubbed media, upscales, and image descriptions. This is the fastest and most important lane. Treat these as complete deliverables when the user asks for assets.\\n- **Asset I/O**: upload local files, download outputs, auto-upload local references, and save generated media where the user can see it.\\n- **3D assets**: standalone Meshy 7.1 and Tripo H3.1 meshes, multi-view generation, complete artifact downloads, and Meshy humanoid rigging through MCP/CLI. Read [references/3d.md](references/3d.md), or `videodraft skills show 3d`. These assets have their own saved library and do not require an AI Studio session or web viewer.\\n- **Cloud render**: render the user\'s own Blender scenes on a cloud GPU with `videodraft render blender`. See [Cloud render](#cloud-render-blender-on-a-cloud-gpu) below and [references/cloud-render.md](references/cloud-render.md), or `videodraft skills show render`.\\n- **Native editing**: local `.vdproject` timelines, cuts, layouts, captions, effects, audio, and exports through the headless VideoDraft Editor. Inside VideoDraft ADE, this is the default production and export lane when `videodraft_editor` is available and no chosen app or existing external project takes precedence.\\n- **Hosted project production**: idea \u2192 script \u2192 storyboard \u2192 hosted production timeline \u2192 exported MP4. Use the early stages for scripts, storyboards, and generated assets when useful. Treat hosted production and export as a fallback when the native editor is unavailable and no external app is selected, or as an explicit destination when the user asks for an editable web project or hosted workflow.\\n\\n## How to connect\\n\\nGeneration billing is selected in VideoDraft Settings \u2192 API Keys on the web, or\\nSettings \u2192 Media providers in VideoDraft ADE. Where enabled,\\n**VideoDraft routing** chooses an equivalent provider internally without changing\\nthe quoted customer credit price. A selected personal key is exclusive: never\\nswitch to VideoDraft credits or another key after an unsupported-model or\\nprovider error. Keep the canonical VideoDraft model ID in CLI/MCP calls. Poll\\nthe original generation after a timeout instead of starting another paid job.\\nNew provider connections can support only a subset of models and settings;\\nfollow the server\'s availability response. ElevenLabs remains audio-only.\\nFor Pika GPT Image 2.6, supply an explicit quality (`low`, `medium`, `high`,\\n`xhigh`, or `max`); `auto` is not supported by that connection. Nano Banana 2\\nLite is 1K only. Never remove requested controls or substitute a different\\nmodel merely to make a personal connection accept the job.\\n\\nCloud generation has two equivalent surfaces (same backend, credits, and hosted projects). Native timeline editing is a separate local surface:\\n\\n1. **CLI** (preferred when you have a shell): run `videodraft` if it\'s on PATH; otherwise `npx -y videodraft@latest` runs it with no install (needs Node \u226520; the `-y` skips npx\'s install prompt so it runs non-interactively; the package is fetched on first use and cached). For heavy use, `npm install -g videodraft`. If there\'s no Node/shell here but the MCP connector below is available, use that instead; if neither works, tell the user how to install (https://videodraft.ai/cli).\\n - Auth \u2014 pick by context, don\'t guess:\\n \u2022 INTERACTIVE (a human is in the session, e.g. Claude Code / Codex): on exit code 3 (\\"not authenticated\\"), tell the user to run `videodraft login` in their terminal \u2014 it opens their browser for a one-click VideoDraft sign-in (OAuth), no key to copy. Wait for them to confirm it succeeded, then retry the command. This is the preferred path when the user is present.\\n \u2022 HEADLESS / CI (no browser): set `VIDEODRAFT_API_KEY=vd_mcp_...` (a token the user mints at https://app.videodraft.ai/mcp-keys).\\n \u2022 SECURITY: never ask the user to paste a `vd_mcp_...` token into the chat \u2014 use browser `login` or the env var so the token never lands in the transcript.\\n - Every command accepts `--json` (parse this, don\'t scrape text). Exit codes: 0 ok, 1 error, 2 usage, 3 auth (see Auth above), 4 insufficient credits (\u2192 tell the user, don\'t retry).\\n - Tool discovery: start with `videodraft tools list` for the grouped catalog, then narrow with `videodraft tools list --lane assets`, `--lane asset_io`, `--lane project_data`, or `--lane production`.\\n - Asset lane: `videodraft generate ...`, `videodraft edit video|motion`, `videodraft avatar ...`, `videodraft upscale ...`, `videodraft interpolate ...`, `videodraft upload`, and `videodraft download`.\\n - Full API access: `videodraft tools schema <name>`, `videodraft call <tool> --args \'<json>\'`.\\n2. **MCP connector**: if VideoDraft MCP tools (e.g. `generate_storyboard_from_idea`) are available, call them directly \u2014 the CLI\'s curated commands map 1:1 onto these tools.\\n3. **Native editor MCP** (`videodraft_editor`): prefer this for project production, timeline assembly, cutting, layouts, transitions, captions, audio placement, and final export when no chosen app or existing external project takes precedence. Inside VideoDraft ADE on a supported Mac, Claude, Codex, OpenCode and Grok receive it automatically in both Code and VideoDraft modes. It runs headlessly, so an Open Editor click is not required. Start with `project_manage` (`operation: \\"project\\"`, action `list`, `open`, or `create`); standalone asset generation remains in the cloud CLI or MCP.\\n\\nSend native editor edits serially, batching everything a request needs into one `edit_apply` recipe. Pass the latest `context` when a person may be editing at the same time, so a stale write is refused. See [references/editor.md](references/editor.md) for project selection, media import, timing units, edit recipes, verification, export, and the `videodraft-editor` terminal bridge.\\n\\nIf you are reading this skill through `videodraft skills show skill`, run `videodraft skills show editor` before native editor work to load that reference.\\n\\n**VideoDraft ADE routing rule:** honor the app named in the current request and the editing surface of an existing project. A `<creative_routes>` block selects the chat\'s routes and overrides this skill\'s generic tool defaults; an explicit current request takes precedence over that block. Work directly in the chosen app, combining its supported scripting, CLI, verified MCP and Computer Use wherever useful. Do not turn a chosen-app request into a native-editor handoff or silently switch destinations after an error. Keep the editable source and dependencies, preserve unsaved work, and verify the saved project and output. Generation model, payer and spending limits remain separate from the editing app.\\n\\nWhen `creative_apps` is actually exposed, read the chosen app\'s bundled guide before using it. App topics include `after-effects`, `blender`, `resolve`, `premiere`, `final-cut`, `capcut`, `unity`, `remotion` and `hyperframes`. These app guides belong to VideoDraft ADE and describe installed-version setup and supported routes; users do not need personal per-app skills. When `creative_mcp` is also exposed, use its live discovery and the app guide for connected tools, and retain request IDs to recover uncertain operations. Computer Use is available only when its tools and permissions are present. These are VideoDraft ADE workspace tools, not public `videodraft` CLI commands. If they are absent, use the available app tools or explain the missing route without inventing commands or assuming a connector is installed.\\n\\nWith no chosen external app or existing external project, the presence of `videodraft_editor` means the native editor is ready, even when no editor window is visible. Use cloud tools to generate or source assets and, when helpful, scripts or storyboards. Do not call hosted `produce_project` / `videodraft produce` or `export_video` / `videodraft export` by default. Import the assets into the native project, assemble there, and export with native `delivery_manage` `submit`. Use hosted production/export when the user explicitly asks for the web workflow, or when the native editor is unavailable and no external app is selected. Do not silently fall back to hosted production after a local tool error.\\n\\n## First decision: asset, hosted project, or native edit?\\n\\n- **One standalone asset** (image, clip, voiceover, music track, sound effect, dialogue track, voice-changed file, dubbed media file, upscale, or description): generate it directly. Do NOT create a project.\\n - `videodraft generate image \\"a red fox in snow, cinematic\\" --ar 16:9 --download ./out/`\\n - `videodraft generate video \\"slow dolly over a misty lake\\" --model gemini-omni-1.2-flash --duration 6 --download ./out/`\\n- **A chosen creative app or existing external project**: continue in that app using the routing rule above. Keep its project editable; use handoff only for a requested transfer or accepted fallback.\\n- **Any final video, production timeline, existing footage, local `.vdproject`, or hands-on edit with no other app selected**: use `videodraft_editor` when available. List or open the intended local project, or create a native project for a new production. The editor can work without showing its UI.\\n- **Assemble the cut on the timeline, not in a script.** Build the edit on the native timeline (or in the user\'s chosen editing app) so the user can trim, reorder and retime it by hand afterwards. Do not stitch or render the deliverable with ffmpeg, Python or moviepy scripts unless the user asks for that; a script leaves them a flat file with nothing to adjust. Code-built video (Remotion, motion graphics, 3D renders) and file conversions the editor needs before import are fine.\\n- **A small set of related assets**: still stay in the asset lane. They are grouped automatically (see [AI Studio sessions](#ai-studio-sessions)); give the current group one useful task-specific name with `videodraft sessions name \\"<name>\\"`. Switch to a project only when the deliverable matches the project criteria below or the user asks to attach the assets to one.\\n- **A generated multi-scene video / ad / explainer**: use hosted tools for any needed script, storyboard, shot planning, or generated assets, then build/export in the selected editing app. With no app selected and the native editor available, stop before hosted production, import the assets, and build/export the native timeline. A hosted project is optional unless the user wants the web project or its storyboard workflow.\\n- **A hosted web project or hosted export**: use the hosted pipeline when the user explicitly asks for it, or the native editor is unavailable and no external app is selected.\\n- **Just a script** (no video asked for): A script-only request creates a script-stage project but stops at the script. Use `videodraft create \\"...\\" --script-only`; do not build a storyboard the user didn\'t ask for.\\n- **Iterating on existing work**: identify the surface first and preserve an external project\'s app unless the user requests a transfer. Use `project_manage` `project` with `action: \\"list\\"` for native projects and `videodraft projects list` only for hosted work. Never create a replacement project just to change an existing one.\\n\\n## Choose the model from the task\\n\\nIf the user names a model, use it when compatible. If it cannot handle the request, explain why and recommend alternatives instead of silently switching. Otherwise inspect the inputs, duration, audio, quality, speed, and cost, check the live catalog, and pass an explicit model.\\n\\n### Seedance 2.x pricing\\n\\nSeedance 2.0 and 2.5 have no real-people option, including for hosted `full_video` production. A video that can\'t be made at the listed rate, usually one showing a real person, costs a higher rate; the difference is charged before it starts. When a real person is involved, quote both prices (`get_model_costs` returns `cost` and `higher_rate_cost`). Don\'t name providers to the user.\\n\\n**How to pick a model. Follow this order every time:**\\n\\n1. The user named a model: use it, never substitute.\\n2. Otherwise pick a **Tier 1** model.\\n3. Use a **Tier 2** model only when no Tier 1 model supports the request, and say why. Never pick Tier 2 on your own for price, speed, novelty or variety.\\n\\nTier 1: images `nano-banana-2.1`, `nano-banana-2`, `nano-banana-pro`, `nano-banana-2-lite`, `gpt-image-2.6-flare`, `gpt-image-2.6-sunburst`, and `recraft-v4` for vector/SVG only; videos `gemini-omni-1.2-flash`, `seedance-2.5`, `seedance-2`, `kling-4.0`, `kling-3.0`, `kling-o3`, `flux-3-max`, `minimax-h3-max`; video edits `gemini-omni-1.2-flash`; talking-head portraits `veed-fabric`, `minimax-h3-max-lipsync`; motion transfer `kling-v3-motion-control`; audio ElevenLabs for speech tools, Lyria 3.5 for music at any length.\\n\\nTier 2 is every other catalog model (`wan-3.0`, `flux-3-image`, `minimax-h3`, `kling-4.0-flash`, `kling-v3-turbo`, `kling-2.6-pro`, `grok-imagine-video-1.5`, `happy-horse`, Veo 3.1, Seedream, Grok Imagine images, FLUX images, `sync-lipsync-2` and the rest). All of them stay available by name. Real Tier 2-only jobs: document or web-page references (`wan-3.0`), re-syncing existing footage (`sync-lipsync-2`).\\n\\nEvery `videodraft models image|video|audio --json` entry carries `tier` (1 or 2), and the top-level `recommended` array is Tier 1, best first. That catalog beats this page when they disagree.\\n\\n**Speech in video:** write the dialogue in the video prompt. `gemini-omni-1.2-flash`, `seedance-2.5`, `seedance-2`, `kling-3.0` and `kling-o3` speak it natively. For a specific voice add a Seedance reference audio clip (`--ref-audio`) or a Kling bound voice. Do not plan silent video + TTS + lip-sync. Lip-sync tools are only for a portrait presenter talking to camera, or for re-syncing footage that already exists. Off-screen narration and voiceover are unaffected: keep using `generate voiceover` for those.\\n\\n**Images:**\\n\\n- `nano-banana-2.1`: general default, editing, text, consistency, and references. Add `--thinking-level medium` or `high` for complex layouts, infographics or dense text.\\n- `nano-banana-2`: the previous default; use it when temperature control is wanted.\\n- `nano-banana-pro`: maximum quality. `nano-banana-2-lite`: fast, inexpensive drafts.\\n- `gpt-image-2.6-flare`: fast everyday generation and editing, and the pick for posters, logos, signs, title cards, readable text and precise composition. Use `gpt-image-2.6-sunburst` when extra precision, fine detail or edit consistency matters (it takes longer). GPT Image 2.6 replaces 2.5, so always pass a 2.6 id. Both use the same basic options as GPT Image 2: references (up to 16), aspect ratio, 1K/2K/4K resolution, image count (1-4), and quality, with PNG output and no seed. Quality adds xhigh/max; auto is charged at the max tier, so pass `--quality high` for a cheaper render (low and medium are only modestly cheaper than high). Other model recommendations are unchanged; explicit `gpt-image-2` requests still use GPT Image 2.\\n- Animated GIFs (stickers, loops, emoji, icons, short reactions): GPT Image 2.6 with `--gif`, plus `--frames 2-16` (default 8) and `--frame-ms 20-2000` (default 120). Describe the motion and a seamless loop in the prompt; `--ref` animates a given subject. Frame size follows `--ar`; `--resolution` does not apply. 2-8 frames cost the same, so prefer 8. GIFs are standalone outputs, not storyboard shots, batches or video start frames, and a personal Pika key cannot make them. For long or smooth motion use a video model.\\n\\n**Videos:**\\n\\n- `gemini-omni-1.2-flash`: default for 3-15s generation and 3-15s source edits, at 360p/720p/1080p/4K with audio always on. Generation takes up to 10 total images including first/last frames, and 3 creative video references (<=15s each). First plus last frame caps output at 10s. Use `--video-task generate` for creative video references; one `--ref-video` without a source remains a legacy source edit. `--source-video` edits a 3-15s source; `--video-task extend` or `--extend` adds 3-10s to a 1-30s source, up to 40s total. Edit/extend accept exactly one source video and up to 2 image references on Google, with no creative video references. `--previous-interaction-id` resolves a completed Google output as the next source; the same source limits apply. Google supports `--seed`; Fal does not. Fal BYOK uses callable v1.2 text/image/reference/edit/extend endpoints at zero VideoDraft credits, requires a prompt, cannot mix frames with references, and cannot take edit/extend references or Google interaction IDs. Never fall back to paid Google under BYOK. Atlas Cloud, Pika and Higgsfield do not expose a verified 1.2 contract and must not list this model. Separate audio references are not available. For silent shots describe quiet ambience and mute the generated track in the editor.\\n- `grok-imagine-video-1.5` (Tier 2): 1-15s text, first-frame, or 1-7 reference-image generation with native audio. Text/first-frame modes support 480p, 720p, and 1080p; reference mode supports 480p/720p. Cite references as `<IMAGE_0>` through `<IMAGE_6>`. It has no last frame, seed, negative prompt, quality tier, reference video, or reference audio.\\n- `minimax-h3` (Tier 2): 480p/768p/2K/4K (768p default), native stereo audio, and 5-15s text, first/last-frame, or mixed-reference generation. Reference mode accepts up to 9 images, 3 videos, and 3 audio clips, with at most 12 files total. Cite them as `Image 1`, `Video 1`, and `Audio 1` in array order.\\n- `flux-3-max` (Tier 1, before `minimax-h3-max`): fast 5-20s video at 720p/1080p, 24fps, optional native audio. Text, first frame, first + last frame, or up to 10 timed keyframes (`--keyframe shot.png@2.5`, repeatable). `--reasoning-level high|low` (high default), `--seed`, and explicit whole-second duration (default 5s). No Draft/quality mode or auto duration. Quote current pricing with `videodraft costs flux-3-max --type video --duration 5 --resolution 720p` or `--estimate`. Keep Gemini Omni as the default.\\n- `minimax-h3-max`: 480p/768p (768p default), native audio, and 5-15s text, first/last-frame, or mixed-reference generation. Reference mode accepts up to 9 images, 3 videos, and 3 audio clips, with at most 12 files total, cited as `Image 1`, `Video 1`, and `Audio 1` in array order. It supports a reproducibility seed and `disabled` / `balanced` / `quality` prompt expansion.\\n- `wan-3.0` (Tier 2): unified 2-30s text, first/last-frame, or ordered mixed-reference generation at 480p/720p/1080p, with optional native audio. Reference mode accepts up to 10 images, 5 videos, and 5 audio clips, at most 20 media files total; video and audio each total at most 15 seconds. `--auto-duration` reserves 30 seconds and reconciles to the provider-reported output length. Document/web references use `--file-url` or `--web-url` and require `--thinking`.\\n- `seedance-2`: video/audio/mixed references, wider ratios, selectable audio, or 11-15s with both first and last frames. Duration alone up to 15s stays on Gemini Omni 1.2. `standard` is the default; use `mini` for a cheaper draft or `fast` for speed (both are 480p/720p only).\\n- `seedance-2.5`: 4-30s single takes and up to 50 references (30 image, 10 video, 10 audio). Same modes as 2.0, one quality tier, 480p/720p/1080p. Reach for it when a shot must run past 15s or carry more references than 2.0 allows.\\n- `kling-4.0` is the preferred Kling, after Gemini and Seedance (details below). `kling-o3`: reference images plus structured image/video elements, first/last frames, multi-prompt, audio control, or 4K. O3 allows 7 combined image references and image-backed elements, reduced to 4 combined items when a video-backed element is present. `kling-3.0`: image-to-video can use structured image/video elements and bind a custom Kling voice ID to either element form. Tier 2, by name: `kling-v3-turbo` (fast polished 3-15s with first frame, multi-prompt, and audio, but no elements) and Kling 2.6 Pro (top-level voice IDs cited as `<<<voice_1>>>` and `<<<voice_2>>>`).\\n- Existing-video edits use `videodraft edit video`, not generic generation. `gemini-omni-1.2-flash` is the preferred edit model and is chosen automatically when you omit `--model`: source from 3 to 15s, up to 2 reference images on Google, 360p/720p/1080p/4K with audio. Creative `--ref-video` inputs are NOT accepted on an edit, because an edit takes exactly one input video; use `generate video --video-task generate` to guide a new clip with video references instead. Omitting `--model` on a longer or unmeasurable source spends nothing and prints a priced menu (what each model edits, what it drops, what it costs) so you can put the choice to the user. **Truncation:** Gemini (15s), `kling-4.0-video-edit` (30s) and `kling-4.0-flash-video-edit` (20s) refuse an over-length source. Happy Horse silently edits just the first 15s, Kling O3 the first 10s, and Grok the first 8s. The command warns you when that will happen; always relay it to the user. `kling-4.0-video-edit` (Tier 2) can edit a whole source longer than 15s and up to 30s, so the priced menu offers it for long sources. Gemini regenerates the audio track, so use Happy Horse or Kling O3 with `--preserve-audio` when the source audio must survive. Choose Grok for the cheapest prompt-only edit, Happy Horse for up to 5 image references, or Kling O3 for controlled reference-image edits.\\n- To edit a source longer than 15s without losing its tail, cut it into <=15s pieces in the selected editing app (`videodraft_editor` by default), edit each with Gemini, and reassemble in that app. VideoDraft has no server-side split/concat, so this path needs a local editing route.\\n- Kling O3 also has a reference-generation mode. Use `videodraft generate video --model kling-o3-video-ref-edit` with exactly one `--ref-video` to generate a new guided clip; use `videodraft edit video` when changing the source itself. For new mixed-reference generation use Seedance 2 / 2.5.\\n- Motion transfer uses `videodraft edit motion` with Kling V3 by default, or Kling 2.6 when explicitly requested or lower cost matters. It requires a subject image and a motion-reference video. For native Higgsfield, choose `--model genjutsu` or `--model genjutsu-light`: one source MP4 (4\u201330s or 4\u201315s), 1\u20138 ordered images (the positional subject plus repeatable `--ref`), optional prompt, and `--resolution 480p|720p|1080p` (default 720p). No quality/orientation/Element/audio/seed controls. Trim longer sources first. `--duration` is estimate-only. Light bills fractional source seconds plus rounded-up output seconds; unused output time is refunded. Runs on VideoDraft credits or a selected Higgsfield API key only.\\n- `kling-4.0` (Tier 1, the preferred Kling; Kling 3.0 and O3 keep 4K): Kling\'s newest model, with three modes like Kling O3. Text mode; image-to-video from `--start-image` with an optional `--end-image` (framing follows the image, so no `--ar`); or reference mode, chosen when you add `--ref`, `--ref-video` or `--element`, with an optional `--start-image` (no end frame), up to 10 images, 5 `--ref-video` clips and 7 `--element` entries (3 with voice, 3 video), cited as @Image1, @Video1, @Element1. 3-30s, 720p/1080p, multi-shot `--segment` up to 30s in total, audio always on; no seed or negative prompt. Reference and element videos are billed by their length plus the output, at least twice the output; quote with `videodraft costs kling-4.0 --type video --duration 10 --ref-video-seconds 6`.\\n- `kling-4.0-video-edit` (Tier 2, by name or for a long source): `videodraft edit video <source> \\"<prompt citing @Video1>\\" --model kling-4.0-video-edit` edits a whole 3-30s source with up to 10 `--ref` images and 7 image-only `--element` entries, 720p/1080p. The output matches the source unless you pass `--duration` (3-30). It bills the source plus the output, at least twice the output, and cannot keep the source audio; quote with `videodraft costs kling-4.0-video-edit --type video --ref-video-seconds <source seconds>`.\\n- `kling-4.0-flash` (Tier 2, by name): the faster, cheaper 720p tier of Kling 4.0, with the same three modes and inputs. Text mode; image-to-video from `--start-image` alone (no `--end-image`); or reference mode with an optional `--start-image`, up to 10 images, 5 `--ref-video` clips of 3-20s and 7 `--element` entries (up to 3 video-backed, 3-8s each; no `voice_id`), cited as @Image1, @Video1, @Element1. Reference and element videos share 5 clips and 20s; 15 inputs in total. 3-20s, 720p only, one prompt (no `--segment`), audio always on. It costs less per second than Kling 4.0 and bills reference and element videos the same way; quote with `videodraft costs kling-4.0-flash --type video --duration 10 --ref-video-seconds 6`. Use `kling-4.0` for multi-shot, an end frame, voices, 1080p or more than 20s.\\n- `kling-4.0-flash-video-edit` (Tier 2, by name): `videodraft edit video <source> \\"<prompt citing @Video1>\\" --model kling-4.0-flash-video-edit` edits a whole 3-20s source with the same inputs as `kling-4.0-video-edit` (up to 10 `--ref` images and 7 image-only `--element` entries) at 720p only. The output matches the source unless you pass `--duration` (3-20). It bills the source plus the output, at least twice the output, and cannot keep the source audio; quote with `videodraft costs kling-4.0-flash-video-edit --type video --ref-video-seconds <source seconds>`.\\n- Veo 3.1, Grok Video 1.5, Happy Horse and the other Tier 2 video models: only when explicitly requested or when no Tier 1 model fits.\\n\\n**Audio and utilities:**\\n\\n- Use Seed Audio 1.0 for open-ended text-to-audio, speech/music/sound synthesis, voice conditioning, or prompt-driven editing with up to three audio references or one image. Use `videodraft generate audio`. Reference clips are `@Audio1`, `@Audio2`, and `@Audio3` in array order. There is no duration input. Output is up to two minutes and is billed per actual output minute; the two-minute maximum is reserved during generation and the unused part refunded. The CLI automatically retries transient responses with one operation key. To recover after the CLI process itself is interrupted, set `--idempotency-key <uuid>` on the original command and reuse it.\\n- Prefer ElevenLabs for voiceover, dialogue, voice changing, dubbing, and sound effects. Honor an explicitly selected supported TTS voice/provider. Use `lyria-3.5` for all music, short or long (up to ~3 minutes, one flat price per track), with vocals/lyrics or instrumental arrangements. When `--model` is omitted the CLI sends no model and the server default applies, which is `lyria-3.5` wherever the backend supports it. If the server answers that `lyria-3.5` is an unknown model, that backend predates it: rerun without `--model` (the server default then applies), or use `lyria-3-pro-preview` for a track longer than 30 seconds. Ask for the length in the prompt. Keep `lyria-3-clip-preview` (fixed ~30s) and `lyria-3-pro-preview` for explicit requests. For Lyria, put desired length, lyrics and \\"instrumental only, no vocals\\" in the prompt; `--length` and `--instrumental` are ElevenLabs-only. Use ElevenLabs Music for exact timing, composition plans, or a style reference track. Lyria allows 10 reference images on Google, 1 on Fal BYOK; Fal 3.5 prompts are limited to 5000 characters. BYOK uses zero VideoDraft credits. ElevenLabs Music means `elevenlabs-music-v2.5` (`elevenlabs-music` is an alias for it); use `elevenlabs-music-v1` only when the user asks for v1 by name.\\n- On a personal ElevenLabs key, the user\'s ElevenLabs plan caps how many requests run at once (often 2 for music, a few for everything else). Run a few ElevenLabs jobs at a time. If one fails with \\"too many concurrent requests\\", rerun it once after the others finish; if it fails again, tell the user instead of retrying. Other ElevenLabs errors (quota, key, permissions) are for the user: report them as given.\\n- ElevenLabs voiceover runs on Eleven v4 in two modes. Standard is the default and the best quality. Turbo (Eleven v4 Turbo) is faster and cheaper. Both are billed per character. Keep Standard unless the user wants faster or cheaper speech. Pick it with `generate voiceover --mode standard|turbo`, `produce --voice-mode standard|turbo`, or MCP `generate_voiceover.mode` / `produce_project.voice_mode`, and quote Turbo with `costs voiceover --chars <n> --mode turbo`. Google, OpenAI and cloned `custom-*` voices ignore the mode (cloned voices cost more per character). v4 has no style or speed settings and no SSML `<break>` tags; audio tags such as `[whispers]` work. Dialogue stays on Eleven v3.\\n- For ElevenLabs voiceover, dialogue, and voice changing, accept a supplied raw voice ID (16-64 alphanumeric characters) or `elevenlabs-<id>`. The voice catalog is for discovery, not an allowlist. Do not reject or substitute a supplied ID because it is absent from `videodraft models voices` / `list_available_voices`. Use `--voice <id>` for voiceover and voice changing, or repeat `--line \\"<id>:Text\\"` for dialogue; for example, `--voice kPzsL2i3teMYv0FxEYQ6` and `--line \\"elevenlabs-kPzsL2i3teMYv0FxEYQ6:Hello.\\"` use the same voice. The voice must be accessible to the provider account used for generation. Private or cloned voices may require the user\'s connected ElevenLabs key. Kling video-control IDs and MiniMax `custom-*` IDs are separate voice systems.\\n- Search the dynamic ElevenLabs catalogue with `videodraft models voices --search \\"warm narrator\\" --language en --source library --page-size 20 --json`. Repeat the same filters with `--page-token <next_page_token>` for more results. `--accent` and `--gender male|female` are optional. ElevenLabs BYOK defaults to the connected account\'s voices; `--source library` explores public voices on that key. Descriptions, previews and access scope help choose a voice. Public discovery does not guarantee Fal access; private voices require their owning/shared ElevenLabs account. Existing VideoDraft prices apply on direct platform generation and Fal fallback; BYOK remains zero VideoDraft credits.\\n\\n- A character who needs to TALK:\\n - **Speaking inside a scene**, or any ordinary clip with dialogue: `generate video` with the line in the prompt, in quotes, with who says it and how. `gemini-omni-1.2-flash`, `seedance-2.5`, `seedance-2`, `kling-3.0` and `kling-o3` all voice it natively. For a specific voice use a Seedance `--ref-audio` clip or a Kling voice bound per element. This is the default path; do not generate speech separately and lip-sync it on.\\n - **Talking to camera from a portrait** (presenter, spokesperson, explainer): the avatar lane, and VEED Fabric is preferred. Use managed `avatar create` then `avatar render` for a reusable avatar record with bundled speech, `avatar fabric` for a one-off portrait plus text or existing audio, and `avatar h3-lipsync` for a short (5-14.8s) portrait clip from existing audio at up to 2K. Not for in-scene shots: Fabric animates a portrait facing the lens, so a cinematic request comes back as a head-on talking headshot.\\n - **Footage that already exists plus replacement audio** (re-dub, translation): `avatar lipsync`. This is the only job for Sync Labs unless the user names it.\\n- Enhancement: use Topaz image/video upscaling only when the content is already correct. Use image 1x for cleanup, 2x by default, 4x when justified; use video 2x by default. Edit or regenerate creative errors.\\n\\nSee [references/models.md](references/models.md) for the detailed routing table and exact capability limits.\\n\\nProvider routing uses a maintained local price catalog, with exact setting compatibility and account rules. Platform requests prefer Google\'s direct image/video APIs and BytePlus for Seedance 2.0/2.5 before comparing public prices. Other models retain their supported provider routing. Agents should keep using normal model IDs and `get_model_costs` / `--estimate` for customer credits. Do not choose a vendor from a marketing starting price or retry an accepted generation to chase a lower price. Unknown or expired comparable costs retain the existing route; a selected personal provider key stays exclusive and overrides platform-account preferences.\\n\\nTemporary provider promotions are excluded from routing prices. With an Atlas personal key, H3 Max supports text or first/last-frame generation at 480P/768P only with `prompt_expansion_mode: \\"disabled\\"` and no seed. Balanced/quality expansion, reference generation and H3 Max Lip Sync require the existing Fal path. Atlas H3 Max is not selected automatically while its published price units remain inconsistent.\\n\\nThe live catalogs show discoverable models. Historical IDs remain valid for explicit requests and recreating saved generations, subject to provider availability. Do not pick a hidden model unless the user explicitly requests it.\\n\\n## Matching AI Studio controls\\n\\nIdeogram 4.5 (`ideogram-v4.5`) replaces 4.0 and remains Tier 2. Quality is low/medium/high (default medium) and is priced per output; regular edits also offer very_low. Supports 1-8 outputs, 1K/2K, seed, and text-only `--prompt-expansion true|false`. Use `--source-image` plus up to four `--ref` images, or source-first `--ref` ordering. `--edit-precision high` and `--mask` require Auto size with no resolution; masks match source dimensions, black edits and white preserves, and reduce additional references to three. See [models](references/models.md) for custom dimensions and examples.\\n\\nFLUX 3 image (`flux-3-image`, separate from `flux-3-max` video) is Tier 2. It generates and edits with up to 10 `--ref` images, `--num 1..4`, `--resolution 1K|2K|4K` (default 1K), `--prompt-expansion true|false` (default true) and `--ar` with 14 ratios plus `auto`. Each image is priced by output size (resolution and ratio); `auto` is quoted at the tier\'s highest price. Without `--ar`, a new image is 16:9 and an edit follows its first reference. No seed.\\n\\nUse `models image --json` / `models video --json` for the accepted options. Nano Banana 2.1 exposes `--thinking-level minimal|medium|high` (default minimal; no extra charge) and `--google-search-grounding true|false`, but no temperature. Nano Banana Pro/2 expose `--temperature 0..2` and `--google-search-grounding true|false`. Qwen uses one `--ref` plus `--horizontal-angle 0..360`, `--vertical-angle -30..90`, and `--zoom 0..10`; its text prompt is optional. Recraft generates SVG and accepts `--quality Normal|Pro`, repeatable `--recraft-color \'#RRGGBB\'`, and `--recraft-background \'#RRGGBB\'`. Original Nano Banana and VideoDraft Image use fixed 1K output.\\n\\nKling 3.0 / 2.5 Pro accept `--cfg-scale 0..1` and `--negative \\"\\"` to clear a negative prompt. Seedance 2/2.5, Wan 3.0, Gemini Omni generation accept `--auto-duration`; do not combine it with `--duration`. Kling O3 reference/edit modes accept image-only `--element` objects, at most four combined with `--ref`.\\n\\nTopaz image results may be immediate or queued. The CLI waits by default and downloads either result with `--download`; `--no-wait` returns a queued job ID. Raw MCP callers must poll `check_generation_status` when `upscale_image` returns `job_id`.\\n\\n## Remove image or video backgrounds\\n\\nUse `videodraft remove-background image <url|file>` for a transparent PNG with Pixelcut, or `videodraft remove-background video <url|file>` for transparent VP9 WebM with VEED Fast. These preserve the existing subject and require no prompt. Local files upload automatically. Both commands wait by default and accept `--download`, `--no-wait`, `--session`, and `--idempotency-key <uuid>`. Keep `.png` / `.webm` extensions; do not name the video `.mp4`.\\n\\nVideo defaults to `--subject person` with refined edges. Use `--subject object` for products/animals, or `--no-refine-edges` for a cheaper pass. Video sources must be VideoDraft-hosted MP4/MOV, at most 100 MB, 5 minutes and 120 fps. Images support original public URLs up to 50 MB. Never send a thumbnail. Quote current pricing with `remove-background video clip.mp4 --estimate`; the server reads actual frames. `--max-credits <n>` caps the authorized charge; `0` requires BYOK.\\n\\nRaw MCP tools are `remove_image_background` and `remove_video_background`; poll `check_generation_status` with their `job_id`. `get_model_costs` accepts `model_id: \\"pixelcut-background-removal\\"` or `\\"veed-background-removal\\"`, plus `source_url` for an exact quote (required for video) and optional `refine_edges`. Supply `max_credits` from the quote. These tools support VideoDraft credits or Fal BYOK only. After an uncertain submission, poll its job ID or reuse the same idempotency key; never start another paid job to recover a lost response.\\n\\nFor an existing native-editor clip, follow the guarded [background-removal handoff](references/editor.md#background-removal-handoff): prepare the original source, process it through the CLI/MCP, import the transparent result, then apply it while keeping the original linked sound. PNG works directly; VP9 WebM requires an alpha-preserving MOV conversion and verification before import. Check conversion availability before spending credits.\\n\\n## Cloud render (Blender on a cloud GPU)\\n\\nUse Cloud render when the user wants their own Blender scene, an animation or a frame range, rendered on a cloud GPU, for example because rendering locally is too slow. It renders a saved `.blend`; it does not generate or edit the scene.\\n\\n```bash\\nvideodraft render prices # live price per GPU-minute for each GPU size on offer\\nvideodraft render blender scene.blend --frames 1-240 # upload, render, wait, download media/renders/<job_id>.mp4\\nvideodraft render stop # switch every GPU off when your task is done\\n```\\n\\n- Pack the scene first (Blender: File > External Data > Pack Resources, then save). Files outside the `.blend` are missing on the GPU, and scripts inside it never run. The engine (Cycles or Eevee) is whatever the scene is set to.\\n- `videodraft render prices` lists the GPU sizes on offer; `--gpu full` (96 GB) is the default and fastest. When smaller sizes (`half`, `quarter`) are offered they cost less per frame but take longer: use them when the user wants it cheaper and is not in a hurry, and run a render again on a bigger size if it fails for GPU memory.\\n- Every job gets its own machine, so several renders run at the same time. A machine bills per second while it is on, at the rate `videodraft render prices` returns, and switches itself off 1 minute after its last job. State the rate and get a go-ahead before long renders; `render status` shows a job\'s cost so far and an estimate. When your task is done, run `videodraft render stop` so idle time is not billed.\\n- When Google has no regular GPU for a few minutes, a full-GPU job also asks for a Spot GPU at a higher rate (`render prices` shows it), and the first GPU found takes the job; a Spot machine that is already on can also take the next job at once. When you state the rate before a long render, give the Spot rate too. Google can reclaim a Spot machine; the job then continues from its finished segments. Tell the user when a job runs on Spot, and use `--no-spot` when they want the regular rate only or the render must not be interrupted.\\n- Waiting for a GPU is never billed. A job waits for Google to hand over a machine (usually 1 to 10 minutes, longer at busy times), then pays for about 15 seconds of start-up, the rendering, and about a minute of idle time before its machine switches off (none when another job takes the machine over). Test renders cost a few credits, so run tests and proofs in the cloud too, and submit jobs together. A queued job may have a machine starting or charges from an earlier attempt; check its phase and cost. Its displayed machine is only a candidate until the job is claimed.\\n- Name jobs with `--name \\"S4 final\\"` (default: the scene\'s file name and frames); `render status`, `wait`, `cancel` and `resume` take the name, and `render list --name` finds it, so you need no file of job ids.\\n- Exit code 4 means credits ran low, before the job started or mid-render (the job pauses and keeps its finished segments; uploading and starting need a minimum balance). Tell the user; after they top up, run `videodraft render resume <job_id>`.\\n- Renders can take hours. For long jobs use `--no-wait`, then `videodraft render wait <job_id>`. Never submit the same render again to recover from a lost wait; check `videodraft render list`.\\n\\nFlags, outputs and the MCP flow (`cloud_render_*` tools): [references/cloud-render.md](references/cloud-render.md), or `videodraft skills show render`.\\n\\n## Prefer references when continuity matters\\n\\nPure text-to-image or text-to-video is fine for a generic one-off asset. When a specific character, product, location, style, composition, or brand identity must survive generation, use references instead of hoping the prompt recreates it.\\n\\n- If the user supplies reference media, preserve and pass it. Never reduce the request to text alone.\\n- When continuity matters, generate/select a strong still first with the selected image model (`nano-banana-2.1` by default), wait for its URL, then animate it as a start frame/reference. Confirm the combined image and video cost.\\n- When using a hosted storyboard stage for multiple shots, use `videodraft shots <project_id> --model <selected-image-model> --grid`, then animate the decoded shots. Preserve explicit models. In VideoDraft ADE, import the resulting assets into the selected editing app (the native editor by default) instead of continuing into hosted production. A requested non-Seedance video model must use manual per-shot generation instead of Seedance full-video mode.\\n\\n## Cost and credits\\n\\nDo not call `videodraft credits` before routine generations. Paid endpoints validate and deduct atomically; if the balance is insufficient, the request is rejected before the provider job starts (CLI exit code 4). Check the balance only when the user asks, gives a credit budget, or a large workflow needs budget planning.\\n\\nThis skill lists no prices because they change with provider routing and sales. Get the current price from `videodraft costs <model> [settings]` or the command\'s `--estimate` flag; both read live prices from the server and spend nothing. Never quote a price from memory or from older notes. For expensive work, estimate first, state the selected model/settings/cost, and get a go-ahead. This matters most for shot-image batches, long or high-resolution video, AI Production, and paid audio batches. Honor the user\'s confirmation preference for the session.\\n\\nKling voice creation has a small charge on the platform Fal account and is free with Fal BYOK. Preview it with `videodraft kling-voices create <sample> --name <name> --estimate`; the estimate does not create a voice or require consent confirmation. Actual creation requires `--confirm-consent`.\\n\\nMiniMax H3 is billed per output second by resolution (768p by default). In reference mode the first 5 images are included and each additional image adds a charge. Reference video and reference audio are NOT billed.\\n\\nMiniMax H3 Max is billed per output second at 480p or 768p (default), plus pooled reference tokens in reference mode: a free allowance, then a charge per 1,000 tokens, where an image is `(width x height) / 1024` tokens, a reference video is 2,886 tokens per second at 480p or 7,459 at 768p, and reference audio is about 2,121 per second. Use `--prompt-expansion-mode disabled|balanced|quality`; balanced is the default. Fal\'s provider safety checker is OFF by default and is not exposed in the app \u2014 only pass `--safety-checker true` if the user explicitly asks for it.\\n\\nWan 3.0 is billed per output second by resolution. Auto duration reserves the 30-second maximum and refunds the unused reserve after the provider reports the actual whole-second output length. Fal BYOK runs on the connected user key and charges zero VideoDraft credits.\\n\\nGrok Imagine Video 1.5 is billed per output second by resolution, plus a small charge for each first-frame or reference image. Native audio is always generated.\\n\\n`videodraft models image|video` lists the live image and video catalogs with supported inputs. Video entries are grouped as `generation`, `video_edit`, `motion_control`, `avatar_lipsync`, and `upscale`, and each reports the exact tool. Use `videodraft models video --category video_edit` to narrow the list. `videodraft models audio` lists Seed Audio, Google Lyria, and ElevenLabs audio/media tools, while `videodraft models voices` helps discover TTS voices. Consult them for capabilities; a supplied ElevenLabs voice ID does not need to appear in the voice catalog.\\n\\n## Async jobs\\n\\nImage/video generation is asynchronous: commands submit a job and **wait by default**, printing output URLs (and saving files with `--download`). Large downloaded images also get a downscaled copy in `previews/` next to them (the `preview` field / \\"inspect via preview\\" line in the output) \u2014 **look at the preview, deliver the original**; viewing full-resolution images bloats the chat permanently. In scripts/CI prefer explicit control:\\n\\n```bash\\nJOB=$(videodraft generate image \\"...\\" --no-wait --json | jq -r .job_id)\\nvideodraft wait \\"$JOB\\" --download \\"./outputs/{job_id}_{index}.{ext}\\" --json\\n```\\n\\nFor MANY jobs: submit each with `--no-wait`, collect ALL with one command \u2014 `videodraft wait <id1> <id2> ...` polls every job from one process with one batched request per tick. Do NOT spawn parallel `wait`/`generate --wait` processes for a batch.\\n\\nIf a wait times out, the job is still running server-side \u2014 `videodraft status <job_id>` later. Never re-submit just because a wait timed out (that double-spends credits).\\n\\nFor completed Wan 3.0 jobs, MCP `check_generation_status` and CLI `status`/`wait --json` include `outputMetadata` with Fal\'s returned `seed`, `duration`, and `actual_prompt` when present.\\n\\n## AI Studio sessions\\n\\nStandalone image/video/audio generations are filed into an AI Studio session in the web app. 3D assets use `assets 3d list/get` separately. You do not have to create an AI Studio session:\\n\\n- **MCP hosts** (Claude Code, claude.ai, Codex, VideoDraft ADE): on 2025-era MCP the server mints an `Mcp-Session-Id` on `initialize`; your host echoes it, and this conversation\'s generations land in their own session. On stateless MCP (2026-07-28) hosts that send a conversation id (ChatGPT) get the same. Otherwise `name_current_ai_studio_session` returns `pass_session_id: true` with a `session_id`: pass that `session_id` to every later standalone generation in the conversation. Tool results echo the session as `ai_studio_session_id`.\\n- **CLI**: the same handshake runs once per (profile, server, working directory) and is cached for 12 idle hours, so everything generated from one directory shares one session. `videodraft sessions current` shows it; `videodraft sessions reset` starts a new one.\\n- Project generations (`--project <id>` / `project_id`) always go to that project\'s session.\\n\\nOnce you understand the creative task, name the current automatic session before the first standalone generation:\\n\\n```bash\\nvideodraft sessions name \\"Purple Seal Rescue Short\\"\\n```\\n\\nChoose a concise, specific 3-6 word title for the intended work. Do not copy the client name, date, or exact chat title. Name it once: the operation creates the session with that title. If generation, a user, or an earlier agent created the session first, its existing name is preserved.\\n\\nApart from the `pass_session_id: true` case above, pass `--session <id>` / `session_id` only to **continue earlier work** or create an explicit separate group:\\n\\n```bash\\nSESSION=$(videodraft sessions create \\"Fox brand explorations\\" --json | jq -r \'.session.id\')\\nvideodraft generate image \\"a red fox in snow, cinematic\\" --session \\"$SESSION\\"\\nvideodraft generations --session \\"$SESSION\\" # what is in it\\nvideodraft sessions list --name fox # find it again later\\n```\\n\\n`VIDEODRAFT_SESSION=<id>` sets the default for every command (ignored when `--project` is given). While it is set, `sessions name` refuses to run because that command names the current automatic connection session, not the pinned override; unset it first or rename the pinned session in AI Studio. `VIDEODRAFT_SESSION_SCOPE=<label>` groups several directories into one connection session; `VIDEODRAFT_CLIENT_NAME=<host>` labels the fallback placeholder used when generation creates the session before `sessions name`; `VIDEODRAFT_NO_SESSION=1` disables the handshake. Generations that reach the server with no session at all fall back to the account-wide \\"Agent (MCP)\\" session; if you see work landing there, pass `--session` explicitly.\\n\\n## Generation history\\n\\nPast work is queryable \u2014 reuse a previous setup instead of guessing. `videodraft generations` lists recent generations; scope with `--session <id>` or `--project <id>` (includes collaborators\' rows in shared scopes; pass one, project wins), and filter with `--type`, `--model`, `--favorites`. `--full --json` returns each row\'s exact parameters (aspect ratio, resolution, duration, references) \u2014 the human table stays compact, so pair `--full` with `--json`. `videodraft generation <id>` prints one generation\'s complete recipe (prompt, input image, parameters, outputs); `--favorite` / `--unfavorite` stars it. `videodraft sessions list` shows AI Studio sessions (owned + shared) with `--name` search \u2014 take a session id from there to read its history.\\n\\n## Free stock footage and photos\\n\\nPexels and Pixabay are wired in through `search_stock_media` / `import_stock_media` (`videodraft stock search \\"<query>\\"`, `videodraft stock import <ref>`). Both libraries are free, watermark-free and cost **zero credits**, so use stock for b-roll, establishing shots, backgrounds and ordinary real-world footage, and spend credits on the shots that must be specific: the product, the character, the scripted action.\\n\\n```bash\\nvideodraft stock search \\"city skyline night\\" --min-duration 5 --orientation landscape\\nURL=$(videodraft stock import pexels:video:35379336 --quality hd --json | jq -r .url)\\n```\\n\\n- Always two steps. A search result\'s `preview_url` is a thumbnail for judging the shot; never place it on a timeline, attach it to a shot or send it to a model. `import_stock_media` copies the file onto the VideoDraft CDN and returns the URL every other surface accepts, including the native editor\'s `library_manage` import.\\n- `--quality hd` (default) caps video at 1080p; `4k` caps at 2160p, `best` takes the largest the provider has, `sd` suits rough cuts. Stills ignore quality and import at full size. Use `--orientation portrait` for 9:16, and `--min-resolution 1920` to drop anything below HD on its long edge.\\n- Photos come from Pexels. Pixabay contributes video only, because its full-size image host refuses server-side downloads.\\n- Credit the creator and link the provider page when you show results or deliver the finished work; both come back on every result. Skip clips that imply a person or brand endorses the product, and avoid recognisable logos in ads.\\n- Search and import are rate limited per user (30 searches and 15 imports a minute) and searches are cached for 24h, so a burst of searches while planning a montage is fine. Bulk downloading a stock library is prohibited by both providers. A note saying Pixabay was skipped means its provider budget for that minute is spent; the Pexels results still stand.\\n\\n## Downloading from YouTube, Instagram, TikTok and other sites\\n\\nVideoDraft ships no downloader. When the user asks to pull a video from YouTube, Instagram, TikTok, X, LinkedIn or anywhere else, `yt-dlp` on the user\'s own machine does the work. Check for it with `command -v yt-dlp` before promising anything.\\n\\n**Present:** pin the format. On its defaults yt-dlp takes the best stream, usually VP9 or AV1 in WebM, which the native editor\'s import rejects (mp4, mov and m4v only). This returns one pre-muxed H.264 + AAC MP4 and needs no ffmpeg:\\n\\n```bash\\nyt-dlp -f \\"b[ext=mp4]\\" -o \\"media/%(title)s.%(ext)s\\" \\"<url>\\"\\n```\\n\\n**Missing:** say so in one line, then offer `brew install yt-dlp` only where `brew` exists, and only after asking. With no Homebrew, say the tool is unavailable and stop.\\n\\n- Never install Homebrew, never `sudo`, never write to `/usr/local/bin` or `/opt`, never pipe a script into a shell.\\n- `ffmpeg` is optional, matters only above 720p, and the selector above never needs it.\\n- Auth-gated content needs `--cookies-from-browser`; raise it only after a download fails on auth.\\n- Fetch only what was asked for, never a channel, playlist or back catalogue.\\n\\n## Local files and reference images\\n\\nReference inputs must be public URLs. The CLI uploads local files automatically wherever a URL is expected (`--ref photo.jpg`, `--start-image frame.png`), or explicitly:\\n\\n```bash\\nURL=$(videodraft upload ./product.png --json | jq -r .url)\\n```\\n\\nNever silently drop a reference you couldn\'t upload \u2014 stop and tell the user. Never upload a user\'s file to a third-party host.\\n\\nWhen the user attaches media for a native production, import actual footage into the editor by default. For hosted generation/storyboarding, classify each item before acting: a recurring **visual asset** (character/product/location/style), actual **footage to place as shots**, or **inspiration only**. See [references/pipeline.md](references/pipeline.md) for the hosted role mapping.\\n\\n## Showing media to the user\\n\\nGenerated media is **not** displayed in the chat automatically \u2014 you decide what to show. To preview an asset inline, save it locally (use `--download` so it lands under `media/`) and reference its **local path** as a Markdown link with a **leading `./`**:\\n\\n```\\n[ferrari shot](./media/ferrari_01.png) \u2190 image card\\n[the clip](./media/clip.mp4) \u2190 video player\\n[voiceover](./media/vo.mp3) \u2190 audio player\\n```\\n\\nPut the Markdown link **in your message text** \u2014 video and audio embed exactly like images. Do **not** use `SendUserFile` (or other file-send tools) to display media: that renders inside a collapsible tool card and gets buried in the tool list. The Markdown link in your prose is what produces the inline card.\\n\\nUse the path you saved to: a **workspace-relative** path (`./media/clip.mp4`, or `./<any-folder>/clip.mp4` \u2014 any folder in the workspace works), or the **absolute** path for a file outside the workspace (e.g. `/Users/you/Desktop/clip.mp4` or another workspace\'s path). Both render. Show the finished results worth showing (and only those \u2014 not every intermediate job). A bare CDN URL or a JSON dump of output URLs does **not** render; the local-path Markdown link is what produces an inline card.\\n\\n## Native-first VideoDraft ADE pipeline (idea \u2192 MP4)\\n\\nWhen `videodraft_editor` is present and no chosen app or existing external project takes precedence:\\n\\n1. Generate or source the script, storyboard, shot images, clips, voiceovers, music, and other assets through the cloud CLI/MCP as needed.\\n2. Call native `project_manage` (`project`, action `open` or `create`) to open or create the `.vdproject`.\\n3. Call native `library_manage` `import`, wait for imports to become ready, then assemble and refine the timeline with `edit_apply` recipes.\\n4. Call native `delivery_manage` `submit` and use its `jobs` operation for progress and results.\\n\\nDo not run the hosted production or export steps in this path unless the user explicitly asks for a web production.\\n\\n## Hosted fallback pipeline (idea \u2192 MP4)\\n\\nUse this when the user explicitly requests the hosted web workflow, or there is NO native editor\\nand no external app is selected. The native surface is not only the injected `videodraft_editor` MCP: a `videodraft-editor`\\nexecutable on PATH is the same editor reached through its terminal bridge, and\\n[references/editor.md](references/editor.md) covers driving it that way. Treating a missing MCP as\\n\\"no editor\\" sends sessions that have the binary into hosted production for no reason.\\n\\n```bash\\nvideodraft create \\"<idea>\\" --ar 9:16 # project: script \u2192 visual assets \u2192 storyboard\\nvideodraft shots <project_id> --grid --estimate # cost preview, confirm with user\\nvideodraft shots <project_id> --grid # batch shot images (waits, writes onto shot cards)\\nvideodraft produce <project_id> # voiceovers + captions + production timeline\\nvideodraft export <project_id> --download final.mp4\\n```\\n\\nOptional between produce and export: per-shot motion clips (`videodraft generate video ... --project <id>` then place it with `videodraft attach <project> --scene N --shot M --media <url|file> --type video --duration <s>`), music (`videodraft generate music \\"...\\" --attach <project_id>`), and standalone audio assets (`generate audio`, `generate sound-effect`, `generate dialogue`, `generate voice-changer`, `generate dub`). Details, per-step tools and editing rules: [references/pipeline.md](references/pipeline.md).\\n\\n## Avatar and talking-head videos (both surfaces)\\n\\nAvatar generation is cloud-only, so this applies whether or not `videodraft_editor` is present. Generate the avatar in the cloud; when a larger edit is requested, import the rendered clip into the selected editing app (the native editor by default) and cut it like any other footage.\\n\\nAvatar/talking-head videos use dedicated commands. For a reusable managed avatar, obtain or generate a clear portrait \u2192 `videodraft avatar script` when needed \u2192 `videodraft avatar create` \u2192 `videodraft avatar render --resolution 720p`. For a one-off portrait, use `videodraft avatar fabric <portrait> --text \\"...\\"` or `--audio <file>`, or `videodraft avatar h3-lipsync <portrait> --audio <file>` for a short high-resolution clip from existing audio. For an existing video plus replacement audio, use `videodraft avatar lipsync <video> --audio <file>`. Managed script/creation is bundled/free; direct Fabric, H3 Max Lip Sync, Sync, the managed Fabric render, and optional portrait generation/upscaling are paid. Confirm expensive steps first.\\n\\n## Working with hosted project data\\n\\nA hosted project is one JSON blob (script, storyboard scenes, shot cards, visual assets, production timeline). To inspect: `videodraft projects get <id>`. To edit: fetch `--raw`, modify, then `videodraft call update_project` \u2014 objects deep-merge, **arrays replace wholesale** (send the complete `storyboard.scenes` array to change one scene). Snapshot first with `videodraft checkpoint create <id>` before risky edits. Schema reference: `videodraft call get_project_schema`. This does not replace the chosen app\'s project or the native editor\'s `.vdproject` for the production itself.\\n\\n## More\\n\\n- [references/pipeline.md](references/pipeline.md) \u2014 hosted fallback data model and production workflow\\n- [references/editor.md](references/editor.md) \u2014 native headless editor routing, project selection, import, timeline edits, verification, and export\\n- [references/models.md](references/models.md) \u2014 choosing image/video models, pricing patterns, voices and styles\\n- [references/examples.md](references/examples.md) \u2014 recipes: batch product videos from a CSV, talking-head from a script, changelog video in CI\\n- [references/cloud-render.md](references/cloud-render.md): Cloud render commands, flags, exit codes, cost and the MCP flow\\n","references/3d.md":"# Standalone 3D assets through MCP and CLI\\n\\nUse this lane for downloadable meshes, textured 3D models, and humanoid rigging. These are independent of AI Studio sessions and do not require a storyboard or web viewer. Never create a project just to generate a mesh. Native editor media import does not establish support for GLB/FBX assets; use external 3D software unless the live editor schema explicitly supports them.\\n\\n## Discover and quote\\n\\n```bash\\nvideodraft models 3d --json\\nvideodraft generate 3d \\"a worn brass telescope\\" --model meshy-7 --estimate\\nvideodraft generate 3d --model tripo-h3.1 --ref ./reference.png --options @options.json --estimate\\nvideodraft rig 3d --estimate\\n```\\n\\nMCP tools: `get_3d_models`, `estimate_3d`, `generate_3d`, `rig_3d`, `check_generation_status`, `list_3d_assets`, `get_3d_asset`, `create_3d_upload`, and `finalize_3d_upload`.\\n\\nThe generator catalog is deliberately limited to `meshy-7` (Meshy 7.1; the CLI also accepts `meshy-7.1`) and `tripo-h3.1`. Both expose text/image/multi-image modes; use the live schemas for option availability, view order, limits, topology, texture/PBR, and pose controls. Do not invent common provider option names. Server defaults prioritize quality. Meshy\'s `geometry_resolution` sets geometry detail: text/image default to `2k` and also take `standard` or `4k` (4k costs more than 2k); multi-image takes `standard` (default) or `2k`. `ultra_mode` is a deprecated alias for 2k. Rigging is a separate Meshy operation for compatible textured humanoid GLBs; it is not an arbitrary creature or facial rig service.\\n\\nEvery option is accessible through `--options` JSON (`@path.json` supported), plus repeatable `--option key=value` overrides. Values parse as JSON when valid. Options and explicit input mode affect pricing, so obtain a fresh quote for the exact recipe. Estimates perform no file upload or provider generation. VideoDraft bills whole credits at 100 credits per dollar using the server\'s rounding rules. BYOK costs zero VideoDraft credits and runs on the connected user Fal key. Do not infer the user\'s Fal-account charges from a zero VideoDraft-credit quote.\\n\\n## Generate and retrieve\\n\\n```bash\\nvideodraft generate 3d \\"a worn brass telescope\\" --model meshy-7 --download --json\\nvideodraft generate 3d --model meshy-7 --ref ./hero.png --no-wait --json\\nvideodraft generate 3d --model tripo-h3.1 --input-mode multi_image --ref ./front.png --ref ./left.png --ref ./back.png --ref ./right.png --no-wait --json\\nvideodraft status JOB_ID --json\\nvideodraft wait JOB_ID --download --json\\nvideodraft assets 3d list --status completed --json\\nvideodraft assets 3d get ASSET_ID --download ./media/3d --json\\nvideodraft rig 3d --asset ASSET_ID --download --json\\nvideodraft rig 3d ./textured-humanoid.glb --download --json\\n```\\n\\nLocal image references upload automatically. Local rigging inputs must be self-contained `.glb` files and upload via the dedicated 3D route. Input mode is inferred from reference count unless `--input-mode text|image|multi_image` is supplied. A text prompt requires no images; image mode requires exactly one and no geometry prompt. Meshy multi-image accepts 1-4 views, and Tripo accepts 2-4 in front, left, back, right order. Use Meshy\'s `texture_prompt` option when texturing guidance is needed with image inputs. Do not mix unrelated images as if they were views of the same object.\\n\\nGeneration and rigging wait by default. `--no-wait` returns a persisted job that continues server-side. For many jobs use one `wait ID1 ID2 ... --download`; do not run parallel polling processes. Recover timeout with the same job ID, not another paid generation.\\n\\nSubmission returns a `request_id` UUID. A same-request retry must use `--request-id UUID` and the original arguments. The CLI journals resolved uploads in its private config directory so retries reuse the same remote files. Changed inputs under that UUID are rejected. Submission errors include the UUID in JSON `details.request_id` where available. Never retry a failed request with a new UUID until the prior job status is known.\\n\\n## Complete artifact packages\\n\\n`--download` defaults to `media/3d/<asset_id>/`. A user directory is respected and receives a per-asset folder. `{job_id}` and `{asset_id}` directory templates are accepted. Do not pass a `.glb` filename or a media `{index}.{ext}` template: a 3D result can contain multiple formats and texture/material dependencies.\\n\\nDownloads preserve every returned artifact. The manifest records provider URLs, source filenames, local paths, role, content type, and actual downloaded sizes. glTF/OBJ/MTL references are rewritten to saved dependency paths; binary GLB/FBX and provider ZIPs are retained as returned. Supplied dependency aliases become local copies at the paths needed by original FBX files. Unsafe or colliding aliases produce warnings. Existing packages are never overwritten. A successful package has `manifest.json`; read its `complete` field and `warnings`, plus CLI `package_warnings`. Do not claim a package with unresolved dependencies is ready for offline use.\\n\\nMachine results use `type: \\"model3d\\"` with `output_files` for files and `output_media` only for ordinary preview media. Texture maps and models are not image/video gallery entries. Show a supplied preview via a local image Markdown link and deliver the original mesh/package files. Do not imply an interactive 3D viewer exists in AI Studio or VideoDraft ADE.\\n","references/cloud-render.md":"# Cloud render: Blender scenes on a cloud GPU\\n\\nCloud render renders the user\'s own `.blend` scene on cloud GPUs (NVIDIA RTX PRO 6000). Every job gets its own machine, so several jobs render at the same time; a machine starts on demand, takes the user\'s next job of its size when one is waiting, and switches itself off 1 minute after its last job. Waiting for a GPU is never billed. It generates nothing. Build or change the scene in Blender itself (in VideoDraft ADE, the `blender` app guide covers that); Cloud render only renders a saved file.\\n\\n## Commands\\n\\n```bash\\nvideodraft render prices # live price per GPU-minute for each GPU size\\nvideodraft render blender scene.blend --frames 1-240\\nvideodraft render blender scene.blend --frames 1-240 --blender 4.5 --out ./media/renders/ --json\\nvideodraft render blender scene.blend --frames 1001-1500 --name \\"S4 final\\" --no-wait --json\\nvideodraft render wait \\"S4 final\\" --out ./media/renders/ # a job id works everywhere a name does\\nvideodraft render status \\"S4 final\\" --json\\nvideodraft render list --limit 10 # names, status, cost, and what each machine is doing\\nvideodraft render list --name \\"S4 final\\"\\nvideodraft render cancel JOB_ID\\nvideodraft render resume JOB_ID\\nvideodraft render machine # each machine\'s phase, what you pay now, 24 h and all-time spend\\nvideodraft render stop # switch every GPU off now\\n```\\n\\n`render blender` flags:\\n\\n- `--frames <first>-<last>` (required): the inclusive frame range, or one frame such as `--frames 42`.\\n- `--name <label>`: what to call the job, up to 80 characters (default: the scene\'s file name and the frames, such as `main_v8 845-1350`). `render status`, `wait`, `cancel` and `resume` accept the name instead of the job id (the newest job with it; cancel and resume refuse when two jobs of that name qualify), and `render list --name` finds them. Name each job after its shot or purpose and you never need your own file of job ids.\\n- `--fps <n>`: frame rate of the output MP4 (default: the scene\'s own).\\n- `--chunk <n>`: frames per segment. Segments render in order, and finished ones are kept when a job pauses, fails or is cancelled.\\n- `--procs <n>`: Blender processes running in parallel on the GPU, 1-4.\\n- `--blender 5.2|4.5`: Blender version (default 5.2).\\n- `--gpu full|half|quarter`: GPU size (default `full`). See [Choosing a GPU size](#choosing-a-gpu-size).\\n- `--no-spot`: wait for a regular GPU only. See [Spot GPUs](#spot-gpus-when-regular-ones-run-out).\\n- `--out <dir|file.mp4>`: where the clip goes (default `media/renders/<job_id>.mp4`).\\n- `--no-wait`: submit, print the job id and return. Resume with `videodraft render wait <job_id>`.\\n\\n## What the CLI does\\n\\n1. Hashes the file (SHA-256). A scene with the same bytes is uploaded only once, so re-rendering other frames skips the upload.\\n2. Uploads a new scene to its upload session in resumable 64 MiB chunks; after a dropped connection it asks the session what arrived and continues from there.\\n3. Submits the job. It waits for Google to hand over a GPU: usually 1 to 10 minutes, 15 or more at busy times. This wait is not billed, and the job keeps its place in the queue.\\n4. Polls every 10 seconds with no time limit (renders can take hours), printing each change: `waiting for a free GPU (not billed)`, `a GPU is starting for queued jobs (billed)`, `rendering (2/4 segments)`. After 5 minutes queued with a candidate still waiting for a GPU it says once that this can take longer. `--wait-timeout` and `--wait-interval` still apply when given.\\n5. Downloads the finished MP4, then says what the job cost and where the billed time went, for example `Billed 2m 18s of GPU time (start-up 15s, rendering 38s, idle before switch-off 1m 25s). Waited 8m 19s for a GPU, not billed.`\\n\\n`--json` prints one document: the job (`job_id`, `name`, `status`, `message`, `queued_seconds`, `wait_seconds`, `segments_done`, `segments_total`, `timing`, `cost`, `clip_url`) plus `scene_sha`, `uploaded` and `downloaded_files`. A queued job\'s machine is only a candidate and can change; `queued_seconds` can include billed start-up, while `wait_seconds` is the unbilled wait once known. With `--no-wait` it is the submitted job: `job_id`, `name`, `status`, `message`, `machine`, `credits_per_minute` and `segments`.\\n\\nExit codes: 0 done; 1 failed, cancelled or another error; 2 bad flags; 3 not signed in; 4 out of credits. Code 4 comes either before the job starts (the balance is below the minimum a job needs) or mid-render: the job pauses, keeps its finished segments, and waits. Tell the user, and after they add credits run `videodraft render resume <job_id>`. A failed job carries its error; `render resume` retries its unfinished segments, but fix the scene first when the error points at it.\\n\\n## Choosing a GPU size\\n\\n`videodraft render prices` lists the sizes on offer and each one\'s rate:\\n\\n| `--gpu` | GPU memory | Speed | Cost per frame |\\n| ------------------------ | ---------- | ------- | ---------------------------- |\\n| `full` (default) | 96 GB | fastest | highest |\\n| `half` (when offered) | 48 GB | slower | lower |\\n| `quarter` (when offered) | 24 GB | slowest | lowest, most of all on Eevee |\\n\\nAll bill per second. A smaller GPU is cheaper overall, not just per minute, because one render rarely uses a whole RTX PRO 6000. Use `full` when the user is waiting, has a deadline or the scene is heavy; a smaller size when they want it cheaper and are not in a hurry. The scene has to fit in the GPU memory: if a render fails for memory, run it again on a bigger size. `render status` shows a job\'s cost so far and, while it renders, an estimate for the whole job.\\n\\n## Spot GPUs, when regular ones run out\\n\\nWhen Google has no regular GPU for a few minutes (`after_minutes` in `render prices`), a full-GPU job also asks for a Spot GPU, while its request for a regular one keeps its place. Whichever GPU comes first takes the job, and a Spot machine that is already on (one that just finished a job) can also take the next job at once. Spot has one higher rate everywhere (`spot.credits_per_minute` in `render prices`): when you state the rate and get a go-ahead before a long render, give the Spot rate too, and tell the user when a job runs on Spot. The fallback itself needs no further go-ahead.\\n\\nGoogle can reclaim a Spot machine at any time. The job then goes back to the queue and continues from its finished segments, so only the segment in progress renders again; a Spot machine reclaimed in its first minute is not billed. `render wait` says when a job starts asking for Spot and when Google reclaims its machine; `render status` has a `spot` line, and `render machine` marks Spot machines.\\n\\nUse `--no-spot` (MCP: `spot: \\"never\\"`) when the user wants the regular rate only, or a render must not be interrupted, for example close to a deadline where a restart costs more time than a wait. The half and quarter sizes never use Spot.\\n\\n## Scenes must be self-contained\\n\\nPack external files before rendering: in Blender, File > External Data > Pack Resources, then save. Linked libraries, simulation caches and images outside the `.blend` are missing on the machine, and the machine has no internet. Blender runs in background mode with auto-run off, so scripts and drivers that need Python inside the file do not run.\\n\\n## Cost and machine time\\n\\nWhat a job is billed for, at its GPU size\'s rate from `videodraft render prices` (MCP `cloud_render_prices`), per second:\\n\\n| Part | Billed | Typical |\\n| -------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------- |\\n| Waiting for Google to hand over a GPU | **No** | 1 to 10 minutes; 15 or more at busy times |\\n| Start-up, once Google hands the machine over | Yes | about 15 seconds, only on a machine\'s first job |\\n| Rendering | Yes | the frames |\\n| Idle wait and power-off after the job | Yes | about 85 seconds, only when no job of its size is waiting; a waiting job takes the machine over at once |\\n\\nEach start has a one-minute minimum. So a short test job costs only a few credits, mostly its minute of start-up and idle time, and test renders, proofs and previews belong in the cloud as much as finals. Submit all the jobs you have at once: each gets its own machine, and jobs that wait for the same GPU size take over finished machines with no start-up or idle time.\\n\\n`render status` and `render wait` show the split: `waited` (not billed), then `billed` as start-up, rendering and idle. A job\'s cost can still grow for about a minute after it is done, while its machine waits for more work; `cost.final` says when it is settled, and until then `cost.estimated_total_credits` says what it will be. `render machine` shows what each machine is doing: `waiting for a GPU (not billed)`, `starting up`, `rendering`, `idle` or `switching off`, and `billing now` adds up only the machines Google has handed over.\\n\\nWaiting for a GPU is free. A queued job may also have a machine starting, which is billed, or charges from an earlier attempt; check its phase and cost. If a GPU takes long, say Google is short of GPUs at the moment and the job keeps its place.\\n\\nUploading and starting need a minimum balance; when only about two minutes of credit are left, every machine stops and the jobs pause. State the rate and get a go-ahead before long renders. When your task is finished, run `videodraft render stop` so idle time is not billed, unless the user still has renders queued.\\n\\nNever submit the same render twice to recover from a lost wait or a timeout: the first job keeps running and billing. Check `videodraft render list` (or `render list --name <name>`) and continue with `render wait`.\\n\\n## Without the CLI (MCP)\\n\\n1. `cloud_render_upload_scene` with the file\'s `sha256` and `size`. `exists: true` means skip to step 3.\\n2. PUT the bytes to `upload_url`: one PUT of the whole file, or chunks that are multiples of 256 KiB with `Content-Range: bytes <first>-<last>/<size>` (308 means send the next chunk from the Range header, 200 or 201 means complete). Then `cloud_render_finalize_scene` with the same `sha256`.\\n3. `cloud_render_submit` with `scene_sha`, `start`, `end` and optional `name`, `gpu`, `fps`, `chunk`, `procs`, `blender_version`, `spot` (`auto` by default, or `never`).\\n4. Poll `cloud_render_status` every 10 seconds or more. `message` and `machine.phase` distinguish a free GPU wait from billable start-up; a queued job\'s machine is a candidate that can change. `queued_seconds` includes time queued; `wait_seconds` gives the free wait when known. `machine.spot` is true on a Spot machine, `spot_note` explains Spot when the job asks for or runs on one, and `spot_reclaims` counts the times Google reclaimed its machine. `clip_url` is the finished MP4; `segment_urls` lists finished pieces before then; `cost` has the credits so far, `start_up_seconds`, `render_seconds` and `idle_seconds`, and `estimated_total_credits` (plus `estimated_minutes_left` while rendering).\\n5. `cloud_render_stop` when the work is done. `cloud_render_list` (with `name` to find jobs by name), `cloud_render_cancel`, `cloud_render_resume` and `cloud_render_machine` (each machine\'s `phase` and `billing`) match the CLI commands above.\\n","references/editor.md":"# Native VideoDraft Editor reference\\n\\nUse this reference when the user wants to assemble, cut, caption, mix, lay out, inspect, or export a local VideoDraft Editor project. The native editor is deterministic and local. Cloud generation remains in the `videodraft` CLI or hosted MCP.\\n\\n## VideoDraft ADE preference rule\\n\\nWhen `videodraft_editor` tools are exposed and no chosen app or existing external project takes precedence, treat the native editor as available and make it the default surface for production, timeline assembly, and final export. It is headless by design, so a hidden window or an untouched Open Editor button does not justify using hosted production instead.\\n\\nHonor the user\'s chosen app, an existing project\'s editing surface, and VideoDraft ADE\'s `<creative_routes>` before applying this native-editor reference. An explicit current request takes precedence over the saved route. For a chosen external app, work directly there with its available scripting, CLI, verified MCP and Computer Use, preserving the editable project. When `creative_apps` is actually exposed, read that app\'s bundled guide; when `creative_mcp` is exposed, use its live discovery and the guide\'s connection/recovery rules. Neither tool is a public `videodraft` CLI command or guaranteed outside VideoDraft ADE. Do not create a `.vdproject` merely to hand an external-app task back to the chosen application.\\n\\nFor a native production, use cloud tools for asset generation and optional script/storyboard work, then import the results. Do not call hosted `produce_project` / `videodraft produce` or `export_video` / `videodraft export` unless the user explicitly requests an editable web production, or the native editor is unavailable and no external app is selected. If a native tool call fails after the editor was available, report or recover that native failure rather than silently switching surfaces. The editing destination does not change the generation model, payer or spending limits.\\n\\n## Choose the correct surface\\n\\n- `videodraft` and the hosted VideoDraft MCP generate assets and can manage hosted web projects. They use the user\'s VideoDraft account and credits. In VideoDraft ADE, use them mainly as the source of generated media and optional storyboards for the native production.\\n- `videodraft_editor` edits local `.vdproject` packages. It has no generation, account, model, or credit tools.\\n- Inside VideoDraft ADE on a supported Mac, the editor MCP is injected automatically for Claude, Codex, OpenCode and Grok in both Code and VideoDraft modes. It starts headlessly before the chat opens. The user does not need to click Open Editor, and closing or hiding the editor window does not stop headless editing.\\n- Outside that environment, use the editor only if `videodraft_editor` MCP tools are already exposed or the `videodraft-editor` executable is on PATH. Do not confuse the public `videodraft` cloud CLI with the separate native editor executable.\\n\\nPrefer the direct MCP tools when they are available. The terminal bridge is useful for scripts, diagnostics, or an agent session where the MCP was not injected.\\n\\n## Which editor tools you have\\n\\nCurrent editors expose eight workflow tools: `project_manage`, `edit_snapshot`, `edit_apply`, `edit_undo`, `library_manage`, `inspect`, `speech_apply`, and `delivery_manage`. Use them whenever `edit_apply` is available. Everything below describes them.\\n\\nEarlier editors expose a different set of tools. If `edit_apply` is not in your catalog, follow the live tool descriptions; the working rules below still apply.\\n\\nThe live tool descriptions and schemas are authoritative. When they differ from this reference, follow them.\\n\\nService tools (`project_manage`, `library_manage`, `inspect`, `speech_apply`, `delivery_manage`) take `operation` and `parameters`, plus an optional `context` (see [Keep a reliable editing model](#keep-a-reliable-editing-model)):\\n\\n```json\\n{\\"operation\\": \\"import\\", \\"parameters\\": {\\"source\\": {\\"path\\": \\"/Users/me/clips\\"}}}\\n```\\n\\n### Parameters at a glance\\n\\nEach operation\'s schema has the full list. These are the fields that matter most, and the ones most often confused:\\n\\n| Tool and operation | Key `parameters` |\\n| --- | --- |\\n| `project_manage` `project` | `action` (`list`, `open`, `create`, `close`); `id`, `name` or `path` to open; `name`, `fps`, `aspectRatio`, `quality` to create |\\n| `edit_snapshot` (no `parameters`) | `includeLibrary`, a `startFrame`/`endFrame` window, `offset`/`limit` paging, `context` for later pages |\\n| `edit_apply` (no `parameters`) | `actions`; optional `context`, `requestId`, `previewOnly` |\\n| `library_manage` `import` | `source` with one of `path`, `url`, `bytes` + `mimeType`, or `matte`; optional `name`, `folder`. A `.srt` or `.vtt` file becomes captions |\\n| `library_manage` `list` | `ids` to poll imports, `pending`, `folder` |\\n| `inspect` `timeline` | a `startFrame`/`endFrame` window; there is no clip filter |\\n| `inspect` `frame` | `startFrame` for one frame; add `endFrame` and `maxFrames` to sample a range |\\n| `inspect` `media` | `mediaRef` (a library asset, not a file path), `startSeconds`/`endSeconds` in source seconds, `wordTimestamps`, `overview` |\\n| `inspect` `transcript` | a `startFrame`/`endFrame` window, `granularity` (`words` or `segments`), `clipId` |\\n| `inspect` `color` | `clipId` with `atFrame`, or `mediaRef`; optional `reference` |\\n| `speech_apply` `words` | `words`: transcript word indices, each one index or a `[first, last]` pair; or `matches`: exact words to remove everywhere; `pacing` |\\n| `speech_apply` `silence` | none |\\n| `speech_apply` `captions` | caption `style`, `position` and look fields; it finds the speech itself. `style` `plain` (sentences without a preset) takes `positionY` or `transform.centerY`, not `position` or `punctuation` |\\n| `delivery_manage` `submit` | `mode`, `codec`, `resolution`, `outputPath` (its folder must already exist); `captionGroupId` and `wordTiming` for `srt` and `vtt`; `check: false` skips a video\'s export check |\\n| `delivery_manage` `jobs` | `action` `list` (every job with its progress, warnings, output path and check findings; with a `jobId`, that job with all its findings), `cancel` with a `jobId`, or `dismiss` with a `jobId` and optional `findingIds` |\\n\\n`previewOnly` exists only on `edit_apply`. Service operations apply immediately.\\n\\n### `edit_apply` actions at a glance\\n\\nEvery action puts its fields beside `kind`, for example `{\\"kind\\": \\"adjust\\", \\"clipId\\": \\"c1\\", \\"speed\\": 2}`. `remove`, `adjust`, `replace`, `transition`, `mask`, `text`, `grade` and `effects` take `clipId` for one clip or `clipIds` for several; `animate`, `extract`, and the rows of `move` and `split` take a single `clipId`. Advanced actions cannot take `as`, but their clip ids accept `@name`. The one exception is `transition`, whose own `kind` field names the style, so its fields go inside `parameters`: `{\\"kind\\": \\"transition\\", \\"parameters\\": {\\"clipId\\": \\"c2\\", \\"kind\\": \\"dipToBlack\\"}}`. These `actions` place a clip, warm it and add a vignette:\\n\\n```json\\n[{\\"kind\\": \\"place\\", \\"assetId\\": \\"\u2026\\", \\"atFrame\\": 0, \\"as\\": \\"shot\\"},\\n {\\"kind\\": \\"grade\\", \\"clipId\\": \\"@shot\\", \\"adjustments\\": {\\"temperature\\": 7500}},\\n {\\"kind\\": \\"effects\\", \\"clipId\\": \\"@shot\\", \\"effects\\": [{\\"type\\": \\"finish.vignette\\", \\"params\\": {\\"strength\\": 35}}]}]\\n```\\n\\n| Advanced `kind` | Key fields |\\n| --- | --- |\\n| `place_batch` | `entries: [{mediaRef, startFrame, endFrame or source, trackIndex}]`, not the concise `assetId`, `atFrame`, `durationFrames`; leave `trackIndex` off every entry for a new track |\\n| `insert_batch` | `trackIndex`, `atFrame`, `entries: [{mediaRef, durationFrames or source}]`; later clips move right |\\n| `move` | `moves: [{clipId, toFrame, toTrack}]` |\\n| `remove` | `clipId` or `clipIds`; leaves a gap |\\n| `split` | `splits: [{clipId, atFrame}]`, or `trackIndex` with `frames` |\\n| `extract` | `trackIndex` with `ranges: [[start, end]]` in frames, or `clipId` with `ranges` and `units` (`frames`, or source `seconds`); closes the gap |\\n| `adjust` | `clipId` or `clipIds` plus any of `durationFrames`, `trimStartFrame`, `trimEndFrame`, `speed`, `speedCurve` (`{preset}`, or `{points: [{t, rate}]}` with `t` from 0 to 1 along the source), `preservesPitch`, `volume`, `opacity`, `transform` (`centerX`, `centerY`, `width`, `height`, `flipHorizontal`, `flipVertical`), `blendMode` |\\n| `animate` | `clipId`, `property` (`volume`, `opacity`, `rotation`, `position`, `scale`, `crop`), `keyframes: [[frame, ...values]]` with frames counted from the clip\'s start; `position` is the top-left corner |\\n| `arrange` | `layout`, `slots: [{slot, clipIds or mediaRef, anchor}]`, `fit` (`fill` or `fit`); `mediaRef` slots also need `endFrame` |\\n| `transition` (fields inside `parameters`) | `clipId` or `clipIds` (the clip after each cut), `kind` (`crossDissolve`, `dipToBlack`, `dipToWhite`, `blurDissolve`, `push`, `linearWipe`, `whipPan`, `crossZoom`, or `none` to remove), `durationFrames`, `params` (`direction` 0 to 3 for left, right, up, down; `feather`; `blur`; `intensity`) |\\n| `mask` | `clipId` or `clipIds`, `shape` (`rectangle`, `ellipse`, `none`), `centerX`, `centerY`, `width`, `height` (0 to 1 of the clip\'s own frame), `feather`, `strength`, `inverted` |\\n| `replace` | `clipId` or `clipIds`, `mediaRef` (a library asset of the same kind), `trim` (`keep`, the default, or `reset`), `linkedAudio` (`follow`, the default, or `keep`) |\\n| `tracks` | `reorder: [{trackId, to}]`, `set: [{trackId, muted, hidden, syncLocked}]`, `remove: [{trackId}]`; there is no add, since placing without a track makes one |\\n| `titles` | `entries: [{startFrame, endFrame, content}]`, optionally with `trackIndex` (on every entry or none), `style`, `animation`, `transform` and typography (`fontName`, `fontSize`, `color`) |\\n| `text` | `clipId`, `clipIds` or `captionGroupId`, with `content`, `style`, `position`, `animation` or typography |\\n| `grade` | `clipId` or `clipIds`, `adjustments`, `wheels`, `curves`, `hueCurves`, `lut`, `reset` |\\n| `effects` | `clipId` or `clipIds`, `effects: [{type, params, enabled}]`, `remove: [type]` |\\n\\n- `grade`: `adjustments` holds `exposure` (EV, -4 to 4), `temperature` (kelvin, 1800 to 15000, 6500 neutral, higher is warmer), `tint` (-150 magenta to 150 green); `contrast`, `highlights`, `shadows`, `whites`, `blacks`, `vibrance` and `saturation` are signed percents (-100 to 100, 0 neutral), not factors like 1.2. `wheels`: `shadows`, `midtones`, `highlights`, each `{hue, strength, brightness}`. `curves`: `luma`, `red`, `green`, `blue` as `[x, y]` points from 0 to 1. `hueCurves`: `targets: [{hue, rotate, saturation, lightness}]`. `lut`: `{path, mix}`, with the `storedPath` from `prepare_look`. Out-of-range values are refused.\\n- Effect `type` ids and their knobs, which go inside `params` and run 0 to 100 unless noted. Defaults leave the picture unchanged, so send the knob you want to see:\\n - `finish.vignette`: `strength` and `curvature` (-100 to 100; positive `strength` darkens the edges), `size`, `falloff`\\n - `finish.grain`: `strength`, `grainSize` (0.5 to 6 px); `finish.glow`: `strength`, `haloRadius` (px), `cutoff`, `halation`\\n - `defocus.gaussian`: `blurRadius` (px); `defocus.motion`: `streakLength` (px), `streakAngle` (-180 to 180 degrees)\\n - `texture.clarity`: `localContrast`, `hazeRemoval` (-100 to 100); `texture.sharpen`: `strength` (0 to 200); `texture.denoise`: `strength`\\n - `matte.chroma`: `screenHue` (0 to 360 degrees, 120 is green), `range`, `edgeSoftness`, `spillSuppression`\\n- `arrange` layouts and their slots (fill every slot): `fullscreen` (`stage`); `split` (`left`, `right`); `stack` (`top`, `bottom`); `corner_top_left`, `corner_top_right`, `corner_bottom_left`, `corner_bottom_right` (`stage`, `corner`); `quad` (`top_left`, `top_right`, `bottom_left`, `bottom_right`); `side_panel` (`stage`, `panel`); `thirds` (`left`, `middle`, `right`). The layout picks the corner; `anchor` only biases the crop.\\n- `trackIndex` and `toTrack` are an existing track\'s `order` from `edit_snapshot` (0 draws on top), counted at that point in the recipe: a track an earlier action adds shifts them. `tracks` takes `trackId` handles instead.\\n\\n## Start with the intended project\\n\\nAn MCP session can begin without a project selected. Project selection belongs to the session, not to whichever editor window happens to be frontmost.\\n\\n1. If the user named an existing project but its identity is unclear, call `project_manage` with `operation: \\"project\\"` and `parameters.action: \\"list\\"`.\\n2. Open the exact project with `action: \\"open\\"` and the returned `id`, an unambiguous `name`, or the `.vdproject` `path`.\\n3. Create only when the user wants a new local edit. `action: \\"create\\"` accepts optional `name`, `fps`, `aspectRatio`, and `quality`.\\n4. Treat `isActive` as this session\'s target and `isVisible` as the project shown in the UI. Headless editing only needs the session target.\\n5. Use `action: \\"close\\"` only when closing is part of the task. It saves first and never deletes the project. Afterwards other calls answer `no_project` until you open or create a project again.\\n6. Your session edits its own project even while another project\'s window is in front. If the user says \\"this clip\\" or \\"here\\" and `edit_snapshot` has no `selection`, or `selection.visible` is false, they are looking at something else: ask before editing. An older editor may instead refuse the write because another project is in front; tell the user rather than taking the front yourself. Never change which project is in front with Computer Use or other UI automation.\\n\\nOther `project_manage` operations: `create_timeline` and `select_timeline` for additional timelines, and `configure` for project settings (a frame-rate change applies to every timeline).\\n\\nDo not substitute a hosted project ID for a native project. A hosted project can supply scripts, storyboards, and generated media, but the native edit is a separate `.vdproject` package.\\n\\n## Keep a reliable editing model\\n\\n- Opening or creating a project, and creating or selecting a timeline, returns `data.snapshot` (the `edit_snapshot` view with the library: format, tracks, clips and assets) and a `context`, so you can edit right away. Call `edit_snapshot` only after an out-of-band user edit, to page a long timeline with `offset` and `limit`, or for handles you lack.\\n- `context` (`epoch`, `timelineId`, `revision`) is optional on every write except `edit_undo` and `project_manage` `project`, which take none. Without it, a write applies to the current state. With it, the editor refuses the write if the project changed since that context, which is what you want when a person may be editing at the same time. Every reply returns a fresh `context`. After `context_expired` (a reopen or restart), take a new snapshot.\\n- Timeline positions and durations are frames at `format.fps`. `sourceSeconds` values are seconds in the source file. Pass values as returned; do not multiply or divide by fps yourself.\\n- IDs are short handles. Pass them back exactly as returned; do not derive them from UUIDs. Tracks keep stable handles; indexes can change.\\n- When the user says \\"this clip\\", \\"these captions\\", or \\"here\\", take a fresh `edit_snapshot` (a one-frame window is enough). Its `selection` names what they selected in the project\'s window, in the snapshot\'s handles: `clipIds`, `captionGroupIds`, a `gap`, the marked `range`, and library `mediaIds`; no `selection` means nothing is selected. `currentFrame` is the playhead. `visible: false` means the user is not looking at this project.\\n- Send writes serially. Parallel writes against one project race each other\'s context.\\n- A refused call answers `status: \\"rejected\\"`: nothing changed, so fix what the message names and send it again. A service write that answers `failed` may have applied before a save or connection failed; inspect before repeating it.\\n- Use `inspect` for detail and verification: `timeline` for exact clip and track properties, `frame` for rendered frames of the composited result, `media` before describing source content, `color` for scopes, and `transcript` to locate spoken words.\\n- Clip `volume` is linear gain: `0` is silent, `1` plays the clip as recorded, and up to `5.62` (+15 dB) boosts it. Volume keyframes stay `0` to `1`. Boost sparingly and read the export check, which reports clipping.\\n\\n## Edit with recipes\\n\\n`edit_apply` takes an ordered list of `actions`, plus an optional `context` and `requestId`. The editor validates the whole recipe before changing anything, then applies it as one undo step. If any action fails, nothing changes and the error names the action. An applied reply lists the resulting `clips` (position, length, source window, text); use it to confirm the edit instead of re-reading.\\n\\n- Concise actions: `place` (an `assetId` at `atFrame`, optionally on a `trackId`, with `durationFrames` or `sourceSeconds`, `mode` `overwrite` or `insert`), `trim` (a `clipId` to a `sourceSeconds` window), and `title` (`text` at `atFrame` for `durationFrames`, optional `look` and `motion`). Name an action with `as` and address its clip in later actions as `@name`.\\n- Advanced actions put their fields beside `kind` too: `place_batch`, `insert_batch`, `move`, `remove`, `split`, `extract`, `adjust`, `animate`, `arrange`, `transition` (fields inside `parameters`), `mask`, `replace`, `tracks`, `titles`, `text`, `grade`, and `effects`. Their field help lists every supported effect, grading control, mask, layout, speed curve, and caption control.\\n- Use `arrange` for split screens, picture-in-picture, grids, and canvas placement, and `tracks` to fix stacking. Do not synthesize layouts from generic transforms or keyframes.\\n- Use `replace` to swap a clip\'s media and keep its timing, effects, keyframes, and links, for example a re-render of the same shot. `trim: \\"keep\\"` holds the clip\'s source offsets; `trim: \\"reset\\"` plays the new media from its first frame and keeps linked audio in sync.\\n- Put every edit a request needs into one recipe: placing, trimming, titling, grading and effects together are one call and one undo step. Use `previewOnly: true` to validate a large or risky recipe without editing.\\n- Send a `requestId` when a retry must not edit twice: repeating the identical request with the same `requestId` returns the original receipt, even after a dropped connection. Without one, a repeated request applies again. Use a new `requestId` for a different edit.\\n- `applied_unsaved` means the edit applied but saving failed. If you sent your own `requestId`, repeat the identical request to retry the save, not the edit. Without one, do not resend: a repeat would apply the edit again.\\n- `edit_undo` reverses this connection\'s latest edit while it is still the top undo step. It never undoes the user\'s own edits. Take a new snapshot afterward.\\n\\nEdits are undoable. Do not ask for confirmation before each ordinary edit. Ask one focused question only when the user\'s creative direction is materially ambiguous.\\n\\n## Bring generated or local media into the editor\\n\\nFor b-roll and establishing shots, search free stock first (`videodraft stock search \\"<query>\\"`), import the pick with `videodraft stock import <ref>`, and feed the returned CDN URL to `library_manage` `import` as `source.url`. It costs no credits.\\n\\nOtherwise use cloud generation for new assets, save or download the outputs, then call `library_manage` with `operation: \\"import\\"`:\\n\\n- `source.path`: absolute local file or directory. A directory imports recursively and preserves its folder structure.\\n- `source.url`: HTTPS asset URL. Set `mimeType` when a signed URL has no usable extension.\\n- `source.bytes`: small base64 media with a required `mimeType`.\\n- `source.matte`: generated solid-color image.\\n\\nReadiness differs by source, and so does the poll that detects it:\\n\\n- **URL and single-file path** imports return `status: \\"downloading\\"` with one `mediaRef`. Poll `library_manage` `list` with `parameters.ids: [mediaRef]` until `generationStatus` is absent.\\n- **Directory** imports also return `status: \\"downloading\\"` with one placeholder `mediaRef` for the batch. Poll it the same way; the folder\'s assets appear when `generationStatus` clears. (`pending: true` remains a fallback that lists every unresolved import.)\\n- **Inline bytes and matte** imports finish inline and come back `status: \\"ready\\"`; no polling is needed.\\n\\nAn import\'s `mediaRef` is the `assetId` that recipe actions take. Never place a pending asset on the timeline. `generationStatus` is the signal: `preparing`, `generating`, `downloading`, and `rendering` mean keep polling, absent means usable, and **`failed` is terminal**. Report it or retry the import explicitly; never poll on. Do not treat \\"not downloading\\" as ready.\\n\\nA `.srt` or `.vtt` caption file (by `path`, `url`, or `bytes` with `mimeType` `application/x-subrip`, `text/srt`, or `text/vtt`) is not added to the library. Its captions go onto a new caption track at the times the file gives, as one undo step, and the reply names the new `captionGroupId` to restyle with a `text` action.\\n\\nFor a batch of local outputs, download them into one workspace directory and import that directory once when practical. This is safer and faster than racing many import calls.\\n\\nTo apply a LUT, first store it with `library_manage` `prepare_look` (`parameters.path` to a `.cube` file), then use the returned `storedPath` in a `grade` action.\\n\\n## Background-removal handoff\\n\\nKeep paid processing in the VideoDraft CLI or cloud MCP. The editor\'s\\n`library_manage` operation `background_removal`, when present in the live schema,\\nconnects an existing clip to that workflow without replacing its linked sound.\\nIt does not generate, upload, quote or charge. Older editors without this operation\\ncan keep the completed asset for later; do not claim the guarded handoff is available.\\n\\n1. Read the selection if the user means an existing clip. Call `library_manage`\\n with `operation: \\"background_removal\\"` and `parameters: {\\"action\\":\\"prepare\\",\\n \\"clipId\\":\\"\u2026\\"}`. Keep its `sourceToken` and use `source.path`, the original\\n full file. Do not send a thumbnail, a composited timeline frame, or a trimmed\\n excerpt. Video limits apply to the whole source, even if the timeline uses only\\n a small part of it. This handoff currently requires a result of the same full\\n source duration and aspect ratio.\\n2. Check the removal tool exists before any paid submission. In VideoDraft ADE, use the\\n exact app-bundled CLI from the session instructions. A pre-release CLI may lack\\n `remove-background`; do not install or substitute another CLI. Its generic\\n `tools schema remove_image_background` / `remove_video_background` and `call`\\n can reach these tools once the server deploys them. If the server also lacks\\n the tool, keep the edit unchanged and explain that the release is pending.\\n Generic `call` takes a public URL, not a local path: use `upload` first and\\n retain that exact uploaded URL with the operation UUID for every retry.\\n3. Quote the actual source and settings, then submit with `max_credits` (CLI\\n `--max-credits`) and a retained UUID idempotency key. Images return transparent\\n PNG; video returns VP9 WebM with alpha. A timeout is a status check or a retry\\n of the same operation, never a second paid submission.\\n4. PNG imports directly. The native editor cannot decode WebM. Before charging\\n for a video intended for this editor, establish that an existing FFmpeg with\\n the `libvpx-vp9` decoder and `prores_ks` encoder is available. When VideoDraft ADE\'s runtime\\n discovery is exposed, its installed FFmpeg may be used by absolute path. If\\n none is available, explain that video conversion needs setup; never silently\\n install a runtime or flatten the output. Keep the original WebM under `media/`.\\n Convert a separate MOV with the explicit `libvpx-vp9` input decoder; FFmpeg\'s\\n other VP9 decoder can discard alpha. For constant-frame-rate output, use the\\n measured output frame rate, not an assumed 30 fps:\\n\\n ```sh\\n /absolute/path/to/ffmpeg -nostdin -n -c:v libvpx-vp9 -i media/cutout.webm \\\\\\n -map 0:v:0 -an -vf \'setpts=PTS-STARTPTS\' -r <measured-output-fps> \\\\\\n -fps_mode cfr -c:v prores_ks -profile:v 4 -pix_fmt yuva444p10le \\\\\\n media/cutout-alpha.mov\\n ```\\n\\n This MOV intentionally has no sound; applying it keeps the clip\'s original\\n linked audio. Check frame count, duration, dimensions and alpha before import.\\n Do not use H.264, rename `.webm` to `.mov`, assume a codec\'s alpha capability\\n proves the particular output retains transparency, or overwrite the WebM.\\n For variable-rate output, use a timestamp-preserving conversion and verify\\n its last-frame duration; do not force the example\'s constant-rate path.\\n ProRes intermediates can be much larger than the WebM, so check disk space.\\n5. Import the PNG/MOV with `library_manage import` and wait for its asset to\\n become ready. Call `library_manage` `background_removal` with\\n `parameters: {\\"action\\":\\"apply\\",\\"clipId\\":\\"\u2026\\",\\"sourceToken\\":\\"\u2026\\",\\n \\"assetId\\":\\"\u2026\\"}`. It verifies transparency and source identity, preserves\\n the cut and original linked sound, and makes one undoable replacement.\\n An edited clip or changed source refuses the old token. Review the existing\\n result and prepare again; do not regenerate automatically.\\n6. Inspect frames against a contrasting background and verify the final export.\\n A plain MP4 cannot carry alpha; a composited export should show the intended\\n background through the cutout. Original media and the returned cutout stay\\n available after Undo.\\n\\n## Speech edits\\n\\n`speech_apply` runs speech work as separate operations, not recipe actions: `words` removes transcript words, `silence` trims dead air, and `captions` generates styled captions. Read a fresh transcript with `inspect` `transcript` after any speech edit, because word positions change.\\n\\n## Service operations and timeouts\\n\\n`project_manage`, `library_manage`, `speech_apply`, and `delivery_manage` writes have no retry receipts. After a timeout, inspect the outcome (a snapshot, a library `list`, or delivery `jobs`) before repeating a write. A failed service write may have applied an edit before saving failed, so read its `data` and the current state.\\n\\n## Edit and verify\\n\\nA dependable sequence:\\n\\n1. `project_manage` to select or create the local project; its reply carries the snapshot.\\n2. `inspect` `media` when content selection matters.\\n3. One `edit_apply` recipe with every clip, track, layout, text, audio, color, and effect change the request needs; `speech_apply` for word cuts, silence, and captions.\\n4. Check the reply\'s `clips`; use `inspect` `frame` only when visual composition or layer order matters.\\n5. `edit_undo` if the result is wrong and the next recipe would not cleanly correct it.\\n\\n## Export\\n\\nCall `delivery_manage` with `operation: \\"submit\\"`. Submission is not completion: it returns a job, destination, and `started` or `queued` status.\\n\\n- Use `mode: \\"video\\"` for H.264, H.265, or ProRes.\\n- Use `mode: \\"xml\\"` (XMEML) for Premiere Pro **and DaVinci Resolve**; Resolve reads XMEML natively. Use `mode: \\"fcpxml\\"` with `fcpxmlTarget: \\"fcp\\"` for Final Cut Pro: the default target writes the Resolve flavor. `fcpxmlTarget: \\"resolve\\"` stays for older Resolve workflows, but new Resolve handoffs use `xml`.\\n- Use `mode: \\"videodraft\\"` for a self-contained project package.\\n- Use `mode: \\"srt\\"` or `mode: \\"vtt\\"` for a subtitle file of the captions: words and timing only, without styling. `captionGroupId` picks a caption group; `wordTiming: true` adds each word\'s start to a `vtt`.\\n- Omit `outputPath` unless the user named a destination; the default is `~/Downloads`. The editor does not create folders, so a named destination\'s folder must already exist.\\n- Use `operation: \\"jobs\\"` with `parameters.action` `list` to follow progress, warnings, and results. Cancel only when the user asks or the just-queued settings were wrong. Do not infer that an export is stuck from elapsed time alone.\\n- A finished video export is then checked in the background for black picture, gaps, sound that drops out or clips, and missing media. `list` shows each job\'s `findingCount` and its first three findings; `list` with that `jobId` returns every finding. Findings are warnings on a completed export: tell the user what was found and where, rather than treating the export as failed.\\n\\n## Terminal bridge\\n\\nVideoDraft desktop terminals expose `videodraft-editor`, which controls the same process and tools:\\n\\n```bash\\nvideodraft-editor status\\nvideodraft-editor list-tools\\nvideodraft-editor tool project_manage --json \'{\\"operation\\":\\"project\\",\\"parameters\\":{\\"action\\":\\"list\\"}}\'\\nvideodraft-editor tool edit_snapshot --project \\"/path/to/My Video.vdproject\\" --json \'{\\"includeLibrary\\":true}\'\\nvideodraft-editor show\\nvideodraft-editor hide\\n```\\n\\nEach `videodraft-editor` invocation is a separate connection, so a project opened by one call is NOT remembered by the next. Pass `--project <path>` on every `tool` call that operates on a project; without it, a follow-up call answers `no_project` (no project is open for this session) even though the open succeeded. For the same reason, `edit_undo` has nothing to undo from the terminal: it only reverses an edit made on its own connection.\\n\\nControl and tool commands auto-start a headless editor if none is running. `show` only reveals the already-running UI. Use `videodraft-editor tool <name> --json -` to read a JSON object from stdin when shell quoting would be fragile. Never read, copy, or expose the editor\'s rotating local authentication secret.\\n","references/examples.md":"# Recipes\\n\\nWorking patterns for common asks. All assume auth (`videodraft login` once, or `VIDEODRAFT_API_KEY` in the environment) and use `--json` for parsing.\\n\\nInside VideoDraft ADE, use these recipes for asset generation and optional script/storyboard stages.\\nHonor the chosen app, existing project and `<creative_routes>` as described in SKILL.md. Hand the\\nresults to that app for production and export ONLY when the user asked for a composed production;\\nthe native editor is the default when available and no other app takes precedence. A standalone\\noutput, such as the batch product clips in recipe 1 or the upscale in recipe 7, is finished when\\ngenerated. Recipes below that call `videodraft produce` or `videodraft export` are hosted fallbacks\\nonly. Use them when explicitly requested, or when the native editor is unavailable and no external\\napp is selected. Do not switch an external-app request to a hosted or native production silently.\\n\\n## 1. Batch product videos from a CSV\\n\\nOne 9:16 product clip per row of `products.csv` (`name,image_url,tagline`):\\n\\n```bash\\n#!/usr/bin/env bash\\nset -euo pipefail\\nmkdir -p outputs\\n\\nwhile IFS=, read -r name image tagline; do\\n job=$(videodraft generate video \\\\\\n \\"Premium product shot of ${name}: ${tagline}. Slow orbit, studio lighting.\\" \\\\\\n --model gemini-omni-1.2-flash --ar 9:16 --duration 6 \\\\\\n --start-image \\"$image\\" \\\\\\n --no-wait --json | jq -r .job_id)\\n echo \\"$name,$job\\" >> outputs/jobs.csv\\ndone < <(tail -n +2 products.csv)\\n\\n# Collect ALL results with ONE process (batched polling \u2014 one request per tick)\\nvideodraft wait $(cut -d, -f2 outputs/jobs.csv) \\\\\\n --download \\"outputs/{job_id}_{index}.{ext}\\" --json > outputs/results.json\\n# map job ids back to product names via outputs/jobs.csv\\n```\\n\\nSubmit-then-collect parallelizes server-side generation; the single multi-id `wait` keeps it to one local process and one batched poll request per tick no matter how many jobs. Gemini Omni 1.2 Flash is selected because these are six-second first-frame product clips. Estimate first: `videodraft costs gemini-omni-1.2-flash --type video --duration 6 --resolution 720p --audio` \xD7 rows, and confirm with the user.\\n\\nExtend an uploaded clip or conversationally edit an official Google interaction with Gemini Omni 1.2 Flash:\\n\\nEach extension appends 3-10 seconds at the end. Edit and extend accept EXACTLY ONE input video, so `--ref-video` cannot accompany `--source-video` or `--previous-interaction-id`; only `--ref` images can. New dialogue is allowed only when the source video is silent, so a chain of spoken beats must carry its speech in the first turn. A continuation is submitted as the prior turn\'s output, so 40 seconds total is reachable only by extending from a source of 30s or less, and a ladder dead-ends past 30s.\\n\\n```bash\\n# Google uploaded-video extension. Up to two reference images are allowed; reference videos are not.\\nvideodraft generate video --model gemini-omni-1.2-flash \\\\\\n --source-video ./ending.mp4 --ref ./wardrobe.png \\\\\\n --extend --duration 6 --resolution 1080p \\\\\\n --download ./media/extended.mp4\\n\\n# Conversational edit from the interaction_id of an earlier generation. Add --extend to lengthen instead.\\nvideodraft generate video --model gemini-omni-1.2-flash \\\\\\n --previous-interaction-id \\"$INTERACTION_ID\\" \\\\\\n --resolution 720p \\\\\\n --download ./media/continued.mp4\\n```\\n\\nFal BYOK supports the currently callable Gemini Omni 1.2 generation, basic source-edit and source-extension endpoints at zero VideoDraft credits. Its published callable v1.2 endpoints support uploaded-source extension, but not Google interaction IDs or separate edit/extend references. Do not infer a Fal route or retry on paid Google while Fal BYOK is active.\\n\\n## 2. Hosted full marketing video from one idea (fallback)\\n\\n```bash\\nvideodraft create \\"30-second launch video for Solace, a sleep-tracking ring. Calm, premium, dark palette.\\" \\\\\\n --ar 9:16 --style cinematic --json > project.json\\nPROJECT=$(jq -r .project_id project.json)\\n\\nvideodraft shots \\"$PROJECT\\" --grid --estimate # show the user the cost; get a go-ahead\\nvideodraft shots \\"$PROJECT\\" --grid\\nvideodraft produce \\"$PROJECT\\"\\nvideodraft generate music \\"minimal ambient, warm pads, 60 BPM\\" --attach \\"$PROJECT\\"\\nvideodraft generate audio \\"Extend @Audio1 into a 20-second transition\\" --ref-audio ./intro.wav --format wav --download ./transition.wav\\nvideodraft export \\"$PROJECT\\" --download solace-launch.mp4\\n```\\n\\nUse this complete hosted path only when the user requested a web project, or the native editor is unavailable and no external app is selected. Otherwise stop after the storyboard/assets and finish in the selected editing app; for the default native `.vdproject`, export with `delivery_manage`. The hosted project stays editable at the URL in `project.json` (`.urls`).\\n\\n## 3. Talking-head (avatar) video\\n\\nWhen the user has no portrait, generate a clear front-facing avatar image first. Skip this step when they supplied one or an existing character should be reused.\\n\\n```bash\\nvideodraft generate image \\\\\\n \\"Front-facing head-and-shoulders portrait of a friendly coffee expert, direct eye contact, natural expression, clean studio background\\" \\\\\\n --model nano-banana-2.1 --ar 9:16 --download ./media/avatar.png\\n\\nSCRIPT=$(videodraft avatar script \\"why our espresso subscription saves you money\\" --style ad-style --json | jq -r .script)\\nAVATAR=$(videodraft avatar create ./media/avatar.png --script \\"$SCRIPT\\" --voice elevenlabs-kPzsL2i3teMYv0FxEYQ6 --ar 9:16 --json | jq -r .avatar_video_id)\\nvideodraft avatar render \\"$AVATAR\\" --resolution 720p # VEED Fabric paid step; check the cost first with --estimate\\n```\\n\\n`avatar script` and `avatar create` (including speech) are bundled/free. In this example only the optional portrait generation and Fabric render spend credits.\\n\\nIf the portrait is low resolution, enhance it before `avatar create`:\\n\\n```bash\\nvideodraft upscale image ./founder-small.jpg --scale 2x --download ./media/founder-upscaled.png\\n```\\n\\nFor a one-off portrait animation without creating a managed avatar record:\\n\\n```bash\\nvideodraft avatar fabric ./founder.jpg \\\\\\n --text \\"Welcome to the weekly product update.\\" \\\\\\n --voice-description \\"warm, confident American presenter\\" \\\\\\n --resolution 720p --download ./media/presenter.mp4\\n```\\n\\nFor a short, sharp clip from speech or a song the user already has (5-14.8s of audio is used):\\n\\n```bash\\nvideodraft avatar h3-lipsync ./singer.png --audio ./chorus.mp3 \\\\\\n --resolution 1080P --audio-duration 12 --estimate\\nvideodraft avatar h3-lipsync ./singer.png --audio ./chorus.mp3 \\\\\\n --resolution 1080P --download ./media/singer-lipsync.mp4\\n```\\n\\nWhen the user already has both the video and replacement speech:\\n\\n```bash\\nvideodraft avatar lipsync ./presenter.mp4 \\\\\\n --audio ./localized-voiceover.mp3 \\\\\\n --sync-mode loop --download ./media/presenter-localized.mp4\\n```\\n\\nEdit an existing video with a dedicated edit model. Image references in the Gemini example require Google; Fal BYOK source edits accept no additional reference media:\\n\\n```bash\\nvideodraft models video --category video_edit\\nvideodraft edit video ./product-demo.mp4 \\\\\\n \\"Preserve the product and camera motion, and match the reference lighting\\" \\\\\\n --model gemini-omni-1.2-flash --ref ./evening-style.jpg \\\\\\n --resolution 1080p \\\\\\n --download ./media/product-demo-reframed.mp4\\n\\nvideodraft edit video ./product-demo.mp4 \\\\\\n \\"Turn the room into a warm evening scene while preserving the product and camera motion\\" \\\\\\n --model kling-o3-video-ref-edit --ref ./evening-style.jpg \\\\\\n --preserve-audio --download ./media/product-demo-evening.mp4\\n```\\n\\nTransfer motion from a reference clip onto a character image:\\n\\n```bash\\nvideodraft edit motion ./character.png \\\\\\n \\"Apply the dancer\'s movement to this character while preserving identity\\" \\\\\\n --motion-video ./dance-reference.mp4 \\\\\\n --model kling-v3-motion-control --quality pro \\\\\\n --download ./media/character-dance.mp4\\n```\\n\\n## 4. Hosted changelog video in CI\\n\\nIn a GitHub Action with `VIDEODRAFT_API_KEY` set as a secret:\\n\\n```bash\\nNOTES=$(git log --oneline v1.2.0..HEAD | head -20)\\nvideodraft create \\"Weekly product update video. Energetic, 20 seconds. Changes: ${NOTES}\\" --ar 16:9 --json > p.json\\nPROJECT=$(jq -r .project_id p.json)\\nvideodraft shots \\"$PROJECT\\" && videodraft produce \\"$PROJECT\\"\\nvideodraft export \\"$PROJECT\\" --download changelog.mp4 --wait-timeout 30m\\n```\\n\\n## 5. Variations and picking a winner\\n\\n```bash\\nvideodraft generate image \\"logo concept: minimalist fox, geometric\\" --num 4 --download \\"./concepts/{job_id}_{index}.{ext}\\" --json\\n# Show all 4 to the user; regenerate the chosen one at higher res:\\nvideodraft generate image \\"<same prompt>\\" --model nano-banana-pro --resolution 4K\\n```\\n\\n## 6. Reaching tools without a curated command\\n\\n```bash\\nvideodraft tools list --json | jq -r \'.[].name\'\\nvideodraft tools schema attach_media_to_shot --json\\nvideodraft call attach_media_to_shot --args \'{\\"project_id\\":\\"...\\",\\"scene_index\\":0,\\"shot_index\\":1,\\"media_url\\":\\"https://...\\",\\"media_type\\":\\"video\\",\\"duration_seconds\\":6}\'\\n```\\n\\nAnything the hosted VideoDraft MCP exposes, including character studio, product studio, and hosted project data, is reachable this way even before it gets a curated command. Native `.vdproject` editing uses the separate `videodraft_editor` MCP described in SKILL.md.\\n\\n## 7. Enhance an existing asset without changing it\\n\\n```bash\\n# Light image cleanup, no enlargement\\nvideodraft upscale image ./poster.png --scale 1x --download ./media/poster-enhanced.png\\n\\n# General image and video enlargement\\nvideodraft upscale image ./frame.png --scale 2x --download ./media/frame-2x.png\\nvideodraft upscale video ./clip.mp4 --resolution 1080p --download ./media/clip-1080p.mp4\\n\\n# Rebuild detail in a tiny/blurry source (generative), or reimagine it (creative)\\nvideodraft upscale image ./tiny.jpg --scale 4x --mode generative --model \\"Wonder 3.5\\" --download ./media/tiny-4x.png\\nvideodraft upscale video ./ai-clip.mp4 --resolution 4k --mode generative --download ./media/ai-clip-4k.mp4\\n\\n# Smoother motion or slow motion (resolution unchanged)\\nvideodraft interpolate ./clip.mp4 --fps 60 --download ./media/clip-60fps.mp4\\nvideodraft interpolate ./clip.mp4 --model Chronos --slowdown 4 --download ./media/clip-slowmo.mp4\\n```\\n\\nUse these when the content is correct and only quality or resolution needs improvement. If the poster text, composition, subject, or motion is wrong, edit or regenerate instead.\\n","references/models.md":"# Choosing models (and predicting cost)\\n\\nAlways consult the live catalog instead of memorizing this page \u2014 models change weekly:\\n\\n```bash\\nvideodraft models image --json # every image model + inputs (aspect ratios, resolutions, max refs)\\nvideodraft models video --json # every video model + inputs + per-second pricing metadata\\nvideodraft models audio --json # standalone audio/media models + pricing inputs\\nvideodraft models voices --json # TTS voices\\nvideodraft models styles --json # visual style presets\\n```\\n\\n## Task-based model selection\\n\\nFollow this order every time:\\n\\n1. The user named a model: use it, never substitute.\\n2. Otherwise pick a **Tier 1** model from the task\'s inputs, duration, audio, quality, speed, and cost, and pass it explicitly instead of relying on a blind platform fallback.\\n3. Use a **Tier 2** model only when no Tier 1 model supports the request, and say why. Never pick Tier 2 on your own for price, speed, novelty or variety.\\n\\nTier 1 is the rows marked **T1** below. Every other catalog model is Tier 2 and stays available by name. The catalogs carry this themselves: every `videodraft models image|video|audio --json` entry has `tier` (1 or 2) plus `recommended` / `recommended_for`, and the top-level `recommended` array is Tier 1, best first. Trust the catalog over this page when they disagree.\\n\\n### Images\\n\\n| Need | Choose | Why |\\n| ------------------------------------------------------------------------------------------ | ------------------------ | ----------------------------------------------------------------- |\\n| T1: Most generation, editing, text, character consistency, or reference work | `nano-banana-2.1` | Best general default; 1K/2K/4K, 14 references, thinking levels |\\n| T1: Previous default, or when temperature control is wanted | `nano-banana-2` | 1K/2K/4K and up to 14 reference images; temperature 0-2 |\\n| T1: Highest-quality complex generation or reasoning | `nano-banana-pro` | Premium Nano Banana quality and reasoning |\\n| T1: Fast, inexpensive drafts and iteration | `nano-banana-2-lite` | Fastest/cheapest Nano Banana option; 1K only, up to 14 references |\\n| T1: Posters, title cards, signs, logos, or any image with important readable text | `gpt-image-2.6-flare` | Fast OpenAI everyday generation/editing; 16 refs, 1K/2K/4K, PNG |\\n| T1: Complex multi-image composition, precise editing, or a strong alternate interpretation | `gpt-image-2.6-sunburst` | More precision, fine detail, edit consistency; slower; 16 refs |\\n| T1: Animated GIF (sticker, emoji, icon, logo sting, short looping reaction) | `gpt-image-2.6-flare` | `--gif`: 2-16 frames, looping GIF, frame size follows `--ar` |\\n| T1: Vector / SVG output (logos, icons, illustrations that must scale) | `recraft-v4` | Recraft V4.1 text-to-vector; SVG only, no reference images |\\n| T2: xAI at 2K or with a quality tier, up to 3 edit references | `grok-imagine-2.0` | 1K/2K, low/medium quality, small charge per reference image |\\n\\nIdeogram 4.5 (`ideogram-v4.5`) replaces 4.0 in the same Tier 2 position. Text-to-image: `--quality low|medium|high` (medium default), `--resolution 1K|2K`, `--ar`, `--num 1..8`, `--seed`, `--prompt-expansion true|false`. Editing: `--source-image <url|file>` plus up to four `--ref` images; without a source flag the first `--ref` is the source. `--edit-precision regular|high`; regular edits also support `--quality very_low`. `--mask <url|file>` uses black for edits, white for preserved regions and must match source dimensions; masked edits allow three additional references. Precise/masked edits require `--ar auto` with no resolution or custom dimensions. `--image-width` and `--image-height` select exact supported generation sizes or 32px-grid regular-edit sizes (min 256px, max 4MP, within 6:1). Expansion is text-to-image only. Reference/mask/precision do not add a separate surcharge.\\n\\n```bash\\nvideodraft generate image \'A poster with the exact title \\"SUMMER\\"\' --model ideogram-v4.5 --quality high --resolution 2K --num 2 --estimate\\nvideodraft generate image \'Replace the sign text with \\"OPEN\\"\' --model ideogram-v4.5 --source-image source.png --ref lettering.png --mask mask.png --edit-precision high --ar auto --quality medium\\nvideodraft costs ideogram-v4.5 --type image --quality very_low --ref-images 1 --num 2\\n```\\n\\nFLUX 3 image (`flux-3-image`, separate from `flux-3-max` video) is Tier 2: Black Forest Labs\' newest image model, on Fal or your Fal key. It generates and edits with up to 10 `--ref` images (call them \\"image 1\\", \\"image 2\\" in the prompt), `--num 1..4`, `--resolution 1K|2K|4K` (default 1K), `--prompt-expansion true|false` (default true) and `--ar` with 14 ratios (21:9 to 1:2, including 7:5 and 5:7) plus `auto`. Each image is priced by output size (resolution and ratio); `auto` lets the model pick, or follows the first reference, and is quoted at the tier\'s highest price. Without `--ar`, a new image is 16:9 and an edit is `auto`. No seed. Output is JPEG.\\n\\n```bash\\nvideodraft generate image \'Studio photo of a ceramic mug on a walnut desk, soft light from the left\' --model flux-3-image --ar 4:5 --resolution 2K --estimate\\nvideodraft generate image \'Place the mug from image 1 on the desk in image 2, keep the lighting of image 2\' --model flux-3-image --ref mug.png --ref desk.png --num 2\\n```\\n\\nGPT Image 2.6 replaces 2.5 and has two IDs: `gpt-image-2.6-flare` (fast everyday generation and editing, readable text and posters, precise composition) takes the Flare recommendation; `gpt-image-2.6-sunburst` is the alternative when extra precision, fine detail or edit consistency matters, with longer latency. Always pass a 2.6 ID; an older 2.5 ID runs on the matching 2.6 model. Other model recommendations are unchanged. Explicit `gpt-image-2` selections continue to use the previous model.\\n\\nUse the same basic image controls as GPT Image 2: `--ref` (up to 16), `--ar` (10 ratios), `--resolution 1K|2K|4K`, `--quality`, and `--num 1..4`. Output is PNG, with no seed. GPT Image 2.6 quality supports auto/low/medium/high/xhigh/max. Auto is priced at Max in customer-credit estimates, so pass `--quality high` for a cheaper render; on 2.6, low and medium are only modestly cheaper than high. The default platform path uses OpenAI; a selected personal connection stays exclusive. A Pika personal connection requires an explicit quality from low/medium/high/xhigh/max because its upstream API has no auto value. Atlas Cloud keys also run 2.6. Other unsupported connection settings return an error instead of switching payer or changing the request. 2.6\'s own complexity, markup and SVG options are not offered.\\n\\nGPT Image 2.6 also returns looping animated GIFs: add `--gif`, with `--frames 2-16` (default 8) and `--frame-ms 20-2000` (default 120; 8 frames at 120 ms is about a 1 s loop). Describe the motion and a seamless loop in the prompt, and pass `--ref` to animate a given subject. Each frame\'s size follows `--ar` (1:1 frames are 720x720, 16:9 frames 944x528); `--resolution` does not apply. OpenAI draws the frames on one grid and bills it like one still at the grid\'s size, so 2-8 frames cost the same and 9 costs about twice as much; quote with `--estimate`. GIFs suit stickers, emoji, icons, logo stings and short reactions; use a video model for long or smooth motion. GIFs are standalone AI Studio outputs, not storyboard shots or batches, and a personal Pika connection cannot make them (OpenAI, Fal and Atlas Cloud can).\\n\\n```bash\\nvideodraft generate image \'A blue glass bird\' --model gpt-image-2.6-flare --ar 1:1 --resolution 2K --quality high --estimate\\nvideodraft generate image \'A blue glass bird\' --model gpt-image-2.6-flare --ar 1:1 --resolution 2K --quality high --num 2\\nvideodraft generate image \'A blue glass bird flapping its wings, seamless loop\' --model gpt-image-2.6-flare --gif --frames 8 --frame-ms 120 --ar 1:1 --quality high --estimate\\n```\\n\\n`videodraft shots` forwards resolution and quality for both normal and grid generation. Estimates use the project\'s model and aspect when omitted; grid canvas costs may differ from ordinary shot costs. Use `videodraft costs --model <id> --ar <ratio> --resolution <tier> --quality <tier>` for a specific per-image quote.\\n\\n### Videos\\n\\n| Need | Choose | Important limits |\\n| ------------------------------------------------------------------------------------------------------ | ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\\n| T1: Most generation, first/last-frame, mixed-reference, source-edit, or extension requests | `gemini-omni-1.2-flash` | 3-15s output (first+last frames: 3-10s); 360p/720p/1080p/4K; audio always; up to 10 image inputs, and 3 reference videos <=15s each on generate only; edit source 3-15s; continuation or 3-10s extension of a 1-30s source, 40s total reachable only by extending from <=30s |\\n| T2: Grok 1.5 text, first-frame, or 1-7 image-reference clips with native audio and optional 1080p | `grok-imagine-video-1.5` | 1-15s; 480p/720p/1080p for text/first-frame; references are 480p/720p only; no last frame |\\n| T2: Document or webpage reference generation; by name otherwise | `wan-3.0` | 2-30s or auto; 480p/720p/1080p; 10 image, 5 video, 5 audio refs, 20 media files total; document/web refs require thinking |\\n| T2: 480p/768p/2K/4K with native stereo audio, first/last frames, or mixed image/video/audio references | `minimax-h3` | 5-15s; up to 9 image, 3 video, 3 audio refs, 12 files total; first 5 reference images included; reference video/audio each total <=15s |\\n| T1: Fast video and timed keyframes, before H3 Max | `flux-3-max` | 5-20s, default 5s; 720p/1080p; optional audio; first/last frames or up to 10 keyframes; High/Low reasoning (`--reasoning-level`), `--seed`; no Draft or auto duration |\\n| T1: Text, first/last-frame, or mixed-reference video with native audio and stronger prompt adherence | `minimax-h3-max` | 5-15s; 480p/768p plus pooled reference tokens; up to 9 image, 3 video, 3 audio refs, 12 files total; seed and disabled/balanced/quality prompt expansion; provider safety checker off by default |\\n| T1: Video/audio references, mixed reference media, broad aspect ratios, first+last frames over 10s | `seedance-2` | 4-15s or auto; up to 9 image, 3 video, and 3 audio refs; audio toggle; Mini/Fast are 480p/720p only |\\n| T1: Single takes past 15s, or more references than Seedance 2.0 allows | `seedance-2.5` | 4-30s or auto; up to 30 image, 10 video, and 10 audio refs (50 files total); one quality tier; 480p/720p/1080p |\\n| T2: Fast polished 3-15s video with first frame, multi-prompt, and native audio | `kling-v3-turbo` | Audio always on; Pro default; no end frame, reference-media mode, or elements |\\n| T1: Preferred Kling: 3-30s text, start/end-frame or reference video with voiced elements, no 4K | `kling-4.0` | 3-30s, 720p/1080p, audio on; text, image-to-video (start + optional end frame) or reference mode (optional start image, 10 images, 5 videos, 7 elements: 3 voiced, 3 video; 15 total); cite @Image1, @Video1, @Element1; no seed |\\n| T2: Faster, cheaper Kling 4.0 at 720p, by name | `kling-4.0-flash` | 3-20s, 720p only, audio on; same modes as Kling 4.0 but one prompt (no `--segment`), no end frame, no voices; reference mode: optional start image, 10 images, 5 videos (3-20s), 7 elements (3 video, 3-8s); 15 total; videos share 5 clips and 20s |\\n| T1: Cinematic 3-15s with reference images, image/video elements, first+last frame, audio, or 4K | `kling-o3` | 7 combined image refs/elements, reduced to 4 with a video element; Standard/Pro/4K |\\n| T1: Kling 3-15s image-to-video with first+last frame, image/video elements, multi-prompt, audio, or 4K | `kling-3.0` | Elements require a start image; image or video elements can bind voice_id; Standard/Pro/4K |\\n| T2: User explicitly requests Veo, or the selected workflow specifically needs Veo | `google-veo3.1` | Good fallback, but not the preferred general model |\\n\\nRouting rules:\\n\\n- Inexpensive pass or draft at 480p/768p with native audio: use MiniMax H3 Max.\\n- Grok 1.5 reference mode accepts 1-7 images only. Address them in array order as `<IMAGE_0>` through `<IMAGE_6>`. Do not combine reference images with `--start-image`, `--end-image`, `--ref-video`, or `--ref-audio`.\\n- Grok 1.5 first-frame mode accepts one `--start-image`, derives the output aspect ratio from that image, and does not support `--end-image`. Text and first-frame modes support 480p, 720p, or 1080p. Reference mode supports 480p or 720p.\\n- Grok 1.5 always generates native audio. Do not pass `--no-audio`, `--seed`, `--negative`, or `--quality`.\\n- Around 11-15 seconds with native audio: keep Gemini Omni 1.2 Flash as the default. With both first and last frames, choose a compatible Tier 1 alternative because Gemini caps that mode at 10s. Past 15 seconds: Seedance 2.5.\\n- Dialogue: write the line in the prompt, in quotes, with who says it and how. `gemini-omni-1.2-flash`, `seedance-2.5`, `seedance-2`, `kling-3.0` and `kling-o3` speak it natively; add `--ref-audio` on Seedance or a bound Kling voice for a specific voice. Do not generate speech separately and lip-sync it on.\\n- One existing source video that should be edited: use `videodraft edit video`, which auto-selects Gemini Omni 1.2 Flash for a source from 3 to 15s. Generic `generate video --ref-video` retains source-edit behavior when `--video-task` is omitted, but the dedicated edit command is clearer.\\n- Video supplied as a creative reference: Gemini Omni 1.2 Flash accepts up to 3 videos of at most 15 seconds each, including mixed image and video input. Creative video references are accepted on `--video-task generate` ONLY: edit and extend take exactly one input video, so `--ref-video` cannot accompany `--source-video` or `--previous-interaction-id`. Use Seedance 2.5 for more or longer video/audio references, or Seedance 2.0 when quality-tier control matters.\\n- First and last frame control: every Tier 1 video model supports it (Gemini Omni 1.2 Flash, Seedance, Kling 4.0 in image-to-video, Kling O3, Kling 3.0, MiniMax H3 Max, FLUX 3 Max). For Gemini, every start/end frame counts toward the 10-image total, leaving up to 9 references with a start frame or 8 with both frames.\\n- Extension with a 1-30s uploaded source uses Gemini Omni 1.2 Flash plus `--source-video` and `--video-task extend` (or `--extend`). Pass an explicit 3-10s output duration; the model appends it at the end, up to 40 seconds total. Creative `--ref-video` clips CANNOT accompany the source: edit and extend take exactly one input video. New dialogue is allowed only when the source video is silent; adding speech on top of a source that already has speech is refused with \\"the model is currently unable to process speech edits\\". Continuation uses `--previous-interaction-id <id>` and defaults to a conversational edit; `--video-task extend` lengthens it. A continuation is submitted as the prior turn\'s output video, so it obeys the same source limits (<=30s to extend, <=15s to edit) and the same silent-source dialogue rule. 40s total is reachable only by extending from a source of 30s or less, so a ladder dead-ends past 30s. Fal returns the video only, and its currently published callable v1.2 endpoints support uploaded-source extension through /v1.2/extend, but not Google interaction IDs or mixed source-edit references; never infer a route or silently fall back to paid Google.\\n- Wan 3.0 reference mode and frame mode are separate. It accepts 10 images, 5 videos, and 5 audio clips, at most 20 media files total. Video and audio each total at most 15 seconds. `--file-url` and `--web-url` require `--thinking`. `--auto-duration` cannot be combined with `--duration`.\\n- MiniMax H3 and H3 Max reference mode and first-plus-last-frame mode are separate. Audio cannot be the only reference. Address references as `Image 1`, `Video 1`, and `Audio 1` in array order.\\n- Seedance reference mode and first-plus-last-frame mode are separate. Do not promise reference video/audio plus a last frame in one generation.\\n- Multi-prompt sequencing: use Kling 4.0 (shots of 1-30s, 3-30s total), or Kling 3.0 Turbo, Kling O3 or Kling 3.0 (shots of 1-15s, 3-15s total). Kling 4.0 Flash takes one prompt.\\n- Kling 3.0 image-to-video and Kling O3 reference-to-video accept repeatable structured `--element` JSON. Each element is image-backed (`frontal_image_url` plus 1-3 `reference_image_urls`) or video-backed (`video_url`). Either form may include `voice_id`. Keep the voice ID inside the same element so the association is preserved. Reference them as `@Element1`, `@Element2`. Kling V3 Turbo rejects elements.\\n- Kling 2.6 Pro image-to-video accepts one or two repeatable `--voice-id` values. Cite them as `<<<voice_1>>>` and `<<<voice_2>>>` in the prompt. Voice control costs more per second. Use `videodraft kling-voices list|create|delete` to manage the separate Kling video-control voice library. Creating a voice requires a clean 5-30 second, up-to-50MB single-speaker `.mp3`, `.wav`, `.mp4`, or `.mov` sample plus `--confirm-consent`. Creation has a small charge on the platform Fal account and is free with Fal BYOK; use the create command\'s `--estimate` flag to check without creating.\\n- Kling V3 voice control (Standard and Pro) also costs more per second than plain generation.\\n- Kling 4.0 (Tier 1, the preferred Kling; Kling 3.0 and O3 keep 4K) has three modes, like Kling O3: text; image-to-video from `--start-image` with an optional `--end-image` (framing follows the image, so no `--ar`); and reference mode, chosen when you add `--ref`, `--ref-video` or `--element`. Reference mode takes an optional `--start-image`, up to 10 images including it (`--ref`, cited as @Image1), up to 5 `--ref-video` clips (cited as @Video1, 3-30s each), and up to 7 `--element` entries (cited as @Element1; up to 3 with `voice_id`, up to 3 video-backed). Reference and element videos share 5 clips and 30 seconds, and 15 inputs is the total. Reference mode has no end frame. Audio is always on. With any reference or element video it bills the video length plus the output, at least twice the output, so pass `--ref-video-seconds` to `costs` or `--estimate` for an exact quote.\\n- Kling 4.0 Flash (`kling-4.0-flash`, Tier 2, by name) is the faster, cheaper tier of Kling 4.0, with the same three modes and inputs, at 720p only and 3-20 whole seconds (default 5). It takes one prompt (no `--segment`), no `--end-image` (image-to-video uses `--start-image` alone) and no `voice_id` on elements. Reference mode takes an optional `--start-image`, up to 10 images including it, up to 5 `--ref-video` clips of 3-20s each, and up to 7 `--element` entries (up to 3 video-backed, 3-8s each); reference and element videos share 5 clips and 20 seconds, and 15 inputs is the total. Audio is always on. It costs less per second than Kling 4.0 and bills reference and element videos the same way (`--ref-video-seconds`, up to 20). Use Kling 4.0 for multi-shot prompts, an end frame, voices, 1080p or clips past 20s.\\n- Seedance quality: `mini` for the lowest cost, `fast` for speed, `standard` for maximum quality and for 1080p/4K. Seedance 2.5 has a single tier and ignores `--quality`.\\n- Longer than 15 seconds, or more than 9 image / 3 video / 3 audio references: use Seedance 2.5. It reaches 30s and 30/10/10 references (50 files total) at 480p/720p/1080p, but has no 4K.\\n- Seedance 2.x has no real-people option. A video that can\'t be made at the listed rate, usually one showing a real person, costs a higher rate, charged before it starts.\\n\\n### Video edit and motion-control categories\\n\\nUse `videodraft models video --category video_edit` for existing-video transforms and `--category motion_control` for motion transfer.\\n\\n| Need | Command/model | Important limits |\\n| -------------------------------------------------- | ---------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\\n| Most edits of a source from 3 to 15s (DEFAULT) | `videodraft edit video <video> \\"...\\"` (auto-selects `gemini-omni-1.2-flash`) | Source 3-15s or it REFUSES; up to 2 image refs on Google, no creative video refs; 360p/720p/1080p/4K; audio always regenerated (no `--preserve-audio`) |\\n| Cheapest simple prompt edit | `videodraft edit video <video> \\"...\\" --model grok-imagine-video-edit` | No image refs; source silently truncated to 8s; auto/480p/720p |\\n| Edit with several image references | `--model happy-horse-video-edit --ref ...` | Up to 5 refs; 720p/1080p; source silently truncated to 15s; highest rate |\\n| Controlled Kling edit | `--model kling-o3-video-ref-edit --ref ...` | Up to 4 refs; Standard/Pro; source silently clamped to 3-10s |\\n| Whole source over 15s and up to 30s, or 7 elements | `--model kling-4.0-video-edit --ref ...` | Tier 2. Up to 10 refs and 7 image elements; 720p/1080p; edits a whole 3-30s source; `--duration` 3-30 sets a new length |\\n| Kling 4.0 Flash edit, when the user names it | `--model kling-4.0-flash-video-edit --ref ...` | Tier 2, by name: the faster, cheaper Kling 4.0 edit. Up to 10 refs and 7 image elements; 720p only; edits a whole 3-20s source; `--duration` 3-20 sets a new length |\\n| Transfer reference motion to an image | `videodraft edit motion <image> [direction] --motion-video <video>` | Prompt/direction is optional; Kling V3 default; optional one image-only `--element`; element requires video orientation |\\n\\nIf the user explicitly names one of these models, preserve it. The CLI uploads local source videos and reference images automatically. Editing returns an async job and waits by default.\\n\\n**Omit `--model` and the SERVER chooses**, because only it can measure the source. It picks `gemini-omni-1.2-flash` for any source from 3 to 15s. When that is not safe (source longer than 15s, unmeasurable duration, `--preserve-audio`, more than 2 refs, or Fal BYOK with refs) it spends nothing and returns a priced menu: per model, the seconds it would edit, the seconds it would drop, and the credit cost. The CLI prints that table and exits 2. Show it to the user, then re-run with `--model`.\\n\\n**Truncation is the trap here.** Gemini, Kling 4.0 Video Edit (up to 30s) and Kling 4.0 Flash Video Edit (up to 20s) refuse sources they cannot fully consume. Other edit models accept a 30s clip but return only its first 8-15 seconds. `videodraft edit video` now warns when this will happen and the tool response carries `source.truncated` / `source.dropped_seconds`; relay it to the user rather than letting them discover it in the output.\\n\\nTo edit a longer source without losing its tail, cut it into <=15s pieces in the selected editing app (`videodraft_editor` by default), edit each with Gemini, then reassemble and export in that app. VideoDraft has no server-side split/concat, so this needs a local editing route.\\n\\nKling O3 is also exposed for reference generation. `videodraft generate video --model kling-o3-video-ref-edit` requires exactly one `--ref-video` and generates a new reference-guided clip. Wan 3.0 handles new text, frame, and mixed-reference generation, but is not an existing-source edit model.\\n\\n### Reference-first video workflow\\n\\n- Prefer a start frame or reference image whenever a specific character, product, location, style, composition, or brand identity must stay recognizable.\\n- If the user gives a reference, pass it. Never silently replace it with a text description.\\n- If no reference exists and continuity matters, generate a still first with the user\'s explicitly requested compatible image model, otherwise use Nano Banana 2.1. Wait for the image URL, then animate it with the selected video model. Confirm the combined image plus video cost before starting.\\n- For multi-shot scenes, generate shot images with `videodraft shots <project_id> --model <selected-image-model> --grid`. Preserve an explicitly requested compatible image model; otherwise use `nano-banana-2.1`. The grid establishes the scene and characters together, then decodes into individual shot images.\\n- Animate the decoded shot images as per-shot start frames or references. Do not independently text-generate each video clip when the shots need to match.\\n- Pure text-to-video remains appropriate for generic one-off footage where no subject, composition, or continuity needs to be preserved.\\n\\n### Audio\\n\\n- **Seed Audio 1.0**: use `videodraft generate audio` for open-ended speech, sound, music, or prompt-driven audio editing. It accepts up to three audio references or one image. Address audio references as `@Audio1`, `@Audio2`, and `@Audio3`. Preset and custom cloned voice IDs are supported. Output is up to 120 seconds. There is no requested-duration input. The CLI automatically retries transient responses with one idempotency key. To recover after the CLI process itself is interrupted, set `--idempotency-key <uuid>` on the original command and reuse it.\\n- **Voiceover/TTS**: prefer ElevenLabs. Brittney is the platform default voice; under ElevenLabs BYOK, use a compatible voice from the user\'s account. Honor another supported voice/provider when the user explicitly selects it. ElevenLabs voices run on Eleven v4 in one of two modes: Standard (the default, best quality) or Turbo (Eleven v4 Turbo, faster and half the price). Keep Standard unless the user wants faster or cheaper speech. Pick the mode with `generate voiceover --mode standard|turbo` or `produce --voice-mode standard|turbo`; over MCP, pass `mode` to `generate_voiceover` or `voice_mode` to `produce_project`. Google, OpenAI and cloned `custom-*` voices ignore it. v4 takes no style or speed settings and no SSML `<break>` tags; audio tags such as `[whispers]` work. Dialogue stays on Eleven v3.\\n- **Dialogue, voice changing, and dubbing**: ElevenLabs only.\\n- **Sound effects**: ElevenLabs Sound Effects v3 only, 0.5-30 seconds.\\n- **Music**: use `lyria-3.5` for all music, short or long (up to ~3 minutes), with vocals/lyrics or instrumental music. When `--model` is omitted the CLI sends no model and the server default applies, which is `lyria-3.5` wherever the backend supports it. If the server answers that `lyria-3.5` is an unknown model, that backend predates it: rerun without `--model` (the server default then applies), or use `lyria-3-pro-preview` for a track longer than 30 seconds. `lyria-3-clip-preview` (fixed ~30s) and `lyria-3-pro-preview` remain available for explicit requests. Lyria length and structure are prompt-guided, not exact; for an instrumental, include \\"instrumental only, no vocals\\" in the prompt. `--length` and `--instrumental` only apply to ElevenLabs. Use `elevenlabs-music-v2.5` when a specified 3-300 second length, composition plan, or style reference track matters. Lyria references: up to 10 images on Google, 1 on Fal BYOK; 3.5 Fal prompts are 1-5000 characters (an image-only request gets a neutral prompt). `elevenlabs-music` is an alias for v2.5. Use `elevenlabs-music-v1` only when the user asks for v1 by name; it takes a prompt, `--length` and `--instrumental` only.\\n- **ElevenLabs Music v2.5 inputs**: either a prompt (`--length`, `--instrumental`) or a composition plan, never both. A plan is 1-30 sections of 3-120 seconds each, up to 300 seconds in total, and `--plan`/`--section` pick v2.5 when `--model` is omitted. Empty section parts default to 20 seconds and an instrumental part. Build one with repeatable `--section \\"<seconds>|<style, style>|<text>\\"` (use `\\\\n` for line breaks) or pass `--plan plan.json` with `{\\"chunks\\":[{\\"text\\",\\"duration_ms\\",\\"positive_styles\\",\\"negative_styles\\",\\"context_adherence\\",\\"audio_reference\\"}]}`. Section text is an optional `[Section name]`, lyric lines, and `{inline directions}`. Put 6-7 specific English styles on the first section; it sets the genre. `--ref-audio <url|file>` adds a style reference clip to the first section (window up to 30 seconds via `--ref-start`/`--ref-end` in ms, `--ref-strength low|medium|high|xhigh`); local files are uploaded, including relative `audio_reference.audio_url` paths in a plan file. `--seed` works only with a plan. `--format` picks the output (`mp3_48000_192` default on v2.5; `pcm_*`, `ulaw_8000` and `alaw_8000` arrive as stereo WAV files). Style references don\'t run on the user\'s own ElevenLabs key; with that key connected, drop the reference or ask the user to turn the key off. The CLI retries transient responses with one idempotency key; set `--idempotency-key <uuid>` to recover after an interruption.\\n- Voice Changer and Dubbing require the source media duration and currently accept source media up to 300 seconds.\\n\\n**User-supplied ElevenLabs voice IDs:** voiceover, dialogue, and voice changing accept raw IDs (16-64 alphanumeric characters) or `elevenlabs-<id>`. `videodraft models voices` / MCP `list_available_voices` is for discovery, not an allowlist. Pass a supplied ID directly even when it is absent from the catalog; do not reject it or substitute a catalog voice. The voice must be accessible to the provider account used for generation. Private or cloned voices may require the user\'s connected ElevenLabs key. A failed voice listing does not prove that a supplied ID cannot generate; a connected key with generation access may still work. If the provider rejects generation access, report that error rather than silently changing the voice.\\n\\nUse `--voice <id>` for voiceover and voice changing, and repeat `--line \\"<id>:Text\\"` for dialogue. These examples show both ID forms; replace the sample IDs with the user\'s supplied IDs:\\n\\n```bash\\nvideodraft generate voiceover \\"Hello there.\\" --voice kPzsL2i3teMYv0FxEYQ6 --download ./media/voiceover.mp3\\nvideodraft generate dialogue --line \\"kPzsL2i3teMYv0FxEYQ6:Hello.\\" --line \\"elevenlabs-kmSVBPu7loj4ayNinwWM:Welcome back.\\" --download ./media/dialogue.mp3\\nvideodraft generate voice-changer ./media/source.wav --voice elevenlabs-kPzsL2i3teMYv0FxEYQ6 --duration 12 --download ./media/changed-voice.mp3\\n```\\n\\nFor MCP, use `generate_voiceover.voice_id`, `generate_dialogue.lines[].voice_id`, or `change_voice.voice_id` with either form. ElevenLabs IDs are separate from Kling video-control voice IDs and MiniMax `custom-*` cloned-voice IDs. Do not convert IDs from those systems into ElevenLabs IDs.\\n\\n### Avatar / talking head\\n\\n**First decide the framing, not just \\"someone talks\\".** This lane animates a PORTRAIT facing the lens. A character delivering a line inside a real scene, with blocking, framing or camera movement, belongs to `generate video` instead: write the dialogue in the prompt and `gemini-omni-1.2-flash`, `seedance-2.5`, `seedance-2`, `kling-3.0` or `kling-o3` voices it natively (add a Seedance `--ref-audio` clip or a Kling voice bound per element for a specific voice). That is the default for any talking character; never plan silent video + TTS + lip-sync. Sending a cinematic shot to Fabric returns a head-on talking headshot, not the shot that was asked for. `videodraft models video --json` lists these under `recommended.in_scene_dialogue`.\\n\\nFor a presenter, spokesperson or explainer speaking to camera, VEED Fabric is the preferred model. Choose the dedicated path from the media the user already has:\\n\\n| Starting media | Command | Use |\\n| ------------------------------------------ | ------------------------------------------------------------------------- | ---------------------------------------------------------- |\\n| Portrait + script, reusable avatar record | `videodraft avatar create <portrait> --script \\"...\\"` then `avatar render` | Managed avatar flow with bundled speech preparation |\\n| Portrait + text | `videodraft avatar fabric <portrait> --text \\"...\\"` | One-off direct VEED Fabric text mode |\\n| Portrait + existing audio | `videodraft avatar fabric <portrait> --audio <audio>` | One-off direct VEED Fabric audio lip sync |\\n| Portrait + existing audio, short and sharp | `videodraft avatar h3-lipsync <portrait> --audio <audio>` | MiniMax H3 Max Lip Sync, 5-14.8s at up to 2K |\\n| Existing video + existing audio | `videodraft avatar lipsync <video> --audio <audio>` | Sync Labs Lipsync 2 (Tier 2): re-dub existing footage only |\\n\\nThe managed renderer is VEED Fabric Fast (`veed/fabric-1.0/fast`). Direct Fabric, MiniMax H3 Max Lip Sync, and Sync Labs are paid AI Studio generations and return async job IDs.\\n\\n1. Obtain the avatar image. Prefer the user\'s supplied portrait or an existing character. If none exists, use the user\'s explicitly requested compatible image model, otherwise generate a front-facing head-and-shoulders portrait with `nano-banana-2.1`, direct eye contact, a natural expression, and a clean background. Match the intended video aspect ratio when practical.\\n2. If the portrait is visibly soft or too small, run Topaz image enhancement/upscaling before animation.\\n3. Generate a script only if needed: `videodraft avatar script \\"<idea>\\"`.\\n4. Create the avatar record and speech: `videodraft avatar create <portrait-url-or-file> --script \\"...\\" --voice <id> --ar 9:16`. Prefer ElevenLabs when unspecified, but honor another explicitly selected supported voice/provider.\\n5. Render with VEED Fabric: `videodraft avatar render <avatar_video_id> --resolution 720p`.\\n\\nThe portrait is passed as the avatar\'s character image, not as a generic video\'s start frame. Prefer rendering directly at 720p. Use 480p only when the user prioritizes lower cost. Avatar script generation and `avatar create` (including speech) are bundled/free. Confirm the Fabric render cost, plus portrait generation or upscaling when needed.\\n\\nDirect Fabric text/audio, H3 Max Lip Sync, and Sync Labs do not use the managed avatar record. The CLI uploads local portrait, video, and audio files automatically. `avatar fabric --speed fast` applies only to audio mode. `avatar h3-lipsync` takes no prompt: pick `--resolution 480P|768P|1080P|2K` (default 768P), an optional `--seed`, `--no-transcription` to sync without transcribing the audio (transcription is on by default), and `--safety-checker` only when the user asks for Fal\'s checker. The portrait\'s width / height must be 0.4-2.5, and audio shorter than 5 seconds is refused before any charge. Sync is billed per verified audio second; under Fal BYOK, `sync_mode` remains available but `temperature` and `active_speaker` are ignored by the provider.\\n\\n### Upscaling / enhancement\\n\\n- **Images**: Topaz via `videodraft upscale image <url-or-file> --scale 1x|2x|4x [--mode precision|generative|creative] [--model <name>]`. Modes: `generative` (default; Wonder 3.5, Topaz\'s recommended model for AI-generated images; `Redefine` takes `--prompt`, `--creativity 1-6`, `--texture 1-5`), `precision` (faithful and cheapest; Standard V2, High Fidelity V3, Low Resolution V2, CGI, Text Refine; use for clean real photos), `creative` (Bloom 2; artistic, `--prompt`, `--creativity 1-9`). Extra knobs: `--no-face-enhance`, `--face-strength`, `--sharpen`, `--denoise`, `--fix-compression`, `--format png`. Use 1x for light enhancement without enlargement, 2x as the general default, and 4x only when the source quality and target size justify it. The server must verify dimensions from a readable image of at most 50 MB; `--width` and `--height` are compatibility hints and cannot bypass a failed probe. The result may be immediate or queued; the CLI waits by default. Use `--no-wait` for an async job ID, and poll it with `status` or `wait`. Cost: per started block of output megapixels; precision is cheapest, then generative, then creative.\\n- **Videos**: Topaz via `videodraft upscale video <url-or-file> --resolution 720p|1080p|4k` (preferred) or `--scale 2x`, plus `--mode precision|generative|creative` and `--model <name>`. `generative` (default; Starlight Precise 2.6, Topaz\'s recommended model for AI-generated footage; Starlight Fast 2 at half price) is billed per second, more at 4K. `precision` (Proteus, Proteus Natural, Iris, Gaia 2 for animation, Rhea, Theia, Artemis, Dione) is much cheaper, billed per second by output resolution; use it for real footage or when cost matters. `creative` (Astra 2, `--prompt`, `--creativity`, `--realism`, `--sharp`) always renders 4K and costs the most. `--fps 60` delivers 60fps on the same pass; any output above 30fps (including a 50/60fps source) doubles every rate; the server must verify duration, dimensions, and frame rate from an MP4/MOV source of at most 100 MB. `--duration`, `--width`, `--height`, and `--source-fps` are compatibility hints and cannot override billing or bypass a failed probe. The same source-verification requirement applies to frame interpolation. `--scale` also accepts intermediate factors such as `1.5x`. Max source length 5 minutes. The job is asynchronous; the CLI waits by default, while MCP callers poll `check_generation_status`. MCP video input must be VideoDraft-hosted, so upload local or external sources first.\\n- **Frame interpolation / slow motion**: `videodraft interpolate <url-or-file> --fps 60 [--model Apollo|Chronos|Aion] [--slowdown 1-8]` (MCP `interpolate_video`). Resolution is unchanged. Apollo (default) for smooth general conversion, Chronos for natural slow motion, Aion for extreme slow motion. Apollo/Chronos are billed per output second (more at 4K); Aion costs more. These rates cover targets up to 60fps; above 60fps multiply by target FPS / 60 (120fps doubles the rate). Output seconds = source seconds \xD7 slowdown. The final charge rounds up to a whole credit.\\n- Use upscaling to preserve the image/video while improving detail, resolution, or cleanup. It cannot fix the wrong subject, misspelled text, bad framing, unwanted objects, broken continuity, or incorrect motion. Use an edit or regeneration for those problems. Keep `generative` for AI-generated sources; switch to `precision` for clean real photos/footage or a cheap pass, and `creative` only when the user wants an artistic reinterpretation.\\n- For a new Fabric avatar, render directly at 720p instead of rendering at 480p and then upscaling. Upscale the source portrait first only when the portrait itself is low quality.\\n\\n## Capability gotchas\\n\\n- Each model\'s `inputs` block is authoritative: supported `aspect_ratios`, `resolutions`, `quality_options`, `start_frame`/`end_frame`, `max_reference_images/videos/audio`, `multi_prompt`, `audio_toggle`. Passing an unsupported input fails with a clear error \u2014 check first, don\'t trial-and-error paid calls.\\n- Most video models support only 16:9 / 9:16 / 1:1. A 3:4 request hard-fails on most.\\n- `--seed` reproduces a specific output on models that support it (e.g. Ideogram 4.5). GPT Image 2.6 and FLUX 3 Image reject any explicit seed; older models may ignore unsupported seeds. You do not need a seed for variation \u2014 `--num` already varies.\\n- `--rendering-speed` remains accepted for explicit legacy image requests and their cost estimates. Current Ideogram models use `--quality`. Always trust `videodraft models image --json` over this list; new models and tiers appear there the moment the platform ships them, with no CLI update.\\n- Prefer `seedream-v5.5` for Seedream text-to-image and edits. It accepts up to 10 image references, up to 6 outputs, `--resolution 1K`, `1.5K`, or `2K`, and `--background transparent` for a transparent PNG. `--format png` is the default; `--format jpeg` is available for opaque or automatic backgrounds. `--seed` requires a selected Pika personal key; Fal and Atlas do not expose it. `--image-width` and `--image-height` set an exact size with VideoDraft credits or a Fal key: 921,600-4,624,220 total pixels and 1:16 to 16:1 aspect ratio. These override the resolution and ratio, and can also be passed to `costs`; Pika and Atlas personal keys cannot use them. `--watermark` adds Fal\'s visible watermark and also requires VideoDraft credits or a Fal key. References add to each output\'s cost; the final cost rounds up to whole credits. `seedream-v5-pro` remains available.\\n- Reference inputs: `--ref <img>` (images, including up to 10 total for Gemini Omni 1.2 Flash and Wan 3.0, and 7 for Grok 1.5), `--source-video <v>` (Gemini uploaded edit/extension source), `--ref-video <v>` (up to 3 creative videos <=15s each for Gemini Omni 1.2 Flash; also Wan 3.0, MiniMax H3, MiniMax H3 Max, and Seedance 2), `--ref-audio <a>` (Wan 3.0, MiniMax H3, MiniMax H3 Max, Seedance 2), and `--element \'<json>\'` or `--element @elements.json` for Kling V3/O3. For an exact Seedance 2.x reference-video `--estimate`, add `--ref-video-seconds <combined-seconds>`; Seedance bills input seconds alongside output. Wan 3.0 and MiniMax H3 do not bill input reference seconds; MiniMax H3 Max bills them as pooled reference tokens. The CLI uploads local media references and every structured element without flattening the source/reference roles. `--segment \\"<prompt>:<seconds>\\"` (repeatable) drives Kling 3.0, Kling 3.0 Turbo, and O3 multi-prompt generation. Use 1-6 segments of 1-15 whole seconds each, with 3-15 seconds total. `generate image --video-ref` is the nano-banana-2 video reference.\\n- The top-level prompt is OPTIONAL for Gemini Omni 1.2 Flash media-input or continuation calls, Wan 3.0 frame/reference modes, `generate video` with multi-prompt models, and Kling 3.0 Turbo (`--model kling-v3-turbo`) image-to-video. Text-only Gemini and Wan calls still require a prompt unless their live schema says otherwise.\\n- Hosted AI Production fallback: `videodraft produce <project> --mode full_video` generates one Seedance 2 video per scene. The MCP equivalent is `produce_project` with `mode: \\"full_video\\"`. Poll with `videodraft generations`, then `videodraft finalize <project>` swaps them into the hosted timeline before `export`. In VideoDraft ADE, do not choose this path while `videodraft_editor` is available unless the user explicitly requests hosted production. A selected external app or existing external project also takes precedence over this hosted fallback. Generate or download the scene assets, import them, and assemble/export in the selected app (the native editor by default). If the user explicitly requests another compatible video model for a hosted production, do not use this fixed Seedance path; generate the project shots manually with the requested model and attach them to the hosted timeline.\\n\\n## Cost model\\n\\nThis skill lists no prices because they change with provider routing and sales. Get the current price from `videodraft costs <model> [settings]` or the command\'s `--estimate` flag; both read live prices from the server and spend nothing. Never quote a price from memory. What each kind of job is billed on:\\n\\n- Images: per image (x `--num`). Matrix-priced models (GPT Image, Nano Banana 2.1 and Pro, Seedream v5 Pro, Ideogram 4.5, Grok Imagine 2.0) vary by resolution and/or quality (Nano Banana 2.1 thinking and web search are free); Grok Imagine 2.0 also charges per reference image (up to 3).\\n- Video: per output second; the rate depends on model, resolution, quality and native audio on/off.\\n- Gemini Omni 1.2 Flash: per output second by resolution (720p default). Extend appends an explicit 3-10 seconds to a 1-30s source, whether uploaded or resolved from a prior interaction; 40 seconds total is reachable only while the source stays at or under 30s. Fal BYOK generation, basic source edits and extensions cost zero VideoDraft credits; interaction-ID continuation and separate edit/extend references are unavailable under Fal BYOK; uploaded-source extension is supported.\\n- MiniMax H3: per output second by resolution (768p default). The first 5 reference images are included, then each additional image adds a charge. Reference video and reference audio are NOT billed.\\n- MiniMax H3 Max: per output second at 480p or 768p (default), plus pooled reference tokens: a free allowance, then a charge per 1,000 tokens. An image is `(width x height) / 1024` tokens; a reference video is 2,886 tokens per second at 480p or 7,459 at 768p; reference audio is about 2,121 per second. Pass `--ref-audio-seconds` for an exact estimate with audio references. The server measures each reference image, so a quote that assumes 1024x1024 is a floor.\\n- Wan 3.0: per output second by resolution. Auto duration reserves 30 seconds and reconciles unused credits from the provider-reported output duration. Fal BYOK charges zero VideoDraft credits.\\n- Grok Imagine Video 1.5: per output second by resolution, plus a small charge for each first-frame or reference image. Native generated audio is part of every output.\\n- Kling: per output second by tier and audio; voice control costs more.\\n- Seedance 2.0 / 2.5: per output second by tier and resolution. A video that can\'t be made at the base rate, usually one showing a real person, costs a higher rate; the difference is charged before it starts. `get_model_costs` returns both (`cost` and `higher_rate_cost`). Reference videos bill input seconds alongside output.\\n- Shot-image batches: one image per shot (+1 grid image per scene in `--grid` mode) \u2014 the largest single spend in the pipeline.\\n- VEED Fabric avatar renders: per second by resolution. Avatar creation and its speech are bundled/free; only optional portrait generation/upscaling adds cost before the render.\\n- Direct VEED Fabric: per second by resolution; fast audio costs more than text or normal audio.\\n- MiniMax H3 Max Lip Sync: per output second by resolution (768P default). The video runs as long as the audio (at least 5s; only the first 14.8s is used), billed on the server-measured length rounded up, so at most 15 seconds. Use MP3, WAV, M4A (AAC), or AAC audio; other formats run only on the user\'s own Fal key.\\n- Sync Labs Lipsync 2: per verified audio second.\\n- Voiceover TTS: per character. ElevenLabs Turbo (Eleven v4 Turbo) costs less than Standard (Eleven v4), and cloned `custom-*` voices cost more; this applies to standalone voiceovers AND per-scene narration during `produce`. Quote Turbo with model id `voiceover-turbo` (CLI: `costs voiceover --mode turbo`) and cloned voices with `voiceover-cloned`. Silent tracks are free. Voice cloning itself is a flat fee per clone.\\n- Lyria music: one flat price per track (Clip, 3.5 and legacy Pro differ). Fal BYOK uses zero VideoDraft credits.\\n- Seed Audio 1.0: per actual output minute, prorated and rounded up to a whole credit. VideoDraft reserves the 120-second maximum and refunds the unused portion after generation. Fal BYOK is free.\\n- ElevenLabs audio: sound effects are per second, dialogue is per character, music/voice-changer/dubbing are per started minute (Music v2.5 and v1 cost the same); estimate a composition plan with its total length. Voice changer and dubbing reject source media above 300s in the current synchronous flow.\\n- xAI bills refused requests, so failed Grok generations are not refunded.\\n- Upscales: priced by output size, mode, and (video) duration/fps; see the Upscaling section above.\\n\\nQuote before spending:\\n\\n```bash\\nvideodraft costs gemini-omni-1.2-flash --type video --duration 8 --resolution 720p --audio\\nvideodraft costs topaz-upscale-video --type video --duration 10 --width 1920 --height 1080 --resolution 4k --mode generative\\nvideodraft costs topaz-upscale --type image --width 2048 --height 2048 --scale 2x\\nvideodraft costs topaz-interpolate-video --type video --duration 10 --width 1920 --height 1080 --fps 60 --topaz-model Apollo\\nvideodraft costs minimax-h3 --type video --duration 10 --resolution 2K --ref-images 7\\nvideodraft costs minimax-h3-max --type video --duration 10 --resolution 768p --ref-images 2\\nvideodraft costs flux-3-max --type video --duration 5 --resolution 720p\\nvideodraft costs kling-4.0 --type video --duration 10 --resolution 1080p --ref-video-seconds 6\\nvideodraft costs kling-4.0-video-edit --type video --resolution 720p --ref-video-seconds 12 # source length; output matches it\\nvideodraft costs kling-4.0-flash --type video --duration 10 --ref-video-seconds 6\\nvideodraft costs kling-4.0-flash-video-edit --type video --ref-video-seconds 12 # source length; output matches it\\nvideodraft costs grok-imagine-video-1.5 --type video --duration 8 --resolution 720p --ref-images 4\\nvideodraft costs seedance-2 --type video --duration 15 --resolution 720p --quality standard --audio\\nvideodraft costs grok-imagine-2.0 --type image --resolution 2K --quality medium --num 2\\nvideodraft costs elevenlabs-dubbing --type audio --duration 60\\nvideodraft costs seed-audio-1.0 --type audio --duration 60 # scenario only; model controls actual length\\nvideodraft costs elevenlabs-dialogue --type audio --chars 350\\nvideodraft costs voiceover --type audio --chars 800 # TTS, per character\\nvideodraft costs voiceover --type audio --chars 800 --mode turbo # ElevenLabs Turbo, cheaper per character\\nvideodraft generate video \\"...\\" --model gemini-omni-1.2-flash --estimate # same quote, inline\\nvideodraft generate video \\"...\\" --model minimax-h3-max --duration 8 --resolution 768p --prompt-expansion-mode balanced\\n```\\n\\nMiniMax H3 Max and FLUX 3 Max are Tier 1; Gemini Omni remains the default. Use `videodraft costs` or `--estimate` for current prices before spending.\\n\\n## GenJutsu motion transfer\\n\\n`genjutsu` and `genjutsu-light` are two separate native Higgsfield models. Use `videodraft edit motion` with one subject image, a required `--motion-video`, and up to seven additional `--ref` images. Prompt text is optional. Resolution is `480p`, `720p` (default), or `1080p`. GenJutsu accepts 4\u201330 seconds; Light accepts 4\u201315 seconds. Use MP4 under 100 MB and trim longer sources before submission.\\n\\n```bash\\nvideodraft edit motion character.png \'Use this character throughout the performance\' --model genjutsu --motion-video performance.mp4 --ref outfit.png --resolution 720p --download ./result.mp4\\nvideodraft edit motion character.png --model genjutsu-light --motion-video performance.mp4 --resolution 480p --duration 4.208333 --estimate\\nvideodraft generate video --model genjutsu-light --ref character.png --ref-video performance.mp4 --resolution 480p --no-wait\\n```\\n\\nMCP uses `generate_motion_control_video` with `model`, `motion_video_url`, `reference_images` (1\u20138 URLs), optional `prompt`, and `resolution`. A single `image_url` is accepted instead of `reference_images`; do not send both. `idempotency_key` is an optional UUID for an identical retry. Poll `check_generation_status` with `job_id` and attach completed output to a project shot when required.\\n\\nNo provider settings exist for duration, aspect ratio, seed, FPS, quality tier, orientation, Elements, or audio toggles. Existing Kling flags remain Kling-only. Output follows source motion; Motion Transfer can rebuild the scene rather than preserving every background detail. Both modes use Higgsfield directly; unsupported personal-provider selection returns an error without switching payer.\\n\\nGenJutsu bills each rounded-up source second, priced by resolution. Light bills billable seconds: fractional source seconds plus rounded-up output seconds. Quote with `videodraft costs` or `--estimate`; `get_model_costs` and `--estimate` take the source duration. The server measures the source and rounds the total credit charge up once; Light refunds unused output time. No promotional discount is assumed.\\n","references/pipeline.md":"# VideoDraft pipeline reference\\n\\nEverything here describes the hosted fallback pipeline through the CLI (`videodraft <command>` / `videodraft call <tool>`) or hosted MCP connector (tool names in backticks). Honor the chosen app, existing project\'s editing surface and VideoDraft ADE\'s `<creative_routes>` as described in SKILL.md. Use hosted tools for asset generation and optional script/storyboard stages, then finish in the selected editing app. With no external app selected and the local `videodraft_editor` MCP available, use the native editor reference linked from SKILL.md. Continue through `produce_project` and `export_video` only when the user explicitly requests a hosted web production, or the native editor is unavailable and no external app is selected.\\n\\nUse direct asset tools for standalone images, clips, audio, upscales, and descriptions. Use a hosted project when the user explicitly wants the editable web project, when a hosted storyboard stage is useful, or when the native editor is unavailable and no external app is selected. Script-only uses a script-stage project and stops at the script. For a local production, stop before hosted production, import the generated assets into the selected app, and build/export there; the native editor remains the default when available and no other app or existing project takes precedence.\\n\\n## Stages and their tools\\n\\n| Stage | CLI | Underlying tool |\\n| ---------------------------------------- | --------------------------------------------------------------------------- | ------------------------------------------- |\\n| Idea \u2192 full storyboard project | `videodraft create \\"<idea>\\"` | `generate_storyboard_from_idea` |\\n| Idea \u2192 script only (stop there) | `videodraft create \\"<idea>\\" --script-only` | `generate_script_from_idea` |\\n| Footage IS the video | `videodraft call generate_storyboard_from_media` | `generate_storyboard_from_media` |\\n| Batch shot images | `videodraft shots <project>` | `generate_shot_images` |\\n| One shot image | `videodraft generate image --project <id> --scene N --shot M` | `generate_image` |\\n| Produce (voiceover, captions, timeline) | `videodraft produce <project>` | `produce_project` |\\n| Seedance full-video production | `videodraft produce <project> --mode full_video` | `produce_project` with `mode: \\"full_video\\"` |\\n| Per-shot motion prompts | `videodraft video-prompts <project>` | `generate_video_prompts` |\\n| Motion clip for a shot | `videodraft generate video --project <id>` | `generate_video` |\\n| Attach a finished clip to the timeline | `videodraft attach <project> --scene N --shot M --media <url> --type video` | `attach_media_to_shot` |\\n| Find free b-roll (no credits) | `videodraft stock search \\"<query>\\"` | `search_stock_media` |\\n| Copy stock media onto the CDN | `videodraft stock import <ref>` | `import_stock_media` |\\n| Background music | `videodraft generate music --attach <project>` | `generate_music` / `set_background_music` |\\n| Song with vocals, lyrics or sections | `videodraft generate music --model elevenlabs-music-v2.5 --section \\"...\\"` | `generate_music` with `composition_plan` |\\n| General or reference-driven audio | `videodraft generate audio \\"...\\"` | `generate_audio` |\\n| Sound effect | `videodraft generate sound-effect \\"...\\"` | `generate_sound_effect` |\\n| Dialogue audio | `videodraft generate dialogue --line \\"voice:text\\"` | `generate_dialogue` |\\n| Voice changer | `videodraft generate voice-changer <audio>` | `change_voice` |\\n| Dubbing | `videodraft generate dub <audio_or_video>` | `dub_media` |\\n| Scene voiceover | `videodraft generate voiceover --project <id> --scene N` | `generate_voiceover` |\\n| Avatar script | `videodraft avatar script \\"<idea>\\"` | `generate_avatar_script` |\\n| Avatar + speech | `videodraft avatar create <portrait> --script \\"...\\"` | `create_avatar_video` |\\n| Talking-head render | `videodraft avatar render <avatar_video_id>` | `render_avatar_video` + `get_avatar_video` |\\n| Direct portrait + text/audio | `videodraft avatar fabric <portrait> --text \\"...\\"` or `--audio <file>` | `generate_veed_fabric_video` |\\n| Short portrait clip from audio, up to 2K | `videodraft avatar h3-lipsync <portrait> --audio <file>` | `generate_minimax_h3_lipsync_video` |\\n| Existing video + replacement audio | `videodraft avatar lipsync <video> --audio <file>` | `generate_sync_lipsync_video` |\\n| Existing-video AI edit | `videodraft edit video <video> \\"<change>\\" --model <video-edit-model>` | `edit_video` |\\n| Motion transfer | `videodraft edit motion <image> [direction] --motion-video <video>` | `generate_motion_control_video` |\\n| Image enhancement/upscale | `videodraft upscale image <image>` | `upscale_image` |\\n| Video enhancement/upscale | `videodraft upscale video <video>` | `upscale_video` |\\n| Frame rate / slow motion | `videodraft interpolate <video> --fps 60 [--slowdown 4]` | `interpolate_video` |\\n| Final MP4 | `videodraft export <project>` | `export_video` + `check_export_status` |\\n\\n## Rules that prevent broken results\\n\\n- **The storyboard is generated FROM the script**, never from the raw idea. `videodraft create` runs the whole chain correctly. Don\'t call `generate_storyboard_scenes` with a raw idea as the \\"script\\".\\n- **Visual consistency**: never generate a storyboard shot in isolation. Shot prompts carry `[[asset:Name]]` / `[[shot:X-Y]]` tags that `generate_shot_images` resolves against the project\'s visual assets and prior shots. When generating a single shot whose prompt has no tags, pass `--ref` images yourself (the project\'s visual assets and/or the previous shot\'s image; `projects get` exposes both). For scenes with multiple shots or recurring characters, prefer `videodraft shots <project> --model <selected-image-model> --grid`: preserve an explicitly requested compatible image model, otherwise use `nano-banana-2`. It creates one coherent scene grid, then decodes it into individual shot images.\\n- **Reference-first video**: when identity, styling, or composition matters, do not generate each motion clip from text alone. Generate or select the shot still first, then pass the decoded shot image as `--start-image` or `--ref` to the selected video model. AI Production already composes scene grids and sends them to Seedance as references. If the user explicitly requests another compatible video model, bypass fixed Seedance full-video mode and generate the per-shot clips with the requested model, using the individual decoded shot images as anchors.\\n- **Seedance full-video pricing**: hosted `full_video` has no real-people option. A scene video that can\'t be made at the listed rate, usually one showing a real person, costs a higher rate, charged before it starts.\\n- **Narration voice mode**: ElevenLabs narration runs on Eleven v4. Standard is the default and the best quality. `videodraft produce <project> --voice-mode turbo` (MCP `produce_project` with `voice_mode: \\"turbo\\"`) uses Eleven v4 Turbo, which is faster and cheaper. For one scene, `videodraft generate voiceover --project <id> --scene N --mode turbo` (MCP `generate_voiceover` with `mode: \\"turbo\\"`) does the same. Google, OpenAI and cloned `custom-*` voices ignore the mode.\\n- **Hold off generating shot images while the user is still iterating** on storyboard structure.\\n- **produce \u2192 export ordering**: `export` requires a produced project where every production scene has timeline media. If `produce` returns `generating_shot_images`, poll the job ids it returns, then re-run produce.\\n- **Do not attach motion clips before production exists**: run `produce` successfully first, then attach finished motion clips to the production timeline. Attaching before `production_data` exists cannot place them in the final timeline.\\n- **Generated motion clips do not auto-attach**: after `generate video` completes, attach the clip with `attach_media_to_shot` (`media_type:\\"video\\"`, include `duration_seconds`) \u2014 it replaces the production timeline clip while keeping the storyboard still.\\n- **Talking heads use dedicated avatar tools**: do not use `generate video`. Use managed `avatar create` and `avatar render` for reusable avatars, direct `avatar fabric` for a portrait plus text/audio, `avatar h3-lipsync` for a short (5-14.8s) portrait clip from existing audio at up to 2K, and `avatar lipsync` for an existing video plus replacement audio. Reuse a supplied person image or generate a clear front-facing portrait with the explicitly requested compatible image model, otherwise Nano Banana 2. Managed avatar creation and speech are bundled/free; direct Fabric, H3 Max Lip Sync, Sync, and render are paid.\\n- **Existing-video edits use their own category**: call `edit_video` or `videodraft edit video` with a `video_edit` model when transforming the source itself. Kling O3 also has a reference-generation mode that creates a new guided clip. Wan 3.0 is a text/frame/reference generation model, not a source-video editor. Motion transfer similarly uses `generate_motion_control_video` or `videodraft edit motion` with a `motion_control` model.\\n- **Upscaling preserves rather than redesigns**: use Topaz when resolution, detail, or cleanup is the problem (generative mode by default: Wonder 3.5 / Starlight Precise 2.6, Topaz\'s pick for AI sources; precision for real photos/footage or the cheapest pass; creative only for an artistic reinterpretation; `interpolate` for frame rate or slow motion). Regenerate or edit when the subject, text, framing, continuity, or motion is wrong. Upscale a low-quality avatar portrait before Fabric; do not render a new avatar at 480p just to upscale the result.\\n- **Timeouts on the one-shot create**: if `create` times out at the transport layer, the project was still created server-side \u2014 `videodraft projects list`, take the most recent, and resume with its id. Don\'t start a duplicate.\\n\\n## User-attached media: classify roles first\\n\\nFor EACH attached file decide:\\n\\n- **visual_asset** \u2014 recurring reference (character / product / location / style). Upload, then pass in `visual_assets` of `generate_storyboard_from_idea` (via `videodraft call`), or add to an existing project with `add_visual_assets`. Type must be one of `character | object | location | style | custom` with a short name + concrete description.\\n- **shot** \u2014 the media IS footage for the video. Whole video = footage \u2192 `generate_storyboard_from_media`. Idea + footage \u2192 `generate_storyboard_from_idea` with `shot_media`. Existing storyboard \u2192 `attach_media_to_shots`.\\n- **reference** \u2014 inspiration only \u2192 fold a description into the idea/instructions; don\'t place it as a shot or asset.\\n\\nAmbiguous (e.g. a person holding a product)? Ask the user.\\n\\nUploads persist in the media library \u2014 recall later with `videodraft media list`.\\n\\n## Editing project data safely\\n\\n1. `videodraft call get_project_schema` \u2014 read the structure once per session.\\n2. `videodraft projects get <id> --raw` \u2014 the exact editable blob.\\n3. Modify; then `videodraft call update_project --stdin` with `{\\"project_id\\": \\"...\\", \\"data\\": {...}}`.\\n - Objects deep-merge key-by-key; **arrays replace wholesale** \u2014 send the complete array you\'re changing (e.g. all of `storyboard.scenes`).\\n - Scene shot arrays (`image_prompt` / `shot_types` / `shot_actions` / `search_prompt` / `preview_media`) are auto-aligned; fix-ups come back as warnings.\\n4. Snapshot before risky edits: `videodraft checkpoint create <id> --name \\"before re-script\\"`. Restore with `videodraft checkpoint restore <id> <version>`.\\n\\n## AI Studio sessions (standalone generations)\\n\\nProject generations group automatically, and standalone work is grouped per conversation (MCP) or per working directory (CLI) by the connection session \u2014 see the \\"AI Studio sessions\\" section of SKILL.md. Once the task is clear, give that automatic session a concise 3-6 word title before the first generation:\\n\\n```bash\\nvideodraft sessions name \\"Fox Brand Explorations\\"\\nvideodraft generate image \\"...\\"\\n```\\n\\nNaming creates the session with that title. If generation, a user, or an earlier agent created it first, the existing name is preserved. The command refuses to run while `VIDEODRAFT_SESSION` is set, because that override would send later generations to a different session. Use `sessions create` plus `--session` only to continue or deliberately create a separate group.\\n"}') {
|
|
8232
|
+
return JSON.parse('{"SKILL.md":"---\\nname: videodraft\\ndescription: Create and edit AI videos, images, 3D meshes, Seed Audio, voiceovers, music, sound effects, dialogue, dubbing, storyboards, avatar videos, media upscales, and product/ad videos with VideoDraft. Use whenever the user mentions VideoDraft; asks to generate a video, image, 3D asset, audio asset, ad, explainer, storyboard, avatar, upscale, or batch/CI workflow; wants to download a video from YouTube, Instagram, TikTok, X or another site; or wants to assemble, cut, caption, mix, lay out, inspect, or export a native VideoDraft Editor timeline. Covers cloud `videodraft` CLI/MCP, local `videodraft_editor` MCP, and creative-app routing. Honor the chosen app and existing project; otherwise prefer the native editor when available. Hosted production/export is an explicit choice or fallback when no local editing route is selected or available.\\n---\\n\\n# VideoDraft\\n\\nVideoDraft is an AI video creation platform where asset generation is the priority lane:\\n\\n- **Asset generation**: standalone images, video clips, Seed Audio, voiceovers, music, sound effects, dialogue, voice-changed audio, dubbed media, upscales, and image descriptions. This is the fastest and most important lane. Treat these as complete deliverables when the user asks for assets.\\n- **Asset I/O**: upload local files, download outputs, auto-upload local references, and save generated media where the user can see it.\\n- **3D assets**: standalone Meshy 7.1 and Tripo H3.1 meshes, multi-view generation, complete artifact downloads, and Meshy humanoid rigging through MCP/CLI. Read [references/3d.md](references/3d.md), or `videodraft skills show 3d`. These assets have their own saved library and do not require an AI Studio session or web viewer.\\n- **Cloud render**: render the user\'s own Blender scenes on a cloud GPU with `videodraft render blender`. See [Cloud render](#cloud-render-blender-on-a-cloud-gpu) below and [references/cloud-render.md](references/cloud-render.md), or `videodraft skills show render`.\\n- **Native editing**: local `.vdproject` timelines, cuts, layouts, captions, effects, audio, and exports through the headless VideoDraft Editor. Inside VideoDraft ADE, this is the default production and export lane when `videodraft_editor` is available and no chosen app or existing external project takes precedence.\\n- **Hosted project production**: idea \u2192 script \u2192 storyboard \u2192 hosted production timeline \u2192 exported MP4. Use the early stages for scripts, storyboards, and generated assets when useful. Treat hosted production and export as a fallback when the native editor is unavailable and no external app is selected, or as an explicit destination when the user asks for an editable web project or hosted workflow.\\n\\n## How to connect\\n\\nGeneration billing is selected in VideoDraft Settings \u2192 API Keys on the web, or\\nSettings \u2192 Media providers in VideoDraft ADE. Where enabled,\\n**VideoDraft routing** chooses an equivalent provider internally without changing\\nthe quoted customer credit price. A selected personal key is exclusive: never\\nswitch to VideoDraft credits or another key after an unsupported-model or\\nprovider error. Keep the canonical VideoDraft model ID in CLI/MCP calls. Poll\\nthe original generation after a timeout instead of starting another paid job.\\nNew provider connections can support only a subset of models and settings;\\nfollow the server\'s availability response. ElevenLabs remains audio-only.\\nFor Pika GPT Image 2.6, supply an explicit quality (`low`, `medium`, `high`,\\n`xhigh`, or `max`); `auto` is not supported by that connection. Nano Banana 2\\nLite is 1K only. Never remove requested controls or substitute a different\\nmodel merely to make a personal connection accept the job.\\n\\nCloud generation has two equivalent surfaces (same backend, credits, and hosted projects). Native timeline editing is a separate local surface:\\n\\n1. **CLI** (preferred when you have a shell): run `videodraft` if it\'s on PATH; otherwise `npx -y videodraft@latest` runs it with no install (needs Node \u226520; the `-y` skips npx\'s install prompt so it runs non-interactively; the package is fetched on first use and cached). For heavy use, `npm install -g videodraft`. If there\'s no Node/shell here but the MCP connector below is available, use that instead; if neither works, tell the user how to install (https://videodraft.ai/cli).\\n - Auth \u2014 pick by context, don\'t guess:\\n \u2022 INTERACTIVE (a human is in the session, e.g. Claude Code / Codex): on exit code 3 (\\"not authenticated\\"), tell the user to run `videodraft login` in their terminal \u2014 it opens their browser for a one-click VideoDraft sign-in (OAuth), no key to copy. Wait for them to confirm it succeeded, then retry the command. This is the preferred path when the user is present.\\n \u2022 HEADLESS / CI (no browser): set `VIDEODRAFT_API_KEY=vd_mcp_...` (a token the user mints at https://app.videodraft.ai/mcp-keys).\\n \u2022 SECURITY: never ask the user to paste a `vd_mcp_...` token into the chat \u2014 use browser `login` or the env var so the token never lands in the transcript.\\n - Every command accepts `--json` (parse this, don\'t scrape text). Exit codes: 0 ok, 1 error, 2 usage, 3 auth (see Auth above), 4 insufficient credits (\u2192 tell the user, don\'t retry).\\n - Tool discovery: start with `videodraft tools list` for the grouped catalog, then narrow with `videodraft tools list --lane assets`, `--lane asset_io`, `--lane project_data`, or `--lane production`.\\n - Asset lane: `videodraft generate ...`, `videodraft edit video|motion`, `videodraft avatar ...`, `videodraft upscale ...`, `videodraft interpolate ...`, `videodraft upload`, and `videodraft download`.\\n - Full API access: `videodraft tools schema <name>`, `videodraft call <tool> --args \'<json>\'`.\\n2. **MCP connector**: if VideoDraft MCP tools (e.g. `generate_storyboard_from_idea`) are available, call them directly \u2014 the CLI\'s curated commands map 1:1 onto these tools.\\n3. **Native editor MCP** (`videodraft_editor`): prefer this for project production, timeline assembly, cutting, layouts, transitions, captions, audio placement, and final export when no chosen app or existing external project takes precedence. Inside VideoDraft ADE on a supported Mac, Claude, Codex, OpenCode and Grok receive it automatically in both Code and VideoDraft modes. It runs headlessly, so an Open Editor click is not required. Start with `project_manage` (`operation: \\"project\\"`, action `list`, `open`, or `create`); standalone asset generation remains in the cloud CLI or MCP.\\n\\nSend native editor edits serially, batching everything a request needs into one `edit_apply` recipe. Pass the latest `context` when a person may be editing at the same time, so a stale write is refused. See [references/editor.md](references/editor.md) for project selection, media import, timing units, edit recipes, verification, export, and the `videodraft-editor` terminal bridge.\\n\\nIf you are reading this skill through `videodraft skills show skill`, run `videodraft skills show editor` before native editor work to load that reference.\\n\\n**VideoDraft ADE routing rule:** honor the app named in the current request and the editing surface of an existing project. A `<creative_routes>` block selects the chat\'s routes and overrides this skill\'s generic tool defaults; an explicit current request takes precedence over that block. Work directly in the chosen app, combining its supported scripting, CLI, verified MCP and Computer Use wherever useful. Do not turn a chosen-app request into a native-editor handoff or silently switch destinations after an error. Keep the editable source and dependencies, preserve unsaved work, and verify the saved project and output. Generation model, payer and spending limits remain separate from the editing app.\\n\\nWhen `creative_apps` is actually exposed, read the chosen app\'s bundled guide before using it. App topics include `after-effects`, `blender`, `resolve`, `premiere`, `final-cut`, `capcut`, `unity`, `remotion` and `hyperframes`. These app guides belong to VideoDraft ADE and describe installed-version setup and supported routes; users do not need personal per-app skills. When `creative_mcp` is also exposed, use its live discovery and the app guide for connected tools, and retain request IDs to recover uncertain operations. Computer Use is available only when its tools and permissions are present. These are VideoDraft ADE workspace tools, not public `videodraft` CLI commands. If they are absent, use the available app tools or explain the missing route without inventing commands or assuming a connector is installed.\\n\\nWith no chosen external app or existing external project, the presence of `videodraft_editor` means the native editor is ready, even when no editor window is visible. Use cloud tools to generate or source assets and, when helpful, scripts or storyboards. Do not call hosted `produce_project` / `videodraft produce` or `export_video` / `videodraft export` by default. Import the assets into the native project, assemble there, and export with native `delivery_manage` `submit`. Use hosted production/export when the user explicitly asks for the web workflow, or when the native editor is unavailable and no external app is selected. Do not silently fall back to hosted production after a local tool error.\\n\\n## First decision: asset, hosted project, or native edit?\\n\\n- **One standalone asset** (image, clip, voiceover, music track, sound effect, dialogue track, voice-changed file, dubbed media file, upscale, or description): generate it directly. Do NOT create a project.\\n - `videodraft generate image \\"a red fox in snow, cinematic\\" --ar 16:9 --download ./out/`\\n - `videodraft generate video \\"slow dolly over a misty lake\\" --model gemini-omni-1.2-flash --duration 6 --download ./out/`\\n- **A chosen creative app or existing external project**: continue in that app using the routing rule above. Keep its project editable; use handoff only for a requested transfer or accepted fallback.\\n- **Any final video, production timeline, existing footage, local `.vdproject`, or hands-on edit with no other app selected**: use `videodraft_editor` when available. List or open the intended local project, or create a native project for a new production. The editor can work without showing its UI.\\n- **Assemble the cut on the timeline, not in a script.** Build the edit on the native timeline (or in the user\'s chosen editing app) so the user can trim, reorder and retime it by hand afterwards. Do not stitch or render the deliverable with ffmpeg, Python or moviepy scripts unless the user asks for that; a script leaves them a flat file with nothing to adjust. Code-built video (Remotion, motion graphics, 3D renders) and file conversions the editor needs before import are fine.\\n- **A small set of related assets**: still stay in the asset lane. They are grouped automatically (see [AI Studio sessions](#ai-studio-sessions)); give the current group one useful task-specific name with `videodraft sessions name \\"<name>\\"`. Switch to a project only when the deliverable matches the project criteria below or the user asks to attach the assets to one.\\n- **A generated multi-scene video / ad / explainer**: use hosted tools for any needed script, storyboard, shot planning, or generated assets, then build/export in the selected editing app. With no app selected and the native editor available, stop before hosted production, import the assets, and build/export the native timeline. A hosted project is optional unless the user wants the web project or its storyboard workflow.\\n- **A hosted web project or hosted export**: use the hosted pipeline when the user explicitly asks for it, or the native editor is unavailable and no external app is selected.\\n- **Just a script** (no video asked for): A script-only request creates a script-stage project but stops at the script. Use `videodraft create \\"...\\" --script-only`; do not build a storyboard the user didn\'t ask for.\\n- **Iterating on existing work**: identify the surface first and preserve an external project\'s app unless the user requests a transfer. Use `project_manage` `project` with `action: \\"list\\"` for native projects and `videodraft projects list` only for hosted work. Never create a replacement project just to change an existing one.\\n\\n## Choose the model from the task\\n\\nIf the user names a model, use it when compatible. If it cannot handle the request, explain why and recommend alternatives instead of silently switching. Otherwise inspect the inputs, duration, audio, quality, speed, and cost, check the live catalog, and pass an explicit model.\\n\\n### Seedance 2.x pricing\\n\\nSeedance 2.0 and 2.5 have no real-people option, including for hosted `full_video` production. A video that can\'t be made at the listed rate, usually one showing a real person, costs a higher rate; the difference is charged before it starts. When a real person is involved, quote both prices (`get_model_costs` returns `cost` and `higher_rate_cost`). Don\'t name providers to the user.\\n\\n**How to pick a model. Follow this order every time:**\\n\\n1. The user named a model: use it, never substitute.\\n2. Otherwise pick a **Tier 1** model.\\n3. Use a **Tier 2** model only when no Tier 1 model supports the request, and say why. Never pick Tier 2 on your own for price, speed, novelty or variety.\\n\\nTier 1: images `nano-banana-2.1`, `nano-banana-2`, `nano-banana-pro`, `nano-banana-2-lite`, `gpt-image-2.6-flare`, `gpt-image-2.6-sunburst`, and `recraft-v4` for vector/SVG only; videos `gemini-omni-1.2-flash`, `seedance-2.5`, `seedance-2`, `kling-4.0`, `kling-3.0`, `kling-o3`, `flux-3-max`, `minimax-h3-max`; video edits `gemini-omni-1.2-flash`; talking-head portraits `veed-fabric`, `minimax-h3-max-lipsync`; motion transfer `kling-v3-motion-control`; audio ElevenLabs for speech tools, Lyria 3.5 for music at any length.\\n\\nTier 2 is every other catalog model (`wan-3.0`, `flux-3-image`, `minimax-h3`, `kling-4.0-flash`, `kling-v3-turbo`, `kling-2.6-pro`, `grok-imagine-video-1.5`, `happy-horse`, Veo 3.1, Seedream, Grok Imagine images, FLUX images, `sync-lipsync-2` and the rest). All of them stay available by name. Real Tier 2-only jobs: document or web-page references (`wan-3.0`), re-syncing existing footage (`sync-lipsync-2`).\\n\\nEvery `videodraft models image|video|audio --json` entry carries `tier` (1 or 2), and the top-level `recommended` array is Tier 1, best first. That catalog beats this page when they disagree.\\n\\n**Speech in video:** write the dialogue in the video prompt. `gemini-omni-1.2-flash`, `seedance-2.5`, `seedance-2`, `kling-3.0` and `kling-o3` speak it natively. For a specific voice add a Seedance reference audio clip (`--ref-audio`) or a Kling bound voice. Do not plan silent video + TTS + lip-sync. Lip-sync tools are only for a portrait presenter talking to camera, or for re-syncing footage that already exists. Off-screen narration and voiceover are unaffected: keep using `generate voiceover` for those.\\n\\n**Images:**\\n\\n- `nano-banana-2.1`: general default, editing, text, consistency, and references. Add `--thinking-level medium` or `high` for complex layouts, infographics or dense text.\\n- `nano-banana-2`: the previous default; use it when temperature control is wanted.\\n- `nano-banana-pro`: maximum quality. `nano-banana-2-lite`: fast, inexpensive drafts.\\n- `gpt-image-2.6-flare`: fast everyday generation and editing, and the pick for posters, logos, signs, title cards, readable text and precise composition. Use `gpt-image-2.6-sunburst` when extra precision, fine detail or edit consistency matters (it takes longer). GPT Image 2.6 replaces 2.5, so always pass a 2.6 id. Both use the same basic options as GPT Image 2: references (up to 16), aspect ratio, 1K/2K/4K resolution, image count (1-4), and quality, with PNG output and no seed. Quality adds xhigh/max; auto is charged at the max tier, so pass `--quality high` for a cheaper render (low and medium are only modestly cheaper than high). Other model recommendations are unchanged; explicit `gpt-image-2` requests still use GPT Image 2.\\n- Animated GIFs (stickers, loops, emoji, icons, short reactions): GPT Image 2.6 with `--gif`, plus `--frames 2-16` (default 8) and `--frame-ms 20-2000` (default 120). Describe the motion and a seamless loop in the prompt; `--ref` animates a given subject. Frame size follows `--ar`; `--resolution` does not apply. 2-8 frames cost the same, so prefer 8. GIFs are standalone outputs, not storyboard shots, batches or video start frames, and a personal Pika key cannot make them. For long or smooth motion use a video model.\\n\\n**Videos:**\\n\\n- `gemini-omni-1.2-flash`: default for 3-15s generation and 3-15s source edits, at 360p/720p/1080p/4K with audio always on. Generation takes up to 10 total images including first/last frames, and 3 creative video references (<=15s each). First plus last frame caps output at 10s. Use `--video-task generate` for creative video references; one `--ref-video` without a source remains a legacy source edit. `--source-video` edits a 3-15s source; `--video-task extend` or `--extend` adds 3-10s to a 1-30s source, up to 40s total. Edit/extend accept exactly one source video and up to 2 image references on Google, with no creative video references. `--previous-interaction-id` resolves a completed Google output as the next source; the same source limits apply. Google supports `--seed`; Fal does not. Fal BYOK uses callable v1.2 text/image/reference/edit/extend endpoints at zero VideoDraft credits, requires a prompt, cannot mix frames with references, and cannot take edit/extend references or Google interaction IDs. Never fall back to paid Google under BYOK. Atlas Cloud, Pika and Higgsfield do not expose a verified 1.2 contract and must not list this model. Separate audio references are not available. For silent shots describe quiet ambience and mute the generated track in the editor.\\n- `grok-imagine-video-1.5` (Tier 2): 1-15s text, first-frame, or 1-7 reference-image generation with native audio. Text/first-frame modes support 480p, 720p, and 1080p; reference mode supports 480p/720p. Cite references as `<IMAGE_0>` through `<IMAGE_6>`. It has no last frame, seed, negative prompt, quality tier, reference video, or reference audio.\\n- `minimax-h3` (Tier 2): 480p/768p/2K/4K (768p default), native stereo audio, and 5-15s text, first/last-frame, or mixed-reference generation. Reference mode accepts up to 9 images, 3 videos, and 3 audio clips, with at most 12 files total. Cite them as `Image 1`, `Video 1`, and `Audio 1` in array order.\\n- `flux-3-max` (Tier 1, before `minimax-h3-max`): fast 5-20s video at 720p/1080p, 24fps, optional native audio. Text, first frame, first + last frame, or up to 10 timed keyframes (`--keyframe shot.png@2.5`, repeatable). `--reasoning-level high|low` (high default), `--seed`, and explicit whole-second duration (default 5s). No Draft/quality mode or auto duration. Quote current pricing with `videodraft costs flux-3-max --type video --duration 5 --resolution 720p` or `--estimate`. Keep Gemini Omni as the default.\\n- `minimax-h3-max`: 480p/768p (768p default), native audio, and 5-15s text, first/last-frame, or mixed-reference generation. Reference mode accepts up to 9 images, 3 videos, and 3 audio clips, with at most 12 files total, cited as `Image 1`, `Video 1`, and `Audio 1` in array order. It supports a reproducibility seed and `disabled` / `balanced` / `quality` prompt expansion.\\n- `wan-3.0` (Tier 2): unified 2-30s text, first/last-frame, or ordered mixed-reference generation at 480p/720p/1080p, with optional native audio. Reference mode accepts up to 10 images, 5 videos, and 5 audio clips, at most 20 media files total; video and audio each total at most 15 seconds. `--auto-duration` reserves 30 seconds and reconciles to the provider-reported output length. Document/web references use `--file-url` or `--web-url` and require `--thinking`.\\n- `seedance-2`: video/audio/mixed references, wider ratios, selectable audio, or 11-15s with both first and last frames. Duration alone up to 15s stays on Gemini Omni 1.2. `standard` is the default; use `mini` for a cheaper draft or `fast` for speed (both are 480p/720p only).\\n- `seedance-2.5`: 4-30s single takes and up to 50 references (30 image, 10 video, 10 audio). Same modes as 2.0, one quality tier, 480p/720p/1080p. Reach for it when a shot must run past 15s or carry more references than 2.0 allows.\\n- `kling-4.0` is the preferred Kling, after Gemini and Seedance (details below). `kling-o3`: reference images plus structured image/video elements, first/last frames, multi-prompt, audio control, or 4K. O3 allows 7 combined image references and image-backed elements, reduced to 4 combined items when a video-backed element is present. `kling-3.0`: image-to-video can use structured image/video elements and bind a custom Kling voice ID to either element form. Tier 2, by name: `kling-v3-turbo` (fast polished 3-15s with first frame, multi-prompt, and audio, but no elements) and Kling 2.6 Pro (top-level voice IDs cited as `<<<voice_1>>>` and `<<<voice_2>>>`).\\n- Existing-video edits use `videodraft edit video`, not generic generation. `gemini-omni-1.2-flash` is the preferred edit model and is chosen automatically when you omit `--model`: source from 3 to 15s, up to 2 reference images on Google, 360p/720p/1080p/4K with audio. Creative `--ref-video` inputs are NOT accepted on an edit, because an edit takes exactly one input video; use `generate video --video-task generate` to guide a new clip with video references instead. Omitting `--model` on a longer or unmeasurable source spends nothing and prints a priced menu (what each model edits, what it drops, what it costs) so you can put the choice to the user. **Truncation:** Gemini (15s), `kling-4.0-video-edit` (30s) and `kling-4.0-flash-video-edit` (20s) refuse an over-length source. Happy Horse silently edits just the first 15s, Kling O3 the first 10s, and Grok the first 8s. The command warns you when that will happen; always relay it to the user. `kling-4.0-video-edit` (Tier 2) can edit a whole source longer than 15s and up to 30s, so the priced menu offers it for long sources. Gemini regenerates the audio track, so use Happy Horse or Kling O3 with `--preserve-audio` when the source audio must survive. Choose Grok for the cheapest prompt-only edit, Happy Horse for up to 5 image references, or Kling O3 for controlled reference-image edits.\\n- To edit a source longer than 15s without losing its tail, cut it into <=15s pieces in the selected editing app (`videodraft_editor` by default), edit each with Gemini, and reassemble in that app. VideoDraft has no server-side split/concat, so this path needs a local editing route.\\n- Kling O3 also has a reference-generation mode. Use `videodraft generate video --model kling-o3-video-ref-edit` with exactly one `--ref-video` to generate a new guided clip; use `videodraft edit video` when changing the source itself. For new mixed-reference generation use Seedance 2 / 2.5.\\n- Motion transfer uses `videodraft edit motion` with Kling V3 by default, or Kling 2.6 when explicitly requested or lower cost matters. It requires a subject image and a motion-reference video. For native Higgsfield, choose `--model genjutsu` or `--model genjutsu-light`: one source MP4 (4\u201330s or 4\u201315s), 1\u20138 ordered images (the positional subject plus repeatable `--ref`), optional prompt, and `--resolution 480p|720p|1080p` (default 720p). No quality/orientation/Element/audio/seed controls. Trim longer sources first. `--duration` is estimate-only. Light bills fractional source seconds plus rounded-up output seconds; unused output time is refunded. Runs on VideoDraft credits or a selected Higgsfield API key only.\\n- `kling-4.0` (Tier 1, the preferred Kling; Kling 3.0 and O3 keep 4K): Kling\'s newest model, with three modes like Kling O3. Text mode; image-to-video from `--start-image` with an optional `--end-image` (framing follows the image, so no `--ar`); or reference mode, chosen when you add `--ref`, `--ref-video` or `--element`, with an optional `--start-image` (no end frame), up to 10 images, 5 `--ref-video` clips and 7 `--element` entries (3 with voice, 3 video), cited as @Image1, @Video1, @Element1. 3-30s, 720p/1080p, multi-shot `--segment` up to 30s in total, audio always on; no seed or negative prompt. Reference and element videos are billed by their length plus the output, at least twice the output; quote with `videodraft costs kling-4.0 --type video --duration 10 --ref-video-seconds 6`.\\n- `kling-4.0-video-edit` (Tier 2, by name or for a long source): `videodraft edit video <source> \\"<prompt citing @Video1>\\" --model kling-4.0-video-edit` edits a whole 3-30s source with up to 10 `--ref` images and 7 image-only `--element` entries, 720p/1080p. The output matches the source unless you pass `--duration` (3-30). It bills the source plus the output, at least twice the output, and cannot keep the source audio; quote with `videodraft costs kling-4.0-video-edit --type video --ref-video-seconds <source seconds>`.\\n- `kling-4.0-flash` (Tier 2, by name): the faster, cheaper 720p tier of Kling 4.0, with the same three modes and inputs. Text mode; image-to-video from `--start-image` alone (no `--end-image`); or reference mode with an optional `--start-image`, up to 10 images, 5 `--ref-video` clips of 3-20s and 7 `--element` entries (up to 3 video-backed, 3-8s each; no `voice_id`), cited as @Image1, @Video1, @Element1. Reference and element videos share 5 clips and 20s; 15 inputs in total. 3-20s, 720p only, one prompt (no `--segment`), audio always on. It costs less per second than Kling 4.0 and bills reference and element videos the same way; quote with `videodraft costs kling-4.0-flash --type video --duration 10 --ref-video-seconds 6`. Use `kling-4.0` for multi-shot, an end frame, voices, 1080p or more than 20s.\\n- `kling-4.0-flash-video-edit` (Tier 2, by name): `videodraft edit video <source> \\"<prompt citing @Video1>\\" --model kling-4.0-flash-video-edit` edits a whole 3-20s source with the same inputs as `kling-4.0-video-edit` (up to 10 `--ref` images and 7 image-only `--element` entries) at 720p only. The output matches the source unless you pass `--duration` (3-20). It bills the source plus the output, at least twice the output, and cannot keep the source audio; quote with `videodraft costs kling-4.0-flash-video-edit --type video --ref-video-seconds <source seconds>`.\\n- Veo 3.1, Grok Video 1.5, Happy Horse and the other Tier 2 video models: only when explicitly requested or when no Tier 1 model fits.\\n\\n**Audio and utilities:**\\n\\n- Use Seed Audio 1.0 for open-ended text-to-audio, speech/music/sound synthesis, voice conditioning, or prompt-driven editing with up to three audio references or one image. Use `videodraft generate audio`. Reference clips are `@Audio1`, `@Audio2`, and `@Audio3` in array order. There is no duration input. Output is up to two minutes and is billed per actual output minute; the two-minute maximum is reserved during generation and the unused part refunded. The CLI automatically retries transient responses with one operation key. To recover after the CLI process itself is interrupted, set `--idempotency-key <uuid>` on the original command and reuse it.\\n- Prefer ElevenLabs for voiceover, dialogue, voice changing, dubbing, and sound effects. Honor an explicitly selected supported TTS voice/provider. Use `lyria-3.5` for all music, short or long (up to ~3 minutes, one flat price per track), with vocals/lyrics or instrumental arrangements. When `--model` is omitted the CLI sends no model and the server default applies, which is `lyria-3.5` wherever the backend supports it. If the server answers that `lyria-3.5` is an unknown model, that backend predates it: rerun without `--model` (the server default then applies), or use `lyria-3-pro-preview` for a track longer than 30 seconds. Ask for the length in the prompt. Keep `lyria-3-clip-preview` (fixed ~30s) and `lyria-3-pro-preview` for explicit requests. For Lyria, put desired length, lyrics and \\"instrumental only, no vocals\\" in the prompt; `--length` and `--instrumental` are ElevenLabs-only. Use ElevenLabs Music for exact timing, composition plans, or a style reference track. Lyria allows 10 reference images on Google, 1 on Fal BYOK; Fal 3.5 prompts are limited to 5000 characters. BYOK uses zero VideoDraft credits. ElevenLabs Music means `elevenlabs-music-v2.5` (`elevenlabs-music` is an alias for it); use `elevenlabs-music-v1` only when the user asks for v1 by name.\\n- On a personal ElevenLabs key, the user\'s ElevenLabs plan caps how many requests run at once (often 2 for music, a few for everything else). Run a few ElevenLabs jobs at a time. If one fails with \\"too many concurrent requests\\", rerun it once after the others finish; if it fails again, tell the user instead of retrying. Other ElevenLabs errors (quota, key, permissions) are for the user: report them as given.\\n- ElevenLabs voiceover runs on Eleven v4 in two modes. Standard is the default and the best quality. Turbo (Eleven v4 Turbo) is faster and cheaper. Both are billed per character. Keep Standard unless the user wants faster or cheaper speech. Pick it with `generate voiceover --mode standard|turbo`, `produce --voice-mode standard|turbo`, or MCP `generate_voiceover.mode` / `produce_project.voice_mode`, and quote Turbo with `costs voiceover --chars <n> --mode turbo`. Google, OpenAI and cloned `custom-*` voices ignore the mode (cloned voices cost more per character). v4 has no style or speed settings and no SSML `<break>` tags; audio tags such as `[whispers]` work. Dialogue stays on Eleven v3.\\n- For ElevenLabs voiceover, dialogue, and voice changing, accept a supplied raw voice ID (16-64 alphanumeric characters) or `elevenlabs-<id>`. The voice catalog is for discovery, not an allowlist. Do not reject or substitute a supplied ID because it is absent from `videodraft models voices` / `list_available_voices`. Use `--voice <id>` for voiceover and voice changing, or repeat `--line \\"<id>:Text\\"` for dialogue; for example, `--voice kPzsL2i3teMYv0FxEYQ6` and `--line \\"elevenlabs-kPzsL2i3teMYv0FxEYQ6:Hello.\\"` use the same voice. The voice must be accessible to the provider account used for generation. Private or cloned voices may require the user\'s connected ElevenLabs key. Kling video-control IDs and MiniMax `custom-*` IDs are separate voice systems.\\n- Search the dynamic ElevenLabs catalogue with `videodraft models voices --search \\"warm narrator\\" --language en --source library --page-size 20 --json`. Repeat the same filters with `--page-token <next_page_token>` for more results. `--accent` and `--gender male|female` are optional. ElevenLabs BYOK defaults to the connected account\'s voices; `--source library` explores public voices on that key. Descriptions, previews and access scope help choose a voice. Public discovery does not guarantee Fal access; private voices require their owning/shared ElevenLabs account. Existing VideoDraft prices apply on direct platform generation and Fal fallback; BYOK remains zero VideoDraft credits.\\n\\n- A character who needs to TALK:\\n - **Speaking inside a scene**, or any ordinary clip with dialogue: `generate video` with the line in the prompt, in quotes, with who says it and how. `gemini-omni-1.2-flash`, `seedance-2.5`, `seedance-2`, `kling-3.0` and `kling-o3` all voice it natively. For a specific voice use a Seedance `--ref-audio` clip or a Kling voice bound per element. This is the default path; do not generate speech separately and lip-sync it on.\\n - **Talking to camera from a portrait** (presenter, spokesperson, explainer): the avatar lane, and VEED Fabric is preferred. Use managed `avatar create` then `avatar render` for a reusable avatar record with bundled speech, `avatar fabric` for a one-off portrait plus text or existing audio, and `avatar h3-lipsync` for a short (5-14.8s) portrait clip from existing audio at up to 2K. Not for in-scene shots: Fabric animates a portrait facing the lens, so a cinematic request comes back as a head-on talking headshot.\\n - **Footage that already exists plus replacement audio** (re-dub, translation): `avatar lipsync`. This is the only job for Sync Labs unless the user names it.\\n- Enhancement: use Topaz image/video upscaling only when the content is already correct. Use image 1x for cleanup, 2x by default, 4x when justified; use video 2x by default. Edit or regenerate creative errors.\\n\\nSee [references/models.md](references/models.md) for the detailed routing table and exact capability limits.\\n\\nProvider routing uses a maintained local price catalog, with exact setting compatibility and account rules. Platform requests prefer Google\'s direct image/video APIs and BytePlus for Seedance 2.0/2.5 before comparing public prices. Other models retain their supported provider routing. Agents should keep using normal model IDs and `get_model_costs` / `--estimate` for customer credits. Do not choose a vendor from a marketing starting price or retry an accepted generation to chase a lower price. Unknown or expired comparable costs retain the existing route; a selected personal provider key stays exclusive and overrides platform-account preferences.\\n\\nTemporary provider promotions are excluded from routing prices. With an Atlas personal key, H3 Max supports text or first/last-frame generation at 480P/768P only with `prompt_expansion_mode: \\"disabled\\"` and no seed. Balanced/quality expansion, reference generation and H3 Max Lip Sync require the existing Fal path. Atlas H3 Max is not selected automatically while its published price units remain inconsistent.\\n\\nThe live catalogs show discoverable models. Historical IDs remain valid for explicit requests and recreating saved generations, subject to provider availability. Do not pick a hidden model unless the user explicitly requests it.\\n\\n## Matching AI Studio controls\\n\\nIdeogram 4.5 (`ideogram-v4.5`) replaces 4.0 and remains Tier 2. Quality is low/medium/high (default medium) and is priced per output; regular edits also offer very_low. Supports 1-8 outputs, 1K/2K, seed, and text-only `--prompt-expansion true|false`. Use `--source-image` plus up to four `--ref` images, or source-first `--ref` ordering. `--edit-precision high` and `--mask` require Auto size with no resolution; masks match source dimensions, black edits and white preserves, and reduce additional references to three. See [models](references/models.md) for custom dimensions and examples.\\n\\nFLUX 3 image (`flux-3-image`, separate from `flux-3-max` video) is Tier 2. It generates and edits with up to 10 `--ref` images, `--num 1..4`, `--resolution 1K|2K|4K` (default 1K), `--prompt-expansion true|false` (default true) and `--ar` with 14 ratios plus `auto`. Each image is priced by output size (resolution and ratio); `auto` is quoted at the tier\'s highest price. Without `--ar`, a new image is 16:9 and an edit follows its first reference. No seed.\\n\\nUse `models image --json` / `models video --json` for the accepted options. Nano Banana 2.1 exposes `--thinking-level minimal|medium|high` (default minimal; no extra charge) and `--google-search-grounding true|false`, but no temperature. Nano Banana Pro/2 expose `--temperature 0..2` and `--google-search-grounding true|false`. Qwen uses one `--ref` plus `--horizontal-angle 0..360`, `--vertical-angle -30..90`, and `--zoom 0..10`; its text prompt is optional. Recraft generates SVG and accepts `--quality Normal|Pro`, repeatable `--recraft-color \'#RRGGBB\'`, and `--recraft-background \'#RRGGBB\'`. Original Nano Banana and VideoDraft Image use fixed 1K output.\\n\\nKling 3.0 / 2.5 Pro accept `--cfg-scale 0..1` and `--negative \\"\\"` to clear a negative prompt. Seedance 2/2.5, Wan 3.0, Gemini Omni generation accept `--auto-duration`; do not combine it with `--duration`. Kling O3 reference/edit modes accept image-only `--element` objects, at most four combined with `--ref`.\\n\\nTopaz image results may be immediate or queued. The CLI waits by default and downloads either result with `--download`; `--no-wait` returns a queued job ID. Raw MCP callers must poll `check_generation_status` when `upscale_image` returns `job_id`.\\n\\n## Remove image or video backgrounds\\n\\nUse `videodraft remove-background image <url|file>` for a transparent PNG with Pixelcut, or `videodraft remove-background video <url|file>` for transparent VP9 WebM with VEED Fast. These preserve the existing subject and require no prompt. Local files upload automatically. Both commands wait by default and accept `--download`, `--no-wait`, `--session`, and `--idempotency-key <uuid>`. Keep `.png` / `.webm` extensions; do not name the video `.mp4`.\\n\\nVideo defaults to `--subject person` with refined edges. Use `--subject object` for products/animals, or `--no-refine-edges` for a cheaper pass. Video sources must be VideoDraft-hosted MP4/MOV, at most 100 MB, 5 minutes and 120 fps. Images support original public URLs up to 50 MB. Never send a thumbnail. Quote current pricing with `remove-background video clip.mp4 --estimate`; the server reads actual frames. `--max-credits <n>` caps the authorized charge; `0` requires BYOK.\\n\\nRaw MCP tools are `remove_image_background` and `remove_video_background`; poll `check_generation_status` with their `job_id`. `get_model_costs` accepts `model_id: \\"pixelcut-background-removal\\"` or `\\"veed-background-removal\\"`, plus `source_url` for an exact quote (required for video) and optional `refine_edges`. Supply `max_credits` from the quote. These tools support VideoDraft credits or Fal BYOK only. After an uncertain submission, poll its job ID or reuse the same idempotency key; never start another paid job to recover a lost response.\\n\\nFor an existing native-editor clip, follow the guarded [background-removal handoff](references/editor.md#background-removal-handoff): prepare the original source, process it through the CLI/MCP, import the transparent result, then apply it while keeping the original linked sound. PNG works directly; VP9 WebM requires an alpha-preserving MOV conversion and verification before import. Check conversion availability before spending credits.\\n\\n## Cloud render (Blender on a cloud GPU)\\n\\nUse Cloud render when the user wants their own Blender scene, an animation or a frame range, rendered on a cloud GPU, for example because rendering locally is too slow. It renders a saved `.blend`; it does not generate or edit the scene.\\n\\n```bash\\nvideodraft render prices # live price per GPU-minute for each GPU size on offer\\nvideodraft render blender scene.blend --frames 1-240 # upload, render, wait, download media/renders/<job_id>.mp4\\nvideodraft render stop # switch every GPU off when your task is done\\n```\\n\\n- Pack the scene first (Blender: File > External Data > Pack Resources, then save). Files outside the `.blend` are missing on the GPU, and scripts inside it never run. The engine (Cycles or Eevee) is whatever the scene is set to.\\n- `videodraft render prices` lists the GPU sizes on offer; `--gpu full` (96 GB) is the default and fastest. When smaller sizes (`half`, `quarter`) are offered they cost less per frame but take longer: use them when the user wants it cheaper and is not in a hurry, and run a render again on a bigger size if it fails for GPU memory.\\n- Every job gets its own machine, so several renders run at the same time. A machine bills per second while it is on, at the rate `videodraft render prices` returns, and switches itself off 1 minute after its last job. State the rate and get a go-ahead before long renders; `render status` shows a job\'s cost so far and an estimate. When your task is done, run `videodraft render stop` so idle time is not billed.\\n- When Google has no regular GPU for a few minutes, a full-GPU job also asks for a Spot GPU at a higher rate (`render prices` shows it), and the first GPU found takes the job; a Spot machine that is already on can also take the next job at once. When you state the rate before a long render, give the Spot rate too. Google can reclaim a Spot machine; the job then continues from its finished segments. Tell the user when a job runs on Spot, and use `--no-spot` when they want the regular rate only or the render must not be interrupted.\\n- Waiting for a GPU is never billed. A job waits for Google to hand over a machine (usually 1 to 10 minutes, longer at busy times), then pays for about 15 seconds of start-up, the rendering, and about a minute of idle time before its machine switches off (none when another job takes the machine over). Test renders cost a few credits, so run tests and proofs in the cloud too, and submit jobs together. A queued job may have a machine starting or charges from an earlier attempt; check its phase and cost. Its displayed machine is only a candidate until the job is claimed.\\n- Name jobs with `--name \\"S4 final\\"` (default: the scene\'s file name and frames); `render status`, `wait`, `cancel` and `resume` take the name, and `render list --name` finds it, so you need no file of job ids.\\n- Exit code 4 means credits ran low, before the job started or mid-render (the job pauses and keeps its finished segments; uploading and starting need a minimum balance). Tell the user; after they top up, run `videodraft render resume <job_id>`.\\n- Renders can take hours. For long jobs use `--no-wait`, then `videodraft render wait <job_id>`. Never submit the same render again to recover from a lost wait; check `videodraft render list`.\\n\\nFlags, outputs and the MCP flow (`cloud_render_*` tools): [references/cloud-render.md](references/cloud-render.md), or `videodraft skills show render`.\\n\\n## Prefer references when continuity matters\\n\\nPure text-to-image or text-to-video is fine for a generic one-off asset. When a specific character, product, location, style, composition, or brand identity must survive generation, use references instead of hoping the prompt recreates it.\\n\\n- If the user supplies reference media, preserve and pass it. Never reduce the request to text alone.\\n- When continuity matters, generate/select a strong still first with the selected image model (`nano-banana-2.1` by default), wait for its URL, then animate it as a start frame/reference. Confirm the combined image and video cost.\\n- When using a hosted storyboard stage for multiple shots, use `videodraft shots <project_id> --model <selected-image-model> --grid`, then animate the decoded shots. Preserve explicit models. In VideoDraft ADE, import the resulting assets into the selected editing app (the native editor by default) instead of continuing into hosted production. A requested non-Seedance video model must use manual per-shot generation instead of Seedance full-video mode.\\n\\n## Cost and credits\\n\\nDo not call `videodraft credits` before routine generations. Paid endpoints validate and deduct atomically; if the balance is insufficient, the request is rejected before the provider job starts (CLI exit code 4). Check the balance only when the user asks, gives a credit budget, or a large workflow needs budget planning.\\n\\nThis skill lists no prices because they change with provider routing and sales. Get the current price from `videodraft costs <model> [settings]` or the command\'s `--estimate` flag; both read live prices from the server and spend nothing. Never quote a price from memory or from older notes. For expensive work, estimate first, state the selected model/settings/cost, and get a go-ahead. This matters most for shot-image batches, long or high-resolution video, AI Production, and paid audio batches. Honor the user\'s confirmation preference for the session.\\n\\nKling voice creation has a small charge on the platform Fal account and is free with Fal BYOK. Preview it with `videodraft kling-voices create <sample> --name <name> --estimate`; the estimate does not create a voice or require consent confirmation. Actual creation requires `--confirm-consent`.\\n\\nMiniMax H3 is billed per output second by resolution (768p by default). In reference mode the first 5 images are included and each additional image adds a charge. Reference video and reference audio are NOT billed.\\n\\nMiniMax H3 Max is billed per output second at 480p or 768p (default), plus pooled reference tokens in reference mode: a free allowance, then a charge per 1,000 tokens, where an image is `(width x height) / 1024` tokens, a reference video is 2,886 tokens per second at 480p or 7,459 at 768p, and reference audio is about 2,121 per second. Use `--prompt-expansion-mode disabled|balanced|quality`; balanced is the default. Fal\'s provider safety checker is OFF by default and is not exposed in the app \u2014 only pass `--safety-checker true` if the user explicitly asks for it.\\n\\nWan 3.0 is billed per output second by resolution. Auto duration reserves the 30-second maximum and refunds the unused reserve after the provider reports the actual whole-second output length. Fal BYOK runs on the connected user key and charges zero VideoDraft credits.\\n\\nGrok Imagine Video 1.5 is billed per output second by resolution, plus a small charge for each first-frame or reference image. Native audio is always generated.\\n\\n`videodraft models image|video` lists the live image and video catalogs with supported inputs. Video entries are grouped as `generation`, `video_edit`, `motion_control`, `avatar_lipsync`, and `upscale`, and each reports the exact tool. Use `videodraft models video --category video_edit` to narrow the list. `videodraft models audio` lists Seed Audio, Google Lyria, and ElevenLabs audio/media tools, while `videodraft models voices` helps discover TTS voices. Consult them for capabilities; a supplied ElevenLabs voice ID does not need to appear in the voice catalog.\\n\\n## Async jobs\\n\\nImage/video generation is asynchronous: commands submit a job and **wait by default**, printing output URLs (and saving files with `--download`). Large downloaded images also get a downscaled copy in `previews/` next to them (the `preview` field / \\"inspect via preview\\" line in the output) \u2014 **look at the preview, deliver the original**; viewing full-resolution images bloats the chat permanently. In scripts/CI prefer explicit control:\\n\\n```bash\\nJOB=$(videodraft generate image \\"...\\" --no-wait --json | jq -r .job_id)\\nvideodraft wait \\"$JOB\\" --download \\"./outputs/{job_id}_{index}.{ext}\\" --json\\n```\\n\\nFor MANY jobs: submit each with `--no-wait`, collect ALL with one command \u2014 `videodraft wait <id1> <id2> ...` polls every job from one process with one batched request per tick. Do NOT spawn parallel `wait`/`generate --wait` processes for a batch.\\n\\nIf a wait times out, the job is still running server-side \u2014 `videodraft status <job_id>` later. Never re-submit just because a wait timed out (that double-spends credits).\\n\\nFor completed Wan 3.0 jobs, MCP `check_generation_status` and CLI `status`/`wait --json` include `outputMetadata` with Fal\'s returned `seed`, `duration`, and `actual_prompt` when present.\\n\\n## AI Studio sessions\\n\\nStandalone image/video/audio generations are filed into an AI Studio session in the web app. 3D assets use `assets 3d list/get` separately. You do not have to create an AI Studio session:\\n\\n- **MCP hosts** (Claude Code, claude.ai, Codex, VideoDraft ADE): on 2025-era MCP the server mints an `Mcp-Session-Id` on `initialize`; your host echoes it, and this conversation\'s generations land in their own session. On stateless MCP (2026-07-28) hosts that send a conversation id (ChatGPT) get the same. Otherwise `name_current_ai_studio_session` returns `pass_session_id: true` with a `session_id`: pass that `session_id` to every later standalone generation in the conversation. Tool results echo the session as `ai_studio_session_id`.\\n- **CLI**: the same handshake runs once per (profile, server, working directory) and is cached for 12 idle hours, so everything generated from one directory shares one session. `videodraft sessions current` shows it; `videodraft sessions reset` starts a new one.\\n- Project generations (`--project <id>` / `project_id`) always go to that project\'s session.\\n\\nOnce you understand the creative task, name the current automatic session before the first standalone generation:\\n\\n```bash\\nvideodraft sessions name \\"Purple Seal Rescue Short\\"\\n```\\n\\nChoose a concise, specific 3-6 word title for the intended work. Do not copy the client name, date, or exact chat title. Name it once: the operation creates the session with that title. If generation, a user, or an earlier agent created the session first, its existing name is preserved.\\n\\nApart from the `pass_session_id: true` case above, pass `--session <id>` / `session_id` only to **continue earlier work** or create an explicit separate group:\\n\\n```bash\\nSESSION=$(videodraft sessions create \\"Fox brand explorations\\" --json | jq -r \'.session.id\')\\nvideodraft generate image \\"a red fox in snow, cinematic\\" --session \\"$SESSION\\"\\nvideodraft generations --session \\"$SESSION\\" # what is in it\\nvideodraft sessions list --name fox # find it again later\\n```\\n\\n`VIDEODRAFT_SESSION=<id>` sets the default for every command (ignored when `--project` is given). While it is set, `sessions name` refuses to run because that command names the current automatic connection session, not the pinned override; unset it first or rename the pinned session in AI Studio. `VIDEODRAFT_SESSION_SCOPE=<label>` groups several directories into one connection session; `VIDEODRAFT_CLIENT_NAME=<host>` labels the fallback placeholder used when generation creates the session before `sessions name`; `VIDEODRAFT_NO_SESSION=1` disables the handshake. Generations that reach the server with no session at all fall back to the account-wide \\"Agent (MCP)\\" session; if you see work landing there, pass `--session` explicitly.\\n\\n## Generation history\\n\\nPast work is queryable \u2014 reuse a previous setup instead of guessing. `videodraft generations` lists recent generations; scope with `--session <id>` or `--project <id>` (includes collaborators\' rows in shared scopes; pass one, project wins), and filter with `--type`, `--model`, `--favorites`. `--full --json` returns each row\'s exact parameters (aspect ratio, resolution, duration, references) \u2014 the human table stays compact, so pair `--full` with `--json`. `videodraft generation <id>` prints one generation\'s complete recipe (prompt, input image, parameters, outputs); `--favorite` / `--unfavorite` stars it. `videodraft sessions list` shows AI Studio sessions (owned + shared) with `--name` search \u2014 take a session id from there to read its history.\\n\\n## Free stock footage and photos\\n\\nPexels and Pixabay are wired in through `search_stock_media` / `import_stock_media` (`videodraft stock search \\"<query>\\"`, `videodraft stock import <ref>`). Both libraries are free, watermark-free and cost **zero credits**, so use stock for b-roll, establishing shots, backgrounds and ordinary real-world footage, and spend credits on the shots that must be specific: the product, the character, the scripted action.\\n\\n```bash\\nvideodraft stock search \\"city skyline night\\" --min-duration 5 --orientation landscape\\nURL=$(videodraft stock import pexels:video:35379336 --quality hd --json | jq -r .url)\\n```\\n\\n- Always two steps. A search result\'s `preview_url` is a thumbnail for judging the shot; never place it on a timeline, attach it to a shot or send it to a model. `import_stock_media` copies the file onto the VideoDraft CDN and returns the URL every other surface accepts, including the native editor\'s `library_manage` import.\\n- `--quality hd` (default) caps video at 1080p; `4k` caps at 2160p, `best` takes the largest the provider has, `sd` suits rough cuts. Stills ignore quality and import at full size. Use `--orientation portrait` for 9:16, and `--min-resolution 1920` to drop anything below HD on its long edge.\\n- Photos come from Pexels. Pixabay contributes video only, because its full-size image host refuses server-side downloads.\\n- Credit the creator and link the provider page when you show results or deliver the finished work; both come back on every result. Skip clips that imply a person or brand endorses the product, and avoid recognisable logos in ads.\\n- Search and import are rate limited per user (30 searches and 15 imports a minute) and searches are cached for 24h, so a burst of searches while planning a montage is fine. Bulk downloading a stock library is prohibited by both providers. A note saying Pixabay was skipped means its provider budget for that minute is spent; the Pexels results still stand.\\n\\n## Downloading from YouTube, Instagram, TikTok and other sites\\n\\nVideoDraft ships no downloader. When the user asks to pull a video from YouTube, Instagram, TikTok, X, LinkedIn or anywhere else, `yt-dlp` on the user\'s own machine does the work. Check for it with `command -v yt-dlp` before promising anything.\\n\\n**Present:** pin the format. On its defaults yt-dlp takes the best stream, usually VP9 or AV1 in WebM, which the native editor\'s import rejects (mp4, mov and m4v only). This returns one pre-muxed H.264 + AAC MP4 and needs no ffmpeg:\\n\\n```bash\\nyt-dlp -f \\"b[ext=mp4]\\" -o \\"media/%(title)s.%(ext)s\\" \\"<url>\\"\\n```\\n\\n**Missing:** say so in one line, then offer `brew install yt-dlp` only where `brew` exists, and only after asking. With no Homebrew, say the tool is unavailable and stop.\\n\\n- Never install Homebrew, never `sudo`, never write to `/usr/local/bin` or `/opt`, never pipe a script into a shell.\\n- `ffmpeg` is optional, matters only above 720p, and the selector above never needs it.\\n- Auth-gated content needs `--cookies-from-browser`; raise it only after a download fails on auth.\\n- Fetch only what was asked for, never a channel, playlist or back catalogue.\\n\\n## Local files and reference images\\n\\nReference inputs must be public URLs. The CLI uploads local files automatically wherever a URL is expected (`--ref photo.jpg`, `--start-image frame.png`), or explicitly:\\n\\n```bash\\nURL=$(videodraft upload ./product.png --json | jq -r .url)\\n```\\n\\nNever silently drop a reference you couldn\'t upload \u2014 stop and tell the user. Never upload a user\'s file to a third-party host.\\n\\nWhen the user attaches media for a native production, import actual footage into the editor by default. For hosted generation/storyboarding, classify each item before acting: a recurring **visual asset** (character/product/location/style), actual **footage to place as shots**, or **inspiration only**. See [references/pipeline.md](references/pipeline.md) for the hosted role mapping.\\n\\n## Showing media to the user\\n\\nGenerated media is **not** displayed in the chat automatically \u2014 you decide what to show. To preview an asset inline, save it locally (use `--download` so it lands under `media/`) and reference its **local path** as a Markdown link with a **leading `./`**:\\n\\n```\\n[ferrari shot](./media/ferrari_01.png) \u2190 image card\\n[the clip](./media/clip.mp4) \u2190 video player\\n[voiceover](./media/vo.mp3) \u2190 audio player\\n```\\n\\nPut the Markdown link **in your message text** \u2014 video and audio embed exactly like images. Do **not** use `SendUserFile` (or other file-send tools) to display media: that renders inside a collapsible tool card and gets buried in the tool list. The Markdown link in your prose is what produces the inline card.\\n\\nUse the path you saved to: a **workspace-relative** path (`./media/clip.mp4`, or `./<any-folder>/clip.mp4` \u2014 any folder in the workspace works), or the **absolute** path for a file outside the workspace (e.g. `/Users/you/Desktop/clip.mp4` or another workspace\'s path). Both render. Show the finished results worth showing (and only those \u2014 not every intermediate job). A bare CDN URL or a JSON dump of output URLs does **not** render; the local-path Markdown link is what produces an inline card.\\n\\n## Native-first VideoDraft ADE pipeline (idea \u2192 MP4)\\n\\nWhen `videodraft_editor` is present and no chosen app or existing external project takes precedence:\\n\\n1. Generate or source the script, storyboard, shot images, clips, voiceovers, music, and other assets through the cloud CLI/MCP as needed.\\n2. Call native `project_manage` (`project`, action `open` or `create`) to open or create the `.vdproject`.\\n3. Call native `library_manage` `import`, wait for imports to become ready, then assemble and refine the timeline with `edit_apply` recipes.\\n4. Call native `delivery_manage` `submit` and use its `jobs` operation for progress and results.\\n\\nDo not run the hosted production or export steps in this path unless the user explicitly asks for a web production.\\n\\n## Hosted fallback pipeline (idea \u2192 MP4)\\n\\nUse this when the user explicitly requests the hosted web workflow, or there is NO native editor\\nand no external app is selected. The native surface is not only the injected `videodraft_editor` MCP: a `videodraft-editor`\\nexecutable on PATH is the same editor reached through its terminal bridge, and\\n[references/editor.md](references/editor.md) covers driving it that way. Treating a missing MCP as\\n\\"no editor\\" sends sessions that have the binary into hosted production for no reason.\\n\\n```bash\\nvideodraft create \\"<idea>\\" --ar 9:16 # project: script \u2192 visual assets \u2192 storyboard\\nvideodraft shots <project_id> --grid --estimate # cost preview, confirm with user\\nvideodraft shots <project_id> --grid # batch shot images (waits, writes onto shot cards)\\nvideodraft produce <project_id> # voiceovers + captions + production timeline\\nvideodraft export <project_id> --download final.mp4\\n```\\n\\nOptional between produce and export: per-shot motion clips (`videodraft generate video ... --project <id>` then place it with `videodraft attach <project> --scene N --shot M --media <url|file> --type video --duration <s>`), music (`videodraft generate music \\"...\\" --attach <project_id>`), and standalone audio assets (`generate audio`, `generate sound-effect`, `generate dialogue`, `generate voice-changer`, `generate dub`). Details, per-step tools and editing rules: [references/pipeline.md](references/pipeline.md).\\n\\n## Avatar and talking-head videos (both surfaces)\\n\\nAvatar generation is cloud-only, so this applies whether or not `videodraft_editor` is present. Generate the avatar in the cloud; when a larger edit is requested, import the rendered clip into the selected editing app (the native editor by default) and cut it like any other footage.\\n\\nAvatar/talking-head videos use dedicated commands. For a reusable managed avatar, obtain or generate a clear portrait \u2192 `videodraft avatar script` when needed \u2192 `videodraft avatar create` \u2192 `videodraft avatar render --resolution 720p`. For a one-off portrait, use `videodraft avatar fabric <portrait> --text \\"...\\"` or `--audio <file>`, or `videodraft avatar h3-lipsync <portrait> --audio <file>` for a short high-resolution clip from existing audio. For an existing video plus replacement audio, use `videodraft avatar lipsync <video> --audio <file>`. Managed script/creation is bundled/free; direct Fabric, H3 Max Lip Sync, Sync, the managed Fabric render, and optional portrait generation/upscaling are paid. Confirm expensive steps first.\\n\\n## Working with hosted project data\\n\\nA hosted project is one JSON blob (script, storyboard scenes, shot cards, visual assets, production timeline). To inspect: `videodraft projects get <id>`. To edit: fetch `--raw`, modify, then `videodraft call update_project` \u2014 objects deep-merge, **arrays replace wholesale** (send the complete `storyboard.scenes` array to change one scene). Snapshot first with `videodraft checkpoint create <id>` before risky edits. Schema reference: `videodraft call get_project_schema`. This does not replace the chosen app\'s project or the native editor\'s `.vdproject` for the production itself.\\n\\n## More\\n\\n- [references/pipeline.md](references/pipeline.md) \u2014 hosted fallback data model and production workflow\\n- [references/editor.md](references/editor.md) \u2014 native headless editor routing, project selection, import, timeline edits, verification, and export\\n- [references/models.md](references/models.md) \u2014 choosing image/video models, pricing patterns, voices and styles\\n- [references/examples.md](references/examples.md) \u2014 recipes: batch product videos from a CSV, talking-head from a script, changelog video in CI\\n- [references/cloud-render.md](references/cloud-render.md): Cloud render commands, flags, exit codes, cost and the MCP flow\\n","references/3d.md":"# Standalone 3D assets through MCP and CLI\\n\\nUse this lane for downloadable meshes, textured 3D models, and humanoid rigging. These are independent of AI Studio sessions and do not require a storyboard or web viewer. Never create a project just to generate a mesh. Native editor media import does not establish support for GLB/FBX assets; use external 3D software unless the live editor schema explicitly supports them.\\n\\n## Discover and quote\\n\\n```bash\\nvideodraft models 3d --json\\nvideodraft generate 3d \\"a worn brass telescope\\" --model meshy-7 --estimate\\nvideodraft generate 3d --model tripo-h3.1 --ref ./reference.png --options @options.json --estimate\\nvideodraft rig 3d --estimate\\n```\\n\\nMCP tools: `get_3d_models`, `estimate_3d`, `generate_3d`, `rig_3d`, `check_generation_status`, `list_3d_assets`, `get_3d_asset`, `create_3d_upload`, and `finalize_3d_upload`.\\n\\nThe generator catalog is deliberately limited to `meshy-7` (Meshy 7.1; the CLI also accepts `meshy-7.1`) and `tripo-h3.1`. Both expose text/image/multi-image modes; use the live schemas for option availability, view order, limits, topology, texture/PBR, and pose controls. Do not invent common provider option names. Server defaults prioritize quality. Meshy\'s `geometry_resolution` sets geometry detail: text/image default to `2k` and also take `standard` or `4k` (4k costs more than 2k); multi-image takes `standard` (default) or `2k`. `ultra_mode` is a deprecated alias for 2k. Rigging is a separate Meshy operation for compatible textured humanoid GLBs; it is not an arbitrary creature or facial rig service.\\n\\nEvery option is accessible through `--options` JSON (`@path.json` supported), plus repeatable `--option key=value` overrides. Values parse as JSON when valid. Options and explicit input mode affect pricing, so obtain a fresh quote for the exact recipe. Estimates perform no file upload or provider generation. VideoDraft bills whole credits at 100 credits per dollar using the server\'s rounding rules. BYOK costs zero VideoDraft credits and runs on the connected user Fal key. Do not infer the user\'s Fal-account charges from a zero VideoDraft-credit quote.\\n\\n## Generate and retrieve\\n\\n```bash\\nvideodraft generate 3d \\"a worn brass telescope\\" --model meshy-7 --download --json\\nvideodraft generate 3d --model meshy-7 --ref ./hero.png --no-wait --json\\nvideodraft generate 3d --model tripo-h3.1 --input-mode multi_image --ref ./front.png --ref ./left.png --ref ./back.png --ref ./right.png --no-wait --json\\nvideodraft status JOB_ID --json\\nvideodraft wait JOB_ID --download --json\\nvideodraft assets 3d list --status completed --json\\nvideodraft assets 3d get ASSET_ID --download ./media/3d --json\\nvideodraft rig 3d --asset ASSET_ID --download --json\\nvideodraft rig 3d ./textured-humanoid.glb --download --json\\n```\\n\\nLocal image references upload automatically. Local rigging inputs must be self-contained `.glb` files and upload via the dedicated 3D route. Input mode is inferred from reference count unless `--input-mode text|image|multi_image` is supplied. A text prompt requires no images; image mode requires exactly one and no geometry prompt. Meshy multi-image accepts 1-4 views, and Tripo accepts 2-4 in front, left, back, right order. Use Meshy\'s `texture_prompt` option when texturing guidance is needed with image inputs. Do not mix unrelated images as if they were views of the same object.\\n\\nGeneration and rigging wait by default. `--no-wait` returns a persisted job that continues server-side. For many jobs use one `wait ID1 ID2 ... --download`; do not run parallel polling processes. Recover timeout with the same job ID, not another paid generation.\\n\\nSubmission returns a `request_id` UUID. A same-request retry must use `--request-id UUID` and the original arguments. The CLI journals resolved uploads in its private config directory so retries reuse the same remote files. Changed inputs under that UUID are rejected. Submission errors include the UUID in JSON `details.request_id` where available. Never retry a failed request with a new UUID until the prior job status is known.\\n\\n## Complete artifact packages\\n\\n`--download` defaults to `media/3d/<asset_id>/`. A user directory is respected and receives a per-asset folder. `{job_id}` and `{asset_id}` directory templates are accepted. Do not pass a `.glb` filename or a media `{index}.{ext}` template: a 3D result can contain multiple formats and texture/material dependencies.\\n\\nDownloads preserve every returned artifact. The manifest records provider URLs, source filenames, local paths, role, content type, and actual downloaded sizes. glTF/OBJ/MTL references are rewritten to saved dependency paths; binary GLB/FBX and provider ZIPs are retained as returned. Supplied dependency aliases become local copies at the paths needed by original FBX files. Unsafe or colliding aliases produce warnings. Existing packages are never overwritten. A successful package has `manifest.json`; read its `complete` field and `warnings`, plus CLI `package_warnings`. Do not claim a package with unresolved dependencies is ready for offline use.\\n\\nMachine results use `type: \\"model3d\\"` with `output_files` for files and `output_media` only for ordinary preview media. Texture maps and models are not image/video gallery entries. Show a supplied preview via a local image Markdown link and deliver the original mesh/package files. Do not imply an interactive 3D viewer exists in AI Studio or VideoDraft ADE.\\n","references/cloud-render.md":"# Cloud render: Blender scenes on a cloud GPU\\n\\nCloud render renders the user\'s own `.blend` scene on cloud GPUs (NVIDIA RTX PRO 6000). Every job gets its own machine, so several jobs render at the same time; a machine starts on demand, takes the user\'s next job of its size when one is waiting, and switches itself off 1 minute after its last job. Waiting for a GPU is never billed. It generates nothing. Build or change the scene in Blender itself (in VideoDraft ADE, the `blender` app guide covers that); Cloud render only renders a saved file.\\n\\n## Commands\\n\\n```bash\\nvideodraft render prices # live price per GPU-minute for each GPU size\\nvideodraft render blender scene.blend --frames 1-240\\nvideodraft render blender scene.blend --frames 1-240 --blender 4.5 --out ./media/renders/ --json\\nvideodraft render blender scene.blend --frames 1001-1500 --name \\"S4 final\\" --no-wait --json\\nvideodraft render wait \\"S4 final\\" --out ./media/renders/ # a job id works everywhere a name does\\nvideodraft render status \\"S4 final\\" --json\\nvideodraft render list --limit 10 # names, status, cost, and what each machine is doing\\nvideodraft render list --name \\"S4 final\\"\\nvideodraft render cancel JOB_ID\\nvideodraft render resume JOB_ID\\nvideodraft render machine # each machine\'s phase, what you pay now, 24 h and all-time spend\\nvideodraft render stop # switch every GPU off now\\n```\\n\\n`render blender` flags:\\n\\n- `--frames <first>-<last>` (required): the inclusive frame range, or one frame such as `--frames 42`.\\n- `--name <label>`: what to call the job, up to 80 characters (default: the scene\'s file name and the frames, such as `main_v8 845-1350`). `render status`, `wait`, `cancel` and `resume` accept the name instead of the job id (the newest job with it; cancel and resume refuse when two jobs of that name qualify), and `render list --name` finds them. Name each job after its shot or purpose and you never need your own file of job ids.\\n- `--fps <n>`: frame rate of the output MP4 (default: the scene\'s own).\\n- `--chunk <n>`: frames per segment. Segments render in order, and finished ones are kept when a job pauses, fails or is cancelled.\\n- `--procs <n>`: Blender processes running in parallel on the GPU, 1-4.\\n- `--blender 5.2|4.5`: Blender version (default 5.2).\\n- `--gpu full|half|quarter`: GPU size (default `full`). See [Choosing a GPU size](#choosing-a-gpu-size).\\n- `--no-spot`: wait for a regular GPU only. See [Spot GPUs](#spot-gpus-when-regular-ones-run-out).\\n- `--out <dir|file.mp4>`: where the clip goes (default `media/renders/<job_id>.mp4`).\\n- `--no-wait`: submit, print the job id and return. Resume with `videodraft render wait <job_id>`.\\n\\n## What the CLI does\\n\\n1. Hashes the file (SHA-256). A scene with the same bytes is uploaded only once, so re-rendering other frames skips the upload.\\n2. Uploads a new scene to its upload session in resumable 64 MiB chunks; after a dropped connection it asks the session what arrived and continues from there.\\n3. Submits the job. It waits for Google to hand over a GPU: usually 1 to 10 minutes, 15 or more at busy times. This wait is not billed, and the job keeps its place in the queue.\\n4. Polls every 10 seconds with no time limit (renders can take hours), printing each change: `waiting for a free GPU (not billed)`, `a GPU is starting for queued jobs (billed)`, `rendering (2/4 segments)`. After 5 minutes queued with a candidate still waiting for a GPU it says once that this can take longer. `--wait-timeout` and `--wait-interval` still apply when given.\\n5. Downloads the finished MP4, then says what the job cost and where the billed time went, for example `Billed 2m 18s of GPU time (start-up 15s, rendering 38s, idle before switch-off 1m 25s). Waited 8m 19s for a GPU, not billed.`\\n\\n`--json` prints one document: the job (`job_id`, `name`, `status`, `message`, `queued_seconds`, `wait_seconds`, `segments_done`, `segments_total`, `timing`, `cost`, `clip_url`) plus `scene_sha`, `uploaded` and `downloaded_files`. A queued job\'s machine is only a candidate and can change; `queued_seconds` can include billed start-up, while `wait_seconds` is the unbilled wait once known. With `--no-wait` it is the submitted job: `job_id`, `name`, `status`, `message`, `machine`, `credits_per_minute` and `segments`.\\n\\nExit codes: 0 done; 1 failed, cancelled or another error; 2 bad flags; 3 not signed in; 4 out of credits. Code 4 comes either before the job starts (the balance is below the minimum a job needs) or mid-render: the job pauses, keeps its finished segments, and waits. Tell the user, and after they add credits run `videodraft render resume <job_id>`. A failed job carries its error; `render resume` retries its unfinished segments, but fix the scene first when the error points at it.\\n\\n## Choosing a GPU size\\n\\n`videodraft render prices` lists the sizes on offer and each one\'s rate:\\n\\n| `--gpu` | GPU memory | Speed | Cost per frame |\\n| ------------------------ | ---------- | ------- | ---------------------------- |\\n| `full` (default) | 96 GB | fastest | highest |\\n| `half` (when offered) | 48 GB | slower | lower |\\n| `quarter` (when offered) | 24 GB | slowest | lowest, most of all on Eevee |\\n\\nAll bill per second. A smaller GPU is cheaper overall, not just per minute, because one render rarely uses a whole RTX PRO 6000. Use `full` when the user is waiting, has a deadline or the scene is heavy; a smaller size when they want it cheaper and are not in a hurry. The scene has to fit in the GPU memory: if a render fails for memory, run it again on a bigger size. `render status` shows a job\'s cost so far and, while it renders, an estimate for the whole job.\\n\\n## Spot GPUs, when regular ones run out\\n\\nWhen Google has no regular GPU for a few minutes (`after_minutes` in `render prices`), a full-GPU job also asks for a Spot GPU, while its request for a regular one keeps its place. Whichever GPU comes first takes the job, and a Spot machine that is already on (one that just finished a job) can also take the next job at once. Spot has one higher rate everywhere (`spot.credits_per_minute` in `render prices`): when you state the rate and get a go-ahead before a long render, give the Spot rate too, and tell the user when a job runs on Spot. The fallback itself needs no further go-ahead.\\n\\nGoogle can reclaim a Spot machine at any time. The job then goes back to the queue and continues from its finished segments, so only the segment in progress renders again; a Spot machine reclaimed in its first minute is not billed. `render wait` says when a job starts asking for Spot and when Google reclaims its machine; `render status` has a `spot` line, and `render machine` marks Spot machines.\\n\\nUse `--no-spot` (MCP: `spot: \\"never\\"`) when the user wants the regular rate only, or a render must not be interrupted, for example close to a deadline where a restart costs more time than a wait. The half and quarter sizes never use Spot.\\n\\n## Scenes must be self-contained\\n\\nPack external files before rendering: in Blender, File > External Data > Pack Resources, then save. Linked libraries, simulation caches and images outside the `.blend` are missing on the machine, and the machine has no internet. Blender runs in background mode with auto-run off, so scripts and drivers that need Python inside the file do not run.\\n\\n## Cost and machine time\\n\\nWhat a job is billed for, at its GPU size\'s rate from `videodraft render prices` (MCP `cloud_render_prices`), per second:\\n\\n| Part | Billed | Typical |\\n| -------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------- |\\n| Waiting for Google to hand over a GPU | **No** | 1 to 10 minutes; 15 or more at busy times |\\n| Start-up, once Google hands the machine over | Yes | about 15 seconds, only on a machine\'s first job |\\n| Rendering | Yes | the frames |\\n| Idle wait and power-off after the job | Yes | about 85 seconds, only when no job of its size is waiting; a waiting job takes the machine over at once |\\n\\nEach start has a one-minute minimum. So a short test job costs only a few credits, mostly its minute of start-up and idle time, and test renders, proofs and previews belong in the cloud as much as finals. Submit all the jobs you have at once: each gets its own machine, and jobs that wait for the same GPU size take over finished machines with no start-up or idle time.\\n\\n`render status` and `render wait` show the split: `waited` (not billed), then `billed` as start-up, rendering and idle. A job\'s cost can still grow for about a minute after it is done, while its machine waits for more work; `cost.final` says when it is settled, and until then `cost.estimated_total_credits` says what it will be. `render machine` shows what each machine is doing: `waiting for a GPU (not billed)`, `starting up`, `rendering`, `idle` or `switching off`, and `billing now` adds up only the machines Google has handed over.\\n\\nWaiting for a GPU is free. A queued job may also have a machine starting, which is billed, or charges from an earlier attempt; check its phase and cost. If a GPU takes long, say Google is short of GPUs at the moment and the job keeps its place.\\n\\nUploading and starting need a minimum balance; when only about two minutes of credit are left, every machine stops and the jobs pause. State the rate and get a go-ahead before long renders. When your task is finished, run `videodraft render stop` so idle time is not billed, unless the user still has renders queued.\\n\\nNever submit the same render twice to recover from a lost wait or a timeout: the first job keeps running and billing. Check `videodraft render list` (or `render list --name <name>`) and continue with `render wait`.\\n\\n## Without the CLI (MCP)\\n\\n1. `cloud_render_upload_scene` with the file\'s `sha256` and `size`. `exists: true` means skip to step 3.\\n2. PUT the bytes to `upload_url`: one PUT of the whole file, or chunks that are multiples of 256 KiB with `Content-Range: bytes <first>-<last>/<size>` (308 means send the next chunk from the Range header, 200 or 201 means complete). Then `cloud_render_finalize_scene` with the same `sha256`.\\n3. `cloud_render_submit` with `scene_sha`, `start`, `end` and optional `name`, `gpu`, `fps`, `chunk`, `procs`, `blender_version`, `spot` (`auto` by default, or `never`).\\n4. Poll `cloud_render_status` every 10 seconds or more. `message` and `machine.phase` distinguish a free GPU wait from billable start-up; a queued job\'s machine is a candidate that can change. `queued_seconds` includes time queued; `wait_seconds` gives the free wait when known. `machine.spot` is true on a Spot machine, `spot_note` explains Spot when the job asks for or runs on one, and `spot_reclaims` counts the times Google reclaimed its machine. `clip_url` is the finished MP4; `segment_urls` lists finished pieces before then; `cost` has the credits so far, `start_up_seconds`, `render_seconds` and `idle_seconds`, and `estimated_total_credits` (plus `estimated_minutes_left` while rendering).\\n5. `cloud_render_stop` when the work is done. `cloud_render_list` (with `name` to find jobs by name), `cloud_render_cancel`, `cloud_render_resume` and `cloud_render_machine` (each machine\'s `phase` and `billing`) match the CLI commands above.\\n","references/editor.md":"# Native VideoDraft Editor reference\\n\\nUse this reference when the user wants to assemble, cut, caption, mix, lay out, inspect, or export a local VideoDraft Editor project. The native editor is deterministic and local. Cloud generation remains in the `videodraft` CLI or hosted MCP.\\n\\n## VideoDraft ADE preference rule\\n\\nWhen `videodraft_editor` tools are exposed and no chosen app or existing external project takes precedence, treat the native editor as available and make it the default surface for production, timeline assembly, and final export. It is headless by design, so a hidden window or an untouched Open Editor button does not justify using hosted production instead.\\n\\nHonor the user\'s chosen app, an existing project\'s editing surface, and VideoDraft ADE\'s `<creative_routes>` before applying this native-editor reference. An explicit current request takes precedence over the saved route. For a chosen external app, work directly there with its available scripting, CLI, verified MCP and Computer Use, preserving the editable project. When `creative_apps` is actually exposed, read that app\'s bundled guide; when `creative_mcp` is exposed, use its live discovery and the guide\'s connection/recovery rules. Neither tool is a public `videodraft` CLI command or guaranteed outside VideoDraft ADE. Do not create a `.vdproject` merely to hand an external-app task back to the chosen application.\\n\\nFor a native production, use cloud tools for asset generation and optional script/storyboard work, then import the results. Do not call hosted `produce_project` / `videodraft produce` or `export_video` / `videodraft export` unless the user explicitly requests an editable web production, or the native editor is unavailable and no external app is selected. If a native tool call fails after the editor was available, report or recover that native failure rather than silently switching surfaces. The editing destination does not change the generation model, payer or spending limits.\\n\\n## Choose the correct surface\\n\\n- `videodraft` and the hosted VideoDraft MCP generate assets and can manage hosted web projects. They use the user\'s VideoDraft account and credits. In VideoDraft ADE, use them mainly as the source of generated media and optional storyboards for the native production.\\n- `videodraft_editor` edits local `.vdproject` packages. It has no generation, account, model, or credit tools.\\n- Inside VideoDraft ADE on a supported Mac, the editor MCP is injected automatically for Claude, Codex, OpenCode and Grok in both Code and VideoDraft modes. It starts headlessly before the chat opens. The user does not need to click Open Editor, and closing or hiding the editor window does not stop headless editing.\\n- Outside that environment, use the editor only if `videodraft_editor` MCP tools are already exposed or the `videodraft-editor` executable is on PATH. Do not confuse the public `videodraft` cloud CLI with the separate native editor executable.\\n\\nPrefer the direct MCP tools when they are available. The terminal bridge is useful for scripts, diagnostics, or an agent session where the MCP was not injected.\\n\\n## Which editor tools you have\\n\\nCurrent editors expose eight workflow tools: `project_manage`, `edit_snapshot`, `edit_apply`, `edit_undo`, `library_manage`, `inspect`, `speech_apply`, and `delivery_manage`. Use them whenever `edit_apply` is available. Everything below describes them.\\n\\nEarlier editors expose a different set of tools. If `edit_apply` is not in your catalog, follow the live tool descriptions; the working rules below still apply.\\n\\nThe live tool descriptions and schemas are authoritative. When they differ from this reference, follow them.\\n\\nService tools (`project_manage`, `library_manage`, `inspect`, `speech_apply`, `delivery_manage`) take `operation` and `parameters`, plus an optional `context` (see [Keep a reliable editing model](#keep-a-reliable-editing-model)):\\n\\n```json\\n{\\"operation\\": \\"import\\", \\"parameters\\": {\\"source\\": {\\"path\\": \\"/Users/me/clips\\"}}}\\n```\\n\\n### Parameters at a glance\\n\\nEach operation\'s schema has the full list. These are the fields that matter most, and the ones most often confused:\\n\\n| Tool and operation | Key `parameters` |\\n| --- | --- |\\n| `project_manage` `project` | `action` (`list`, `open`, `create`, `close`); `id`, `name` or `path` to open; `name`, `fps`, `aspectRatio`, `quality` to create |\\n| `edit_snapshot` (no `parameters`) | `includeLibrary`, a `startFrame`/`endFrame` window, `offset`/`limit` paging, `context` for later pages |\\n| `edit_apply` (no `parameters`) | `actions`; optional `context`, `requestId`, `previewOnly` |\\n| `library_manage` `import` | `source` with one of `path`, `url`, `bytes` + `mimeType`, or `matte`; optional `name`, `folder`. A `.srt` or `.vtt` file becomes captions |\\n| `library_manage` `list` | `ids` to poll imports, `pending`, `folder` |\\n| `inspect` `timeline` | a `startFrame`/`endFrame` window; there is no clip filter |\\n| `inspect` `frame` | `startFrame` for one frame; add `endFrame` and `maxFrames` to sample a range |\\n| `inspect` `media` | `mediaRef` (a library asset, not a file path), `startSeconds`/`endSeconds` in source seconds, `wordTimestamps`, `overview` |\\n| `inspect` `transcript` | a `startFrame`/`endFrame` window, `granularity` (`words` or `segments`), `clipId` |\\n| `inspect` `color` | `clipId` with `atFrame`, or `mediaRef`; optional `reference` |\\n| `speech_apply` `words` | `words`: transcript word indices, each one index or a `[first, last]` pair; or `matches`: exact words to remove everywhere; `pacing` |\\n| `speech_apply` `silence` | none |\\n| `speech_apply` `captions` | caption `style`, `position` and look fields; it finds the speech itself. `style` `plain` (sentences without a preset) takes `positionY` or `transform.centerY`, not `position` or `punctuation` |\\n| `delivery_manage` `submit` | `mode`, `codec`, `resolution`, `outputPath` (its folder must already exist); `captionGroupId` and `wordTiming` for `srt` and `vtt`; `check: false` skips a video\'s export check |\\n| `delivery_manage` `jobs` | `action` `list` (every job with its progress, warnings, output path and check findings; with a `jobId`, that job with all its findings), `cancel` with a `jobId`, or `dismiss` with a `jobId` and optional `findingIds` |\\n\\n`previewOnly` exists only on `edit_apply`. Service operations apply immediately.\\n\\n### `edit_apply` actions at a glance\\n\\nEvery action puts its fields beside `kind`, for example `{\\"kind\\": \\"adjust\\", \\"clipId\\": \\"c1\\", \\"speed\\": 2}`. `remove`, `adjust`, `replace`, `transition`, `mask`, `text`, `grade` and `effects` take `clipId` for one clip or `clipIds` for several; `animate`, `extract`, and the rows of `move` and `split` take a single `clipId`. Advanced actions cannot take `as`, but their clip ids accept `@name`. The one exception is `transition`, whose own `kind` field names the style, so its fields go inside `parameters`: `{\\"kind\\": \\"transition\\", \\"parameters\\": {\\"clipId\\": \\"c2\\", \\"kind\\": \\"dipToBlack\\"}}`. These `actions` place a clip, warm it and add a vignette:\\n\\n```json\\n[{\\"kind\\": \\"place\\", \\"assetId\\": \\"\u2026\\", \\"atFrame\\": 0, \\"as\\": \\"shot\\"},\\n {\\"kind\\": \\"grade\\", \\"clipId\\": \\"@shot\\", \\"adjustments\\": {\\"temperature\\": 7500}},\\n {\\"kind\\": \\"effects\\", \\"clipId\\": \\"@shot\\", \\"effects\\": [{\\"type\\": \\"finish.vignette\\", \\"params\\": {\\"strength\\": 35}}]}]\\n```\\n\\n| Advanced `kind` | Key fields |\\n| --- | --- |\\n| `place_batch` | `entries: [{mediaRef, startFrame, endFrame or source, trackIndex}]`, not the concise `assetId`, `atFrame`, `durationFrames`; leave `trackIndex` off every entry for a new track |\\n| `insert_batch` | `trackIndex`, `atFrame`, `entries: [{mediaRef, durationFrames or source}]`; later clips move right |\\n| `move` | `moves: [{clipId, toFrame, toTrack}]` |\\n| `remove` | `clipId` or `clipIds`; leaves a gap |\\n| `split` | `splits: [{clipId, atFrame}]`, or `trackIndex` with `frames` |\\n| `extract` | `trackIndex` with `ranges: [[start, end]]` in frames, or `clipId` with `ranges` and `units` (`frames`, or source `seconds`); closes the gap |\\n| `adjust` | `clipId` or `clipIds` plus any of `durationFrames`, `trimStartFrame`, `trimEndFrame`, `speed`, `speedCurve` (`{preset}`, or `{points: [{t, rate}]}` with `t` from 0 to 1 along the source), `preservesPitch`, `volume`, `opacity`, `transform` (`centerX`, `centerY`, `width`, `height`, `flipHorizontal`, `flipVertical`), `blendMode` |\\n| `animate` | `clipId`, `property` (`volume`, `opacity`, `rotation`, `position`, `scale`, `crop`), `keyframes: [[frame, ...values]]` with frames counted from the clip\'s start; `position` is the top-left corner |\\n| `arrange` | `layout`, `slots: [{slot, clipIds or mediaRef, anchor}]`, `fit` (`fill` or `fit`); `mediaRef` slots also need `endFrame` |\\n| `transition` (fields inside `parameters`) | `clipId` or `clipIds` (the clip after each cut), `kind` (`crossDissolve`, `dipToBlack`, `dipToWhite`, `blurDissolve`, `push`, `linearWipe`, `whipPan`, `crossZoom`, or `none` to remove), `durationFrames`, `params` (`direction` 0 to 3 for left, right, up, down; `feather`; `blur`; `intensity`) |\\n| `mask` | `clipId` or `clipIds`, `shape` (`rectangle`, `ellipse`, `none`), `centerX`, `centerY`, `width`, `height` (0 to 1 of the clip\'s own frame), `feather`, `strength`, `inverted` |\\n| `replace` | `clipId` or `clipIds`, `mediaRef` (a library asset of the same kind), `trim` (`keep`, the default, or `reset`), `linkedAudio` (`follow`, the default, or `keep`) |\\n| `tracks` | `reorder: [{trackId, to}]`, `set: [{trackId, muted, hidden, syncLocked}]`, `remove: [{trackId}]`; there is no add, since placing without a track makes one |\\n| `titles` | `entries: [{startFrame, endFrame, content}]`, optionally with `trackIndex` (on every entry or none), `style`, `animation`, `transform` and typography (`fontName`, `fontSize`, `color`) |\\n| `text` | `clipId`, `clipIds` or `captionGroupId`, with `content`, `style`, `position`, `animation` or typography |\\n| `grade` | `clipId` or `clipIds`, `adjustments`, `wheels`, `curves`, `hueCurves`, `lut`, `reset` |\\n| `effects` | `clipId` or `clipIds`, `effects: [{type, params, enabled}]`, `remove: [type]` |\\n\\n- `grade`: `adjustments` holds `exposure` (EV, -4 to 4), `temperature` (kelvin, 1800 to 15000, 6500 neutral, higher is warmer), `tint` (-150 magenta to 150 green); `contrast`, `highlights`, `shadows`, `whites`, `blacks`, `vibrance` and `saturation` are signed percents (-100 to 100, 0 neutral), not factors like 1.2. `wheels`: `shadows`, `midtones`, `highlights`, each `{hue, strength, brightness}`. `curves`: `luma`, `red`, `green`, `blue` as `[x, y]` points from 0 to 1. `hueCurves`: `targets: [{hue, rotate, saturation, lightness}]`. `lut`: `{path, mix}`, with the `storedPath` from `prepare_look`. Out-of-range values are refused.\\n- Effect `type` ids and their knobs, which go inside `params` and run 0 to 100 unless noted. Defaults leave the picture unchanged, so send the knob you want to see:\\n - `finish.vignette`: `strength` and `curvature` (-100 to 100; positive `strength` darkens the edges), `size`, `falloff`\\n - `finish.grain`: `strength`, `grainSize` (0.5 to 6 px); `finish.glow`: `strength`, `haloRadius` (px), `cutoff`, `halation`\\n - `defocus.gaussian`: `blurRadius` (px); `defocus.motion`: `streakLength` (px), `streakAngle` (-180 to 180 degrees)\\n - `texture.clarity`: `localContrast`, `hazeRemoval` (-100 to 100); `texture.sharpen`: `strength` (0 to 200); `texture.denoise`: `strength`\\n - `matte.chroma`: `screenHue` (0 to 360 degrees, 120 is green), `range`, `edgeSoftness`, `spillSuppression`\\n- `arrange` layouts and their slots (fill every slot): `fullscreen` (`stage`); `split` (`left`, `right`); `stack` (`top`, `bottom`); `corner_top_left`, `corner_top_right`, `corner_bottom_left`, `corner_bottom_right` (`stage`, `corner`); `quad` (`top_left`, `top_right`, `bottom_left`, `bottom_right`); `side_panel` (`stage`, `panel`); `thirds` (`left`, `middle`, `right`). The layout picks the corner; `anchor` only biases the crop.\\n- `trackIndex` and `toTrack` are an existing track\'s `order` from `edit_snapshot` (0 draws on top), counted at that point in the recipe: a track an earlier action adds shifts them. `tracks` takes `trackId` handles instead.\\n\\n## Start with the intended project\\n\\nAn MCP session can begin without a project selected. Project selection belongs to the session, not to whichever editor window happens to be frontmost.\\n\\n1. If the user named an existing project but its identity is unclear, call `project_manage` with `operation: \\"project\\"` and `parameters.action: \\"list\\"`.\\n2. Open the exact project with `action: \\"open\\"` and the returned `id`, an unambiguous `name`, or the `.vdproject` `path`.\\n3. Create only when the user wants a new local edit. `action: \\"create\\"` accepts optional `name`, `fps`, `aspectRatio`, and `quality`.\\n4. Treat `isActive` as this session\'s target and `isVisible` as the project shown in the UI. Headless editing only needs the session target.\\n5. Use `action: \\"close\\"` only when closing is part of the task. It saves first and never deletes the project. Afterwards other calls answer `no_project` until you open or create a project again.\\n6. Your session edits its own project even while another project\'s window is in front. If the user says \\"this clip\\" or \\"here\\" and `edit_snapshot` has no `selection`, or `selection.visible` is false, they are looking at something else: ask before editing. An older editor may instead refuse the write because another project is in front; tell the user rather than taking the front yourself. Never change which project is in front with Computer Use or other UI automation.\\n\\nOther `project_manage` operations: `create_timeline` and `select_timeline` for additional timelines, and `configure` for project settings (a frame-rate change applies to every timeline).\\n\\nDo not substitute a hosted project ID for a native project. A hosted project can supply scripts, storyboards, and generated media, but the native edit is a separate `.vdproject` package.\\n\\n## Keep a reliable editing model\\n\\n- Opening or creating a project, and creating or selecting a timeline, returns `data.snapshot` (the `edit_snapshot` view with the library: format, tracks, clips and assets) and a `context`, so you can edit right away. Call `edit_snapshot` only after an out-of-band user edit, to page a long timeline with `offset` and `limit`, or for handles you lack.\\n- `context` (`epoch`, `timelineId`, `revision`) is optional on every write except `edit_undo` and `project_manage` `project`, which take none. Without it, a write applies to the current state. With it, the editor refuses the write if the project changed since that context, which is what you want when a person may be editing at the same time. Every reply returns a fresh `context`. After `context_expired` (a reopen or restart), take a new snapshot.\\n- Timeline positions and durations are frames at `format.fps`. `sourceSeconds` values are seconds in the source file. Pass values as returned; do not multiply or divide by fps yourself.\\n- IDs are short handles. Pass them back exactly as returned; do not derive them from UUIDs. Tracks keep stable handles; indexes can change.\\n- When the user says \\"this clip\\", \\"these captions\\", or \\"here\\", take a fresh `edit_snapshot` (a one-frame window is enough). Its `selection` names what they selected in the project\'s window, in the snapshot\'s handles: `clipIds`, `captionGroupIds`, a `gap`, the marked `range`, and library `mediaIds`; no `selection` means nothing is selected. `currentFrame` is the playhead. `visible: false` means the user is not looking at this project.\\n- Send writes serially. Parallel writes against one project race each other\'s context.\\n- A refused call answers `status: \\"rejected\\"`: nothing changed, so fix what the message names and send it again. A service write that answers `failed` may have applied before a save or connection failed; inspect before repeating it.\\n- Use `inspect` for detail and verification: `timeline` for exact clip and track properties, `frame` for rendered frames of the composited result, `media` before describing source content, `color` for scopes, and `transcript` to locate spoken words.\\n- Clip `volume` is linear gain: `0` is silent, `1` plays the clip as recorded, and up to `5.62` (+15 dB) boosts it. Volume keyframes stay `0` to `1`. Boost sparingly and read the export check, which reports clipping.\\n\\n## Edit with recipes\\n\\n`edit_apply` takes an ordered list of `actions`, plus an optional `context` and `requestId`. The editor validates the whole recipe before changing anything, then applies it as one undo step. If any action fails, nothing changes and the error names the action. An applied reply lists the resulting `clips` (position, length, source window, text); use it to confirm the edit instead of re-reading.\\n\\n- Concise actions: `place` (an `assetId` at `atFrame`, optionally on a `trackId`, with `durationFrames` or `sourceSeconds`, `mode` `overwrite` or `insert`), `trim` (a `clipId` to a `sourceSeconds` window), and `title` (`text` at `atFrame` for `durationFrames`, optional `look` and `motion`). Name an action with `as` and address its clip in later actions as `@name`.\\n- Advanced actions put their fields beside `kind` too: `place_batch`, `insert_batch`, `move`, `remove`, `split`, `extract`, `adjust`, `animate`, `arrange`, `transition` (fields inside `parameters`), `mask`, `replace`, `tracks`, `titles`, `text`, `grade`, and `effects`. Their field help lists every supported effect, grading control, mask, layout, speed curve, and caption control.\\n- Use `arrange` for split screens, picture-in-picture, grids, and canvas placement, and `tracks` to fix stacking. Do not synthesize layouts from generic transforms or keyframes.\\n- Use `replace` to swap a clip\'s media and keep its timing, effects, keyframes, and links, for example a re-render of the same shot. `trim: \\"keep\\"` holds the clip\'s source offsets; `trim: \\"reset\\"` plays the new media from its first frame and keeps linked audio in sync.\\n- Put every edit a request needs into one recipe: placing, trimming, titling, grading and effects together are one call and one undo step. Use `previewOnly: true` to validate a large or risky recipe without editing.\\n- Send a `requestId` when a retry must not edit twice: repeating the identical request with the same `requestId` returns the original receipt, even after a dropped connection. Without one, a repeated request applies again. Use a new `requestId` for a different edit.\\n- `applied_unsaved` means the edit applied but saving failed. If you sent your own `requestId`, repeat the identical request to retry the save, not the edit. Without one, do not resend: a repeat would apply the edit again.\\n- `edit_undo` reverses this connection\'s latest edit while it is still the top undo step. It never undoes the user\'s own edits. Take a new snapshot afterward.\\n\\nEdits are undoable. Do not ask for confirmation before each ordinary edit. Ask one focused question only when the user\'s creative direction is materially ambiguous.\\n\\n## Bring generated or local media into the editor\\n\\nFor b-roll and establishing shots, search free stock first (`videodraft stock search \\"<query>\\"`), import the pick with `videodraft stock import <ref>`, and feed the returned CDN URL to `library_manage` `import` as `source.url`. It costs no credits.\\n\\nOtherwise use cloud generation for new assets, save or download the outputs, then call `library_manage` with `operation: \\"import\\"`:\\n\\n- `source.path`: absolute local file or directory. A directory imports recursively and preserves its folder structure.\\n- `source.url`: HTTPS asset URL. Set `mimeType` when a signed URL has no usable extension.\\n- `source.bytes`: small base64 media with a required `mimeType`.\\n- `source.matte`: generated solid-color image.\\n\\nReadiness differs by source, and so does the poll that detects it:\\n\\n- **URL and single-file path** imports return `status: \\"downloading\\"` with one `mediaRef`. Poll `library_manage` `list` with `parameters.ids: [mediaRef]` until `generationStatus` is absent.\\n- **Directory** imports also return `status: \\"downloading\\"` with one placeholder `mediaRef` for the batch. Poll it the same way; the folder\'s assets appear when `generationStatus` clears. (`pending: true` remains a fallback that lists every unresolved import.)\\n- **Inline bytes and matte** imports finish inline and come back `status: \\"ready\\"`; no polling is needed.\\n\\nAn import\'s `mediaRef` is the `assetId` that recipe actions take. Never place a pending asset on the timeline. `generationStatus` is the signal: `preparing`, `generating`, `downloading`, and `rendering` mean keep polling, absent means usable, and **`failed` is terminal**. Report it or retry the import explicitly; never poll on. Do not treat \\"not downloading\\" as ready.\\n\\nA `.srt` or `.vtt` caption file (by `path`, `url`, or `bytes` with `mimeType` `application/x-subrip`, `text/srt`, or `text/vtt`) is not added to the library. Its captions go onto a new caption track at the times the file gives, as one undo step, and the reply names the new `captionGroupId` to restyle with a `text` action.\\n\\nFor a batch of local outputs, download them into one workspace directory and import that directory once when practical. This is safer and faster than racing many import calls.\\n\\nTo apply a LUT, first store it with `library_manage` `prepare_look` (`parameters.path` to a `.cube` file), then use the returned `storedPath` in a `grade` action.\\n\\n## Background-removal handoff\\n\\nKeep paid processing in the VideoDraft CLI or cloud MCP. The editor\'s\\n`library_manage` operation `background_removal`, when present in the live schema,\\nconnects an existing clip to that workflow without replacing its linked sound.\\nIt does not generate, upload, quote or charge. Older editors without this operation\\ncan keep the completed asset for later; do not claim the guarded handoff is available.\\n\\n1. Read the selection if the user means an existing clip. Call `library_manage`\\n with `operation: \\"background_removal\\"` and `parameters: {\\"action\\":\\"prepare\\",\\n \\"clipId\\":\\"\u2026\\"}`. Keep its `sourceToken` and use `source.path`, the original\\n full file. Do not send a thumbnail, a composited timeline frame, or a trimmed\\n excerpt. Video limits apply to the whole source, even if the timeline uses only\\n a small part of it. This handoff currently requires a result of the same full\\n source duration and aspect ratio.\\n2. Check the removal tool exists before any paid submission. In VideoDraft ADE, use the\\n exact app-bundled CLI from the session instructions. A pre-release CLI may lack\\n `remove-background`; do not install or substitute another CLI. Its generic\\n `tools schema remove_image_background` / `remove_video_background` and `call`\\n can reach these tools once the server deploys them. If the server also lacks\\n the tool, keep the edit unchanged and explain that the release is pending.\\n Generic `call` takes a public URL, not a local path: use `upload` first and\\n retain that exact uploaded URL with the operation UUID for every retry.\\n3. Quote the actual source and settings, then submit with `max_credits` (CLI\\n `--max-credits`) and a retained UUID idempotency key. Images return transparent\\n PNG; video returns VP9 WebM with alpha. A timeout is a status check or a retry\\n of the same operation, never a second paid submission.\\n4. PNG imports directly. The native editor cannot decode WebM. Before charging\\n for a video intended for this editor, establish that an existing FFmpeg with\\n the `libvpx-vp9` decoder and `prores_ks` encoder is available. When VideoDraft ADE\'s runtime\\n discovery is exposed, its installed FFmpeg may be used by absolute path. If\\n none is available, explain that video conversion needs setup; never silently\\n install a runtime or flatten the output. Keep the original WebM under `media/`.\\n Convert a separate MOV with the explicit `libvpx-vp9` input decoder; FFmpeg\'s\\n other VP9 decoder can discard alpha. For constant-frame-rate output, use the\\n measured output frame rate, not an assumed 30 fps:\\n\\n ```sh\\n /absolute/path/to/ffmpeg -nostdin -n -c:v libvpx-vp9 -i media/cutout.webm \\\\\\n -map 0:v:0 -an -vf \'setpts=PTS-STARTPTS\' -r <measured-output-fps> \\\\\\n -fps_mode cfr -c:v prores_ks -profile:v 4 -pix_fmt yuva444p10le \\\\\\n media/cutout-alpha.mov\\n ```\\n\\n This MOV intentionally has no sound; applying it keeps the clip\'s original\\n linked audio. Check frame count, duration, dimensions and alpha before import.\\n Do not use H.264, rename `.webm` to `.mov`, assume a codec\'s alpha capability\\n proves the particular output retains transparency, or overwrite the WebM.\\n For variable-rate output, use a timestamp-preserving conversion and verify\\n its last-frame duration; do not force the example\'s constant-rate path.\\n ProRes intermediates can be much larger than the WebM, so check disk space.\\n5. Import the PNG/MOV with `library_manage import` and wait for its asset to\\n become ready. Call `library_manage` `background_removal` with\\n `parameters: {\\"action\\":\\"apply\\",\\"clipId\\":\\"\u2026\\",\\"sourceToken\\":\\"\u2026\\",\\n \\"assetId\\":\\"\u2026\\"}`. It verifies transparency and source identity, preserves\\n the cut and original linked sound, and makes one undoable replacement.\\n An edited clip or changed source refuses the old token. Review the existing\\n result and prepare again; do not regenerate automatically.\\n6. Inspect frames against a contrasting background and verify the final export.\\n A plain MP4 cannot carry alpha; a composited export should show the intended\\n background through the cutout. Original media and the returned cutout stay\\n available after Undo.\\n\\n## Speech edits\\n\\n`speech_apply` runs speech work as separate operations, not recipe actions: `words` removes transcript words, `silence` trims dead air, and `captions` generates styled captions. Read a fresh transcript with `inspect` `transcript` after any speech edit, because word positions change.\\n\\n## Service operations and timeouts\\n\\n`project_manage`, `library_manage`, `speech_apply`, and `delivery_manage` writes have no retry receipts. After a timeout, inspect the outcome (a snapshot, a library `list`, or delivery `jobs`) before repeating a write. A failed service write may have applied an edit before saving failed, so read its `data` and the current state.\\n\\n## Edit and verify\\n\\nA dependable sequence:\\n\\n1. `project_manage` to select or create the local project; its reply carries the snapshot.\\n2. `inspect` `media` when content selection matters.\\n3. One `edit_apply` recipe with every clip, track, layout, text, audio, color, and effect change the request needs; `speech_apply` for word cuts, silence, and captions.\\n4. Check the reply\'s `clips`; use `inspect` `frame` only when visual composition or layer order matters.\\n5. `edit_undo` if the result is wrong and the next recipe would not cleanly correct it.\\n\\n## Export\\n\\nCall `delivery_manage` with `operation: \\"submit\\"`. Submission is not completion: it returns a job, destination, and `started` or `queued` status.\\n\\n- Use `mode: \\"video\\"` for H.264, H.265, or ProRes.\\n- Use `mode: \\"xml\\"` (XMEML) for Premiere Pro **and DaVinci Resolve**; Resolve reads XMEML natively. Use `mode: \\"fcpxml\\"` with `fcpxmlTarget: \\"fcp\\"` for Final Cut Pro: the default target writes the Resolve flavor. `fcpxmlTarget: \\"resolve\\"` stays for older Resolve workflows, but new Resolve handoffs use `xml`.\\n- Use `mode: \\"videodraft\\"` for a self-contained project package.\\n- Use `mode: \\"srt\\"` or `mode: \\"vtt\\"` for a subtitle file of the captions: words and timing only, without styling. `captionGroupId` picks a caption group; `wordTiming: true` adds each word\'s start to a `vtt`.\\n- Omit `outputPath` unless the user named a destination; the default is `~/Downloads`. The editor does not create folders, so a named destination\'s folder must already exist.\\n- Use `operation: \\"jobs\\"` with `parameters.action` `list` to follow progress, warnings, and results. Cancel only when the user asks or the just-queued settings were wrong. Do not infer that an export is stuck from elapsed time alone.\\n- A finished video export is then checked in the background for black picture, gaps, sound that drops out or clips, and missing media. `list` shows each job\'s `findingCount` and its first three findings; `list` with that `jobId` returns every finding. Findings are warnings on a completed export: tell the user what was found and where, rather than treating the export as failed.\\n\\n## Terminal bridge\\n\\nVideoDraft desktop terminals expose `videodraft-editor`, which controls the same process and tools:\\n\\n```bash\\nvideodraft-editor status\\nvideodraft-editor list-tools\\nvideodraft-editor tool project_manage --json \'{\\"operation\\":\\"project\\",\\"parameters\\":{\\"action\\":\\"list\\"}}\'\\nvideodraft-editor tool edit_snapshot --project \\"/path/to/My Video.vdproject\\" --json \'{\\"includeLibrary\\":true}\'\\nvideodraft-editor show\\nvideodraft-editor hide\\n```\\n\\nEach `videodraft-editor` invocation is a separate connection, so a project opened by one call is NOT remembered by the next. Pass `--project <path>` on every `tool` call that operates on a project; without it, a follow-up call answers `no_project` (no project is open for this session) even though the open succeeded. For the same reason, `edit_undo` has nothing to undo from the terminal: it only reverses an edit made on its own connection.\\n\\nControl and tool commands auto-start a headless editor if none is running. `show` only reveals the already-running UI. Use `videodraft-editor tool <name> --json -` to read a JSON object from stdin when shell quoting would be fragile. Never read, copy, or expose the editor\'s rotating local authentication secret.\\n","references/examples.md":"# Recipes\\n\\nWorking patterns for common asks. All assume auth (`videodraft login` once, or `VIDEODRAFT_API_KEY` in the environment) and use `--json` for parsing.\\n\\nInside VideoDraft ADE, use these recipes for asset generation and optional script/storyboard stages.\\nHonor the chosen app, existing project and `<creative_routes>` as described in SKILL.md. Hand the\\nresults to that app for production and export ONLY when the user asked for a composed production;\\nthe native editor is the default when available and no other app takes precedence. A standalone\\noutput, such as the batch product clips in recipe 1 or the upscale in recipe 7, is finished when\\ngenerated. Recipes below that call `videodraft produce` or `videodraft export` are hosted fallbacks\\nonly. Use them when explicitly requested, or when the native editor is unavailable and no external\\napp is selected. Do not switch an external-app request to a hosted or native production silently.\\n\\n## 1. Batch product videos from a CSV\\n\\nOne 9:16 product clip per row of `products.csv` (`name,image_url,tagline`):\\n\\n```bash\\n#!/usr/bin/env bash\\nset -euo pipefail\\nmkdir -p outputs\\n\\nwhile IFS=, read -r name image tagline; do\\n job=$(videodraft generate video \\\\\\n \\"Premium product shot of ${name}: ${tagline}. Slow orbit, studio lighting.\\" \\\\\\n --model gemini-omni-1.2-flash --ar 9:16 --duration 6 \\\\\\n --start-image \\"$image\\" \\\\\\n --no-wait --json | jq -r .job_id)\\n echo \\"$name,$job\\" >> outputs/jobs.csv\\ndone < <(tail -n +2 products.csv)\\n\\n# Collect ALL results with ONE process (batched polling \u2014 one request per tick)\\nvideodraft wait $(cut -d, -f2 outputs/jobs.csv) \\\\\\n --download \\"outputs/{job_id}_{index}.{ext}\\" --json > outputs/results.json\\n# map job ids back to product names via outputs/jobs.csv\\n```\\n\\nSubmit-then-collect parallelizes server-side generation; the single multi-id `wait` keeps it to one local process and one batched poll request per tick no matter how many jobs. Gemini Omni 1.2 Flash is selected because these are six-second first-frame product clips. Estimate first: `videodraft costs gemini-omni-1.2-flash --type video --duration 6 --resolution 720p --audio` \xD7 rows, and confirm with the user.\\n\\nExtend an uploaded clip or conversationally edit an official Google interaction with Gemini Omni 1.2 Flash:\\n\\nEach extension appends 3-10 seconds at the end. Edit and extend accept EXACTLY ONE input video, so `--ref-video` cannot accompany `--source-video` or `--previous-interaction-id`; only `--ref` images can. New dialogue is allowed only when the source video is silent, so a chain of spoken beats must carry its speech in the first turn. A continuation is submitted as the prior turn\'s output, so 40 seconds total is reachable only by extending from a source of 30s or less, and a ladder dead-ends past 30s.\\n\\n```bash\\n# Google uploaded-video extension. Up to two reference images are allowed; reference videos are not.\\nvideodraft generate video --model gemini-omni-1.2-flash \\\\\\n --source-video ./ending.mp4 --ref ./wardrobe.png \\\\\\n --extend --duration 6 --resolution 1080p \\\\\\n --download ./media/extended.mp4\\n\\n# Conversational edit from the interaction_id of an earlier generation. Add --extend to lengthen instead.\\nvideodraft generate video --model gemini-omni-1.2-flash \\\\\\n --previous-interaction-id \\"$INTERACTION_ID\\" \\\\\\n --resolution 720p \\\\\\n --download ./media/continued.mp4\\n```\\n\\nFal BYOK supports the currently callable Gemini Omni 1.2 generation, basic source-edit and source-extension endpoints at zero VideoDraft credits. Its published callable v1.2 endpoints support uploaded-source extension, but not Google interaction IDs or separate edit/extend references. Do not infer a Fal route or retry on paid Google while Fal BYOK is active.\\n\\n## 2. Hosted full marketing video from one idea (fallback)\\n\\n```bash\\nvideodraft create \\"30-second launch video for Solace, a sleep-tracking ring. Calm, premium, dark palette.\\" \\\\\\n --ar 9:16 --style cinematic --json > project.json\\nPROJECT=$(jq -r .project_id project.json)\\n\\nvideodraft shots \\"$PROJECT\\" --grid --estimate # show the user the cost; get a go-ahead\\nvideodraft shots \\"$PROJECT\\" --grid\\nvideodraft produce \\"$PROJECT\\"\\nvideodraft generate music \\"minimal ambient, warm pads, 60 BPM\\" --attach \\"$PROJECT\\"\\nvideodraft generate audio \\"Extend @Audio1 into a 20-second transition\\" --ref-audio ./intro.wav --format wav --download ./transition.wav\\nvideodraft export \\"$PROJECT\\" --download solace-launch.mp4\\n```\\n\\nUse this complete hosted path only when the user requested a web project, or the native editor is unavailable and no external app is selected. Otherwise stop after the storyboard/assets and finish in the selected editing app; for the default native `.vdproject`, export with `delivery_manage`. The hosted project stays editable at the URL in `project.json` (`.urls`).\\n\\n## 3. Talking-head (avatar) video\\n\\nWhen the user has no portrait, generate a clear front-facing avatar image first. Skip this step when they supplied one or an existing character should be reused.\\n\\n```bash\\nvideodraft generate image \\\\\\n \\"Front-facing head-and-shoulders portrait of a friendly coffee expert, direct eye contact, natural expression, clean studio background\\" \\\\\\n --model nano-banana-2.1 --ar 9:16 --download ./media/avatar.png\\n\\nSCRIPT=$(videodraft avatar script \\"why our espresso subscription saves you money\\" --style ad-style --json | jq -r .script)\\nAVATAR=$(videodraft avatar create ./media/avatar.png --script \\"$SCRIPT\\" --voice elevenlabs-kPzsL2i3teMYv0FxEYQ6 --ar 9:16 --json | jq -r .avatar_video_id)\\nvideodraft avatar render \\"$AVATAR\\" --resolution 720p # VEED Fabric paid step; check the cost first with --estimate\\n```\\n\\n`avatar script` and `avatar create` (including speech) are bundled/free. In this example only the optional portrait generation and Fabric render spend credits.\\n\\nIf the portrait is low resolution, enhance it before `avatar create`:\\n\\n```bash\\nvideodraft upscale image ./founder-small.jpg --scale 2x --download ./media/founder-upscaled.png\\n```\\n\\nFor a one-off portrait animation without creating a managed avatar record:\\n\\n```bash\\nvideodraft avatar fabric ./founder.jpg \\\\\\n --text \\"Welcome to the weekly product update.\\" \\\\\\n --voice-description \\"warm, confident American presenter\\" \\\\\\n --resolution 720p --download ./media/presenter.mp4\\n```\\n\\nFor a short, sharp clip from speech or a song the user already has (5-14.8s of audio is used):\\n\\n```bash\\nvideodraft avatar h3-lipsync ./singer.png --audio ./chorus.mp3 \\\\\\n --resolution 1080P --audio-duration 12 --estimate\\nvideodraft avatar h3-lipsync ./singer.png --audio ./chorus.mp3 \\\\\\n --resolution 1080P --download ./media/singer-lipsync.mp4\\n```\\n\\nWhen the user already has both the video and replacement speech:\\n\\n```bash\\nvideodraft avatar lipsync ./presenter.mp4 \\\\\\n --audio ./localized-voiceover.mp3 \\\\\\n --sync-mode loop --download ./media/presenter-localized.mp4\\n```\\n\\nEdit an existing video with a dedicated edit model. Image references in the Gemini example require Google; Fal BYOK source edits accept no additional reference media:\\n\\n```bash\\nvideodraft models video --category video_edit\\nvideodraft edit video ./product-demo.mp4 \\\\\\n \\"Preserve the product and camera motion, and match the reference lighting\\" \\\\\\n --model gemini-omni-1.2-flash --ref ./evening-style.jpg \\\\\\n --resolution 1080p \\\\\\n --download ./media/product-demo-reframed.mp4\\n\\nvideodraft edit video ./product-demo.mp4 \\\\\\n \\"Turn the room into a warm evening scene while preserving the product and camera motion\\" \\\\\\n --model kling-o3-video-ref-edit --ref ./evening-style.jpg \\\\\\n --preserve-audio --download ./media/product-demo-evening.mp4\\n```\\n\\nTransfer motion from a reference clip onto a character image:\\n\\n```bash\\nvideodraft edit motion ./character.png \\\\\\n \\"Apply the dancer\'s movement to this character while preserving identity\\" \\\\\\n --motion-video ./dance-reference.mp4 \\\\\\n --model kling-v3-motion-control --quality pro \\\\\\n --download ./media/character-dance.mp4\\n```\\n\\n## 4. Hosted changelog video in CI\\n\\nIn a GitHub Action with `VIDEODRAFT_API_KEY` set as a secret:\\n\\n```bash\\nNOTES=$(git log --oneline v1.2.0..HEAD | head -20)\\nvideodraft create \\"Weekly product update video. Energetic, 20 seconds. Changes: ${NOTES}\\" --ar 16:9 --json > p.json\\nPROJECT=$(jq -r .project_id p.json)\\nvideodraft shots \\"$PROJECT\\" && videodraft produce \\"$PROJECT\\"\\nvideodraft export \\"$PROJECT\\" --download changelog.mp4 --wait-timeout 30m\\n```\\n\\n## 5. Variations and picking a winner\\n\\n```bash\\nvideodraft generate image \\"logo concept: minimalist fox, geometric\\" --num 4 --download \\"./concepts/{job_id}_{index}.{ext}\\" --json\\n# Show all 4 to the user; regenerate the chosen one at higher res:\\nvideodraft generate image \\"<same prompt>\\" --model nano-banana-pro --resolution 4K\\n```\\n\\n## 6. Reaching tools without a curated command\\n\\n```bash\\nvideodraft tools list --json | jq -r \'.[].name\'\\nvideodraft tools schema attach_media_to_shot --json\\nvideodraft call attach_media_to_shot --args \'{\\"project_id\\":\\"...\\",\\"scene_index\\":0,\\"shot_index\\":1,\\"media_url\\":\\"https://...\\",\\"media_type\\":\\"video\\",\\"duration_seconds\\":6}\'\\n```\\n\\nAnything the hosted VideoDraft MCP exposes, including character studio, product studio, and hosted project data, is reachable this way even before it gets a curated command. Native `.vdproject` editing uses the separate `videodraft_editor` MCP described in SKILL.md.\\n\\n## 7. Enhance an existing asset without changing it\\n\\n```bash\\n# Light image cleanup, no enlargement\\nvideodraft upscale image ./poster.png --scale 1x --download ./media/poster-enhanced.png\\n\\n# General image and video enlargement\\nvideodraft upscale image ./frame.png --scale 2x --download ./media/frame-2x.png\\nvideodraft upscale video ./clip.mp4 --resolution 1080p --download ./media/clip-1080p.mp4\\n\\n# Rebuild detail in a tiny/blurry source (generative), or reimagine it (creative)\\nvideodraft upscale image ./tiny.jpg --scale 4x --mode generative --model \\"Wonder 3.5\\" --download ./media/tiny-4x.png\\nvideodraft upscale video ./ai-clip.mp4 --resolution 4k --mode generative --download ./media/ai-clip-4k.mp4\\n\\n# Smoother motion or slow motion (resolution unchanged)\\nvideodraft interpolate ./clip.mp4 --fps 60 --download ./media/clip-60fps.mp4\\nvideodraft interpolate ./clip.mp4 --model Chronos --slowdown 4 --download ./media/clip-slowmo.mp4\\n```\\n\\nUse these when the content is correct and only quality or resolution needs improvement. If the poster text, composition, subject, or motion is wrong, edit or regenerate instead.\\n","references/models.md":"# Choosing models (and predicting cost)\\n\\nAlways consult the live catalog instead of memorizing this page \u2014 models change weekly:\\n\\n```bash\\nvideodraft models image --json # every image model + inputs (aspect ratios, resolutions, max refs)\\nvideodraft models video --json # every video model + inputs + per-second pricing metadata\\nvideodraft models audio --json # standalone audio/media models + pricing inputs\\nvideodraft models voices --json # TTS voices\\nvideodraft models styles --json # visual style presets\\n```\\n\\n## Task-based model selection\\n\\nFollow this order every time:\\n\\n1. The user named a model: use it, never substitute.\\n2. Otherwise pick a **Tier 1** model from the task\'s inputs, duration, audio, quality, speed, and cost, and pass it explicitly instead of relying on a blind platform fallback.\\n3. Use a **Tier 2** model only when no Tier 1 model supports the request, and say why. Never pick Tier 2 on your own for price, speed, novelty or variety.\\n\\nTier 1 is the rows marked **T1** below. Every other catalog model is Tier 2 and stays available by name. The catalogs carry this themselves: every `videodraft models image|video|audio --json` entry has `tier` (1 or 2) plus `recommended` / `recommended_for`, and the top-level `recommended` array is Tier 1, best first. Trust the catalog over this page when they disagree.\\n\\n### Images\\n\\n| Need | Choose | Why |\\n| ------------------------------------------------------------------------------------------ | ------------------------ | ----------------------------------------------------------------- |\\n| T1: Most generation, editing, text, character consistency, or reference work | `nano-banana-2.1` | Best general default; 1K/2K/4K, 14 references, thinking levels |\\n| T1: Previous default, or when temperature control is wanted | `nano-banana-2` | 1K/2K/4K and up to 14 reference images; temperature 0-2 |\\n| T1: Highest-quality complex generation or reasoning | `nano-banana-pro` | Premium Nano Banana quality and reasoning |\\n| T1: Fast, inexpensive drafts and iteration | `nano-banana-2-lite` | Fastest/cheapest Nano Banana option; 1K only, up to 14 references |\\n| T1: Posters, title cards, signs, logos, or any image with important readable text | `gpt-image-2.6-flare` | Fast OpenAI everyday generation/editing; 16 refs, 1K/2K/4K, PNG |\\n| T1: Complex multi-image composition, precise editing, or a strong alternate interpretation | `gpt-image-2.6-sunburst` | More precision, fine detail, edit consistency; slower; 16 refs |\\n| T1: Animated GIF (sticker, emoji, icon, logo sting, short looping reaction) | `gpt-image-2.6-flare` | `--gif`: 2-16 frames, looping GIF, frame size follows `--ar` |\\n| T1: Vector / SVG output (logos, icons, illustrations that must scale) | `recraft-v4` | Recraft V4.1 text-to-vector; SVG only, no reference images |\\n| T2: xAI at 2K or with a quality tier, up to 3 edit references | `grok-imagine-2.0` | 1K/2K, low/medium quality, small charge per reference image |\\n\\nIdeogram 4.5 (`ideogram-v4.5`) replaces 4.0 in the same Tier 2 position. Text-to-image: `--quality low|medium|high` (medium default), `--resolution 1K|2K`, `--ar`, `--num 1..8`, `--seed`, `--prompt-expansion true|false`. Editing: `--source-image <url|file>` plus up to four `--ref` images; without a source flag the first `--ref` is the source. `--edit-precision regular|high`; regular edits also support `--quality very_low`. `--mask <url|file>` uses black for edits, white for preserved regions and must match source dimensions; masked edits allow three additional references. Precise/masked edits require `--ar auto` with no resolution or custom dimensions. `--image-width` and `--image-height` select exact supported generation sizes or 32px-grid regular-edit sizes (min 256px, max 4MP, within 6:1). Expansion is text-to-image only. Reference/mask/precision do not add a separate surcharge.\\n\\n```bash\\nvideodraft generate image \'A poster with the exact title \\"SUMMER\\"\' --model ideogram-v4.5 --quality high --resolution 2K --num 2 --estimate\\nvideodraft generate image \'Replace the sign text with \\"OPEN\\"\' --model ideogram-v4.5 --source-image source.png --ref lettering.png --mask mask.png --edit-precision high --ar auto --quality medium\\nvideodraft costs ideogram-v4.5 --type image --quality very_low --ref-images 1 --num 2\\n```\\n\\nFLUX 3 image (`flux-3-image`, separate from `flux-3-max` video) is Tier 2: Black Forest Labs\' newest image model, on Fal or your Fal key. It generates and edits with up to 10 `--ref` images (call them \\"image 1\\", \\"image 2\\" in the prompt), `--num 1..4`, `--resolution 1K|2K|4K` (default 1K), `--prompt-expansion true|false` (default true) and `--ar` with 14 ratios (21:9 to 1:2, including 7:5 and 5:7) plus `auto`. Each image is priced by output size (resolution and ratio); `auto` lets the model pick, or follows the first reference, and is quoted at the tier\'s highest price. Without `--ar`, a new image is 16:9 and an edit is `auto`. No seed. Output is JPEG.\\n\\n```bash\\nvideodraft generate image \'Studio photo of a ceramic mug on a walnut desk, soft light from the left\' --model flux-3-image --ar 4:5 --resolution 2K --estimate\\nvideodraft generate image \'Place the mug from image 1 on the desk in image 2, keep the lighting of image 2\' --model flux-3-image --ref mug.png --ref desk.png --num 2\\n```\\n\\nGPT Image 2.6 replaces 2.5 and has two IDs: `gpt-image-2.6-flare` (fast everyday generation and editing, readable text and posters, precise composition) takes the Flare recommendation; `gpt-image-2.6-sunburst` is the alternative when extra precision, fine detail or edit consistency matters, with longer latency. Always pass a 2.6 ID; an older 2.5 ID runs on the matching 2.6 model. Other model recommendations are unchanged. Explicit `gpt-image-2` selections continue to use the previous model.\\n\\nUse the same basic image controls as GPT Image 2: `--ref` (up to 16), `--ar` (10 ratios), `--resolution 1K|2K|4K`, `--quality`, and `--num 1..4`. Output is PNG, with no seed. GPT Image 2.6 quality supports auto/low/medium/high/xhigh/max. Auto is priced at Max in customer-credit estimates, so pass `--quality high` for a cheaper render; on 2.6, low and medium are only modestly cheaper than high. The default platform path uses OpenAI; a selected personal connection stays exclusive. A Pika personal connection requires an explicit quality from low/medium/high/xhigh/max because its upstream API has no auto value. Atlas Cloud keys also run 2.6. Other unsupported connection settings return an error instead of switching payer or changing the request. 2.6\'s own complexity, markup and SVG options are not offered.\\n\\nGPT Image 2.6 also returns looping animated GIFs: add `--gif`, with `--frames 2-16` (default 8) and `--frame-ms 20-2000` (default 120; 8 frames at 120 ms is about a 1 s loop). Describe the motion and a seamless loop in the prompt, and pass `--ref` to animate a given subject. Each frame\'s size follows `--ar` (1:1 frames are 720x720, 16:9 frames 944x528); `--resolution` does not apply. OpenAI draws the frames on one grid and bills it like one still at the grid\'s size, so 2-8 frames cost the same and 9 costs about twice as much; quote with `--estimate`. GIFs suit stickers, emoji, icons, logo stings and short reactions; use a video model for long or smooth motion. GIFs are standalone AI Studio outputs, not storyboard shots or batches, and a personal Pika connection cannot make them (OpenAI, Fal and Atlas Cloud can).\\n\\n```bash\\nvideodraft generate image \'A blue glass bird\' --model gpt-image-2.6-flare --ar 1:1 --resolution 2K --quality high --estimate\\nvideodraft generate image \'A blue glass bird\' --model gpt-image-2.6-flare --ar 1:1 --resolution 2K --quality high --num 2\\nvideodraft generate image \'A blue glass bird flapping its wings, seamless loop\' --model gpt-image-2.6-flare --gif --frames 8 --frame-ms 120 --ar 1:1 --quality high --estimate\\n```\\n\\n`videodraft shots` forwards resolution and quality for both normal and grid generation. Estimates use the project\'s model and aspect when omitted; grid canvas costs may differ from ordinary shot costs. Use `videodraft costs --model <id> --ar <ratio> --resolution <tier> --quality <tier>` for a specific per-image quote.\\n\\n### Videos\\n\\n| Need | Choose | Important limits |\\n| ------------------------------------------------------------------------------------------------------ | ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\\n| T1: Most generation, first/last-frame, mixed-reference, source-edit, or extension requests | `gemini-omni-1.2-flash` | 3-15s output (first+last frames: 3-10s); 360p/720p/1080p/4K; audio always; up to 10 image inputs, and 3 reference videos <=15s each on generate only; edit source 3-15s; continuation or 3-10s extension of a 1-30s source, 40s total reachable only by extending from <=30s |\\n| T2: Grok 1.5 text, first-frame, or 1-7 image-reference clips with native audio and optional 1080p | `grok-imagine-video-1.5` | 1-15s; 480p/720p/1080p for text/first-frame; references are 480p/720p only; no last frame |\\n| T2: Document or webpage reference generation; by name otherwise | `wan-3.0` | 2-30s or auto; 480p/720p/1080p; 10 image, 5 video, 5 audio refs, 20 media files total; document/web refs require thinking |\\n| T2: 480p/768p/2K/4K with native stereo audio, first/last frames, or mixed image/video/audio references | `minimax-h3` | 5-15s; up to 9 image, 3 video, 3 audio refs, 12 files total; first 5 reference images included; reference video/audio each total <=15s |\\n| T1: Fast video and timed keyframes, before H3 Max | `flux-3-max` | 5-20s, default 5s; 720p/1080p; optional audio; first/last frames or up to 10 keyframes; High/Low reasoning (`--reasoning-level`), `--seed`; no Draft or auto duration |\\n| T1: Text, first/last-frame, or mixed-reference video with native audio and stronger prompt adherence | `minimax-h3-max` | 5-15s; 480p/768p plus pooled reference tokens; up to 9 image, 3 video, 3 audio refs, 12 files total; seed and disabled/balanced/quality prompt expansion; provider safety checker off by default |\\n| T1: Video/audio references, mixed reference media, broad aspect ratios, first+last frames over 10s | `seedance-2` | 4-15s or auto; up to 9 image, 3 video, and 3 audio refs; audio toggle; Mini/Fast are 480p/720p only |\\n| T1: Single takes past 15s, or more references than Seedance 2.0 allows | `seedance-2.5` | 4-30s or auto; up to 30 image, 10 video, and 10 audio refs (50 files total); one quality tier; 480p/720p/1080p |\\n| T2: Fast polished 3-15s video with first frame, multi-prompt, and native audio | `kling-v3-turbo` | Audio always on; Pro default; no end frame, reference-media mode, or elements |\\n| T1: Preferred Kling: 3-30s text, start/end-frame or reference video with voiced elements, no 4K | `kling-4.0` | 3-30s, 720p/1080p, audio on; text, image-to-video (start + optional end frame) or reference mode (optional start image, 10 images, 5 videos, 7 elements: 3 voiced, 3 video; 15 total); cite @Image1, @Video1, @Element1; no seed |\\n| T2: Faster, cheaper Kling 4.0 at 720p, by name | `kling-4.0-flash` | 3-20s, 720p only, audio on; same modes as Kling 4.0 but one prompt (no `--segment`), no end frame, no voices; reference mode: optional start image, 10 images, 5 videos (3-20s), 7 elements (3 video, 3-8s); 15 total; videos share 5 clips and 20s |\\n| T1: Cinematic 3-15s with reference images, image/video elements, first+last frame, audio, or 4K | `kling-o3` | 7 combined image refs/elements, reduced to 4 with a video element; Standard/Pro/4K |\\n| T1: Kling 3-15s image-to-video with first+last frame, image/video elements, multi-prompt, audio, or 4K | `kling-3.0` | Elements require a start image; image or video elements can bind voice_id; Standard/Pro/4K |\\n| T2: User explicitly requests Veo, or the selected workflow specifically needs Veo | `google-veo3.1` | Good fallback, but not the preferred general model |\\n\\nRouting rules:\\n\\n- Inexpensive pass or draft at 480p/768p with native audio: use MiniMax H3 Max.\\n- Grok 1.5 reference mode accepts 1-7 images only. Address them in array order as `<IMAGE_0>` through `<IMAGE_6>`. Do not combine reference images with `--start-image`, `--end-image`, `--ref-video`, or `--ref-audio`.\\n- Grok 1.5 first-frame mode accepts one `--start-image`, derives the output aspect ratio from that image, and does not support `--end-image`. Text and first-frame modes support 480p, 720p, or 1080p. Reference mode supports 480p or 720p.\\n- Grok 1.5 always generates native audio. Do not pass `--no-audio`, `--seed`, `--negative`, or `--quality`.\\n- Around 11-15 seconds with native audio: keep Gemini Omni 1.2 Flash as the default. With both first and last frames, choose a compatible Tier 1 alternative because Gemini caps that mode at 10s. Past 15 seconds: Seedance 2.5.\\n- Dialogue: write the line in the prompt, in quotes, with who says it and how. `gemini-omni-1.2-flash`, `seedance-2.5`, `seedance-2`, `kling-3.0` and `kling-o3` speak it natively; add `--ref-audio` on Seedance or a bound Kling voice for a specific voice. Do not generate speech separately and lip-sync it on.\\n- One existing source video that should be edited: use `videodraft edit video`, which auto-selects Gemini Omni 1.2 Flash for a source from 3 to 15s. Generic `generate video --ref-video` retains source-edit behavior when `--video-task` is omitted, but the dedicated edit command is clearer.\\n- Video supplied as a creative reference: Gemini Omni 1.2 Flash accepts up to 3 videos of at most 15 seconds each, including mixed image and video input. Creative video references are accepted on `--video-task generate` ONLY: edit and extend take exactly one input video, so `--ref-video` cannot accompany `--source-video` or `--previous-interaction-id`. Use Seedance 2.5 for more or longer video/audio references, or Seedance 2.0 when quality-tier control matters.\\n- First and last frame control: every Tier 1 video model supports it (Gemini Omni 1.2 Flash, Seedance, Kling 4.0 in image-to-video, Kling O3, Kling 3.0, MiniMax H3 Max, FLUX 3 Max). For Gemini, every start/end frame counts toward the 10-image total, leaving up to 9 references with a start frame or 8 with both frames.\\n- Extension with a 1-30s uploaded source uses Gemini Omni 1.2 Flash plus `--source-video` and `--video-task extend` (or `--extend`). Pass an explicit 3-10s output duration; the model appends it at the end, up to 40 seconds total. Creative `--ref-video` clips CANNOT accompany the source: edit and extend take exactly one input video. New dialogue is allowed only when the source video is silent; adding speech on top of a source that already has speech is refused with \\"the model is currently unable to process speech edits\\". Continuation uses `--previous-interaction-id <id>` and defaults to a conversational edit; `--video-task extend` lengthens it. A continuation is submitted as the prior turn\'s output video, so it obeys the same source limits (<=30s to extend, <=15s to edit) and the same silent-source dialogue rule. 40s total is reachable only by extending from a source of 30s or less, so a ladder dead-ends past 30s. Fal returns the video only, and its currently published callable v1.2 endpoints support uploaded-source extension through /v1.2/extend, but not Google interaction IDs or mixed source-edit references; never infer a route or silently fall back to paid Google.\\n- Wan 3.0 reference mode and frame mode are separate. It accepts 10 images, 5 videos, and 5 audio clips, at most 20 media files total. Video and audio each total at most 15 seconds. `--file-url` and `--web-url` require `--thinking`. `--auto-duration` cannot be combined with `--duration`.\\n- MiniMax H3 and H3 Max reference mode and first-plus-last-frame mode are separate. Audio cannot be the only reference. Address references as `Image 1`, `Video 1`, and `Audio 1` in array order.\\n- Seedance reference mode and first-plus-last-frame mode are separate. Do not promise reference video/audio plus a last frame in one generation.\\n- Multi-prompt sequencing: use Kling 4.0 (shots of 1-30s, 3-30s total), or Kling 3.0 Turbo, Kling O3 or Kling 3.0 (shots of 1-15s, 3-15s total). Kling 4.0 Flash takes one prompt.\\n- Kling 3.0 image-to-video and Kling O3 reference-to-video accept repeatable structured `--element` JSON. Each element is image-backed (`frontal_image_url` plus 1-3 `reference_image_urls`) or video-backed (`video_url`). Either form may include `voice_id`. Keep the voice ID inside the same element so the association is preserved. Reference them as `@Element1`, `@Element2`. Kling V3 Turbo rejects elements.\\n- Kling 2.6 Pro image-to-video accepts one or two repeatable `--voice-id` values. Cite them as `<<<voice_1>>>` and `<<<voice_2>>>` in the prompt. Voice control costs more per second. Use `videodraft kling-voices list|create|delete` to manage the separate Kling video-control voice library. Creating a voice requires a clean 5-30 second, up-to-50MB single-speaker `.mp3`, `.wav`, `.mp4`, or `.mov` sample plus `--confirm-consent`. Creation has a small charge on the platform Fal account and is free with Fal BYOK; use the create command\'s `--estimate` flag to check without creating.\\n- Kling V3 voice control (Standard and Pro) also costs more per second than plain generation.\\n- Kling 4.0 (Tier 1, the preferred Kling; Kling 3.0 and O3 keep 4K) has three modes, like Kling O3: text; image-to-video from `--start-image` with an optional `--end-image` (framing follows the image, so no `--ar`); and reference mode, chosen when you add `--ref`, `--ref-video` or `--element`. Reference mode takes an optional `--start-image`, up to 10 images including it (`--ref`, cited as @Image1), up to 5 `--ref-video` clips (cited as @Video1, 3-30s each), and up to 7 `--element` entries (cited as @Element1; up to 3 with `voice_id`, up to 3 video-backed). Reference and element videos share 5 clips and 30 seconds, and 15 inputs is the total. Reference mode has no end frame. Audio is always on. With any reference or element video it bills the video length plus the output, at least twice the output, so pass `--ref-video-seconds` to `costs` or `--estimate` for an exact quote.\\n- Kling 4.0 Flash (`kling-4.0-flash`, Tier 2, by name) is the faster, cheaper tier of Kling 4.0, with the same three modes and inputs, at 720p only and 3-20 whole seconds (default 5). It takes one prompt (no `--segment`), no `--end-image` (image-to-video uses `--start-image` alone) and no `voice_id` on elements. Reference mode takes an optional `--start-image`, up to 10 images including it, up to 5 `--ref-video` clips of 3-20s each, and up to 7 `--element` entries (up to 3 video-backed, 3-8s each); reference and element videos share 5 clips and 20 seconds, and 15 inputs is the total. Audio is always on. It costs less per second than Kling 4.0 and bills reference and element videos the same way (`--ref-video-seconds`, up to 20). Use Kling 4.0 for multi-shot prompts, an end frame, voices, 1080p or clips past 20s.\\n- Seedance quality: `mini` for the lowest cost, `fast` for speed, `standard` for maximum quality and for 1080p/4K. Seedance 2.5 has a single tier and ignores `--quality`.\\n- Longer than 15 seconds, or more than 9 image / 3 video / 3 audio references: use Seedance 2.5. It reaches 30s and 30/10/10 references (50 files total) at 480p/720p/1080p, but has no 4K.\\n- Seedance 2.x has no real-people option. A video that can\'t be made at the listed rate, usually one showing a real person, costs a higher rate, charged before it starts.\\n\\n### Video edit and motion-control categories\\n\\nUse `videodraft models video --category video_edit` for existing-video transforms and `--category motion_control` for motion transfer.\\n\\n| Need | Command/model | Important limits |\\n| -------------------------------------------------- | ---------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\\n| Most edits of a source from 3 to 15s (DEFAULT) | `videodraft edit video <video> \\"...\\"` (auto-selects `gemini-omni-1.2-flash`) | Source 3-15s or it REFUSES; up to 2 image refs on Google, no creative video refs; 360p/720p/1080p/4K; audio always regenerated (no `--preserve-audio`) |\\n| Cheapest simple prompt edit | `videodraft edit video <video> \\"...\\" --model grok-imagine-video-edit` | No image refs; source silently truncated to 8s; auto/480p/720p |\\n| Edit with several image references | `--model happy-horse-video-edit --ref ...` | Up to 5 refs; 720p/1080p; source silently truncated to 15s; highest rate |\\n| Controlled Kling edit | `--model kling-o3-video-ref-edit --ref ...` | Up to 4 refs; Standard/Pro; source silently clamped to 3-10s |\\n| Whole source over 15s and up to 30s, or 7 elements | `--model kling-4.0-video-edit --ref ...` | Tier 2. Up to 10 refs and 7 image elements; 720p/1080p; edits a whole 3-30s source; `--duration` 3-30 sets a new length |\\n| Kling 4.0 Flash edit, when the user names it | `--model kling-4.0-flash-video-edit --ref ...` | Tier 2, by name: the faster, cheaper Kling 4.0 edit. Up to 10 refs and 7 image elements; 720p only; edits a whole 3-20s source; `--duration` 3-20 sets a new length |\\n| Transfer reference motion to an image | `videodraft edit motion <image> [direction] --motion-video <video>` | Prompt/direction is optional; Kling V3 default; optional one image-only `--element`; element requires video orientation |\\n\\nIf the user explicitly names one of these models, preserve it. The CLI uploads local source videos and reference images automatically. Editing returns an async job and waits by default.\\n\\n**Omit `--model` and the SERVER chooses**, because only it can measure the source. It picks `gemini-omni-1.2-flash` for any source from 3 to 15s. When that is not safe (source longer than 15s, unmeasurable duration, `--preserve-audio`, more than 2 refs, or Fal BYOK with refs) it spends nothing and returns a priced menu: per model, the seconds it would edit, the seconds it would drop, and the credit cost. The CLI prints that table and exits 2. Show it to the user, then re-run with `--model`.\\n\\n**Truncation is the trap here.** Gemini, Kling 4.0 Video Edit (up to 30s) and Kling 4.0 Flash Video Edit (up to 20s) refuse sources they cannot fully consume. Other edit models accept a 30s clip but return only its first 8-15 seconds. `videodraft edit video` now warns when this will happen and the tool response carries `source.truncated` / `source.dropped_seconds`; relay it to the user rather than letting them discover it in the output.\\n\\nTo edit a longer source without losing its tail, cut it into <=15s pieces in the selected editing app (`videodraft_editor` by default), edit each with Gemini, then reassemble and export in that app. VideoDraft has no server-side split/concat, so this needs a local editing route.\\n\\nKling O3 is also exposed for reference generation. `videodraft generate video --model kling-o3-video-ref-edit` requires exactly one `--ref-video` and generates a new reference-guided clip. Wan 3.0 handles new text, frame, and mixed-reference generation, but is not an existing-source edit model.\\n\\n### Reference-first video workflow\\n\\n- Prefer a start frame or reference image whenever a specific character, product, location, style, composition, or brand identity must stay recognizable.\\n- If the user gives a reference, pass it. Never silently replace it with a text description.\\n- If no reference exists and continuity matters, generate a still first with the user\'s explicitly requested compatible image model, otherwise use Nano Banana 2.1. Wait for the image URL, then animate it with the selected video model. Confirm the combined image plus video cost before starting.\\n- For multi-shot scenes, generate shot images with `videodraft shots <project_id> --model <selected-image-model> --grid`. Preserve an explicitly requested compatible image model; otherwise use `nano-banana-2.1`. The grid establishes the scene and characters together, then decodes into individual shot images.\\n- Animate the decoded shot images as per-shot start frames or references. Do not independently text-generate each video clip when the shots need to match.\\n- Pure text-to-video remains appropriate for generic one-off footage where no subject, composition, or continuity needs to be preserved.\\n\\n### Audio\\n\\n- **Seed Audio 1.0**: use `videodraft generate audio` for open-ended speech, sound, music, or prompt-driven audio editing. It accepts up to three audio references or one image. Address audio references as `@Audio1`, `@Audio2`, and `@Audio3`. Preset and custom cloned voice IDs are supported. Output is up to 120 seconds. There is no requested-duration input. The CLI automatically retries transient responses with one idempotency key. To recover after the CLI process itself is interrupted, set `--idempotency-key <uuid>` on the original command and reuse it.\\n- **Voiceover/TTS**: prefer ElevenLabs. Brittney is the platform default voice; under ElevenLabs BYOK, use a compatible voice from the user\'s account. Honor another supported voice/provider when the user explicitly selects it. ElevenLabs voices run on Eleven v4 in one of two modes: Standard (the default, best quality) or Turbo (Eleven v4 Turbo, faster and half the price). Keep Standard unless the user wants faster or cheaper speech. Pick the mode with `generate voiceover --mode standard|turbo` or `produce --voice-mode standard|turbo`; over MCP, pass `mode` to `generate_voiceover` or `voice_mode` to `produce_project`. Google, OpenAI and cloned `custom-*` voices ignore it. v4 takes no style or speed settings and no SSML `<break>` tags; audio tags such as `[whispers]` work. Dialogue stays on Eleven v3.\\n- **Dialogue, voice changing, and dubbing**: ElevenLabs only.\\n- **Sound effects**: ElevenLabs Sound Effects v3 only, 0.5-30 seconds.\\n- **Music**: use `lyria-3.5` for all music, short or long (up to ~3 minutes), with vocals/lyrics or instrumental music. When `--model` is omitted the CLI sends no model and the server default applies, which is `lyria-3.5` wherever the backend supports it. If the server answers that `lyria-3.5` is an unknown model, that backend predates it: rerun without `--model` (the server default then applies), or use `lyria-3-pro-preview` for a track longer than 30 seconds. `lyria-3-clip-preview` (fixed ~30s) and `lyria-3-pro-preview` remain available for explicit requests. Lyria length and structure are prompt-guided, not exact; for an instrumental, include \\"instrumental only, no vocals\\" in the prompt. `--length` and `--instrumental` only apply to ElevenLabs. Use `elevenlabs-music-v2.5` when a specified 3-300 second length, composition plan, or style reference track matters. Lyria references: up to 10 images on Google, 1 on Fal BYOK; 3.5 Fal prompts are 1-5000 characters (an image-only request gets a neutral prompt). `elevenlabs-music` is an alias for v2.5. Use `elevenlabs-music-v1` only when the user asks for v1 by name; it takes a prompt, `--length` and `--instrumental` only.\\n- **ElevenLabs Music v2.5 inputs**: either a prompt (`--length`, `--instrumental`) or a composition plan, never both. A plan is 1-30 sections of 3-120 seconds each, up to 300 seconds in total, and `--plan`/`--section` pick v2.5 when `--model` is omitted. Empty section parts default to 20 seconds and an instrumental part. Build one with repeatable `--section \\"<seconds>|<style, style>|<text>\\"` (use `\\\\n` for line breaks) or pass `--plan plan.json` with `{\\"chunks\\":[{\\"text\\",\\"duration_ms\\",\\"positive_styles\\",\\"negative_styles\\",\\"context_adherence\\",\\"audio_reference\\"}]}`. Section text is an optional `[Section name]`, lyric lines, and `{inline directions}`. Put 6-7 specific English styles on the first section; it sets the genre. `--ref-audio <url|file>` adds a style reference clip to the first section (window up to 30 seconds via `--ref-start`/`--ref-end` in ms, `--ref-strength low|medium|high|xhigh`); local files are uploaded, including relative `audio_reference.audio_url` paths in a plan file. `--seed` works only with a plan. `--format` picks the output (`mp3_48000_192` default on v2.5; `pcm_*`, `ulaw_8000` and `alaw_8000` arrive as stereo WAV files). Style references don\'t run on the user\'s own ElevenLabs key; with that key connected, drop the reference or ask the user to turn the key off. The CLI retries transient responses with one idempotency key; set `--idempotency-key <uuid>` to recover after an interruption.\\n- Voice Changer and Dubbing require the source media duration and currently accept source media up to 300 seconds.\\n\\n**User-supplied ElevenLabs voice IDs:** voiceover, dialogue, and voice changing accept raw IDs (16-64 alphanumeric characters) or `elevenlabs-<id>`. `videodraft models voices` / MCP `list_available_voices` is for discovery, not an allowlist. Pass a supplied ID directly even when it is absent from the catalog; do not reject it or substitute a catalog voice. The voice must be accessible to the provider account used for generation. Private or cloned voices may require the user\'s connected ElevenLabs key. A failed voice listing does not prove that a supplied ID cannot generate; a connected key with generation access may still work. If the provider rejects generation access, report that error rather than silently changing the voice.\\n\\nUse `--voice <id>` for voiceover and voice changing, and repeat `--line \\"<id>:Text\\"` for dialogue. These examples show both ID forms; replace the sample IDs with the user\'s supplied IDs:\\n\\n```bash\\nvideodraft generate voiceover \\"Hello there.\\" --voice kPzsL2i3teMYv0FxEYQ6 --download ./media/voiceover.mp3\\nvideodraft generate dialogue --line \\"kPzsL2i3teMYv0FxEYQ6:Hello.\\" --line \\"elevenlabs-kmSVBPu7loj4ayNinwWM:Welcome back.\\" --download ./media/dialogue.mp3\\nvideodraft generate voice-changer ./media/source.wav --voice elevenlabs-kPzsL2i3teMYv0FxEYQ6 --duration 12 --download ./media/changed-voice.mp3\\n```\\n\\nFor MCP, use `generate_voiceover.voice_id`, `generate_dialogue.lines[].voice_id`, or `change_voice.voice_id` with either form. ElevenLabs IDs are separate from Kling video-control voice IDs and MiniMax `custom-*` cloned-voice IDs. Do not convert IDs from those systems into ElevenLabs IDs.\\n\\n### Avatar / talking head\\n\\n**First decide the framing, not just \\"someone talks\\".** This lane animates a PORTRAIT facing the lens. A character delivering a line inside a real scene, with blocking, framing or camera movement, belongs to `generate video` instead: write the dialogue in the prompt and `gemini-omni-1.2-flash`, `seedance-2.5`, `seedance-2`, `kling-3.0` or `kling-o3` voices it natively (add a Seedance `--ref-audio` clip or a Kling voice bound per element for a specific voice). That is the default for any talking character; never plan silent video + TTS + lip-sync. Sending a cinematic shot to Fabric returns a head-on talking headshot, not the shot that was asked for. `videodraft models video --json` lists these under `recommended.in_scene_dialogue`.\\n\\nFor a presenter, spokesperson or explainer speaking to camera, VEED Fabric is the preferred model. Choose the dedicated path from the media the user already has:\\n\\n| Starting media | Command | Use |\\n| ------------------------------------------ | ------------------------------------------------------------------------- | ---------------------------------------------------------- |\\n| Portrait + script, reusable avatar record | `videodraft avatar create <portrait> --script \\"...\\"` then `avatar render` | Managed avatar flow with bundled speech preparation |\\n| Portrait + text | `videodraft avatar fabric <portrait> --text \\"...\\"` | One-off direct VEED Fabric text mode |\\n| Portrait + existing audio | `videodraft avatar fabric <portrait> --audio <audio>` | One-off direct VEED Fabric audio lip sync |\\n| Portrait + existing audio, short and sharp | `videodraft avatar h3-lipsync <portrait> --audio <audio>` | MiniMax H3 Max Lip Sync, 5-14.8s at up to 2K |\\n| Existing video + existing audio | `videodraft avatar lipsync <video> --audio <audio>` | Sync Labs Lipsync 2 (Tier 2): re-dub existing footage only |\\n\\nThe managed renderer is VEED Fabric Fast (`veed/fabric-1.0/fast`). Direct Fabric, MiniMax H3 Max Lip Sync, and Sync Labs are paid AI Studio generations and return async job IDs.\\n\\n1. Obtain the avatar image. Prefer the user\'s supplied portrait or an existing character. If none exists, use the user\'s explicitly requested compatible image model, otherwise generate a front-facing head-and-shoulders portrait with `nano-banana-2.1`, direct eye contact, a natural expression, and a clean background. Match the intended video aspect ratio when practical.\\n2. If the portrait is visibly soft or too small, run Topaz image enhancement/upscaling before animation.\\n3. Generate a script only if needed: `videodraft avatar script \\"<idea>\\"`.\\n4. Create the avatar record and speech: `videodraft avatar create <portrait-url-or-file> --script \\"...\\" --voice <id> --ar 9:16`. Prefer ElevenLabs when unspecified, but honor another explicitly selected supported voice/provider.\\n5. Render with VEED Fabric: `videodraft avatar render <avatar_video_id> --resolution 720p`.\\n\\nThe portrait is passed as the avatar\'s character image, not as a generic video\'s start frame. Prefer rendering directly at 720p. Use 480p only when the user prioritizes lower cost. Avatar script generation and `avatar create` (including speech) are bundled/free. Confirm the Fabric render cost, plus portrait generation or upscaling when needed.\\n\\nDirect Fabric text/audio, H3 Max Lip Sync, and Sync Labs do not use the managed avatar record. The CLI uploads local portrait, video, and audio files automatically. `avatar fabric --speed fast` applies only to audio mode. `avatar h3-lipsync` takes no prompt: pick `--resolution 480P|768P|1080P|2K` (default 768P), an optional `--seed`, `--no-transcription` to sync without transcribing the audio (transcription is on by default), and `--safety-checker` only when the user asks for Fal\'s checker. The portrait\'s width / height must be 0.4-2.5, and audio shorter than 5 seconds is refused before any charge. Sync is billed per verified audio second; under Fal BYOK, `sync_mode` remains available but `temperature` and `active_speaker` are ignored by the provider.\\n\\n### Upscaling / enhancement\\n\\n- **Images**: Topaz via `videodraft upscale image <url-or-file> --scale 1x|2x|4x [--mode precision|generative|creative] [--model <name>]`. Modes: `generative` (default; Wonder 3.5, Topaz\'s recommended model for AI-generated images; `Redefine` takes `--prompt`, `--creativity 1-6`, `--texture 1-5`), `precision` (faithful and cheapest; Standard V2, High Fidelity V3, Low Resolution V2, CGI, Text Refine; use for clean real photos), `creative` (Bloom 2; artistic, `--prompt`, `--creativity 1-9`). Extra knobs: `--no-face-enhance`, `--face-strength`, `--sharpen`, `--denoise`, `--fix-compression`, `--format png`. Use 1x for light enhancement without enlargement, 2x as the general default, and 4x only when the source quality and target size justify it. The server must verify dimensions from a readable image of at most 50 MB; `--width` and `--height` are compatibility hints and cannot bypass a failed probe. The result may be immediate or queued; the CLI waits by default. Use `--no-wait` for an async job ID, and poll it with `status` or `wait`. Cost: per started block of output megapixels; precision is cheapest, then generative, then creative.\\n- **Videos**: Topaz via `videodraft upscale video <url-or-file> --resolution 720p|1080p|4k` (preferred) or `--scale 2x`, plus `--mode precision|generative|creative` and `--model <name>`. `generative` (default; Starlight Precise 2.6, Topaz\'s recommended model for AI-generated footage; Starlight Fast 2 at half price) is billed per second, more at 4K. `precision` (Proteus, Proteus Natural, Iris, Gaia 2 for animation, Rhea, Theia, Artemis, Dione) is much cheaper, billed per second by output resolution; use it for real footage or when cost matters. `creative` (Astra 2, `--prompt`, `--creativity`, `--realism`, `--sharp`) always renders 4K and costs the most. `--fps 60` delivers 60fps on the same pass; any output above 30fps (including a 50/60fps source) doubles every rate; the server must verify duration, dimensions, and frame rate from an MP4/MOV source of at most 100 MB. `--duration`, `--width`, `--height`, and `--source-fps` are compatibility hints and cannot override billing or bypass a failed probe. The same source-verification requirement applies to frame interpolation. `--scale` also accepts intermediate factors such as `1.5x`. Max source length 5 minutes. The job is asynchronous; the CLI waits by default, while MCP callers poll `check_generation_status`. MCP video input must be VideoDraft-hosted, so upload local or external sources first.\\n- **Frame interpolation / slow motion**: `videodraft interpolate <url-or-file> --fps 60 [--model Apollo|Chronos|Aion] [--slowdown 1-8]` (MCP `interpolate_video`). Resolution is unchanged. Apollo (default) for smooth general conversion, Chronos for natural slow motion, Aion for extreme slow motion. Apollo/Chronos are billed per output second (more at 4K); Aion costs more. These rates cover targets up to 60fps; above 60fps multiply by target FPS / 60 (120fps doubles the rate). Output seconds = source seconds \xD7 slowdown. The final charge rounds up to a whole credit.\\n- Use upscaling to preserve the image/video while improving detail, resolution, or cleanup. It cannot fix the wrong subject, misspelled text, bad framing, unwanted objects, broken continuity, or incorrect motion. Use an edit or regeneration for those problems. Keep `generative` for AI-generated sources; switch to `precision` for clean real photos/footage or a cheap pass, and `creative` only when the user wants an artistic reinterpretation.\\n- For a new Fabric avatar, render directly at 720p instead of rendering at 480p and then upscaling. Upscale the source portrait first only when the portrait itself is low quality.\\n\\n## Capability gotchas\\n\\n- Each model\'s `inputs` block is authoritative: supported `aspect_ratios`, `resolutions`, `quality_options`, `start_frame`/`end_frame`, `max_reference_images/videos/audio`, `multi_prompt`, `audio_toggle`. Passing an unsupported input fails with a clear error \u2014 check first, don\'t trial-and-error paid calls.\\n- Most video models support only 16:9 / 9:16 / 1:1. A 3:4 request hard-fails on most.\\n- `--seed` reproduces a specific output on models that support it (e.g. Ideogram 4.5). GPT Image 2.6 and FLUX 3 Image reject any explicit seed; older models may ignore unsupported seeds. You do not need a seed for variation \u2014 `--num` already varies.\\n- `--rendering-speed` remains accepted for explicit legacy image requests and their cost estimates. Current Ideogram models use `--quality`. Always trust `videodraft models image --json` over this list; new models and tiers appear there the moment the platform ships them, with no CLI update.\\n- Prefer `seedream-v5.5` for Seedream text-to-image and edits. It accepts up to 10 image references, up to 6 outputs, `--resolution 1K`, `1.5K`, or `2K`, and `--background transparent` for a transparent PNG. `--format png` is the default; `--format jpeg` is available for opaque or automatic backgrounds. `--seed` requires a selected Pika personal key; Fal and Atlas do not expose it. `--image-width` and `--image-height` set an exact size with VideoDraft credits or a Fal key: 921,600-4,624,220 total pixels and 1:16 to 16:1 aspect ratio. These override the resolution and ratio, and can also be passed to `costs`; Pika and Atlas personal keys cannot use them. `--watermark` adds Fal\'s visible watermark and also requires VideoDraft credits or a Fal key. References add to each output\'s cost; the final cost rounds up to whole credits. `seedream-v5-pro` remains available.\\n- Reference inputs: `--ref <img>` (images, including up to 10 total for Gemini Omni 1.2 Flash and Wan 3.0, and 7 for Grok 1.5), `--source-video <v>` (Gemini uploaded edit/extension source), `--ref-video <v>` (up to 3 creative videos <=15s each for Gemini Omni 1.2 Flash; also Wan 3.0, MiniMax H3, MiniMax H3 Max, and Seedance 2), `--ref-audio <a>` (Wan 3.0, MiniMax H3, MiniMax H3 Max, Seedance 2), and `--element \'<json>\'` or `--element @elements.json` for Kling V3/O3. For an exact Seedance 2.x reference-video `--estimate`, add `--ref-video-seconds <combined-seconds>`; Seedance bills input seconds alongside output. Wan 3.0 and MiniMax H3 do not bill input reference seconds; MiniMax H3 Max bills them as pooled reference tokens. The CLI uploads local media references and every structured element without flattening the source/reference roles. `--segment \\"<prompt>:<seconds>\\"` (repeatable) drives Kling 3.0, Kling 3.0 Turbo, and O3 multi-prompt generation. Use 1-6 segments of 1-15 whole seconds each, with 3-15 seconds total. `generate image --video-ref` is the nano-banana-2 video reference.\\n- The top-level prompt is OPTIONAL for Gemini Omni 1.2 Flash media-input or continuation calls, Wan 3.0 frame/reference modes, `generate video` with multi-prompt models, and Kling 3.0 Turbo (`--model kling-v3-turbo`) image-to-video. Text-only Gemini and Wan calls still require a prompt unless their live schema says otherwise.\\n- Hosted AI Production fallback: `videodraft produce <project> --mode full_video` generates one Seedance 2 video per scene. The MCP equivalent is `produce_project` with `mode: \\"full_video\\"`. Poll with `videodraft generations`, then `videodraft finalize <project>` swaps them into the hosted timeline before `export`. In VideoDraft ADE, do not choose this path while `videodraft_editor` is available unless the user explicitly requests hosted production. A selected external app or existing external project also takes precedence over this hosted fallback. Generate or download the scene assets, import them, and assemble/export in the selected app (the native editor by default). If the user explicitly requests another compatible video model for a hosted production, do not use this fixed Seedance path; generate the project shots manually with the requested model and attach them to the hosted timeline.\\n\\n## Cost model\\n\\nThis skill lists no prices because they change with provider routing and sales. Get the current price from `videodraft costs <model> [settings]` or the command\'s `--estimate` flag; both read live prices from the server and spend nothing. Never quote a price from memory. What each kind of job is billed on:\\n\\n- Images: per image (x `--num`). Matrix-priced models (GPT Image, Nano Banana 2.1 and Pro, Seedream v5 Pro, Ideogram 4.5, Grok Imagine 2.0) vary by resolution and/or quality (Nano Banana 2.1 thinking and web search are free); Grok Imagine 2.0 also charges per reference image (up to 3).\\n- Video: per output second; the rate depends on model, resolution, quality and native audio on/off.\\n- Gemini Omni 1.2 Flash: per output second by resolution (720p default). Extend appends an explicit 3-10 seconds to a 1-30s source, whether uploaded or resolved from a prior interaction; 40 seconds total is reachable only while the source stays at or under 30s. Fal BYOK generation, basic source edits and extensions cost zero VideoDraft credits; interaction-ID continuation and separate edit/extend references are unavailable under Fal BYOK; uploaded-source extension is supported.\\n- MiniMax H3: per output second by resolution (768p default). The first 5 reference images are included, then each additional image adds a charge. Reference video and reference audio are NOT billed.\\n- MiniMax H3 Max: per output second at 480p or 768p (default), plus pooled reference tokens: a free allowance, then a charge per 1,000 tokens. An image is `(width x height) / 1024` tokens; a reference video is 2,886 tokens per second at 480p or 7,459 at 768p; reference audio is about 2,121 per second. Pass `--ref-audio-seconds` for an exact estimate with audio references. The server measures each reference image, so a quote that assumes 1024x1024 is a floor.\\n- Wan 3.0: per output second by resolution. Auto duration reserves 30 seconds and reconciles unused credits from the provider-reported output duration. Fal BYOK charges zero VideoDraft credits.\\n- Grok Imagine Video 1.5: per output second by resolution, plus a small charge for each first-frame or reference image. Native generated audio is part of every output.\\n- Kling: per output second by tier and audio; voice control costs more.\\n- Seedance 2.0 / 2.5: per output second by tier and resolution. A video that can\'t be made at the base rate, usually one showing a real person, costs a higher rate; the difference is charged before it starts. `get_model_costs` returns both (`cost` and `higher_rate_cost`). Reference videos bill input seconds alongside output.\\n- Shot-image batches: one image per shot (+1 grid image per scene in `--grid` mode) \u2014 the largest single spend in the pipeline.\\n- VEED Fabric avatar renders: per second by resolution. Avatar creation and its speech are bundled/free; only optional portrait generation/upscaling adds cost before the render.\\n- Direct VEED Fabric: per second by resolution; fast audio costs more than text or normal audio.\\n- MiniMax H3 Max Lip Sync: per output second by resolution (768P default). The video runs as long as the audio (at least 5s; only the first 14.8s is used), billed on the server-measured length rounded up, so at most 15 seconds. Use MP3, WAV, M4A (AAC), or AAC audio; other formats run only on the user\'s own Fal key.\\n- Sync Labs Lipsync 2: per verified audio second.\\n- Voiceover TTS: per character. ElevenLabs Turbo (Eleven v4 Turbo) costs less than Standard (Eleven v4), and cloned `custom-*` voices cost more; this applies to standalone voiceovers AND per-scene narration during `produce`. Quote Turbo with model id `voiceover-turbo` (CLI: `costs voiceover --mode turbo`) and cloned voices with `voiceover-cloned`. Silent tracks are free. Voice cloning itself is a flat fee per clone.\\n- Lyria music: one flat price per track (Clip, 3.5 and legacy Pro differ). Fal BYOK uses zero VideoDraft credits.\\n- Seed Audio 1.0: per actual output minute, prorated and rounded up to a whole credit. VideoDraft reserves the 120-second maximum and refunds the unused portion after generation. Fal BYOK is free.\\n- ElevenLabs audio: sound effects are per second, dialogue is per character, music/voice-changer/dubbing are per started minute (Music v2.5 and v1 cost the same); estimate a composition plan with its total length. Voice changer and dubbing reject source media above 300s in the current synchronous flow.\\n- xAI bills refused requests, so failed Grok generations are not refunded.\\n- Upscales: priced by output size, mode, and (video) duration/fps; see the Upscaling section above.\\n\\nQuote before spending:\\n\\n```bash\\nvideodraft costs gemini-omni-1.2-flash --type video --duration 8 --resolution 720p --audio\\nvideodraft costs topaz-upscale-video --type video --duration 10 --width 1920 --height 1080 --resolution 4k --mode generative\\nvideodraft costs topaz-upscale --type image --width 2048 --height 2048 --scale 2x\\nvideodraft costs topaz-interpolate-video --type video --duration 10 --width 1920 --height 1080 --fps 60 --topaz-model Apollo\\nvideodraft costs minimax-h3 --type video --duration 10 --resolution 2K --ref-images 7\\nvideodraft costs minimax-h3-max --type video --duration 10 --resolution 768p --ref-images 2\\nvideodraft costs flux-3-max --type video --duration 5 --resolution 720p\\nvideodraft costs kling-4.0 --type video --duration 10 --resolution 1080p --ref-video-seconds 6\\nvideodraft costs kling-4.0-video-edit --type video --resolution 720p --ref-video-seconds 12 # source length; output matches it\\nvideodraft costs kling-4.0-flash --type video --duration 10 --ref-video-seconds 6\\nvideodraft costs kling-4.0-flash-video-edit --type video --ref-video-seconds 12 # source length; output matches it\\nvideodraft costs grok-imagine-video-1.5 --type video --duration 8 --resolution 720p --ref-images 4\\nvideodraft costs seedance-2 --type video --duration 15 --resolution 720p --quality standard --audio\\nvideodraft costs grok-imagine-2.0 --type image --resolution 2K --quality medium --num 2\\nvideodraft costs elevenlabs-dubbing --type audio --duration 60\\nvideodraft costs seed-audio-1.0 --type audio --duration 60 # scenario only; model controls actual length\\nvideodraft costs elevenlabs-dialogue --type audio --chars 350\\nvideodraft costs voiceover --type audio --chars 800 # TTS, per character\\nvideodraft costs voiceover --type audio --chars 800 --mode turbo # ElevenLabs Turbo, cheaper per character\\nvideodraft generate video \\"...\\" --model gemini-omni-1.2-flash --estimate # same quote, inline\\nvideodraft generate video \\"...\\" --model minimax-h3-max --duration 8 --resolution 768p --prompt-expansion-mode balanced\\n```\\n\\nMiniMax H3 Max and FLUX 3 Max are Tier 1; Gemini Omni remains the default. Use `videodraft costs` or `--estimate` for current prices before spending.\\n\\n## GenJutsu motion transfer\\n\\n`genjutsu` and `genjutsu-light` are two separate native Higgsfield models. Use `videodraft edit motion` with one subject image, a required `--motion-video`, and up to seven additional `--ref` images. Prompt text is optional. Resolution is `480p`, `720p` (default), or `1080p`. GenJutsu accepts 4\u201330 seconds; Light accepts 4\u201315 seconds. Use MP4 under 100 MB and trim longer sources before submission.\\n\\n```bash\\nvideodraft edit motion character.png \'Use this character throughout the performance\' --model genjutsu --motion-video performance.mp4 --ref outfit.png --resolution 720p --download ./result.mp4\\nvideodraft edit motion character.png --model genjutsu-light --motion-video performance.mp4 --resolution 480p --duration 4.208333 --estimate\\nvideodraft generate video --model genjutsu-light --ref character.png --ref-video performance.mp4 --resolution 480p --no-wait\\n```\\n\\nMCP uses `generate_motion_control_video` with `model`, `motion_video_url`, `reference_images` (1\u20138 URLs), optional `prompt`, and `resolution`. A single `image_url` is accepted instead of `reference_images`; do not send both. `idempotency_key` is an optional UUID for an identical retry. Poll `check_generation_status` with `job_id` and attach completed output to a project shot when required.\\n\\nNo provider settings exist for duration, aspect ratio, seed, FPS, quality tier, orientation, Elements, or audio toggles. Existing Kling flags remain Kling-only. Output follows source motion; Motion Transfer can rebuild the scene rather than preserving every background detail. Both modes use Higgsfield directly; unsupported personal-provider selection returns an error without switching payer.\\n\\nGenJutsu bills each rounded-up source second, priced by resolution. Light bills billable seconds: fractional source seconds plus rounded-up output seconds. Quote with `videodraft costs` or `--estimate`; `get_model_costs` and `--estimate` take the source duration. The server measures the source and rounds the total credit charge up once; Light refunds unused output time. No promotional discount is assumed.\\n","references/pipeline.md":"# VideoDraft pipeline reference\\n\\nEverything here describes the hosted fallback pipeline through the CLI (`videodraft <command>` / `videodraft call <tool>`) or hosted MCP connector (tool names in backticks). Honor the chosen app, existing project\'s editing surface and VideoDraft ADE\'s `<creative_routes>` as described in SKILL.md. Use hosted tools for asset generation and optional script/storyboard stages, then finish in the selected editing app. With no external app selected and the local `videodraft_editor` MCP available, use the native editor reference linked from SKILL.md. Continue through `produce_project` and `export_video` only when the user explicitly requests a hosted web production, or the native editor is unavailable and no external app is selected.\\n\\nUse direct asset tools for standalone images, clips, audio, upscales, and descriptions. Use a hosted project when the user explicitly wants the editable web project, when a hosted storyboard stage is useful, or when the native editor is unavailable and no external app is selected. Script-only uses a script-stage project and stops at the script. For a local production, stop before hosted production, import the generated assets into the selected app, and build/export there; the native editor remains the default when available and no other app or existing project takes precedence.\\n\\n## Stages and their tools\\n\\n| Stage | CLI | Underlying tool |\\n| ---------------------------------------- | --------------------------------------------------------------------------- | ------------------------------------------- |\\n| Idea \u2192 full storyboard project | `videodraft create \\"<idea>\\"` | `generate_storyboard_from_idea` |\\n| Idea \u2192 script only (stop there) | `videodraft create \\"<idea>\\" --script-only` | `generate_script_from_idea` |\\n| Footage IS the video | `videodraft call generate_storyboard_from_media` | `generate_storyboard_from_media` |\\n| Batch shot images | `videodraft shots <project>` | `generate_shot_images` |\\n| One shot image | `videodraft generate image --project <id> --scene N --shot M` | `generate_image` |\\n| Produce (voiceover, captions, timeline) | `videodraft produce <project>` | `produce_project` |\\n| Seedance full-video production | `videodraft produce <project> --mode full_video` | `produce_project` with `mode: \\"full_video\\"` |\\n| Per-shot motion prompts | `videodraft video-prompts <project>` | `generate_video_prompts` |\\n| Motion clip for a shot | `videodraft generate video --project <id>` | `generate_video` |\\n| Attach a finished clip to the timeline | `videodraft attach <project> --scene N --shot M --media <url> --type video` | `attach_media_to_shot` |\\n| Find free b-roll (no credits) | `videodraft stock search \\"<query>\\"` | `search_stock_media` |\\n| Copy stock media onto the CDN | `videodraft stock import <ref>` | `import_stock_media` |\\n| Background music | `videodraft generate music --attach <project>` | `generate_music` / `set_background_music` |\\n| Song with vocals, lyrics or sections | `videodraft generate music --model elevenlabs-music-v2.5 --section \\"...\\"` | `generate_music` with `composition_plan` |\\n| General or reference-driven audio | `videodraft generate audio \\"...\\"` | `generate_audio` |\\n| Sound effect | `videodraft generate sound-effect \\"...\\"` | `generate_sound_effect` |\\n| Dialogue audio | `videodraft generate dialogue --line \\"voice:text\\"` | `generate_dialogue` |\\n| Voice changer | `videodraft generate voice-changer <audio>` | `change_voice` |\\n| Dubbing | `videodraft generate dub <audio_or_video>` | `dub_media` |\\n| Scene voiceover | `videodraft generate voiceover --project <id> --scene N` | `generate_voiceover` |\\n| Avatar script | `videodraft avatar script \\"<idea>\\"` | `generate_avatar_script` |\\n| Avatar + speech | `videodraft avatar create <portrait> --script \\"...\\"` | `create_avatar_video` |\\n| Talking-head render | `videodraft avatar render <avatar_video_id>` | `render_avatar_video` + `get_avatar_video` |\\n| Direct portrait + text/audio | `videodraft avatar fabric <portrait> --text \\"...\\"` or `--audio <file>` | `generate_veed_fabric_video` |\\n| Short portrait clip from audio, up to 2K | `videodraft avatar h3-lipsync <portrait> --audio <file>` | `generate_minimax_h3_lipsync_video` |\\n| Existing video + replacement audio | `videodraft avatar lipsync <video> --audio <file>` | `generate_sync_lipsync_video` |\\n| Existing-video AI edit | `videodraft edit video <video> \\"<change>\\" --model <video-edit-model>` | `edit_video` |\\n| Motion transfer | `videodraft edit motion <image> [direction] --motion-video <video>` | `generate_motion_control_video` |\\n| Image enhancement/upscale | `videodraft upscale image <image>` | `upscale_image` |\\n| Video enhancement/upscale | `videodraft upscale video <video>` | `upscale_video` |\\n| Frame rate / slow motion | `videodraft interpolate <video> --fps 60 [--slowdown 4]` | `interpolate_video` |\\n| Final MP4 | `videodraft export <project>` | `export_video` + `check_export_status` |\\n\\n## Rules that prevent broken results\\n\\n- **The storyboard is generated FROM the script**, never from the raw idea. `videodraft create` runs the whole chain correctly. Don\'t call `generate_storyboard_scenes` with a raw idea as the \\"script\\".\\n- **Visual consistency**: never generate a storyboard shot in isolation. Shot prompts carry `[[asset:Name]]` / `[[shot:X-Y]]` tags that `generate_shot_images` resolves against the project\'s visual assets and prior shots. When generating a single shot whose prompt has no tags, pass `--ref` images yourself (the project\'s visual assets and/or the previous shot\'s image; `projects get` exposes both). For scenes with multiple shots or recurring characters, prefer `videodraft shots <project> --model <selected-image-model> --grid`: preserve an explicitly requested compatible image model, otherwise use `nano-banana-2`. It creates one coherent scene grid, then decodes it into individual shot images.\\n- **Reference-first video**: when identity, styling, or composition matters, do not generate each motion clip from text alone. Generate or select the shot still first, then pass the decoded shot image as `--start-image` or `--ref` to the selected video model. AI Production already composes scene grids and sends them to Seedance as references. If the user explicitly requests another compatible video model, bypass fixed Seedance full-video mode and generate the per-shot clips with the requested model, using the individual decoded shot images as anchors.\\n- **Seedance full-video pricing**: hosted `full_video` has no real-people option. A scene video that can\'t be made at the listed rate, usually one showing a real person, costs a higher rate, charged before it starts.\\n- **Narration voice mode**: ElevenLabs narration runs on Eleven v4. Standard is the default and the best quality. `videodraft produce <project> --voice-mode turbo` (MCP `produce_project` with `voice_mode: \\"turbo\\"`) uses Eleven v4 Turbo, which is faster and cheaper. For one scene, `videodraft generate voiceover --project <id> --scene N --mode turbo` (MCP `generate_voiceover` with `mode: \\"turbo\\"`) does the same. Google, OpenAI and cloned `custom-*` voices ignore the mode.\\n- **Hold off generating shot images while the user is still iterating** on storyboard structure.\\n- **produce \u2192 export ordering**: `export` requires a produced project where every production scene has timeline media. If `produce` returns `generating_shot_images`, poll the job ids it returns, then re-run produce.\\n- **Do not attach motion clips before production exists**: run `produce` successfully first, then attach finished motion clips to the production timeline. Attaching before `production_data` exists cannot place them in the final timeline.\\n- **Generated motion clips do not auto-attach**: after `generate video` completes, attach the clip with `attach_media_to_shot` (`media_type:\\"video\\"`, include `duration_seconds`) \u2014 it replaces the production timeline clip while keeping the storyboard still.\\n- **Talking heads use dedicated avatar tools**: do not use `generate video`. Use managed `avatar create` and `avatar render` for reusable avatars, direct `avatar fabric` for a portrait plus text/audio, `avatar h3-lipsync` for a short (5-14.8s) portrait clip from existing audio at up to 2K, and `avatar lipsync` for an existing video plus replacement audio. Reuse a supplied person image or generate a clear front-facing portrait with the explicitly requested compatible image model, otherwise Nano Banana 2. Managed avatar creation and speech are bundled/free; direct Fabric, H3 Max Lip Sync, Sync, and render are paid.\\n- **Existing-video edits use their own category**: call `edit_video` or `videodraft edit video` with a `video_edit` model when transforming the source itself. Kling O3 also has a reference-generation mode that creates a new guided clip. Wan 3.0 is a text/frame/reference generation model, not a source-video editor. Motion transfer similarly uses `generate_motion_control_video` or `videodraft edit motion` with a `motion_control` model.\\n- **Upscaling preserves rather than redesigns**: use Topaz when resolution, detail, or cleanup is the problem (generative mode by default: Wonder 3.5 / Starlight Precise 2.6, Topaz\'s pick for AI sources; precision for real photos/footage or the cheapest pass; creative only for an artistic reinterpretation; `interpolate` for frame rate or slow motion). Regenerate or edit when the subject, text, framing, continuity, or motion is wrong. Upscale a low-quality avatar portrait before Fabric; do not render a new avatar at 480p just to upscale the result.\\n- **Timeouts on the one-shot create**: if `create` times out at the transport layer, the project was still created server-side \u2014 `videodraft projects list`, take the most recent, and resume with its id. Don\'t start a duplicate.\\n\\n## User-attached media: classify roles first\\n\\nFor EACH attached file decide:\\n\\n- **visual_asset** \u2014 recurring reference (character / product / location / style). Upload, then pass in `visual_assets` of `generate_storyboard_from_idea` (via `videodraft call`), or add to an existing project with `add_visual_assets`. Type must be one of `character | object | location | style | custom` with a short name + concrete description.\\n- **shot** \u2014 the media IS footage for the video. Whole video = footage \u2192 `generate_storyboard_from_media`. Idea + footage \u2192 `generate_storyboard_from_idea` with `shot_media`. Existing storyboard \u2192 `attach_media_to_shots`.\\n- **reference** \u2014 inspiration only \u2192 fold a description into the idea/instructions; don\'t place it as a shot or asset.\\n\\nAmbiguous (e.g. a person holding a product)? Ask the user.\\n\\nUploads persist in the media library \u2014 recall later with `videodraft media list`.\\n\\n## Editing project data safely\\n\\n1. `videodraft call get_project_schema` \u2014 read the structure once per session.\\n2. `videodraft projects get <id> --raw` \u2014 the exact editable blob.\\n3. Modify; then `videodraft call update_project --stdin` with `{\\"project_id\\": \\"...\\", \\"data\\": {...}}`.\\n - Objects deep-merge key-by-key; **arrays replace wholesale** \u2014 send the complete array you\'re changing (e.g. all of `storyboard.scenes`).\\n - Scene shot arrays (`image_prompt` / `shot_types` / `shot_actions` / `search_prompt` / `preview_media`) are auto-aligned; fix-ups come back as warnings.\\n4. Snapshot before risky edits: `videodraft checkpoint create <id> --name \\"before re-script\\"`. Restore with `videodraft checkpoint restore <id> <version>`.\\n\\n## AI Studio sessions (standalone generations)\\n\\nProject generations group automatically, and standalone work is grouped per conversation (MCP) or per working directory (CLI) by the connection session \u2014 see the \\"AI Studio sessions\\" section of SKILL.md. Once the task is clear, give that automatic session a concise 3-6 word title before the first generation:\\n\\n```bash\\nvideodraft sessions name \\"Fox Brand Explorations\\"\\nvideodraft generate image \\"...\\"\\n```\\n\\nNaming creates the session with that title. If generation, a user, or an earlier agent created it first, the existing name is preserved. The command refuses to run while `VIDEODRAFT_SESSION` is set, because that override would send later generations to a different session. Use `sessions create` plus `--session` only to continue or deliberately create a separate group.\\n"}');
|
|
8186
8233
|
}
|
|
8187
8234
|
const root = bundledSkillDir();
|
|
8188
8235
|
const files = {};
|
|
@@ -9581,14 +9628,18 @@ function waitedText(job) {
|
|
|
9581
9628
|
if (typeof s !== "number" || s < 1) return void 0;
|
|
9582
9629
|
return `${formatDuration(s)} for a GPU, not billed`;
|
|
9583
9630
|
}
|
|
9631
|
+
function askingSpot(job) {
|
|
9632
|
+
return job?.status === "queued" && typeof job?.spot_note === "string";
|
|
9633
|
+
}
|
|
9584
9634
|
function stateText(job) {
|
|
9585
9635
|
const status = String(job?.status ?? "unknown");
|
|
9636
|
+
const onSpot = job?.machine?.spot === true;
|
|
9586
9637
|
if (status === "queued") {
|
|
9587
9638
|
switch (job?.machine?.phase) {
|
|
9588
9639
|
case "waiting":
|
|
9589
|
-
return "waiting for a free GPU (not billed)";
|
|
9640
|
+
return askingSpot(job) ? "waiting for a free GPU, regular or Spot (not billed)" : "waiting for a free GPU (not billed)";
|
|
9590
9641
|
case "starting":
|
|
9591
|
-
return "a GPU is starting for queued jobs (billed)";
|
|
9642
|
+
return onSpot ? "a Spot GPU is starting for queued jobs (billed)" : "a GPU is starting for queued jobs (billed)";
|
|
9592
9643
|
case "idle":
|
|
9593
9644
|
return "a machine is picking up queued work";
|
|
9594
9645
|
case "rendering":
|
|
@@ -9599,10 +9650,20 @@ function stateText(job) {
|
|
|
9599
9650
|
}
|
|
9600
9651
|
if (status === "running") {
|
|
9601
9652
|
const segments = segmentsText(job);
|
|
9602
|
-
return `rendering${segments ? ` (${segments})` : ""}`;
|
|
9653
|
+
return `rendering${onSpot ? " on Spot" : ""}${segments ? ` (${segments})` : ""}`;
|
|
9603
9654
|
}
|
|
9604
9655
|
return status;
|
|
9605
9656
|
}
|
|
9657
|
+
function spotText(job) {
|
|
9658
|
+
const reclaims = Number(job?.spot_reclaims ?? 0);
|
|
9659
|
+
const reclaimed = reclaims > 0 ? `; Google reclaimed its Spot machine ${reclaims === 1 ? "once" : `${reclaims} times`}` : "";
|
|
9660
|
+
if (job?.spot === "never") return "off for this job";
|
|
9661
|
+
const rate = typeof job?.spot_credits_per_minute === "number" ? ` (${job.spot_credits_per_minute} credits per minute)` : "";
|
|
9662
|
+
if (job?.status === "running" && job?.machine?.spot === true)
|
|
9663
|
+
return `rendering on a Spot machine${rate}${reclaimed}`;
|
|
9664
|
+
if (askingSpot(job)) return `asking for a Spot GPU too${rate}${reclaimed}`;
|
|
9665
|
+
return reclaimed ? reclaimed.slice(2) : void 0;
|
|
9666
|
+
}
|
|
9606
9667
|
var PHASE_WORDS = {
|
|
9607
9668
|
rendering: "rendering",
|
|
9608
9669
|
starting: "starting up",
|
|
@@ -9715,6 +9776,8 @@ async function waitAndDownload(ctx, jobId, out, extra = {}) {
|
|
|
9715
9776
|
const spin = spinner(ctx.out, `${label}: waiting`);
|
|
9716
9777
|
let last = "";
|
|
9717
9778
|
let reassured = false;
|
|
9779
|
+
let spotSaid = false;
|
|
9780
|
+
let reclaims = null;
|
|
9718
9781
|
let job;
|
|
9719
9782
|
try {
|
|
9720
9783
|
job = await pollRenderJob(ctx.client, jobId, {
|
|
@@ -9731,6 +9794,26 @@ async function waitAndDownload(ctx, jobId, out, extra = {}) {
|
|
|
9731
9794
|
last = state;
|
|
9732
9795
|
logLine(ctx, `${label}: ${state}`);
|
|
9733
9796
|
}
|
|
9797
|
+
const seen = Number(payload?.spot_reclaims ?? 0);
|
|
9798
|
+
if (reclaims !== null && seen > reclaims) {
|
|
9799
|
+
logLine(
|
|
9800
|
+
ctx,
|
|
9801
|
+
`${label}: Google reclaimed its Spot machine. Finished segments are kept; the job continues on the next machine.`
|
|
9802
|
+
);
|
|
9803
|
+
}
|
|
9804
|
+
reclaims = seen;
|
|
9805
|
+
const onSpot = payload?.status === "running" && payload?.machine?.spot === true;
|
|
9806
|
+
if (!spotSaid && (askingSpot(payload) || onSpot)) {
|
|
9807
|
+
spotSaid = true;
|
|
9808
|
+
const rate = typeof payload?.spot_credits_per_minute === "number" ? ` at ${payload.spot_credits_per_minute} credits per minute` : "";
|
|
9809
|
+
logLine(
|
|
9810
|
+
ctx,
|
|
9811
|
+
fmt.dim(
|
|
9812
|
+
ctx.out,
|
|
9813
|
+
onSpot ? `${label}: it renders on a Spot machine${rate}. Google can reclaim it at any time, and the job then continues from its finished segments. Submit with --no-spot to use regular GPUs only.` : `${label}: no regular GPU yet, so it also asks for a Spot GPU${rate}; the first GPU found takes the job. Google can reclaim a Spot machine at any time, and the job then continues from its finished segments. Submit with --no-spot to wait for a regular GPU only.`
|
|
9814
|
+
)
|
|
9815
|
+
);
|
|
9816
|
+
}
|
|
9734
9817
|
const queuedSeconds = typeof payload?.queued_seconds === "number" ? payload.queued_seconds : payload?.wait_seconds;
|
|
9735
9818
|
if (!reassured && payload?.status === "queued" && payload?.machine?.phase === "waiting" && typeof queuedSeconds === "number" && queuedSeconds > REASSURE_AFTER_SECONDS) {
|
|
9736
9819
|
reassured = true;
|
|
@@ -9837,6 +9920,9 @@ function registerRenderCommands(program) {
|
|
|
9837
9920
|
"--gpu <size>",
|
|
9838
9921
|
"GPU size from `render prices`: full (96 GB, default, fastest); half (48 GB) or quarter (24 GB) cost less per frame when offered"
|
|
9839
9922
|
).option("--blender <version>", "Blender version: 5.2 (default) or 4.5").option(
|
|
9923
|
+
"--no-spot",
|
|
9924
|
+
"wait for a regular GPU only; by default a full-GPU job that finds none for a few minutes also asks for a Spot GPU (higher rate; Google can reclaim it, and the job then continues on another machine)"
|
|
9925
|
+
).option(
|
|
9840
9926
|
"--out <path>",
|
|
9841
9927
|
"directory or file for the clip (default media/renders/<job_id>.mp4)"
|
|
9842
9928
|
).option("--no-wait", "submit and print the job id without waiting").action(async function(scene) {
|
|
@@ -9912,7 +9998,9 @@ function registerRenderCommands(program) {
|
|
|
9912
9998
|
procs,
|
|
9913
9999
|
blender_version: opts.blender,
|
|
9914
10000
|
gpu: opts.gpu,
|
|
9915
|
-
name
|
|
10001
|
+
name,
|
|
10002
|
+
// Only the opt-out is sent: the server decides where Spot is offered.
|
|
10003
|
+
spot: opts.spot === false ? "never" : void 0
|
|
9916
10004
|
})
|
|
9917
10005
|
)
|
|
9918
10006
|
);
|
|
@@ -9934,6 +10022,17 @@ function registerRenderCommands(program) {
|
|
|
9934
10022
|
`Waiting for a GPU is not billed. Once Google hands one over (usually within 10 minutes, longer at busy times), it bills ${typeof rate === "number" ? `${rate} credits per GPU-minute, ` : ""}per second.`
|
|
9935
10023
|
)
|
|
9936
10024
|
);
|
|
10025
|
+
if (typeof submitted?.spot_note === "string") {
|
|
10026
|
+
note(ctx.out, fmt.dim(ctx.out, `Spot: ${submitted.spot_note}`));
|
|
10027
|
+
} else if (submitted?.spot === "never") {
|
|
10028
|
+
note(
|
|
10029
|
+
ctx.out,
|
|
10030
|
+
fmt.dim(
|
|
10031
|
+
ctx.out,
|
|
10032
|
+
"Spot is off for this job: it waits for a regular GPU."
|
|
10033
|
+
)
|
|
10034
|
+
);
|
|
10035
|
+
}
|
|
9937
10036
|
const extra = { scene_sha: sha, uploaded, name: kept };
|
|
9938
10037
|
if (!opts.wait) {
|
|
9939
10038
|
const ref = kept ?? jobId;
|
|
@@ -9986,6 +10085,7 @@ function registerRenderCommands(program) {
|
|
|
9986
10085
|
job?.start !== void 0 ? `${job.start}-${job.end}` : void 0
|
|
9987
10086
|
],
|
|
9988
10087
|
["segments", segmentsText(job)],
|
|
10088
|
+
["spot", spotText(job)],
|
|
9989
10089
|
["waited", waitedText(job)],
|
|
9990
10090
|
["cost", costText(job)],
|
|
9991
10091
|
["billed", billedText(job)],
|
|
@@ -10153,7 +10253,7 @@ function registerRenderCommands(program) {
|
|
|
10153
10253
|
machines.map((m) => [
|
|
10154
10254
|
String(m?.name ?? ""),
|
|
10155
10255
|
String(m?.gpu ?? ""),
|
|
10156
|
-
phased ? PHASE_WORDS[m?.phase] ?? String(m?.phase ?? "") : String(m?.state ?? ""),
|
|
10256
|
+
(phased ? PHASE_WORDS[m?.phase] ?? String(m?.phase ?? "") : String(m?.state ?? "")) + (m?.spot === true ? " (Spot)" : ""),
|
|
10157
10257
|
String(m?.zone ?? ""),
|
|
10158
10258
|
// The last job of an idle machine is history, not what it does now.
|
|
10159
10259
|
!phased || m?.phase === "rendering" ? String(m?.job_id ?? "") : "",
|
|
@@ -10164,6 +10264,9 @@ function registerRenderCommands(program) {
|
|
|
10164
10264
|
if (!machines.length || machines.some((m) => m?.billing === false)) {
|
|
10165
10265
|
note(o, fmt.dim(o, WAIT_NOTE));
|
|
10166
10266
|
}
|
|
10267
|
+
if (typeof machine?.spot_note === "string") {
|
|
10268
|
+
note(o, fmt.dim(o, `Spot: ${machine.spot_note}`));
|
|
10269
|
+
}
|
|
10167
10270
|
});
|
|
10168
10271
|
});
|
|
10169
10272
|
render.command("stop").description(
|
|
@@ -10212,6 +10315,14 @@ function registerRenderCommands(program) {
|
|
|
10212
10315
|
]
|
|
10213
10316
|
]);
|
|
10214
10317
|
}
|
|
10318
|
+
const spot = prices?.spot;
|
|
10319
|
+
if (spot && typeof spot.credits_per_minute === "number") {
|
|
10320
|
+
note(
|
|
10321
|
+
o,
|
|
10322
|
+
`Spot fallback: ${spot.credits_per_minute} credits/min${Array.isArray(spot.gpus) ? ` on ${spot.gpus.join(", ")}` : ""}${typeof spot.regions === "number" ? `, ${spot.regions} regions` : ""}.`
|
|
10323
|
+
);
|
|
10324
|
+
if (typeof spot.note === "string") note(o, fmt.dim(o, spot.note));
|
|
10325
|
+
}
|
|
10215
10326
|
note(
|
|
10216
10327
|
o,
|
|
10217
10328
|
fmt.dim(
|