Pricing
Compare models →| Operation | Price (USD) |
|---|---|
| Face Swap (per image) | $0.01 |
Input schema
| Parameter | Type | Description |
|---|---|---|
imageRequired | string | The image 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" |
output_format | string | The format of the output image.jpegpngwebp"jpeg" |
README
OpenSIAI Face Swap
Face Swap is an advanced AI-powered face replacement model that enables realistic, seamless, and watermark-free face swaps in static images.
By combining powerful face recognition, alignment, and blending algorithms, it ensures lifelike results while preserving lighting, pose, and expression fidelity.
⚙️ Why it looks so cool
- Instant Face Swapping
Upload a base image and a reference face — the model replaces the original face with the target identity while maintaining natural contours and lighting.
- Realistic Blending
Automatically adapts skin tone, lighting direction, and expression for ultra-smooth integration.
- Expression & Pose Preservation
The source image’s emotion, head tilt, and gaze direction are retained for believable results.
- Watermark-Free Results
Every generation is clean, production-ready, and suitable for both fun edits and professional use.
🧠 How to use
- Input:
image→ The base photo to edit
face_image→ The reference face to swap in
target_index→ (optional) Which face to swap when multiple faces exist; 0 = largest face. Default: 0
target_gender→ (optional) Only swap faces matching this gender:all,male, orfemale. Default:all
- Output: JPEG / PNG / WEBP image with replaced face
- AI Engine: OpenSIAI Face Identity Alignment & Lighting Consistency Module
💰 Pricing
| Operation | Price (USD) |
|---|---|
| Face Swap (per image) | $0.01 |
💡 Best Use Cases
- Social Media & Entertainment — Fun, shareable, and creative swaps in portraits and group photos.
- Film & Advertising — Quick mockups for casting, storyboarding, and concept design.
- Photography & Visual Design — Replace faces for privacy, retouching, or creative effects.
- Virtual Production — Generate realistic composites for narrative or promotional visuals.
📝 Notes
- For best results, use clear, front-facing portraits with consistent lighting between both faces.
- Avoid overly complex or low-resolution images — clarity improves blending accuracy.
- Ensure you have permission to use all uploaded images and likenesses.
- If you are working with anime or illustrated characters, the output quality may be significantly lower due to visual style differences.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
Image Face Swap API example
The catalog lists POST https://api.opensi.com.ai/api/v3/opensi-ai/image-face-swap for the submission step. Confirm the endpoint and access with your supplier before sending a request.
HTTP request body
{
"image": "https://drz0f01yeq1cx.cloudfront.net/community/9f4e132c-5ef0-4e88-ae42-195e20a94c5d.png",
"face_image": "https://drz0f01yeq1cx.cloudfront.net/1739866170346-6020-豆包2.png",
"target_index": 0,
"target_gender": "all",
"output_format": "jpeg"
}Image Face Swap API — Frequently asked questions
What is the Image Face Swap API?
Image Face Swap is a OpenSIAI model for image face swapping, exposed as a REST API on OpenSIAI. Free swap faces in any photo instantly — realistic blending, no watermark, no sign up. Upload a base image and reference face to get started now. You can call it programmatically or try it from the playground above.
How do I call the Image 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/image-face-swap.
How much does Image Face Swap cost per run or per second?
Image 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 Image Face Swap accept?
Key inputs: image, face_image, output_format, 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/image-face-swap.
How long does Image Face Swap take to generate?
Reported generation time on OpenSIAI is around 11 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 Image 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.
