AI Face Swap V1
Swap faces between two images using AI. Provide a face image (the face to use) and a source image (the image where the face will be placed) for seamless face replacement.
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": "aifaceswap-face-swap",
"version": "0.0.1",
"input": {
"face_image": "https://example.com/face-to-swap.jpg",
"source_image": "https://example.com/target-photo.jpg"
}
}'
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
| face_image | string | - | URL of the face image to use as the replacement face. |
| source_image | string | - | URL of the source image where the face will be placed. |
Examples
Basic face swap:
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "aifaceswap-face-swap",
"version": "0.0.1",
"input": {
"face_image": "https://example.com/my-face.jpg",
"source_image": "https://example.com/movie-poster.jpg"
}
}'
Face swap on group photo:
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "aifaceswap-face-swap",
"version": "0.0.1",
"input": {
"face_image": "https://example.com/portrait.jpg",
"source_image": "https://example.com/group-photo.jpg"
}
}'
Related Models
- Each Faceswap v1 - Each Labs face swap solution
- Face Swap New - Updated face swap model
- Faceswap Video - Face swap for videos