# Billing

The API is prepaid. You add credit, each generation reserves its price while it runs, and only a success is charged. Nothing is ever billed after the fact. Credits are shown in the dashboard, 100 credits to the dollar; the API speaks dollars.

| | |
| - | - |
| Price | The listed price, set when you submit: the model's price for the option, times the units. `POST /v1/generations/quote` gives the same number for free. |
| Reserved | `reserved_usd` is held on your balance when you submit, so parallel generations cannot spend the same money twice. |
| Charged | Only on `succeeded`, once: the quoted price, or a backup route's price (below), never more than `reserved_usd`. |
| Failed | Never charged. The reservation is released at once. |

**Text models are different.** The rows above are for generations. A call to `POST /v1/chat/completions` is paid by the token: the most it can cost is held before it is sent, and it is charged once for the tokens it used, never more than was held. **A text call that fails after the model has run is charged for what it used**, and its error carries `price_usd`. One that is refused, or that ends before the model gave anything, is free. See [Text models](/docs/text-models#what-a-call-costs).

**The price rule.** You pay the listed price, the one the quote gives. If no route can run a call at the listed price, a backup route may finish it at its own, higher price. You are charged once, for the run that finishes, and never more than `reserved_usd` (what was held on your balance when it started), or `max_cost_usd` if you set one. Set `max_cost_usd` to the quote to never pay more than the listed price. A failed generation costs nothing.

A generation a backup route finished says so. Its answer carries `route` (the route's place in the ranking, for example `route-2`) and `listed_price_usd` beside `price_usd`, the dashboard's task log shows "Ran on Route 2" with both prices, and its line in the usage log names the route.

## Reference video

A reference or source clip you send in `video` (or `videos`) is billed too. On a model with a `+video_input` price, the output seconds and every reference clip's seconds are counted, at that rate. Reference images and sounds are not billed.

On `seedance-2.5`, **a reference video bills at least 5/3 of the output's length**, as the model is billed to us: billed seconds are `max(output + reference seconds, ⌈5/3 × output⌉)`, with any part of a reference second dropped. 5 s of output with a 2 s clip bills 9 s; with a 10 s clip, 15 s. The model's `reference_billing` says this (`GET /v1/models/seedance-2.5`).

- The quote assumes each clip is as long as the output. To quote other lengths, send all the clips' seconds together, in whole seconds, as `extra.video_seconds`.
- Once the clip is measured, you are charged for its real seconds, never more than the quote.
- A clip longer than the quote fails with `reference_changed`, free. The message says the `extra.video_seconds` to send.

## Balance

What you can spend now is your **available** balance:

```text
available = balance you added + included monthly credit left - reserved by running generations
```

A submit whose price is more than your available balance answers `429 api_wallet_exhausted` and nothing starts. Read it any time with [`GET /v1/balance`](/docs/balance); every generation answer also carries `x-wallet-remaining-cents`. Your balance and spend are on [Billing](/credits) in the dashboard.

## Add credit

On [Billing](/credits), choose an amount and pay by card through a secure checkout. The credit arrives as soon as the payment clears.

- Packs: $20, $50, $100 or $250.
- Or any amount from $10 to $5,000.
- Credit is added at face value: $50 paid is $50 to spend.

Now and then adding credit is paused for a short time, for example while we fix an issue with payments. While it is paused, Billing says so, buying credit answers `503 deposits_paused` with nothing charged, and [`GET /v1/balance`](/docs/balance) says `deposits_paused: true`. Your balance, your generations and payments already made are not affected. Try again later.

## Auto-reload

Turn on auto-reload on [Billing](/credits) to top up by card when you run low, so long jobs and pipelines never stop for an empty balance. You choose both amounts before you save a card, and the page says in one sentence what you agree to: how much it adds from your card, and the balance that triggers it.

| Setting | Default | Range |
| - | - | - |
| Reload when the balance drops below | $10 | $1 to $1,000 |
| Reload amount | $50 | $10 to $5,000 |
| Monthly cap on reloads | $1,000 | the reload amount to $25,000 |

- Saving a card or turning auto-reload on never charges it. If your balance is already below the threshold, Billing asks separately whether to add the reload amount now. Only that button charges at once; otherwise the first reload waits at least 10 minutes and runs when a charge next leaves you below the threshold.
- A reload is tried when a charge leaves you below the threshold, at most once every 10 minutes, and never past the monthly cap.
- A declined reload emails you. After 3 declines in a row, auto-reload switches off until you turn it on again.
- While adding credit is paused, auto-reload waits: nothing is charged, it stays on and nothing counts as a decline. It reloads as usual once adding credit is open again.

## Refunds

- **Failed generations** are never charged, so there is nothing to refund.
- **Top-ups**: a refunded top-up takes its credit back from the balance (never below zero). A disputed payment pauses the balance for a billing review: generations then answer `503 api_wallet_reconciliation_required` until support clears it. Write to [support@vidlab.ai](mailto:support@vidlab.ai).

