Face Swap API Pricing for Video, per Second
Face swap API pricing for video: per second of clip at each resolution, the same for one face or several, the hold, and paying only when an edit succeeds.
Updated 4 min read
Face swap API pricing on Frameport is per second of the clip you send, not per face: Frameport Replace 1 costs $0.12 per second at 768p and $0.25 at 1080p. A 5-second clip costs $0.60 at 768p whether you replace one person or several, and an edit that fails costs nothing.
The edit replaces the faces of the people in your clip with the faces you send, and keeps their moves, their lips, the scene and the sound. This page covers what it costs: the rate, why the number of faces does not count, which resolution to pay for, how the hold works, and how to price a scene longer than one clip.
The quick answer
- You pay per second of clip, at the rate of the output resolution.
- Faces are free. One face or the most the model takes (
edit.max_faces), the price is the same. - One clip lasts 2 to 10 seconds. A longer scene is several edits.
- The price of the longest clip is held first, and comes down to your clip's price once it is measured.
- A failed or refused edit costs nothing.
Face swap API pricing: per second, not per face
The price is the clip's length in whole seconds times the rate. Seconds are rounded up, but a sliver under 0.15 s past a whole second is not counted, so a 7.12-second clip bills 7 seconds:
| Clip length | 768p | 1080p |
|---|---|---|
| Per second | $0.12 | $0.25 |
| 3 s | $0.36 | $0.75 |
| 5 s | $0.60 | $1.25 |
| 7 s | $0.84 | $1.75 |
| 10 s, the longest clip | $1.20 | $2.50 |
| A minute of footage, in clips | $7.20 | $15.00 |
Because faces carry no price, a clip with a group costs no more than a clip with one person: the more people you replace in a clip, the less each face costs. With several faces, targets says who each replaces ("the woman on the left"); see the face swap video API guide for the request. There is no plan or fee per request: each edit draws on your prepaid balance, topped up from $10.
768p or 1080p
768p is the default and costs $0.12 per second; 1080p costs $0.25. 768p is enough for clips watched on a phone. For a bigger frame, there are two routes, with different results:
| Route for a 10-second clip | Price |
|---|---|
| Swap at 1080p | $2.50 |
| Swap at 768p | $1.20 |
| Then upscale that clip to 1080p with Frameport Upscale 1 | $0.30 |
A swap made at 1080p draws the new faces at full size; an upscaled 768p swap is the smaller result made sharper. Judge the two on a clip where faces fill the frame before choosing a route for a whole project. A 1080p swap can also go on to 2K, for $0.50 more (video upscaling API pricing).
The hold and the final price
When you send an edit to POST /v1/videos/edits, the price of the longest clip the model takes is held: $1.20 at 768p, $2.50 at 1080p. Once the clip is measured, the hold comes down to the clip's price, shown as reserved_usd in the 202 answer, and a successful edit is charged that amount. The length used is the one measured from the file.
Two things follow. Your balance must cover the hold, not just the price. And max_cost_usd is compared with the hold: on an edit, a cap under $1.20 refuses every swap at 768p, however short the clip. The clip edits reference has the rule.
Price a scene longer than one clip
A scene over 10 seconds is cut into clips, each swapped on its own and joined afterwards. Quotes take the length in seconds, need no file, and are free, so a script can price the whole scene first:
import os
import requests
API = "https://frameport.ai/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['FRAMEPORT_API_KEY']}"}
scene = 47.3 # seconds of footage to swap
longest = requests.get(f"{API}/models/fp-replace-1").json()["edit"]["max_seconds"]
clips = []
while scene > 0:
clips.append(min(longest, round(scene, 2)))
scene -= longest
total = 0.0
for seconds in clips:
body = {"model": "fp-replace-1", "resolution": "768p", "seconds": seconds}
quote = requests.post(f"{API}/generations/quote", headers=HEADERS, json=body).json()
if quote.get("error"): # a last piece shorter than the model's minimum, for one
raise SystemExit(f"{seconds} s: {quote['error']['message']}")
total += quote["price_usd"]
print(f"{seconds:>5} s: {quote['price_usd']} USD ({quote['breakdown']})")
print(f"{len(clips)} clips: {total:.2f} USD")Cut the scene on its own shot changes rather than at fixed lengths where you can: a swap holds best inside one shot. When you submit the clips together, each holds the price of a full-length clip until it is measured, so the balance needs room for all the holds at once, and the workspace runs up to 20 generations at a time.
What a failed edit costs
Nothing. A clip the model cannot use (too long, the wrong frame rate, too large) is refused with 400 invalid_video when you send it, and nothing is charged. A request refused under the acceptable use policy answers 400 content_policy, also free: faces must be your own, a consenting person's or a character you made. An edit that fails after the 202 shows status: "failed", gives the hold back and has cost_usd at 0. The failed generations guide covers retries that never pay twice.
What to judge besides the price is in the best face swap API for video. Swapping several people at once is covered in multiple face swap video.
FAQ
How much does a face swap API cost per second?
$0.12 per second at 768p and $0.25 at 1080p, for clips of 2 to 10 seconds.
Does the price change with the number of faces?
No. An edit is billed on the clip's seconds alone, so replacing several people in a clip costs the same as replacing one.
What does a one-minute face swap cost?
$7.20 at 768p and $15.00 at 1080p, sent as clips of up to 10 seconds.
Is there a free face swap API?
Not for edits: each one is paid from a prepaid balance. Creating an account and a key, reading the model and quoting are free, a refused or failed edit costs nothing, and you can try Frameport Replace 1 in the Studio at the same price.
Why does an edit hold more than the clip costs?
The length is known only once the clip is measured, so the price of the longest clip is held first, then brought down to your clip's price.
Is a failed face swap charged?
No. A swap that fails releases its hold and shows cost_usd at 0. The model page lists every limit.