Pricing
Compare models →Billing duration: Input media duration is rounded up to whole seconds. The minimum billed duration is 3 seconds; shorter inputs are billed as 3 seconds. Existing per-5-second rate tables remain unchanged.
Pricing is based on video duration and output resolution, with a 3-second minimum and 120-second cap.
| Resolution | Price per second | Min charge (3 s) | Max charge (120 s) |
|---|---|---|---|
| 480p | $0.04 | $0.12 | $4.80 |
| 720p | $0.08 | $0.24 | $9.60 |
- minimum billed duration: 3 seconds
- Maximum billed duration: 120 seconds per run (longer clips are capped at 120 s)
Input schema
| Parameter | Type | Description |
|---|---|---|
videoRequired | string | The video that contains the face to be replaced. |
face_imageRequired | string | The face image as reference. |
prompt | string | The prompt to guide the model's behavior. |
resolution | string | The resolution of the output video.720p480p"480p" |
seed | integer | The seed used for the prediction. |
README
OpenSIAI Video Head Swap
OpenSIAI Video Head Swap is an advanced AI model for replacing the entire head (face + hair + outline) of a person in a video using a reference portrait. The model keeps the body, pose, and background intact while reconstructing a new, realistic head that matches the original lighting and perspective.
🎬 What this model does
- Replaces the full head region of the subject (face, hair, silhouette, accessories)
- Preserves body pose, clothing, background, and overall composition
- Adapts the new head to scene lighting, color tone, and camera angle
- Produces clean, watermark-free outputs ready for editing or publication
⚙️ Why it looks realistic
- Full-head geometry replacement
Swaps the entire head contour instead of only facial features, avoiding mismatched hairlines or distorted skull shapes.
- Pose and expression preservation
Follows the motion in the source video so head angle, gaze direction, and expression remain consistent with the original performance.
- Lighting and color matching
Automatically adjusts skin tone, shadows, and highlights so the new head blends naturally into the scene.
- High-resolution blending
Smooth transitions around hair, neck, and accessories, minimizing visible seams or flicker across frames.
💰 Pricing
Billing duration: Input media duration is rounded up to whole seconds. The minimum billed duration is 3 seconds; shorter inputs are billed as 3 seconds. Existing per-5-second rate tables remain unchanged.
Pricing is based on video duration and output resolution, with a 3-second minimum and 120-second cap.
| Resolution | Price per second | Min charge (3 s) | Max charge (120 s) |
|---|---|---|---|
| 480p | $0.04 | $0.12 | $4.80 |
| 720p | $0.08 | $0.24 | $9.60 |
- minimum billed duration: 3 seconds
- Maximum billed duration: 120 seconds per run (longer clips are capped at 120 s)
🔧 Input Parameters
video (required)
The source video whose head you want to replace. This defines body motion, framing, and background.
face_image / head_image (required)
A clear portrait of the target identity. Frontal or three-quarter views with good lighting work best.
resolution
Output resolution for the processed video, for example:
- 480p – more affordable drafts or quick previews
- 720p – higher-quality output suitable for most publishing workflows
seed (optional)
Controls stochastic variation in generation:
-1or empty → random seed each run
- Any positive integer → reproducible results for the same inputs
(Exact field name may differ between Playground and API, but behavior is identical.)
🎯 Designed For
- Creators & influencers – Turn one performance into many identities without reshooting.
- Marketing & brands – Localize or personalize talking-head content while keeping the same body and scene.
- Film, TV & post-production – Rapid previs, mockups, and concept tests for head-replacement shots.
- Privacy & compliance – Replace real heads with synthetic or authorized identities while preserving situational context.
▶️ How to Use
- Upload or paste the URL of the video to edit.
- Upload a face/head reference image for the identity you want to swap in.
- Select the output resolution (480p or 720p).
- (Optional) Set a seed if you need reproducible results.
- Click Run to generate the swapped video.
- Review the result; if needed, adjust the reference portrait or seed and run again.
📌 Tips & Notes
- Use sharp, well-lit videos where the face is not heavily occluded or motion-blurred.
- For the reference portrait, keep expression and angle reasonably close to the target shot for the cleanest match.
- Avoid extreme mismatches in lighting (e.g., dark blue stage light in video vs. warm daylight portrait) unless you want a stylized look.
- Ensure you have the legal right and consent to use all uploaded videos and portraits.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
Video Head Swap Portrait Transfer API example
The catalog lists POST https://api.opensi.com.ai/api/v3/opensi-ai/video-head-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/1744710700804-7751-企业微信截图7826a484f5ce49e08cb3964f58f9d2a9.png",
"prompt": "A cinematic ocean wave at sunrise, highly detailed",
"resolution": "480p",
"seed": 0
}Video Head Swap Portrait Transfer API — Frequently asked questions
What is the Video Head Swap API?
Video Head Swap is a OpenSIAI model for video face swapping, exposed as a REST API on OpenSIAI. Instant online AI head & face swap for videos with no watermark, delivering realistic, shareable results in seconds. 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 Head 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-head-swap.
How much does Video Head Swap cost per run or per second?
Video Head Swap starts at $0.04 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 Head Swap accept?
Key inputs: prompt, video, resolution, seed, face_image. 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-head-swap.
How long does Video Head Swap take to generate?
Reported generation time on OpenSIAI is around 168 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 Head 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.