videodraft 0.32.0 → 0.33.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/README.md +18 -1
- package/dist/index.js +690 -18
- package/package.json +1 -1
- package/skills/index.json +7 -2
- package/skills/videodraft/SKILL.md +21 -0
- package/skills/videodraft/references/cloud-render.md +59 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "videodraft",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.0",
|
|
4
4
|
"description": "Official VideoDraft CLI for AI videos, images, audio and 3D assets. Agent-friendly: --json everywhere, stable exit codes, async job polling.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
package/skills/index.json
CHANGED
|
@@ -10,6 +10,11 @@
|
|
|
10
10
|
"sha256": "12a542bc0d902ae15e520b8d18b553bc5ff5229e97df60d0f799ba0c5387d334",
|
|
11
11
|
"bytes": 5431
|
|
12
12
|
},
|
|
13
|
+
{
|
|
14
|
+
"path": "references/cloud-render.md",
|
|
15
|
+
"sha256": "780c041eb2b20cffc0dd092135c5c7c22304157c9609ac63c400705696329cd1",
|
|
16
|
+
"bytes": 5269
|
|
17
|
+
},
|
|
13
18
|
{
|
|
14
19
|
"path": "references/editor.md",
|
|
15
20
|
"sha256": "82f1f972191430a4f44f28384cd3688c1553c744fcc5316c2798a400bff9d9be",
|
|
@@ -32,8 +37,8 @@
|
|
|
32
37
|
},
|
|
33
38
|
{
|
|
34
39
|
"path": "SKILL.md",
|
|
35
|
-
"sha256": "
|
|
36
|
-
"bytes":
|
|
40
|
+
"sha256": "b71fe7208f2cd79f97e2e91d0d0e9ef3fd0a2a76bb7be25e63d9d11d2251ebad",
|
|
41
|
+
"bytes": 58526
|
|
37
42
|
}
|
|
38
43
|
]
|
|
39
44
|
}
|
|
@@ -10,6 +10,7 @@ VideoDraft is an AI video creation platform where asset generation is the priori
|
|
|
10
10
|
- **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.
|
|
11
11
|
- **Asset I/O**: upload local files, download outputs, auto-upload local references, and save generated media where the user can see it.
|
|
12
12
|
- **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.
|
|
13
|
+
- **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`.
|
|
13
14
|
- **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.
|
|
14
15
|
- **Hosted project production**: idea → script → storyboard → hosted production timeline → 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.
|
|
15
16
|
|
|
@@ -60,6 +61,7 @@ With no chosen external app or existing external project, the presence of `video
|
|
|
60
61
|
- `videodraft generate video "slow dolly over a misty lake" --model gemini-omni-1.2-flash --duration 6 --download ./out/`
|
|
61
62
|
- **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.
|
|
62
63
|
- **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.
|
|
64
|
+
- **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.
|
|
63
65
|
- **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.
|
|
64
66
|
- **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.
|
|
65
67
|
- **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.
|
|
@@ -121,6 +123,7 @@ Every `videodraft models image|video|audio --json` entry carries `tier` (1 or 2)
|
|
|
121
123
|
|
|
122
124
|
- 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.
|
|
123
125
|
- 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.
|
|
126
|
+
- 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.
|
|
124
127
|
- 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.
|
|
125
128
|
- 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.
|
|
126
129
|
- 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.
|
|
@@ -161,6 +164,23 @@ Raw MCP tools are `remove_image_background` and `remove_video_background`; poll
|
|
|
161
164
|
|
|
162
165
|
For 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.
|
|
163
166
|
|
|
167
|
+
## Cloud render (Blender on a cloud GPU)
|
|
168
|
+
|
|
169
|
+
Use 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. It needs a paid plan or a past credit purchase.
|
|
170
|
+
|
|
171
|
+
```bash
|
|
172
|
+
videodraft render prices # live price per GPU-minute
|
|
173
|
+
videodraft render blender scene.blend --frames 1-240 # upload, render, wait, download media/renders/<job_id>.mp4
|
|
174
|
+
videodraft render stop # switch the GPU off when your task is done
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
- 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.
|
|
178
|
+
- Each user has one GPU machine. It bills per second while it is on, at the rate `videodraft render prices` returns, and switches itself off 2 minutes after its last job. State the rate and get a go-ahead before long renders. When your task is done, run `videodraft render stop` so idle time is not billed.
|
|
179
|
+
- Exit code 4 means credits ran out, before the job started or mid-render (the job pauses and keeps its finished segments). Tell the user; after they top up, run `videodraft render resume <job_id>`.
|
|
180
|
+
- 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`.
|
|
181
|
+
|
|
182
|
+
Flags, outputs and the MCP flow (`cloud_render_*` tools): [references/cloud-render.md](references/cloud-render.md), or `videodraft skills show render`.
|
|
183
|
+
|
|
164
184
|
## Prefer references when continuity matters
|
|
165
185
|
|
|
166
186
|
Pure 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.
|
|
@@ -336,3 +356,4 @@ A hosted project is one JSON blob (script, storyboard scenes, shot cards, visual
|
|
|
336
356
|
- [references/editor.md](references/editor.md) — native headless editor routing, project selection, import, timeline edits, verification, and export
|
|
337
357
|
- [references/models.md](references/models.md) — choosing image/video models, pricing patterns, voices and styles
|
|
338
358
|
- [references/examples.md](references/examples.md) — recipes: batch product videos from a CSV, talking-head from a script, changelog video in CI
|
|
359
|
+
- [references/cloud-render.md](references/cloud-render.md): Cloud render commands, flags, exit codes, cost and the MCP flow
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Cloud render: Blender scenes on a cloud GPU
|
|
2
|
+
|
|
3
|
+
Cloud render renders the user's own `.blend` scene on a cloud GPU: one machine per user (an RTX PRO 6000) that starts on demand, renders that user's jobs one after another, and switches itself off 2 minutes after its last job. 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. It needs a paid plan or a past credit purchase; other accounts are refused with an upgrade message, which you relay instead of retrying.
|
|
4
|
+
|
|
5
|
+
## Commands
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
videodraft render prices # live price per GPU-minute, GPU and machine type
|
|
9
|
+
videodraft render blender scene.blend --frames 1-240
|
|
10
|
+
videodraft render blender scene.blend --frames 1-240 --fps 24 --blender 4.5 --out ./media/renders/ --json
|
|
11
|
+
videodraft render blender scene.blend --frames 1001-1500 --no-wait --json
|
|
12
|
+
videodraft render wait JOB_ID --out ./media/renders/
|
|
13
|
+
videodraft render status JOB_ID --json
|
|
14
|
+
videodraft render list --limit 10
|
|
15
|
+
videodraft render cancel JOB_ID
|
|
16
|
+
videodraft render resume JOB_ID
|
|
17
|
+
videodraft render machine # state, billed time, GPU time used today
|
|
18
|
+
videodraft render stop # switch the GPU off now
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
`render blender` flags:
|
|
22
|
+
|
|
23
|
+
- `--frames <first>-<last>` (required): the inclusive frame range, or one frame such as `--frames 42`.
|
|
24
|
+
- `--fps <n>`: frame rate of the output MP4 (default 30).
|
|
25
|
+
- `--chunk <n>`: frames per segment. Segments render in order, and finished ones are kept when a job pauses, fails or is cancelled.
|
|
26
|
+
- `--procs <n>`: Blender processes running in parallel on the GPU, 1-4.
|
|
27
|
+
- `--blender 5.2|4.5`: Blender version (default 5.2).
|
|
28
|
+
- `--out <dir|file.mp4>`: where the clip goes (default `media/renders/<job_id>.mp4`).
|
|
29
|
+
- `--no-wait`: submit, print the job id and return. Resume with `videodraft render wait <job_id>`.
|
|
30
|
+
|
|
31
|
+
## What the CLI does
|
|
32
|
+
|
|
33
|
+
1. Hashes the file (SHA-256). A scene with the same bytes is uploaded only once, so re-rendering other frames skips the upload.
|
|
34
|
+
2. 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.
|
|
35
|
+
3. Submits the job. The machine starts on demand, which can take a few minutes while a GPU is found.
|
|
36
|
+
4. Polls every 10 seconds with no time limit (renders can take hours), printing each status change and the segments done. `--wait-timeout` and `--wait-interval` still apply when given.
|
|
37
|
+
5. Downloads the finished MP4.
|
|
38
|
+
|
|
39
|
+
`--json` prints one document: the job (`job_id`, `status`, `segments_done`, `segments_total`, `timing`, `clip_url`) plus `scene_sha`, `uploaded` and `downloaded_files`. With `--no-wait` it is the submitted job: `job_id`, `status`, `machine`, `credits_per_minute` and `segments`.
|
|
40
|
+
|
|
41
|
+
Exit 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.
|
|
42
|
+
|
|
43
|
+
## Scenes must be self-contained
|
|
44
|
+
|
|
45
|
+
Pack 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.
|
|
46
|
+
|
|
47
|
+
## Cost and machine time
|
|
48
|
+
|
|
49
|
+
The GPU bills per second while it is on, at the rate `videodraft render prices` (MCP `cloud_render_prices`) returns, with a one-minute minimum each time it starts. That includes start-up and the idle minutes before it switches itself off. 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. A daily GPU-time limit applies; `videodraft render machine` shows the time used and the limit.
|
|
50
|
+
|
|
51
|
+
Never 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` and continue with `render wait`.
|
|
52
|
+
|
|
53
|
+
## Without the CLI (MCP)
|
|
54
|
+
|
|
55
|
+
1. `cloud_render_upload_scene` with the file's `sha256` and `size`. `exists: true` means skip to step 3.
|
|
56
|
+
2. 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`.
|
|
57
|
+
3. `cloud_render_submit` with `scene_sha`, `start`, `end` and optional `fps`, `chunk`, `procs`, `blender_version`.
|
|
58
|
+
4. Poll `cloud_render_status` every 10 seconds or more. `clip_url` is the finished MP4; `segment_urls` lists finished pieces before then.
|
|
59
|
+
5. `cloud_render_stop` when the work is done. `cloud_render_list`, `cloud_render_cancel`, `cloud_render_resume` and `cloud_render_machine` match the CLI commands above.
|