Faceswap | Video
Swap faces in videos using AI. Provide a face image and a target video, and the model replaces the face in the video with the one from your image, maintaining natural movement and expressions.
Quick Start
Requires an each::labs API key. Get one at eachlabs.ai.
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "faceswap-video",
"version": "0.0.1",
"input": {
"face_image_url": "https://example.com/face-photo.jpg",
"target_video_url": "https://example.com/target-video.mp4"
}
}'
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
| face_image_url | string | - | URL of the source face image to use for swapping |
| target_video_url | string | - | URL of the target video where the face will be replaced |
Examples
Basic face swap in a video:
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "faceswap-video",
"version": "0.0.1",
"input": {
"face_image_url": "https://example.com/headshot.jpg",
"target_video_url": "https://example.com/presentation.mp4"
}
}'
Face swap for creative content:
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "faceswap-video",
"version": "0.0.1",
"input": {
"face_image_url": "https://example.com/actor-face.jpg",
"target_video_url": "https://example.com/movie-clip.mp4"
}
}'
Related Models
- PixVerse | Lip Sync - Lip sync audio to video
- ElevenLabs | Voice Changer - Change voice in audio
- Luma Dream Machine | Ray 2 | Video Reframe - Reframe videos