Unrestricted AI Face Swap for Video: Frameport Replace 1
Unrestricted AI face swap by API: Frameport Replace 1 swaps up to four faces in a clip, moves, lips and sound kept, with no filter once you turn it off.
Updated 5 min read
An unrestricted AI face swap puts the faces you choose on the people in a video, without a content filter in front of the model. Frameport Replace 1 does it by API: send a clip and one picture per person, and up to four people take those faces while their moves, their lips, the scene and the sound stay as they were. It renders without a content filter once an owner or admin of your workspace turns the filter off, and consent comes first either way.
This page covers what the edit changes and keeps, its options, whose faces you may use, the filter, the code for a first swap, and what an edit costs.
At a glance: what Frameport Replace 1 changes and keeps
| Frameport Replace 1 | |
|---|---|
| Model id | fp-replace-1 |
| Endpoint | POST /v1/videos/edits |
| What changes | The faces of up to four people, one picture each |
| What stays | Their moves and lips, the scene and the sound; their clothes too, unless you ask otherwise |
| Clip it takes | 2 to 10 seconds, MP4 or MOV, up to 64 MB, at 24 fps |
| Output | 768p and 1080p, 768p by default |
| Price | $0.12 / s of clip |
It is a clip editor, so it works on a clip you already have rather than a prompt: your own footage, an upload, or a clip you made with a video model of the catalog (its file_… id goes straight in, nothing to upload).
The endpoint in general, filter on, is covered in the face swap video API guide. Without code, a private AI studio runs eroq Replace Pro in the browser, on credits.
Options: resolution, length and up to four faces
| Field | What to send |
|---|---|
video | Required. A public https URL, one of your video outputs (file_…) or a video upload (upl_…) |
faces | Required. One picture per person replaced, left to right, up to four: a URL, a base64 data URI, an image output or an image upload; PNG, JPEG or WebP, up to 10 MB each |
targets | Who each face replaces, in the same order, such as "the woman on the left". Required with several faces |
keep_outfit | true by default: the clip's clothes stay. false dresses each person as in their picture |
prompt | Optional: a short note on the edit, up to 500 characters |
resolution | 768p and 1080p |
A clip the engine cannot use, because of its address, format, length, size or frame rate, is refused with 400 invalid_video and a message that says why; a face picture it cannot read is 400 invalid_input. Neither costs anything. With two people:
{
"model": "fp-replace-1",
"video": "upl_7Rk2PqV9wXm4Tn8Lc1BdZe",
"faces": ["upl_3Tn8Lc1BdZeR7Rk2PqV9wX", "upl_9Wd2XcQ7vLm4Ra8Ws1KbZe"],
"targets": ["the woman on the left", "the man on the right"],
"keep_outfit": false,
"resolution": "1080p"
}Consent comes first: whose faces you may use
A face swap is only as unrestricted as the faces you have the right to use. Use your own face, or the faces of people who said yes. The acceptable use policy never allows real, identifiable people without their consent, and that includes faces taken from photos of private persons. Nor does it allow anything illegal where you or your users are, fraud and impersonation included, or anything involving minors.
If your app lets other people upload faces, you answer for what they make through your keys. Ask for consent in the product itself, keep a record of it, and refuse faces that the person uploading has no right to.
The content filter: on by default, off by an owner or admin
Every workspace starts with its content filter on. For a clip edit it reads the note (prompt) and every targets, and a note or target it blocks is refused with 400 content_filtered before anything is fetched or held.
Only an owner or admin can turn it off, signed in to the dashboard, in Settings › Content filter, by confirming "I am 18 or older, and I accept the acceptable use policy for this workspace." It applies at once to every key and to the Studio; no API key can change it, and GET /v1/account reads content_filter: false once it is off. With the filter off, Frameport Replace 1 renders without a content filter, within the policy. How the content filter works shows each step.
Your first swap with the filter off
Upload the clip and the face, start the edit with their ids, poll it, then download the result. The edits reference lists every field.
# 1. Upload the clip and the face: each answers with an id (upl_...)
curl "https://frameport.ai/v1/uploads?filename=scene.mp4" \
-H "Authorization: Bearer $FRAMEPORT_API_KEY" \
-H "Content-Type: video/mp4" \
--data-binary @scene.mp4
curl "https://frameport.ai/v1/uploads?filename=face.jpg" \
-H "Authorization: Bearer $FRAMEPORT_API_KEY" \
-H "Content-Type: image/jpeg" \
--data-binary @face.jpg
# 2. Start the edit with both ids: the hold comes down to the clip's length
curl https://frameport.ai/v1/videos/edits \
-H "Authorization: Bearer $FRAMEPORT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "fp-replace-1",
"video": "upl_7Rk2PqV9wXm4Tn8Lc1BdZe",
"faces": ["upl_3Tn8Lc1BdZeR7Rk2PqV9wX"],
"resolution": "768p"
}'
# 3. Poll until "succeeded", then download outputs[0].url
curl https://frameport.ai/v1/videos/edits/$GENERATION_ID \
-H "Authorization: Bearer $FRAMEPORT_API_KEY"{
"id": "gen_6Pq3WnT8vXc1Lm5Rk9YbZs",
"object": "generation",
"type": "video",
"model": "fp-replace-1",
"status": "queued",
"input": { "video": "upl_7Rk2PqV9wXm4Tn8Lc1BdZe", "resolution": "768p", "faces": 1, "keep_outfit": true, "duration": 6 },
"reserved_usd": 0.72,
"cost_usd": null,
"outputs": [{ "id": "file_3Vb8KqW2nTx7Lc5Rm1YdPs", "status": "queued" }],
"error": null,
"created_at": "2026-11-28T10:00:00.000Z",
"completed_at": null
}The result's signed link opens without a key for about an hour, any other workspace's key gets 404, and files are not kept forever. Uploads last 24 hours, and DELETE /v1/uploads/{id} removes one at once, so a face you uploaded need not stay longer than the edit.
What stays refused, filter on or off
Everything you make must be fiction, and the acceptable use policy applies with the filter on or off:
- Anything involving minors.
- Real, identifiable people without their consent, including faces from photos of private persons.
- Anything illegal where you or your users are, including threats, harassment, fraud and impersonation.
- Attempts to get around the content filter or the refusals of a model.
What an edit costs
An edit is billed per second of the clip you send, in whole seconds rounded up (0.15 s over is not counted), at the rate of the output resolution:
| Clip length | 768p | 1080p |
|---|---|---|
| Per second | $0.12 | $0.25 |
| 2 s | $0.24 | $0.50 |
| 5 s | $0.60 | $1.25 |
| 10 s | $1.20 | $2.50 |
So a 6.1-second clip is billed 6 seconds, and a 6.4-second clip 7. The price of the longest clip the engine takes is held first; once your clip is measured, the hold comes down to its price, which is the reserved_usd of the 202. It is charged when the edit succeeds, and a failed edit costs nothing. To know the exact price first, quote the model with the clip's length in seconds (quotes). Prices are the same with the filter on or off. For the swap run from a script, with a long clip cut into pieces, see how to swap faces in a video with Python.
FAQ
Is there a face swap with no restrictions?
Not one without rules. Frameport Replace 1 renders without a content filter once an owner or admin turns it off, but consent and the acceptable use policy apply either way.
Whose faces can I use?
Your own, or those of people who said yes. Never a real, identifiable person without their consent, including faces from photos of private persons, and never a minor.
How many faces can it swap in one video?
Up to four people per edit, with one picture each and a targets line saying who each face replaces.
Does it keep the original sound and lip movement?
Yes. The people keep their moves and lips, and the scene and the sound stay as they were; only the faces change.
Can I try it without writing code?
Yes: open it in the Studio, add the clip and the faces, and see the price before you run it. You can also try it online first.
Is a face swap private?
The result opens with a key of your workspace or its signed link, which lasts about an hour; any other workspace's key gets 404. Files are not kept forever, and an upload can be deleted as soon as the edit is done.