About Video Face Swap
Carry one face through every frame of a clip.
Call it with the model name popnow/face-swap-video-v1/video-edit on POST /jobs/createTask, from $0.026.
Introduction
Video Face Swap carries the facial features from a single reference image onto the person in a video, through every frame of the clip. Only the features travel: the performer's hairstyle, head silhouette, movement, wardrobe, lighting, camera work and background all stay as they were shot, which is what keeps the result reading as the original footage rather than an overlay.
Video Face Swap takes a video clip and a reference face image and carries only the facial features onto the person in the footage, keeping their hair, movement, framing and background. Two URLs and an optional finish — there is no prompt field to write.
Key features
Preserve the performance, change the facial identity
Face Swap applies the identity from the approved reference to the person in the supplied footage while keeping the live-action performance intact. Choose a source clip whose subject, framing and lighting already work, because the workflow is for identity replacement rather than rebuilding a shot.
Review continuity, not a synthetic scene
Judge the result at normal playback speed across turns, cuts and fast movement. Check that the identity transfer remains coherent while the performer’s hair, motion, wardrobe and background still read as the original footage; use the clearest discontinuity to guide the next revision.
Request parameters
| Parameter | Required | Description |
|---|---|---|
face_enhance | No | An extra pass that sharpens faces. Default: false |
face_mapping | No | For several faces: which face in the reference photo goes onto which face in the target, one row per face, numbered from 0. Leave empty to swap one face. |
reference_image_url | Yes | The picture whose face or look gets carried over. |
style | No | A preset look or genre. realistic · beautify · lossless · Default: realistic |
video_url | Yes | The clip to work on. |
Pricing
Prices are in USD and charged to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.
| Option | USD per second |
|---|---|
| Standard | $0.026 |
Send the same request body to POST /jobs/quote to see the estimated and maximum USD charge before running. A quote does not run the task or charge your balance.
Use cases
video edit workflow
This endpoint changes facial features across supplied video footage using a separate reference face; it has no text prompt. Use the source clip as the starting point and state the exact edit alongside the timing, identity and continuity that must remain unchanged. This contract accepts reference_image_url, style, video_url.
Make the contract part of the brief
Keep the edit scope narrow on the first run so the source footage remains a useful comparison point. For face-swap/video-v1, the controls most relevant to this endpoint are video_url, reference_image_url, style.
Review the delivered result
Review cut boundaries, motion continuity and the unedited regions against the original footage.
Prompt guide & pro tips
Build a video edit request
face-swap/video-v1: begin with video_url, reference_image_url, style. Use the source clip as the starting point and state the exact edit alongside the timing, identity and continuity that must remain unchanged. This contract accepts reference_image_url, style, video_url.
Change one delivery control at a time
face-swap/video-v1: Keep the submitted inputs consistent while comparing variations so the result can be reviewed against a stable brief. Keep the edit scope narrow on the first run so the source footage remains a useful comparison point.
Turn review notes into the next run
When revising, isolate one edit at a time so it is clear whether the change or the source boundary caused a continuity issue.
Inspect before scaling the next run
Review cut boundaries, motion continuity and the unedited regions against the original footage.
API quick start
Call the Video Face Swap API in three steps
- Create an API key. Sign in to PopNow and create a key in the API console. Keys start with sk-popnow-. API calls are billed in USD from your PopNow balance.
- Send the request. POST /jobs/createTask with model popnow/face-swap-video-v1/video-edit and an input object that follows the parameter table. The response returns a task ID straight away.
- Get the result. Poll GET /jobs/recordInfo with the task ID, or pass a callBackUrl and we post the result to it. Download the output links when the task succeeds.
# 1. Create the task. Keep the Idempotency-Key if you retry after a network error.
export IDEMPOTENCY_KEY="$(uuidgen)"
curl -X POST https://api.popnow.ai/api/v1/jobs/createTask \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-d '{
"model": "popnow/face-swap-video-v1/video-edit",
"input": {
"video_url": "https://media.popnow.ai/effects/flower-bloom-1abd6efb.mp4",
"reference_image_url": "https://media.popnow.ai/influencer/examples/ava.webp",
"style": "realistic"
}
}'
# 2. Copy data.taskId from the response, then poll until state is succeeded, failed, canceled or expired.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
-H "Authorization: Bearer $POPNOW_API_KEY"Replace the prompt and any links with your own. The API tab has the response, polling and callback reference.
Video Face Swap API questions
How much does the Video Face Swap API cost?
Video Face Swap costs $0.026 per second. API usage is charged in USD to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.
What is the model name for Video Face Swap in the API?
Put popnow/face-swap-video-v1/video-edit for Video Face Swap in the model field of POST /jobs/createTask.
What is Video Face Swap API designed for?
Video Face Swap edits identity within supplied footage; review the change at normal speed through turns and occlusions instead of judging only a single successful frame.
Which input goes where?
video_url supplies the MP4 for Video Face Swap, including the performance, camera movement and scene; use a direct file link or upload the clip.
Is there a prompt, a mask or a seed?
Video Face Swap offers style, face_enhance and face_mapping alongside its two required URLs; it does not accept a prompt, mask or seed.
Which style should I pick?
For Video Face Swap, style defaults to realistic, with beautify and lossless alternatives; face_enhance is a separate optional pass and is off by default.
Can it handle several people in one clip?
For multiple people, list reference_face_index and target_face_index in face_mapping, starting at 0 in detection order; omit the mapping for a single-face Video Face Swap job.
What are the limits of the Video Face Swap API?
Longest input clip: 40 s. Requests outside these limits are rejected before anything is charged.
Can I try Video Face Swap without writing code?
Run Video Face Swap in the Playground without an API key, using the same PopNow balance as the website, shown in USD. Each run appears in your developer history with its matching code.
