Credits and estimates
Balance and rates
Section titled “Balance and rates”GET /billing/balance {"balance": credits}GET /billing/rates per-action rates, storage rates under "storage"Price a whole video before you create it
Section titled “Price a whole video before you create it”POST /billing/estimate/videogen{ "scene_count": 6, "scene_seconds": 5, "engine": "storyboard", "mode": "explainer", "with_voiceover": true, "with_captions": false, "with_music": false, "character_sheet": false, "enhance": true, "models": {}}scene_count: 0prices the script only.scene_secondsis the expected narration per scene.engine:storyboard,videooranimated;modeonly withanimated.with_captionsis priced per started minute of the spoken video.with_musiconly while music is on for the account (else403 not_available).
The answer prices each stage (story, character, visual_assets, voiceover, music, assembly) and gives total, exact, balance and sufficient. exact is false when a step has no model that can run it now, or runs on a model priced per token.
An estimate is a guide, not a quote: the final charge can be a little higher or lower. A step the platform picks models for is priced at the most it may cost.
Price what is left on a project
Section titled “Price what is left on a project”GET /films/{id}/estimatePer stage: its state, priced lines, total (cost from scratch) and remaining (what is left to spend; 0 once ready). Plus the overall remaining, balance and sufficient.
Cap a step
Section titled “Cap a step”Add "max_credits": N to a paid step’s body. If it would cost more, nothing runs and you get 402 spend_limit_exceeded with the estimate. Works on project creation with write_story, /story/rewrite, /scenes, /images, /videos, /audio, /music, /character, /assemble and each per-scene redo.
Clip runs, clip renders and canvas flows have their own estimates: see Clips and Canvas.
What was charged
Section titled “What was charged”GET /films/{id}/spend {"entries": [...], "total_credits"}GET /billing/ledger?page=1&page_size=50 {"items": [{"amount", "purpose", "model", "project_id", "created_at"}], ...}A failed step bills only the work it finished, and a model call that served nothing is not billed. A model the platform picked shows with a -auto name.
