Multiple Face Swap Video: Up to Four People, One Clip
A multiple face swap video gives several people in one clip a new face each: how faces map to people, how to write targets, limits, consent and cost.
Updated 7 min read
A multiple face swap video gives several people in the same clip a new face each, in one edit. With Frameport Replace 1 you send up to four face photos and a short line per photo saying who it replaces, and the clip comes back with everyone's moves, lips, the scene and the sound as they were, for $0.12 per second of clip at 768p, whether you swap one face or four.
Consent comes first: every face, and every person filmed, must have agreed to the edit. Below: how faces find their people, how to write those lines, which group clips work, consent, the Studio and API routes, the limits and the price of a longer video.
How a multiple face swap video matches faces to people
The edit lines up two lists: the faces, and who each face replaces.
- Faces go left to right. Order the photos the way the people stand in the clip, from left to right. Face 1 belongs to the leftmost person you want changed, face 2 to the next one, and so on.
- Each face gets a target. A target is a line that describes the person a face replaces, as the clip shows them. With two faces or more, every face needs one; with a single face, it is optional.
- One outfit setting for the group. Keep outfit, the default, leaves everyone in the clothes of the clip. Outfit from photo dresses each replaced person as in their picture, which turns the edit into a character swap for the whole group.
A three-person clip, written out:
| Face | Who it replaces |
|---|---|
| Face 1 | the woman on the left in the yellow raincoat |
| Face 2 | the man in the middle holding the guitar |
| Face 3 | the woman on the right with a red scarf |
Writing targets the edit can follow
A target is up to 200 characters about one person in the clip. The edit reads it to decide who gets which face, so describe what the camera sees:
- Where they are: "the man on the left", "the woman in the back row".
- What they wear: "the man in the grey hoodie", "the woman with the red scarf".
- What they do: "the person holding the guitar", "the woman who walks in from the right".
Two cues beat one when people look alike: "the man on the right in the white shirt" leaves less room for doubt than "the man". When people trade places during the take, lean on clothes rather than position, because the person who starts on the left may end on the right. Names do not help: the edit has no idea who Sam is, only what Sam wears.
The count must match. A request with three faces and two targets is refused with 400 invalid_request before anything is held, and the message names the field. Your workspace's content filter, on by default, reads every target and the optional note the way it reads a prompt.
Group clips that swap well
The edit can only work with what the clip shows, so choose footage where each person can be read:
- Every replaced face visible, turned toward the camera for part of the take, not hidden behind someone else, a hand, a glass or hair.
- Faces large enough. A medium shot of three or four people gives far more to work with than a group filmed from across a room.
- One continuous shot. A clip with hard cuts is better split, one edit per shot.
- Even light. A face in deep shadow or against a bright window is harder to read.
The photos follow the same logic: one person per photo, the face filling a good part of the frame, looking roughly at the camera, with nothing over it. PNG, JPEG or WebP, up to 10 MB each.
The clip itself must be 2 to 10 seconds long, at 24 fps, as an MP4 or MOV file of up to 64 MB. To lift an 8-second moment out of a longer video at the right frame rate:
ffmpeg -ss 00:00:12 -i party.mp4 -t 8 -r 24 -c:v libx264 -crf 18 -c:a aac group.mp4Consent from everyone in the clip
A group swap involves more people than a solo one, and the rules apply to each of them:
- every person whose face you send has agreed to this use of it;
- the people filmed in the clip agree too, since their bodies, gestures and voices stay in the result;
- nobody in the clip or in the photos is a minor;
- the result is fiction, never made to pass as real, to put words or acts on someone, or to harass, defraud or impersonate.
These come from the acceptable use policy and hold with the content filter on or off. A refused request answers content_policy and is not charged. If your app lets its users send group photos, you answer for what they make through your keys: ask each user to confirm the agreement of everyone shown.
Swap several faces in the Studio, without code
- Sign up, then add funds under Billing. There is no subscription.
- Open the Edit tab with Frameport Replace 1 and add your clip.
- Add a photo in Face 1. A Face 2 slot appears once it is filled, and so on up to four.
- In the lines under the faces, say who each one replaces. With two faces or more, every line must be filled before the edit can start.
- Pick Keep outfit or Outfit from photo, then the resolution: 768p or 1080p.
- Press Generate. The button shows the price of your clip before anything starts. When the edit is done, press Download, or Copy as API call to repeat the same edit from code.
The Face swap in a clip app is quicker for a single person; for a group, use the Edit tab. The no-code face swap guide walks through a one-person swap in detail.
Several faces in one API request
By API it is one POST /v1/videos/edits, with faces and targets in the same order:
{
"model": "fp-replace-1",
"video": "upl_7Rk2PqV9wXm4Tn8Lc1BdZe",
"faces": [
"https://example.com/faces/first.jpg",
"https://example.com/faces/second.jpg",
"file_8Hc2RkQw5ZpT1mVb7nXe3L"
],
"targets": [
"the woman on the left in the yellow raincoat",
"the man in the middle holding the guitar",
"the woman on the right with a red scarf"
],
"keep_outfit": true,
"resolution": "768p"
}Each face can be an https URL, a base64 data URI, an image upload or one of your image outputs by its file id. The answer comes back at once with 202, the clip already measured:
{
"id": "gen_6Pq3WnT8vXc1Lm5Rk9YbZs",
"object": "generation",
"type": "video",
"model": "fp-replace-1",
"status": "queued",
"input": {
"video": "upl_7Rk2PqV9wXm4Tn8Lc1BdZe",
"resolution": "768p",
"faces": 3,
"targets": ["the woman on the left in the yellow raincoat", "the man in the middle holding the guitar", "the woman on the right with a red scarf"],
"keep_outfit": true,
"duration": 8
},
"reserved_usd": 0.96,
"cost_usd": null,
"error": null
}Then poll GET /v1/videos/edits/{id} until it succeeds or fails, or let a webhook tell you. The face swap video API guide has the full upload, submit, poll and download script in curl, Python and Node, and the edits reference lists every field.
Limits, and the price from one clip to a full minute
| Frameport Replace 1 | |
|---|---|
| People per edit | 1 to 4, one photo each |
| Clip | 2 to 10 seconds, MP4 or MOV, up to 64 MB, 24 fps |
| Face photos | PNG, JPEG or WebP, up to 10 MB each |
| Targets | One per face, up to 200 characters, required from two faces |
| Output | 768p and 1080p |
The number of faces does not change the price: an edit is billed on the clip's seconds and the resolution.
| Clip | 768p | 1080p |
|---|---|---|
| 4 s | $0.48 | $1.00 |
| 8 s | $0.96 | $2.00 |
| 10 s | $1.20 | $2.50 |
Seconds are whole and rounded up, after 0.15 s of grace. The price of the longest clip is held while yours is measured, then brought down to your clip's price, and it is charged only if the edit succeeds; a failed edit gives the hold back. Full rates: face swap API pricing for video.
Searches for a "30 seconds" or "1 minute" multiple face swap run into one limit: an edit takes at most 10 seconds. Cut the video at natural pauses into pieces of that length or less, swap each with the same faces and targets (checking the left-to-right order in every piece), and join them in a video editor, or script all three steps in Python. A full minute at 768p comes to $7.20. Each piece can be priced first with a quote.
Prefer an app made for creators over a developer platform? Swapping faces in your clips also works using eroq.ai, a private AI studio with no code at all.
FAQ
Can I make a multiple face swap video for free?
The account and quotes are free, and an edit that fails costs nothing. An edit that comes out is paid from a prepaid balance, per second of clip, at the same price for one face or four, with no subscription. The price appears on the Generate button before anything runs.
How many faces can I swap in one video?
Up to four per edit, one photo per person, with a line for each saying who it replaces. Send a face only for each person you want changed, and describe exactly those people in the targets.
Can I face swap a 30-second or one-minute video?
Not in one edit: each takes a clip of 2 to 10 seconds. Cut the video into pieces of that length, swap each with the same faces, and join them. A minute at 768p comes to $7.20.
Does swapping more faces cost more?
No. The price depends on the clip's length and the resolution only, so four faces cost the same as one.
What if a face lands on the wrong person?
Rewrite the targets with clothing and actions rather than positions alone, check that the faces are in left-to-right order, and make sure each person is clearly visible in the clip. Running it again is a new edit, charged only if it succeeds.
Are the voices in the clip kept?
Yes. The sound of the clip is kept as it is, voices included, along with every move, the lips and the scene. Only the faces change, and the clothes too with Outfit from photo.