AI Video Cost Calculator: Price a Clip Before It Runs
An AI video cost calculator in one API call: quote any request, see the hold at submit, cap it with max_cost_usd and keep agents inside a budget.
Updated 6 min read
The most accurate AI video cost calculator is the API itself: send the request you are about to make to a quote endpoint, and it answers with the exact price before anything runs. On Frameport, the price quoted is the price held when you submit and the price charged when the clip succeeds; a clip that fails costs nothing.
This guide covers what sets the price of a clip, the quote endpoint, the hold you see at submit, the max_cost_usd cap, and how to keep scripts and agents inside a budget.
Why the price should come first
A video's price moves with several settings at once: the model, the length, the resolution, and on some models the sound, the pictures you send and the aspect ratio. A 5-second draft and a long clip at the top resolution can be far apart. Code that builds requests from a spreadsheet, a user's form or an agent's plan needs the price of each row before it spends, not on the invoice.
Here is what a few requests cost, built from the live catalog:
| Request | Price |
|---|---|
| Seedance 2.5, 5 s at 480p | $0.60 |
| Seedance 2.5, 5 s at 720p | $1.35 |
| Seedance 2.5, 10 s at 720p | $2.70 |
| Seedance 2.5, 15 s at 720p | $4.05 |
| Veo 3.1, 8 s at 1080p, with sound | $3.72 |
| Veo 3.1, 8 s at 1080p, silent | $1.88 |
| Veo 3.1, 8 s at 4K, with sound | $5.56 |
| Frameport Replace 1, a 10 s clip at 768p | $1.20 |
| Frameport Replace 1, a 10 s clip at 1080p | $2.50 |
Every model page has its full grid, and pricing has every model. Your code should not copy these numbers: prices can change, and the API always has the current ones.
For what drives the price of a clip in the first place, see AI video generation API cost.
The quote endpoint: same body, no hold
POST /v1/generations/quote takes the body you would send to the model's endpoint and answers with the price, what would be held, your available balance and whether it covers the hold. The prompt is optional, nothing is held or started, and quotes are not counted against your rate limit, so you can price every row of a batch.
curl https://frameport.ai/v1/generations/quote \
-H "Authorization: Bearer $FRAMEPORT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "veo-3-1", "duration": 8, "resolution": "1080p", "audio": true}'{
"object": "quote",
"model": "veo-3-1",
"type": "video",
"mode": "generate",
"price_usd": 3.72,
"reserved_usd": 3.72,
"breakdown": "8 s at 1080p with sound × $0.465/s",
"enough_balance": true
}breakdown spells out the sum, so a log line or a confirmation screen can show it as is. Send "audio": false and the same quote drops to $1.88, since Veo 3.1 prices sound apart. On models that charge for the pictures you send, the breakdown adds them as + 2 images × …, and an aspect ratio with its own rate shows as a factor. Leave out a field and the quote uses the model's default, exactly as the generation would.
Images quote the same way: {"model": "flux-3-image", "n": 4} answers 4 images × $0.088. The quotes reference has every case.
Quoting a clip edit
A clip editor such as Frameport Replace 1 is priced per second of the clip you send (2 to 10 seconds), so its quote takes the clip's length in seconds:
{ "model": "fp-replace-1", "seconds": 6.4, "resolution": "768p" }{
"object": "quote",
"model": "fp-replace-1",
"type": "video",
"mode": "edit",
"price_usd": 0.84,
"reserved_usd": 1.2,
"breakdown": "7 s at 768p × $0.12/s",
"enough_balance": true
}The clip is billed in whole seconds, so 6.4 seconds is billed as 7. Two numbers differ here: price_usd is what this clip will cost, and reserved_usd is what your balance must cover when you submit, the price of the longest clip the model takes, because the clip is measured only once it arrives. Once it is measured, the hold comes down to the clip's own price. Without seconds, price_usd is null and the quote gives the hold alone.
The hold at submit (reserved_usd)
When you submit for real, the answer, 202 Accepted, carries reserved_usd: the amount set aside on your balance for this generation. For a generation it is the quoted price. For a clip edit, the longest clip's price is held while the clip is read, then the hold comes down to this clip's price, which is what the 202 shows. A request the balance cannot cover is refused with 402 insufficient_balance before it starts.
From there, the hold ends one of two ways. On success it becomes the charge, and the generation shows it as cost_usd. On failure it goes back to your balance and cost_usd is 0. For a batch of images, only the images that succeed are charged. GET /v1/balance shows what is available_usd for new requests and what is held_usd by generations still running.
What happens to the hold when a job fails is in our guide to failed generations.
Cap a request with max_cost_usd
Every request body, the quote's included, takes max_cost_usd: the most you accept to pay. A request that would cost more is refused with 400 max_cost_exceeded before anything is held, and the message gives both numbers ("this request costs …, above …. Nothing was charged."). It turns a pricing bug, such as a form that sends 30 seconds at 4K instead of 5 at 720p, into a refusal instead of a charge.
{
"model": "seedance-2-5",
"prompt": "A paper boat drifts down a rain-soaked street at dusk",
"duration": 5,
"resolution": "720p",
"max_cost_usd": 1.35
}On a clip editor, the cap is compared with the hold, the longest clip's price, so set it at that price or above: $1.20 for Frameport Replace 1 at 768p.
Budgets for agents and automations
There is no spending limit per key: a key spends from its workspace's balance. What bounds the spend is the balance itself, and that is the tool to use.
- Give the automation its own workspace. A workspace has its own balance, keys, team and usage ("New workspace" in the workspace menu). Fund it with what you are willing to spend and leave auto top-up off: once the balance is used, requests are refused with
402and nothing else is touched. - One key per agent or script. Usage shows the spend per key, and a key can be revoked alone without stopping the others.
- Set
max_cost_usdon every request, so a single call can never cost more than you planned. The MCP server's tools take it too, along withget_quote(MCP spending). - Price the batch, then check the balance, before the first submit:
rows = [
{"model": "seedance-2-5", "duration": 10, "resolution": "720p"},
{"model": "veo-3-1", "duration": 8, "resolution": "1080p", "audio": False},
{"model": "fp-replace-1", "seconds": 6.4},
]
needed = 0.0
for row in rows:
q = requests.post(f"{API}/generations/quote", headers=HEADERS, json=row).json()
needed += q["reserved_usd"]
print(f"{row['model']:<14} {q['breakdown']}")
balance = requests.get(f"{API}/balance", headers=HEADERS).json()
if needed > balance["available_usd"]:
raise SystemExit(f"This batch holds {needed:.2f} USD; {balance['available_usd']:.2f} is available.")The sum of the holds is the most the batch can tie up at once; clips that finish or fail release theirs as they go. A low balance alert under Billing emails you when the balance falls under the amount you set. To wire the quote into a full script, see the video generation API in Python or the AI video API in Node.js.
FAQ
How much does a 10-second AI video cost?
It depends on the model and the resolution. A 10-second Seedance 2.5 clip at 720p is $2.70; other models and resolutions are priced on their own grid. Send the request to POST /v1/generations/quote for the exact price.
Is there a Veo 3.1 pricing calculator?
The quote endpoint is one: send veo-3-1 with a duration, a resolution and audio. At 1080p, Veo 3.1 costs $0.465 per second with sound and $0.235 per second without, for clips of 4, 6 or 8 seconds.
Does a quote reserve the price or the balance?
No. A quote holds nothing and starts nothing. The hold happens when you submit, at the price the same body was quoted.
Do failed AI generations cost money?
No. The price is held when you submit and charged only on success. A clip or image that fails costs nothing, and its hold goes back to your balance.
Can I set a spending limit per API key?
Not per key. Give the automation its own workspace, funded with a fixed amount, and add max_cost_usd to each request: the workspace can never spend more than its balance, and no single request more than its cap.