Loading...
Loading...
Swap faces between images using EachLabs AI. Use when the user wants to replace or swap faces in photos.
npx skill4agent add eachlabs/skills eachlabs-face-swapHeader: X-API-Key: <your-api-key>EACHLABS_API_KEY| Model | Slug | Best For |
|---|---|---|
| AI Face Swap V1 | | Image face swap |
| Eachlabs Face Swap | | Image face swap |
| Face Swap (legacy) | | Image face swap |
| Faceswap Video | | Video 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": {
"target_image": "https://example.com/target-photo.jpg",
"swap_image": "https://example.com/source-face.jpg"
}
}'curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "each-faceswap-v1",
"version": "0.0.1",
"input": {
"target_image": "https://example.com/target-photo.jpg",
"swap_image": "https://example.com/source-face.jpg"
}
}'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": {
"target_video": "https://example.com/target-video.mp4",
"swap_image": "https://example.com/source-face.jpg"
}
}'curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "gpt-image-v1-5-edit",
"version": "0.0.1",
"input": {
"prompt": "Replace the face in image 1 with the face from image 2. Keep the same pose, lighting, and expression. Maintain natural skin tone and seamless blending.",
"image_urls": [
"https://example.com/target-photo.jpg",
"https://example.com/source-face.jpg"
],
"quality": "high"
}
}'GET https://api.eachlabs.ai/v1/model?slug=<slug>request_schemahttps://api.eachlabs.ai/v1/prediction"0.0.1"GET https://api.eachlabs.ai/v1/prediction/{id}"success""failed"