Skip to content
FrameportvideoClip editOur engine

Frameport Replace 1 API

Up to four people in your clip replaced by the faces you send: moves, lips, scene and sound kept.

Pricing

per second of clip
ResolutionPer second
768pdefaultlowest$0.12
1080p$0.25
  • Charged once, and only when the edit succeeds. A failed job costs $0.00: its hold is released in full.
  • The exact price is known before the run: the API measures your clip and returns its price as reserved_usd when it accepts the job.
  • Billed on the length of the clip you send, rounded up to the second (0.15 s over is not counted). The price of the longest clip (10 s) is held first, then brought down to your clip's once it is measured.

Estimate

Per clip
5 s × $0.12 / s$0.60

Charged once per clip, only on success.

Request

POST https://frameport.ai/v1/videos/edits

# 1. Submit: the price is held on your balance (reserved_usd)
curl https://frameport.ai/v1/videos/edits \
  -H "Authorization: Bearer $FRAMEPORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "fp-replace-1",
    "video": "https://example.com/dance.mp4",
    "faces": [
      "https://example.com/me.jpg"
    ]
  }'

# 2. Poll with the id it returns, until "succeeded" or "failed"
curl https://frameport.ai/v1/videos/edits/$GENERATION_ID \
  -H "Authorization: Bearer $FRAMEPORT_API_KEY"

# 3. Download outputs[0].url once it has succeeded (a signed link, no key needed)
curl -L "$OUTPUT_URL" -o out.mp4

Set FRAMEPORT_API_KEY to your key. Full reference in the clip edit docs.

Options

Tasks
  • Face swap
Resolutions
  • 768p
  • 1080p
Clip length
2 to 10 seconds
Clip file
MP4 or MOV, up to 64 MB, 24 fps
Faces
1 to 4, one per person replaced
Outfits
The clip's, or each picture's
Note
Optional, up to 500 characters
Sound
Kept from the clip
Output
A video file, signed link valid about an hour
Billing unit
Per second of clip
Model id
fp-replace-1

Frameport Replace 1 API parameters

FieldValuesNotes
model"fp-replace-1"Required.
videoan https URL, or a file idRequired: the clip, MP4 or MOV, up to 64 MB, 24 fps, 2 to 10 seconds. A public https link we download, or one of your video outputs (file_…).
resolution768p and 1080p768p when left out. A second of clip costs 768p $0.12, 1080p $0.25.
faces1 to 4 picturesRequired: one face per person replaced, left to right. An https URL, a base64 data URI or one of your image outputs (file_…): PNG, JPEG or WebP, up to 10 MB.
targetsone text per faceWho each face replaces, in the same order ("the woman on the left"). Required with several faces.
keep_outfittrue or falsetrue when left out: the clip's clothes stay. false dresses each person as in their picture.
prompttext, up to 500 charactersOptional: a note on the edit.

Frameport Replace 1 request bodies, one per mode

Send each body to POST https://frameport.ai/v1/videos/edits with Authorization: Bearer $FRAMEPORT_API_KEY, then poll GET /v1/videos/edits/{id}. The clip is a public https URL or one of your video files (file_…); a face is an https URL, a base64 data URI or one of your image files. Each card shows the price of a 5-second clip.

One face, a 5 s clip · $0.60
{
  "model": "fp-replace-1",
  "video": "https://example.com/dance.mp4",
  "faces": [
    "https://example.com/me.jpg"
  ]
}
Two faces, a 5 s clip · $0.60
{
  "model": "fp-replace-1",
  "video": "https://example.com/duet.mp4",
  "faces": [
    "https://example.com/ana.jpg",
    "https://example.com/ben.jpg"
  ],
  "targets": [
    "the woman on the left",
    "the man on the right"
  ],
  "keep_outfit": false,
  "resolution": "768p"
}

What Frameport Replace 1 is good at

Up to four people in your clip replaced by the faces you send: moves, lips, scene and sound kept.

About the Frameport Replace 1 API

How much does the Frameport Replace 1 API cost?

Frameport Replace 1 is billed per second of the clip you send: $0.12 at 768p and $0.25 at 1080p. A 5-second clip at 768p costs $0.60. The price of the longest clip is held first and brought down to your clip's once it is measured; you are charged once, only when the edit succeeds.

How do I call Frameport Replace 1 from code?

Send POST /v1/videos/edits with "model": "fp-replace-1" and the clip in video, the faces in faces, your API key as a Bearer token. The answer is a generation with an id: poll GET /v1/videos/edits/{id} until its status is succeeded, then download outputs[0].url.

What happens if a Frameport Replace 1 generation fails?

Nothing is charged. The price is held on your balance when the job starts and released in full if it fails: cost_usd stays at 0.

Which clips does Frameport Replace 1 take?

MP4 or MOV, up to 64 MB, 24 fps, 2 to 10 seconds: a public https link, or one of your own video outputs by its file id. A clip it cannot use is refused with invalid_video, and nothing is charged.

How many people can Frameport Replace 1 replace?

Up to 4: send one face per person, left to right. With several faces, say who each one replaces in targets ("the woman on the left"). The clip's clothes stay unless keep_outfit is false.

Do I need a subscription?

No. You top up a prepaid balance in dollars, from $10, and it never expires. Every model runs on the same balance and the same API key.

For agents: this page in Markdown at /models/fp-replace-1.md, every model in /models.json, and the site in /llms.txt.

Call Frameport Replace 1 with one key.

Your API key is free. Top up from $10 when you are ready.