Guide

Are failed AI generations charged? How API billing works on Revana

No. On Revana the price of a generation is held when you submit it and charged only when the result is delivered. If every route fails, the hold is released and you pay nothing, and you never pay more than the amount held. Here is how holds, charges, retries and caps work.

The short answer

  • A failed generation costs nothing. If every route fails or the input is refused, the status is failed, cost_usd is 0 and the hold is released.
  • You pay on delivery. At submit, reserved_usd is held from your balance; when the generation succeeds you are charged, usually the first route’s quoted_usd, and never more than the hold.
  • One charge, even with backups. If a backup route makes it, only the attempt that delivered is billed. It can cost more than the first quote, never more than the hold.
  • Retries are safe. Resend with the same Idempotency-Key after a timeout and you get the same generation back, not a second one.
  • You set the ceiling. max_cost_usd caps what one generation may cost; routes priced above it are skipped.

What happens to your money, step by step

  1. Quote (optional): POST /v1/generations/quote returns quoted_usd, reserved_usd and whether your balance covers it. Nothing is created or held, and it costs nothing.
  2. Submit: POST /v1/generations holds reserved_usd from your available balance. If the balance is short, the answer is 402 insufficient_credits and nothing is held.
  3. Running: Revana tries the model's routes in order, and if one fails the next one is tried. Each try is listed in attempts.
  4. Succeeded: you are charged the price of the route that made it, shown as cost_usd, and the rest of the hold goes back to your balance.
  5. Failed: cost_usd is 0 and all of the hold is released.

What you pay in each case

What you pay in each case
What happenedWhat you pay
Every route failedNothing; the hold is released
The safety filter refused the prompt or a picture (content_policy)Nothing
The request was invalid (422 invalid_input)Nothing; no generation is made
Your balance was too low (402 insufficient_credits)Nothing; top up and send it again
Every route costs more than your cap (422 max_cost_exceeded)Nothing
A backup route made itThat route's price, or, if an earlier route was billed for its try, what those tries cost plus 10%, whichever is more; never more than the hold
You sent the same request again with the same Idempotency-KeyNothing more: you get the same generation back
You asked for several pictures and only some came back (num_images)Only the pictures delivered
You deleted a delivered fileThe charge stands; deleted files cannot be brought back

Retrying without paying twice

Make one Idempotency-Key per job (up to 200 characters) and keep it. Sending the same key with the same body returns the same generation; the same key with a different body answers 409 idempotency_conflict. After a generation has failed, make a new key before you submit it again.

Whether to retry depends on the error code. model_busy, model_unavailable and timeout are worth retrying; content_policy, reference_changed and max_cost_exceeded are not until you change the request. A 429 rate_limited is a guard against runaway loops, not a quota, and every 429 and 503 carries a Retry-After header. The AI video API error codes guide lists every code.

Capping what a job can cost

  • max_cost_usd: the most you will pay for this generation, in US dollars, up to 100 (the default). Routes priced above it are skipped; if none is left, the request answers 422 max_cost_exceeded.
  • max_wait_s: routes expected to take longer than this many seconds are skipped. Once it has passed no new route is tried, but one already running may finish and is charged if it delivers.
  • Some inputs cost more than a model's listed rate, Seedance 2.5 with a first frame among them, so quote the exact request and pass the quote as max_cost_usd.

Prepaid credits, no quota

You pay from prepaid credits, 100 to the dollar, bought in packs from $10 to $5,000. There is no monthly quota or per-minute cap: your balance and max_cost_usd are the limit. GET /v1/balance shows what is available and what is held, and calling it costs nothing. The guide to reducing AI video API costs has ways to spend less per clip.

A checklist for paying only for results

  1. Quote the exact request first, and pass the quote as max_cost_usd.
  2. Make one Idempotency-Key per job and reuse it on every retry of that job.
  3. Retry only the retryable codes, after Retry-After when one is sent.
  4. Read cost_usd on the finished generation: it is the exact charge.
  5. Watch held_usd on GET /v1/balance to see what running jobs may still cost.

A capped request

A 5-second Seedance 2.0 clip at 720p costs $0.75; the cap below stops any route priced above it:

cURL
export REVANA_API_KEY="sr_live_..."

# One Idempotency-Key per job, made once: resend with the same $KEY after a timeout, a 429 or a 5xx
KEY=$(uuidgen)

# 1. Submit the job (returns 202 with the generation id). max_cost_usd is your cap: the most it may cost.
curl https://api.revana.si/v1/generations \
  -H "Authorization: Bearer $REVANA_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $KEY" \
  -d '{
    "model": "seedance-2.0",
    "input": {
      "prompt": "A paper boat drifts down a rain-filled gutter, close-up",
      "resolution": "720p",
      "duration": 5
    },
    "max_cost_usd": 1
  }'

# 2. Poll with the id from step 1 until status is "succeeded" or "failed".
#    A failed job is free; make a new KEY before you submit it again.
curl https://api.revana.si/v1/generations/gen_01JC4K9R2T \
  -H "Authorization: Bearer $REVANA_API_KEY"

Create a key on the sign-up page and send the model id seedance-2.0 to POST /v1/generations. The request format is in the docs, every option and its price on the Seedance 2.0 page, and every model and price on the models page and the pricing page.

Frequently asked questions

Are failed AI generations charged?

Not on Revana. The price is held when you submit and released in full if the generation fails, including when the safety filter refuses the input. You are charged only when the result is delivered.

Why is money held when I submit?

So a job can never cost more than you agreed to. The hold, reserved_usd, is the most the generation can cost; on delivery you are charged the actual price and the rest goes back to your balance.

Am I charged twice when a backup route makes my video?

No. Only the attempt that delivered is billed. A backup can cost more than the first quote, but never more than the amount held.

What if the safety filter refuses my prompt?

The generation fails with content_policy and costs nothing. It is not worth retrying as it is: change the prompt or the inputs first.

Do quotes and balance checks cost anything?

No. POST /v1/generations/quote creates and holds nothing, and GET /v1/balance costs nothing and does not count against the generation limits.

Can I try a generation before paying?

Yes. Run Seedance 2.0 or Seedance 2.5 in your browser. Your first request is free once you save a card at sign-up (saving it charges nothing).

Try it first: run Seedance 2.0 free or Seedance 2.5 free in your browser. Your first request is free once you save a card at sign-up (saving it charges nothing).

Pay only for what is delivered

One API key for every video and image model. Prepaid credit from $10, charged only for results that are delivered.