Skip to content

Credits and estimates

GET /billing/balance {"balance": credits}
GET /billing/rates per-action rates, storage rates under "storage"
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: 0 prices the script only. scene_seconds is the expected narration per scene.
  • engine: storyboard, video or animated; mode only with animated.
  • with_captions is priced per started minute of the spoken video. with_music only while music is on for the account (else 403 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.

GET /films/{id}/estimate

Per 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.

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.

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.