Pricing
Compare models →Billing duration: Input video duration is rounded up to whole seconds. The minimum billed duration is 3 seconds; shorter inputs are billed as 3 seconds.
Billing is per second of the input video, with a 3-second minimum. Maximum video length: 10 minutes.
Video length (video) | Cost |
|---|---|
| Default settings (per run) | $0.03 |
| 1 second (billed as 3 seconds) | $0.03 |
| 3 seconds | $0.03 |
| 5 seconds | $0.05 |
| 10 seconds | $0.10 |
Billing Rules
- Minimum charge: a video of 3 seconds or shorter (
video.seconds=3) costs $0.03 - Per-second rate: $0.01 per second of video (10-second video, divided by its seconds)
- Each extra second above the minimum: $0.01 (a 4-second video compared with a 3-second video)
- Billed duration: video length in seconds, rounded up, with a 3-second minimum
Examples
Video length (video) | Total cost |
|---|---|
| 3 s | $0.03 |
| 15 s | $0.15 |
| 1 m 30 s (90 s) | $0.90 |
| 5 m (300 s) | $3.00 |
| 10 m (600 s, maximum) | $6.00 |
Input schema
| Parameter | Type | Description |
|---|---|---|
videoRequired | string | The video that contains the face to be replaced. |
face_imageRequired | string | The face image as reference. |
target_index | integer | 0 = largest face. To switch to another target face - switch to index 1, e.t.c.Default: 0Minimum: 0 · Maximum: 10 |
target_gender | string | Only swap target faces matching this gender. 'all' swaps regardless of gender.allmalefemale"all" |
README
Video Face Swap
Seamlessly swap faces in videos with just a few clicks. Upload your video and a reference face image, and the model will intelligently replace faces while preserving natural motion, lighting, and expressions. No complex editing software required.
Why It Looks Great
- Natural blending: Automatically matches skin tone, lighting, and shadows for seamless face integration.
- Expression preservation: Retains the original facial movements, emotions, and lip sync from the source video.
- Temporal consistency: Minimizes flickering and artifacts across frames for stable, realistic results.
- Multi-face support: Handle videos with multiple people — target specific faces by index.
- High fidelity output: Maintains video quality with sharp facial details and smooth edges.
Parameters
| Parameter | Required | Description |
|---|---|---|
| video | Yes | Source video file (upload or public URL). Max 10 minutes. |
| face_image | Yes | Reference face image to swap in (upload or public URL). |
| target_index | No | Select which face to swap when multiple faces exist. 0 = largest face, 1 = second largest, etc. Default: 0. |
| target_gender | No | Only swap faces matching this gender: all, male, or female. Default: all. |
How to Use
- Upload your video — drag and drop or paste a public URL.
- Upload the face image — provide the face you want to swap in.
- Set target index (optional):
- Use target_index to select a specific face (0 = largest face).
- Use target_gender to only swap faces of a specific gender (
male/female).
- Run — click the button and wait for processing.
- Download — preview and save your swapped video.
Pricing
Billing duration: Input video duration is rounded up to whole seconds. The minimum billed duration is 3 seconds; shorter inputs are billed as 3 seconds.
Billing is per second of the input video, with a 3-second minimum. Maximum video length: 10 minutes.
Video length (video) | Cost |
|---|---|
| Default settings (per run) | $0.03 |
| 1 second (billed as 3 seconds) | $0.03 |
| 3 seconds | $0.03 |
| 5 seconds | $0.05 |
| 10 seconds | $0.10 |
Billing Rules
- Minimum charge: a video of 3 seconds or shorter (
video.seconds=3) costs $0.03
- Per-second rate: $0.01 per second of video (10-second video, divided by its seconds)
- Each extra second above the minimum: $0.01 (a 4-second video compared with a 3-second video)
- Billed duration: video length in seconds, rounded up, with a 3-second minimum
Examples
Video length (video) | Total cost |
|---|---|
| 3 s | $0.03 |
| 15 s | $0.15 |
| 1 m 30 s (90 s) | $0.90 |
| 5 m (300 s) | $3.00 |
| 10 m (600 s, maximum) | $6.00 |
Best Use Cases
- Content Creation — Create entertaining face-swap videos for social media and viral content.
- Film & Video Production — Replace stunt doubles or create special effects without expensive post-production.
- Marketing & Advertising — Personalize video ads with localized faces for different markets.
- Entertainment & Memes — Generate fun, shareable content with celebrity or character face swaps.
- Privacy Protection — Anonymize faces in videos for privacy-sensitive content.
Pro Tips for Best Results
- Use a clear, front-facing reference image with good lighting for the best match.
- Source videos with stable, well-lit faces produce smoother results.
- For videos with multiple people, use target_index to precisely control which face gets swapped.
- Keep the reference face angle similar to the faces in the video for more natural blending.
Notes
- If using a URL for the face image, ensure it is publicly accessible. A preview thumbnail in the interface confirms successful loading.
- Processing time varies based on video length and current queue load.
- For videos longer than 10 minutes, split into segments and process separately.
- Each request replaces one selected target face using one reference face image. Replacing different people with different faces requires separate requests.
target_indexis not a permanent person ID. Review the output to confirm that the intended person was replaced.
face_imagesupplies the replacement identity; it does not identify which person to select in the source video.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
Video Face Swap API example
The catalog lists POST https://api.opensi.com.ai/api/v3/opensi-ai/video-face-swap for the submission step. Confirm the endpoint and access with your supplier before sending a request.
HTTP request body
{
"video": "https://static.website-files.org/assets/video-generator/landing/showcase/01-b2f9ad31587b.mp4",
"face_image": "https://drz0f01yeq1cx.cloudfront.net/1745294105310-5833-带珍珠耳环少女.png",
"target_index": 0,
"target_gender": "all"
}Video Face Swap API — Frequently asked questions
What is the Video Face Swap API?
Video Face Swap is a OpenSIAI model for video face swapping, exposed as a REST API on OpenSIAI. Swap faces in any video by uploading a video and an image — perform unlimited, seamless face replacements quickly. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing. You can call it programmatically or try it from the playground above.
How do I call the Video Face Swap API?
POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your OpenSIAI API key in the Authorization header. Submission returns a prediction ID. Poll the result endpoint starting around every 2 seconds, increase the interval for long-running tasks, and stop on any terminal status. The playground generates Python, JavaScript, and cURL examples for submitting requests and polling results. Full request/response shape is documented at /docs/docs-api/opensi-ai/video-face-swap.
How much does Video Face Swap cost per run or per second?
Video Face Swap starts at $0.01 per run or per second. That figure is the base price — the final charge scales with the parameters you set in the form (output size, length, count, references, or whatever knobs this model exposes), so a higher-quality or larger output costs more than a minimal one. The exact cost for your current input is shown live next to the Generate button before you submit, and the actual per-call charge is recorded on the prediction afterwards.
What inputs does Video Face Swap accept?
Key inputs: video, face_image, target_gender, target_index. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at /docs/docs-api/opensi-ai/video-face-swap.
How long does Video Face Swap take to generate?
Reported generation time on OpenSIAI is around 43 seconds per request. This is an estimate, not a latency guarantee; queue time and input settings can change the total wait. live status is visible in the prediction record.
Can I use Video Face Swap outputs commercially?
Commercial usage rights depend on the model's license, set by its provider (OpenSIAI). Check the provider's applicable terms and OpenSIAI's Terms of Service before commercial use.