muvid.cost¶
Cost estimation for a muvid project.
Walks the project’s ShotSpecs and returns the same CostRollup shape
falaw.estimate_scene_cost returns, but priced against muvid’s
render strategies (lipsync / image_to_video / text_to_video / animation
/ still) instead of falaw’s Scene/Beat IR. The pricing pulls
falaw.pick_model per category + falaw.estimate_call_cost per
ModelRecord, so any improvements to falaw.cost flow through.
Used by:
muvid.facade.estimate_render_cost(root, *, quality, force)()muvid statusshows the rollup as a summary line.muvid render --budget=$Xaborts before any fal call when the estimate exceeds X.
Functions
|
Estimate USD cost of running |
Classes
- muvid.cost.CostLine¶
alias of
_RolledLine
- muvid.cost.CostRollup¶
alias of
_Rollup
- muvid.cost.estimate_render_cost(project, *, quality='balanced', force=False)[source]¶
Estimate USD cost of running
muvid renderfor the whole project.Returns a structured rollup. Per-shot pricing depends on
shot.render_strategy:image_to_videoandtext_to_videocost 1 image-gen + 1 video-gen × duration;lipsyncis 1 avatar × duration;stillis 1 image-gen;animationis free of fal calls (rendered locally viaan).forcemust mirror the flag the render will run with: under--forcenothing is cached, so everything is pending and priced. Which shots are “already rendered” is decided by the RENDERER’S own predicate (muvid.renderers.shot_is_rendered), not re-derived here — the re-derivation (output.mp4exists) priced an edited shot and a forced re-render at $0.00 and then billed them (muvid#52).- Return type:
_Rollup