videodraft 0.34.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "videodraft",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.36.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
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
"path": "references/cloud-render.md",
|
|
15
|
-
"sha256": "
|
|
16
|
-
"bytes":
|
|
15
|
+
"sha256": "d10389868d89b076b8ebd92afe41e6f3687eeb9839a724e961e95ba49aae784c",
|
|
16
|
+
"bytes": 11832
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
"path": "references/editor.md",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
"path": "references/models.md",
|
|
30
|
-
"sha256": "
|
|
31
|
-
"bytes":
|
|
30
|
+
"sha256": "70d958c7cf864d26059f086868ad1e36bc4e7e2c4f43d16bfbe57754fbf3f126",
|
|
31
|
+
"bytes": 55590
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
"path": "references/pipeline.md",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
"path": "SKILL.md",
|
|
40
|
-
"sha256": "
|
|
41
|
-
"bytes":
|
|
40
|
+
"sha256": "e4fb73ccccaaa982bd1b723f278575ffeb9798b119ee5491588e9ca4c5abf404",
|
|
41
|
+
"bytes": 60378
|
|
42
42
|
}
|
|
43
43
|
]
|
|
44
44
|
}
|
|
@@ -177,6 +177,9 @@ videodraft render stop # switch every GPU off whe
|
|
|
177
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. The engine (Cycles or Eevee) is whatever the scene is set to.
|
|
178
178
|
- `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.
|
|
179
179
|
- 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.
|
|
180
|
+
- 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.
|
|
181
|
+
- 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.
|
|
182
|
+
- 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.
|
|
180
183
|
- 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>`.
|
|
181
184
|
- 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`.
|
|
182
185
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Cloud render: Blender scenes on a cloud GPU
|
|
2
2
|
|
|
3
|
-
Cloud 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. 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.
|
|
3
|
+
Cloud 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.
|
|
4
4
|
|
|
5
5
|
## Commands
|
|
6
6
|
|
|
@@ -8,24 +8,27 @@ Cloud render renders the user's own `.blend` scene on cloud GPUs (NVIDIA RTX PRO
|
|
|
8
8
|
videodraft render prices # live price per GPU-minute for each GPU size
|
|
9
9
|
videodraft render blender scene.blend --frames 1-240
|
|
10
10
|
videodraft render blender scene.blend --frames 1-240 --blender 4.5 --out ./media/renders/ --json
|
|
11
|
-
videodraft render blender scene.blend --frames 1001-1500 --no-wait --json
|
|
12
|
-
videodraft render wait
|
|
13
|
-
videodraft render status
|
|
14
|
-
videodraft render list --limit 10
|
|
11
|
+
videodraft render blender scene.blend --frames 1001-1500 --name "S4 final" --no-wait --json
|
|
12
|
+
videodraft render wait "S4 final" --out ./media/renders/ # a job id works everywhere a name does
|
|
13
|
+
videodraft render status "S4 final" --json
|
|
14
|
+
videodraft render list --limit 10 # names, status, cost, and what each machine is doing
|
|
15
|
+
videodraft render list --name "S4 final"
|
|
15
16
|
videodraft render cancel JOB_ID
|
|
16
17
|
videodraft render resume JOB_ID
|
|
17
|
-
videodraft render machine #
|
|
18
|
+
videodraft render machine # each machine's phase, what you pay now, 24 h and all-time spend
|
|
18
19
|
videodraft render stop # switch every GPU off now
|
|
19
20
|
```
|
|
20
21
|
|
|
21
22
|
`render blender` flags:
|
|
22
23
|
|
|
23
24
|
- `--frames <first>-<last>` (required): the inclusive frame range, or one frame such as `--frames 42`.
|
|
25
|
+
- `--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.
|
|
24
26
|
- `--fps <n>`: frame rate of the output MP4 (default: the scene's own).
|
|
25
27
|
- `--chunk <n>`: frames per segment. Segments render in order, and finished ones are kept when a job pauses, fails or is cancelled.
|
|
26
28
|
- `--procs <n>`: Blender processes running in parallel on the GPU, 1-4.
|
|
27
29
|
- `--blender 5.2|4.5`: Blender version (default 5.2).
|
|
28
30
|
- `--gpu full|half|quarter`: GPU size (default `full`). See [Choosing a GPU size](#choosing-a-gpu-size).
|
|
31
|
+
- `--no-spot`: wait for a regular GPU only. See [Spot GPUs](#spot-gpus-when-regular-ones-run-out).
|
|
29
32
|
- `--out <dir|file.mp4>`: where the clip goes (default `media/renders/<job_id>.mp4`).
|
|
30
33
|
- `--no-wait`: submit, print the job id and return. Resume with `videodraft render wait <job_id>`.
|
|
31
34
|
|
|
@@ -33,11 +36,11 @@ videodraft render stop # switch every GPU off now
|
|
|
33
36
|
|
|
34
37
|
1. Hashes the file (SHA-256). A scene with the same bytes is uploaded only once, so re-rendering other frames skips the upload.
|
|
35
38
|
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.
|
|
36
|
-
3. Submits the job.
|
|
37
|
-
4. Polls every 10 seconds with no time limit (renders can take hours), printing each
|
|
38
|
-
5. Downloads the finished MP4.
|
|
39
|
+
3. 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.
|
|
40
|
+
4. 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.
|
|
41
|
+
5. 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.`
|
|
39
42
|
|
|
40
|
-
`--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`.
|
|
43
|
+
`--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`.
|
|
41
44
|
|
|
42
45
|
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.
|
|
43
46
|
|
|
@@ -45,28 +48,51 @@ Exit codes: 0 done; 1 failed, cancelled or another error; 2 bad flags; 3 not sig
|
|
|
45
48
|
|
|
46
49
|
`videodraft render prices` lists the sizes on offer and each one's rate:
|
|
47
50
|
|
|
48
|
-
| `--gpu`
|
|
49
|
-
|
|
50
|
-
| `full` (default)
|
|
51
|
-
| `half` (when offered)
|
|
52
|
-
| `quarter` (when offered) | 24 GB
|
|
51
|
+
| `--gpu` | GPU memory | Speed | Cost per frame |
|
|
52
|
+
| ------------------------ | ---------- | ------- | ---------------------------- |
|
|
53
|
+
| `full` (default) | 96 GB | fastest | highest |
|
|
54
|
+
| `half` (when offered) | 48 GB | slower | lower |
|
|
55
|
+
| `quarter` (when offered) | 24 GB | slowest | lowest, most of all on Eevee |
|
|
53
56
|
|
|
54
57
|
All 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.
|
|
55
58
|
|
|
59
|
+
## Spot GPUs, when regular ones run out
|
|
60
|
+
|
|
61
|
+
When 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.
|
|
62
|
+
|
|
63
|
+
Google 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.
|
|
64
|
+
|
|
65
|
+
Use `--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.
|
|
66
|
+
|
|
56
67
|
## Scenes must be self-contained
|
|
57
68
|
|
|
58
69
|
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.
|
|
59
70
|
|
|
60
71
|
## Cost and machine time
|
|
61
72
|
|
|
62
|
-
|
|
73
|
+
What a job is billed for, at its GPU size's rate from `videodraft render prices` (MCP `cloud_render_prices`), per second:
|
|
74
|
+
|
|
75
|
+
| Part | Billed | Typical |
|
|
76
|
+
| -------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------- |
|
|
77
|
+
| Waiting for Google to hand over a GPU | **No** | 1 to 10 minutes; 15 or more at busy times |
|
|
78
|
+
| Start-up, once Google hands the machine over | Yes | about 15 seconds, only on a machine's first job |
|
|
79
|
+
| Rendering | Yes | the frames |
|
|
80
|
+
| 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 |
|
|
81
|
+
|
|
82
|
+
Each 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.
|
|
83
|
+
|
|
84
|
+
`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.
|
|
85
|
+
|
|
86
|
+
Waiting 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.
|
|
87
|
+
|
|
88
|
+
Uploading 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.
|
|
63
89
|
|
|
64
|
-
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`.
|
|
90
|
+
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` (or `render list --name <name>`) and continue with `render wait`.
|
|
65
91
|
|
|
66
92
|
## Without the CLI (MCP)
|
|
67
93
|
|
|
68
94
|
1. `cloud_render_upload_scene` with the file's `sha256` and `size`. `exists: true` means skip to step 3.
|
|
69
95
|
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`.
|
|
70
|
-
3. `cloud_render_submit` with `scene_sha`, `start`, `end` and optional `gpu`, `fps`, `chunk`, `procs`, `blender_version
|
|
71
|
-
4. Poll `cloud_render_status` every 10 seconds or more. `clip_url` is the finished MP4; `segment_urls` lists finished pieces before then; `cost` has the credits so far and
|
|
72
|
-
5. `cloud_render_stop` when the work is done. `cloud_render_list
|
|
96
|
+
3. `cloud_render_submit` with `scene_sha`, `start`, `end` and optional `name`, `gpu`, `fps`, `chunk`, `procs`, `blender_version`, `spot` (`auto` by default, or `never`).
|
|
97
|
+
4. 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).
|
|
98
|
+
5. `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.
|
|
@@ -202,7 +202,7 @@ Direct Fabric text/audio, H3 Max Lip Sync, and Sync Labs do not use the managed
|
|
|
202
202
|
- Most video models support only 16:9 / 9:16 / 1:1. A 3:4 request hard-fails on most.
|
|
203
203
|
- `--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 — `--num` already varies.
|
|
204
204
|
- `--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.
|
|
205
|
-
- `seedream-v5
|
|
205
|
+
- 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.
|
|
206
206
|
- 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.
|
|
207
207
|
- 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.
|
|
208
208
|
- 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.
|