Python: quote one 10-second clip across five Sume video models
A Python script that prices a 10-second clip on Seedance 2.5, Omni, Wan 3.0, H3 and H3 Max with Sume's 1.25 multiple and per-job rounding. Run it before a test.

Before you run a side-by-side test of new video models, write down what the test will cost. This script prices one 10-second clip on five Sume ids from the list rates in the Video Router docs and pricing code, applies the 1.25 multiple, and rounds up to the cent per job.
Script
Rates are provider list dollars per second, except Seedance 2.5, which is priced by token. Resolutions differ: H3 and H3 Max use native 768p, not 720p.
import math
MARGIN = 1.25
PER_SECOND = {
"gemini-omni-flash-1.1 720p": 0.10,
"wan-3.0 720p": 0.10,
"minimax-h3 768p": 0.06,
"minimax-h3-max 768p": 0.08,
}
def billable(provider_usd):
return math.ceil(provider_usd * MARGIN * 100) / 100
def seedance_25(seconds):
tokens = 1280 * 720 * seconds * 24 / 1024
return tokens / 1000 * 0.0214
seconds = 10
for name, rate in PER_SECOND.items():
print(name, billable(rate * seconds))
print("seedance-2.5 720p", billable(seedance_25(seconds)))
What it prints
| Model id | Resolution | Billable |
|---|---|---|
| minimax-h3 | 768p | $0.75 |
| minimax-h3-max | 768p | $1.00 |
| gemini-omni-flash-1.1 | 720p | $1.25 |
| wan-3.0 | 720p | $1.25 |
| seedance-2.5 | 720p | $5.78 |
Using it
Floating-point rounding can nudge a figure by a cent in either direction; the poll response usage.cost is the authoritative number.
- Multiply by takes: three takes of each of five models at 10 s is about $30 here, and most of it is Seedance.
- Check
GET /v1/video-router/modelsfor rate changes; the docs date the Wan and H3 rows to fal's price pages. - Run the real tests at 480p or 360p where a model allows it, and spend on a final only for the winner.
Sources
Related posts
More in Developers
- Python requests Retry on POST: safe for Sume only with a key
urllib3 Retry skips POST by default. Allow it for a Sume submit only when every request carries an Idempotency-Key, and retry just 429 and 503.
- Flag near-identical openings in your last 20 Short scripts
A short Python script that compares the first sentence of each Short script and flags pairs that read alike, a cheap check against templated AI Shorts.
- Python and SQLite: log every video job's usage.cost by model
A 13-line stdlib script stores each completed job's usage.cost in SQLite, ignores duplicates by job id and prints spend per model. Seedance 2.5 5 s is $2.89.
- Python receiver for a Sume /v1/videos callback_url, signature checked
A standard-library Python webhook receiver for Sume video jobs: checks x-sume-webhook-signature, refuses an empty secret, rejects stale timestamps.
Written by Sume