Most AI video workflows waste money in the same way: every single shot gets thrown at a text-to-video API, even when two-thirds of the timeline only needs a crisp still with real depth parallax. Change a transition or tweak timing, and you end up re-rolling everything. Worse, style, camera math, and API calls are usually tangled inside one script, so switching aesthetics means rewriting the pipeline.
I built Video Forge (dsh-storyboard-forge, MIT, recently merged into awesome-dsh-plugin PR #19602) as a DeepSeek Harness plugin to treat video generation like a compiler + deterministic renderer:
Markdown/JSON Storyboard -> Task DAG -> Split GPU/API Pools -> SHA-256 Cache -> RenderPlan JSON -> Remotion + Three.js
How the 4 backends split the work
One storyboard can mix all four providers. You pick one of 7 shot strategies (seedream-static, still-3d, minimax-direct, minimax-2k-repaint, comfy-pipeline, magi2-direct, magi2-i2v), and the compiler routes each task:
- Seedream 5.0 (Volcengine Ark): Stills and first frames (
5.0-flashdefault, ~¥0.22–0.30 / ~$0.03–0.04 per image). - Local ComfyUI (8 GB consumer GPU): Depth estimation (Depth Anything V2), normals, alpha mattes, seamless tiling, and layer splitting via 11 custom nodes (
DshDepthEstimate,DshNormalFromDepth,DshAlphaMatte,DshSeamlessTiling,DshAssetInspect,DshDepthRefine,DshLayerSplit,DshDepthModel,DshTemplateInject,DshForgeBridgeCall,DshWorkflowManifest). Zero API spend. - MiniMax H3: Text-to-video and
minimax-2k-repaint. Since H3 T2V caps at 768P,minimax-2k-repaintgenerates a still first, feeds it back as the first frame, and asks H3 for a 2K pass—so upscaling happens inside the model rather than inffmpeg. - Sand.ai MAGI-2: Native 1080p image-to-video, 4–30s single shots, up to 20 reference images at flat price (
arkornativemode).
Measured spend on a real 15s 1080p film
On a 3-shot oriental-ink test film (Ink Scroll, 1920×1080, 30 fps, 450 frames):
- 3 × Seedream
5.0-flashstills: ~¥0.9 (~$0.13) - 2 × local ComfyUI depth maps: ¥0
- 1 × MiniMax H3 2K repaint (4 s): ~¥3.2 (~$0.45)
- Total real API spend: ~¥4 (~$0.56) (Remotion render took 55.2 s at
--crf=18 --concurrency=2).
Engineering choices that actually mattered
- Split concurrency pools: Local ComfyUI runs in a GPU pool (
concurrency = 1), remote APIs run in an API pool (concurrency = 3). A heavy local depth job never stalls Seedream calls. - Content-addressed cache: Every asset is keyed by
sha256(provider + model + prompt + params). Edit timing or camera curves without paying twice for stills or clips. - Hard host/renderer boundary:
src/never importsthree.jsor talks about camera moves/styles (enforced byscripts/check-quality.mjs).remotion/src/(Remotion 4.0.484 + Three.js 0.180) only reads aRenderPlanJSON and renders through 4 deterministic primitives + 6 data-onlyStyleSpecpresets (cinematic-realism,editorial-minimal,anime-atmospheric,cyber-neon,oriental-ink,video-first). - Exact golden frames:
node scripts/check-frames.mjsenforcesframe 0 maxDiff=0andframe 24 maxDiff=0.
Try it with zero API keys & zero GPU
There's a built-in mock provider that still runs the real compiler, scheduler, SHA-256 cache, RenderPlan, and Remotion render:
git clone https://github.com/jlnkx5200-beep/dsh-storyboard-forge.git cd dsh-storyboard-forge npm install && npm run build node scripts/qa-mock.mjs Or install via DeepSeek Harness:
dsh plugin add dsh-storyboard-forge --profile <PROFILE> Honest caveats (v0.1.0)
- MAGI-2 is
pending_quota: The provider adapter, contract, sanitizer, and unit tests are merged, andPOST /magi2/probedistinguishespending_quotafrominvalid_key. Our Sand.ai account doesn't have generation quota yet, so MAGI-2 shots currently replay a draft take. Everything else runs end-to-end today. - Local HTTP console auth: As the
awesome-dsh-pluginmaintainer noted when merging, the 11 local HTTP routes only check loopback +Host/Originheaders without DSH-level auth, so only run the console in a trusted local environment. - Audio field:
RenderPlan.audiois parsed in the contract but not consumed by scenes yet; output audio comes from generated video clips. - Tests: 41 Node tests pass; 50 Python node tests pass with
torchinstalled (33 pass / 17 skip withouttorchin CI).
If the "compile storyboard -> route to cheapest/best backend -> deterministic Remotion render" pattern is useful to you, a GitHub star helps a lot—and I'd love feedback on the ComfyUI nodes, presets, or next providers to wire:




