Do and don’t
| Do | Don’t |
|---|---|
| Use the estimate API before generating | Assume all models cost the same |
| Monitor your balance programmatically | Wait until you get a BSE1004 error to check balance |
| Purchase credit packs before high-volume runs | Rely solely on subscription credits for spikes |
| Review transactions regularly for unexpected charges | Ignore the credits table |
| Check the model pricing page for costs | Hard-code cost values in your application |
Use the estimate API
Always check the cost before generating, especially for video models whereduration, resolution, or audio can affect price:
TypeScript
Monitor balance programmatically
Build credit checks into your generation pipeline:TypeScript
GET /v1/usage?days=30 with an API key that has account:read.
Plan for high-volume runs
If you are running batch generations (e.g. generating images for a catalog), calculate the total cost first:TypeScript
Review transactions for anomalies
Check your transactions regularly for:| Pattern | What it might indicate |
|---|---|
| Many refunds in a row | A model or provider may be experiencing issues |
| Unexpectedly high charges | A video model generating longer output than expected |
| Unknown generation IDs | A leaked or compromised API key |
No charge after reserve | A generation stuck in processing |
Know the audit-trail window
The billing configuration exposes plan-based credit audit trail windows:| Plan | Credit audit trail window |
|---|---|
| Free | 30 days |
| Starter | 90 days |
| Pro | 180 days |
| Scale | 1 year |
| Enterprise | 1 year |
Additional tips
Use the playground for experimentation
The playground lets you test models interactively before building them into your pipeline. This helps you choose the right model and parameters without writing code.Compare models before committing
Visit the model pricing page to compare all available models and their costs side by side before integrating a model into your pipeline.Quick reference
| Topic | Detail |
|---|---|
| Check balance | Dashboard or GET /v1/user/billing |
| Preview cost | GET /v1/estimate/{model_identifier} |
| Buy credits | Billing page, credit packs section |
| View transactions | Dashboard Credits page, transactions table |
| Insufficient credits | Error BSE1004, HTTP 402 |