vmodel/video-face-swap
video face swap model
Input
source * image
The face image you want to use to replace in target video.
target * video
The video where the original face will be replaced.
keep_fps * boolean
keep_fps
Reset
Output
{
  "task_id": "d9oo2z1s89lobg8oz5",
  "user_id": 1,
  "version": "85e248d268bcc04f5302cf9645663c2c12acd03c953ec1a4bbfdc252a65bddc0",
  "error": null,
  "total_time": 61,
  "predict_time": 61,
  "logs": null,
  "output": [
    "https://data.vmodel.ai/data/model-example/vmodel/video-face-swap/result.mp4"
  ],
  "status": "succeeded",
  "create_at": 1746492954,
  "completed_at": 1746493015,
  "input": {
    "source": "https://data.vmodel.ai/data/model-example/vmodel/video-face-swap/source.jpg",
    "target": "https://data.vmodel.ai/data/model-example/vmodel/video-face-swap/target.mp4",
    "keep_fps": false
  }
}
Generated in: 61 seconds
Download
Examples
Pricing
This model is priced based on the length of the video.
Output: $0.03986 / second or 25 seconds / $1
Readme

Video Face Swap – Realistic and High-Performance Video Face Swap API

Overview

The Video Face Swap API lets you swap a face in a video using a still picture. It goes through the video frame by frame, matching the new face to the original person's movements and expressions.

The system creates a 3D model of the face you’re swapping in and maps it onto each frame, so the switch feels natural. It works well with different camera angles and lighting conditions, and you don’t need a lot of setup to get it going.

Key Features & Capabilities

  • Stable Face Swapping: Keeps the face steady and in place throughout the video.
  • Matching Expressions: Keeps the original facial expressions and feelings intact.
  • High-Quality Support: Ensures the video stays clear and sharp during the changes.
  • Works from Different Angles: Helps align the face naturally when the head turns or tilts.
  • Adjusting Lighting: Changes the swapped face’s lighting to fit the video’s vibe.

How to Use the Video Face Swap API

  1. Prepare the Input Files

    • Source Image: Use a clear, front-facing photo of the face you want to swap in. The face should be well-lit, unobstructed, and high resolution (JPEG/PNG).
    • Target Video: Choose a video where the person’s face is visible and mostly facing the camera.MP4 format is recommended for optimal compatibility.
  2. Make the API Request

    • Send a POST request to the face swap API with the source image and target video
  3. Preview the Result

    • The API will return a JSON response containing a URL to the processed video.

Use Cases

  • Content Creation: You can easily change faces in video clips for social media, ads, or just for fun.

  • Virtual Production: This can help with planning or testing before you finalize your cast.

  • Marketing & Personalization: Make videos that fit local campaigns or user-generated content.

Tips for Best Results

  • Input Quality Matters: Using low-res or dark images can lead to weird or blurry swaps.

  • Face Visibility: Make sure the face in the video stays clear and visible most of the time.

  • Motion Blur Sensitivity: Fast movements or lots of motion blur can mess with face tracking and the overall look.

  • One Face at a Time: Right now, you can only swap one main face in each video.

  • Video Duration Limit: You can upload videos that are up to 3 minutes long.


This video face swap API is great for things like media editing, making virtual content, entertainment apps, and trying out AI. It uses facial recognition, motion tracking, and neural rendering to provide smooth and clear face changes in videos.