Video Face Swap AI API for Scalable Apps

Build video face swap apps with the WaveSpeed API

WaveSpeed Video Face Swap API lets developers and SaaS teams swap faces in video at scale. Upload a source clip and a reference face, and the model returns a rendered video with the target identity preserved across frames. It handles multi-person scenes, async batch processing, and identity tracking—so you can ship a video face swap AI feature without building your own inference pipeline.

Start with $1 credit.

Futuristic API dashboard showing video face swap pipeline with upload, embedding, tracking, and rendered output

API snapshot

ModelWaveSpeed Video Face Swap
ProviderWaveSpeed AI
EndpointVideo Face Swap Endpoint
Base URLhttps://api.openoctopus.com/v1
AuthOpenOctopus API key
SDKsPython, Node.js, cURL
Best forAI video face swap, batch processing, multi-person scenes

The video face swap API accepts a video file or public URL plus a reference face image. You can use target_index to select which face to replace when several people appear in the frame. Responses return a prediction ID that you poll until rendering completes.

For a deeper look at how the model works, see What Is Wavespeed Video Face Swap.

Quick start

import requests

url = "https://api.openoctopus.com/v1/video/generations"
headers = {
    "Authorization": "Bearer YOUR_OPENOCTOPUS_API_KEY",
    "Content-Type": "application/json"
}
payload = {
    "model": "wavespeed/openoctopus-video-face-swap",
    "video": "https://example.com/source.mp4",
    "face_image": "https://example.com/face.jpg",
    "target_index": 0
}

response = requests.post(url, json=payload, headers=headers)
data = response.json()
print(data["prediction_id"])

Poll the prediction ID until status is succeeded. The response then contains a signed URL to the rendered face swap video.

Integration workflow diagram showing authentication, upload, target selection, async job submission, and result download steps

Integration workflow

  1. Authenticate with your OpenOctopus API key.
  2. Upload the source video and reference face image, or pass public URLs.
  3. Select target face using target_index for multi-person scenes.
  4. Submit the job and poll the prediction ID.
  5. Download the rendered video from the returned URL.

This workflow is the fastest way to move from a video face swap online demo to a production AI video face swap integration. For image-only alternatives, the Image Face Swap Guide covers portrait transfer models and their limitations.

What you get with the video face swap API

1

High-fidelity face replacement

Preserve expression, pose, and lighting across frames.

2

Multi-person face swap

Use `target_index` to replace specific faces in group scenes.

3

Face tracking

Keeps the same identity locked through motion and camera cuts.

4

Async batch processing

Queue long videos and process many jobs in parallel.

5

OpenAI-compatible requests

Reuse existing client code and error-handling patterns.

6

Unified billing

One invoice and usage dashboard across models on OpenOctopus.

Pricing and production notes

WaveSpeed bills by video duration, usually with a short minimum. Costs scale linearly with clip length, so batch-heavy apps should plan usage budgets and cache results. The video face swap API is ideal for AI face swap tools, short-form video apps, marketing personalization, entertainment content, and creator platforms.

Avoid using it for legal evidence, news authenticity workflows, medical imaging, or identity verification. The output is a creative render, not a forensic record. Research on long-duration video face swapping notes that abrupt inter-frame motion often leads to temporal flickering and inconsistent identity rendering, which is why short, stable clips remain the safest input.

FAQ

Use https://api.openoctopus.com/v1 with your OpenOctopus API key.

Start building with WaveSpeed Video Face Swap

Ship a video face swap AI feature in minutes. Get your API key, test the playground, and integrate the endpoint into your app.

Start with $1 credit.