npx skills add https://github.com/eachlabs/skills --skill eachlabs-face-swap使用 EachLabs Predictions API 在图像和视频之间交换人脸。
Header: X-API-Key: <your-api-key>
设置 EACHLABS_API_KEY 环境变量。在 eachlabs.ai 获取您的密钥。
| 模型 | Slug | 最佳用途 |
|---|---|---|
| AI 人脸交换 V1 | aifaceswap-face-swap | 图像人脸交换 |
| Eachlabs 人脸交换 | each-faceswap-v1 | 图像人脸交换 |
| 人脸交换 (旧版) |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
face-swap-new| 图像人脸交换 |
| 视频人脸交换 | faceswap-video | 视频人脸交换 |
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_schema。在创建预测之前务必执行此操作,以确保输入正确。https://api.eachlabs.ai/v1/prediction,附带模型 slug、版本 "0.0.1" 以及符合 schema 的输入GET https://api.eachlabs.ai/v1/prediction/{id} 直到状态变为 "success" 或 "failed"每周安装次数
75
代码仓库
GitHub 星标数
10
首次出现
2026年2月9日
安全审计
安装于
opencode71
gemini-cli70
cursor70
codex68
github-copilot67
kimi-cli67
Swap faces between images and videos using the EachLabs Predictions API.
Header: X-API-Key: <your-api-key>
Set the EACHLABS_API_KEY environment variable. Get your key at eachlabs.ai.
| Model | Slug | Best For |
|---|---|---|
| AI Face Swap V1 | aifaceswap-face-swap | Image face swap |
| Eachlabs Face Swap | each-faceswap-v1 | Image face swap |
| Face Swap (legacy) | face-swap-new | Image face swap |
| Faceswap Video | 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"
}
}'
For prompt-based face replacement:
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> — validates the model exists and returns the request_schema with exact input parameters. Always do this before creating a prediction to ensure correct inputs.https://api.eachlabs.ai/v1/prediction with model slug, version "0.0.1", and input matching the schemaGET https://api.eachlabs.ai/v1/prediction/{id} until status is "success" or "failed"Weekly Installs
75
Repository
GitHub Stars
10
First Seen
Feb 9, 2026
Security Audits
Gen Agent Trust HubWarnSocketPassSnykWarn
Installed on
opencode71
gemini-cli70
cursor70
codex68
github-copilot67
kimi-cli67
AI 代码实施计划编写技能 | 自动化开发任务分解与 TDD 流程规划工具
50,900 周安装