Enjoy 50% OFF Vidu Q3 & Q3 Pro models • Only on WaveSpeedAI | May 20 – Jun 2

WaveSpeed AI Image Face Swap

wavespeed-ai /

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.

portrait-transfer
Input

Drag & drop or click to upload

preview

Drag & drop or click to upload

preview
If enabled, the output will be encoded into a BASE64 string instead of a URL. This property is only available through the API.
If set to true, the function will wait for the result to be generated and uploaded before returning the response. It allows you to get the result directly in the response. This property is only available through the API.

Idle

$0.01per run·~100 / $1

ExamplesView all

Related Models

README

WaveSpeedAI 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

  • Output: JPEG / PNG / WEBP image with replaced face

  • AI Engine: WaveSpeedAI Face Identity Alignment & Lighting Consistency Module

💰 Pricing

OperationPrice (USD)
Face Swap (per image)$0.010

💡 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.
Accessibility:This website uses AI models provided by third parties.

Image Face Swap API — Quick start

Grab a WaveSpeedAI API key, then call POST https://api.wavespeed.ai/api/v3/wavespeed-ai/image-face-swap with your input as JSON. The endpoint returns a prediction id; poll the prediction endpoint until status flips to completed, then read the output URL from data.outputs[0]. Examples for Image Face Swap below.

HTTP example
# Submit the prediction
curl -X POST "https://api.wavespeed.ai/api/v3/wavespeed-ai/image-face-swap" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $WAVESPEED_API_KEY" \
  -d '{
    "image": "https://example.com/your-input.jpg",
    "target_index": 0,
    "output_format": "jpeg",
    "enable_base64_output": false,
    "enable_sync_mode": false
}'

# Response includes a prediction id. Poll for the result:
curl -X GET "https://api.wavespeed.ai/api/v3/predictions/{request_id}/result" \
  -H "Authorization: Bearer $WAVESPEED_API_KEY"

# When status is "completed", read the output from data.outputs[0].
Node.js example
// npm install wavespeed
const WaveSpeed = require('wavespeed');

const client = new WaveSpeed(); // reads WAVESPEED_API_KEY from env

const result = await client.run("wavespeed-ai/image-face-swap", {
        "image": "https://example.com/your-input.jpg",
        "target_index": 0,
        "output_format": "jpeg",
        "enable_base64_output": false,
        "enable_sync_mode": false
});

console.log(result.outputs[0]); // → URL of the generated output
Python example
# pip install wavespeed
import wavespeed

output = wavespeed.run(
    "wavespeed-ai/image-face-swap",
    {
    "image": "https://example.com/your-input.jpg",
    "target_index": 0,
    "output_format": "jpeg",
    "enable_base64_output": false,
    "enable_sync_mode": false
}
)

print(output["outputs"][0])  # → URL of the generated output

Image Face Swap API — Frequently asked questions

What is the Image Face Swap API?

Image Face Swap is a WaveSpeedAI model for AI inference, exposed as a REST API on WaveSpeedAI. 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 WaveSpeedAI API key in the Authorization header. Submission returns a prediction ID; poll the prediction endpoint until status flips to "completed", then read the output URL from the result. The playground generates a ready-to-paste code sample in Python, JavaScript, or cURL for whatever inputs you've set. Full request/response shape is documented at https://wavespeed.ai/docs/docs-api/wavespeed-ai/image-face-swap.

How much does Image Face Swap cost per run?

Image Face Swap starts at $0.010 per run. 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`, `enable_base64_output`, `enable_sync_mode`, `face_image`, `output_format`, `target_index`. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at https://wavespeed.ai/docs/docs-api/wavespeed-ai/image-face-swap.

How long does Image Face Swap take to generate?

Average end-to-end generation time on WaveSpeedAI is around 4 seconds per request — measured across recent runs. Queue time scales with global demand; 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 (WaveSpeedAI). The license summary appears on the model card above; see WaveSpeedAI's Terms of Service for platform-level conditions.