Billing modes
Prepaid
Add funds to your account and pay as you go. Requests are charged against your balance in close to real-time.- Balance check: If your balance becomes low, every request validates sufficient balance. This adds slight latency to the request. The threshold for this behavior varies based on your recent usage.
- Auto top-up: Optionally configure automatic refills when balance is low.
Postpaid (invoice billing)
Generate now, pay later. You receive a monthly invoice for your usage.- Credit limit: Based on your account history
- Invoicing: Monthly billing cycle
Pricing
Pricing varies by model and is calculated per request. Check the model catalog for current pricing details.Pricing in the model catalog and from the cost estimation endpoint is approximate. Effective pricing is calculated after the request is run, because it depends on outputs.
Cost estimation
Use dry run mode to estimate costs before generating. Add?dryRun=true to any request to get a cost estimate without executing it. See the Cost estimation API reference for details and response format.
Effective cost on responses
Every response that delivers media includes ametadata object with the effective cost of the request. Because final pricing depends on outputs (resolution, duration, format), this is the authoritative cost — not an estimate.
Images
The image generation response includesmetadata.cost with the effective cost:
Videos
Video generation is asynchronous. Cost fields onmetadata change depending on the job status:
- In progress:
cost_estimate— an estimated cost based on the request parameters. - Completed:
cost— the final effective cost.
The
metadata field also includes provider routing details like provider, provider_name, executed_model, and upstream_id. See the API reference for the full schema.Insufficient balance errors
If your prepaid balance is too low, requests return a402 error:
- Add funds to your account
- Enable auto top-up to prevent future interruptions
- Consider switching to postpaid billing for uninterrupted service