face-morphing

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Face Morphing

人脸变形

Transform and blend faces using each::sense. This skill enables face morphing, blending two or more faces together, predicting family resemblances, creating gender swaps, and generating smooth morph animations.
借助each::sense实现人脸变形与融合。该技能支持人脸变形、多张人脸融合、家族相似度预测、性别转换以及生成流畅的变形动画。

Features

功能特性

  • Face Blending: Seamlessly merge two faces into one
  • Celebrity Morphs: Blend your face with celebrities
  • Family Prediction: Generate what a child might look like from parent photos
  • Couple Face Merge: Create a blended face from two partners
  • Family Resemblance: Analyze and visualize genetic similarities
  • Morph Animation: Create smooth video transitions between faces
  • Gender Swap: Transform facial features between genders
  • Ethnicity Blend: Create faces that blend multiple ethnicities
  • Historical Modernization: Update historical figure faces to modern style
  • Average Face: Generate an average face from multiple inputs
  • 人脸融合:将两张人脸无缝合二为一
  • 名人脸变形:将你的脸与名人脸融合
  • 后代样貌预测:根据父母照片生成孩子可能的样貌
  • 伴侣人脸融合:将伴侣的两张脸融合为一张
  • 家族相似度分析:分析并可视化遗传相似性
  • 变形动画:创建人脸间的平滑视频过渡效果
  • 性别转换:转换面部特征实现跨性别效果
  • 种族特征融合:创建融合多种族特征的人脸
  • 历史人物现代化:将历史人物肖像转换为现代风格
  • 平均人脸生成:根据多张输入人脸生成平均人脸

Quick Start

快速开始

bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Morph these two faces together into a seamless blend, 50% each",
    "image_urls": [
      "https://example.com/face1.jpg",
      "https://example.com/face2.jpg"
    ],
    "mode": "max"
  }'
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Morph these two faces together into a seamless blend, 50% each",
    "image_urls": [
      "https://example.com/face1.jpg",
      "https://example.com/face2.jpg"
    ],
    "mode": "max"
  }'

Use Case Examples

用例示例

1. Morph Two Faces Together

1. 两张人脸变形融合

Basic face morphing that blends two faces into one unified result.
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Morph these two faces together. Create a seamless blend that takes facial structure from the first image and some features like eyes and nose from the second image. Make it look natural and realistic.",
    "image_urls": [
      "https://example.com/person-a.jpg",
      "https://example.com/person-b.jpg"
    ],
    "mode": "max"
  }'
基础人脸变形,将两张人脸融合为一个统一的结果。
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Morph these two faces together. Create a seamless blend that takes facial structure from the first image and some features like eyes and nose from the second image. Make it look natural and realistic.",
    "image_urls": [
      "https://example.com/person-a.jpg",
      "https://example.com/person-b.jpg"
    ],
    "mode": "max"
  }'

2. Celebrity Face Blend

2. 名人脸融合

Blend a user photo with a celebrity face for fun transformations.
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Blend my face with this celebrity photo. Create a 50/50 morph that combines my facial structure with their features. Keep the result looking like a real person, not artificial.",
    "image_urls": [
      "https://example.com/my-photo.jpg",
      "https://example.com/celebrity.jpg"
    ],
    "mode": "max"
  }'
将用户照片与名人脸融合,实现趣味转换。
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Blend my face with this celebrity photo. Create a 50/50 morph that combines my facial structure with their features. Keep the result looking like a real person, not artificial.",
    "image_urls": [
      "https://example.com/my-photo.jpg",
      "https://example.com/celebrity.jpg"
    ],
    "mode": "max"
  }'

3. Parent + Child Prediction

3. 父母-孩子样貌预测

Generate what a child might look like based on two parent photos.
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Based on these two parent photos, generate what their child might look like. Create a baby/toddler face that naturally combines features from both parents - take eye shape from the first parent, nose structure from the second, and blend skin tones appropriately. Make it look like a realistic child portrait.",
    "image_urls": [
      "https://example.com/parent1.jpg",
      "https://example.com/parent2.jpg"
    ],
    "mode": "max"
  }'
根据父母的两张照片生成孩子可能的样貌。
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Based on these two parent photos, generate what their child might look like. Create a baby/toddler face that naturally combines features from both parents - take eye shape from the first parent, nose structure from the second, and blend skin tones appropriately. Make it look like a realistic child portrait.",
    "image_urls": [
      "https://example.com/parent1.jpg",
      "https://example.com/parent2.jpg"
    ],
    "mode": "max"
  }'

4. Couple Face Merge

4. 伴侣人脸融合

Create a merged face from a couple's photos.
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Merge these two faces from a couple into one face. The result should look like a single person who has balanced features from both individuals. Keep natural proportions and make it look like a genuine portrait photo.",
    "image_urls": [
      "https://example.com/partner1.jpg",
      "https://example.com/partner2.jpg"
    ],
    "mode": "max"
  }'
根据伴侣的照片创建融合后的人脸。
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Merge these two faces from a couple into one face. The result should look like a single person who has balanced features from both individuals. Keep natural proportions and make it look like a genuine portrait photo.",
    "image_urls": [
      "https://example.com/partner1.jpg",
      "https://example.com/partner2.jpg"
    ],
    "mode": "max"
  }'

5. Family Resemblance Generator

5. 家族相似度生成器

Visualize genetic similarities across family members.
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Analyze these family member photos and create a face that represents the family resemblance - the common features shared across all family members. Highlight the genetic similarities in bone structure, eye shape, and facial proportions.",
    "image_urls": [
      "https://example.com/family-member1.jpg",
      "https://example.com/family-member2.jpg",
      "https://example.com/family-member3.jpg"
    ],
    "mode": "max"
  }'
可视化家庭成员间的遗传相似性。
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Analyze these family member photos and create a face that represents the family resemblance - the common features shared across all family members. Highlight the genetic similarities in bone structure, eye shape, and facial proportions.",
    "image_urls": [
      "https://example.com/family-member1.jpg",
      "https://example.com/family-member2.jpg",
      "https://example.com/family-member3.jpg"
    ],
    "mode": "max"
  }'

6. Gradual Morph Animation

6. 渐变变形动画

Create a smooth video transition morphing from one face to another.
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Create a gradual morph animation video that smoothly transitions from the first face to the second face over 3 seconds. The transformation should be fluid and show intermediate blended states between both faces. Output as a video.",
    "image_urls": [
      "https://example.com/start-face.jpg",
      "https://example.com/end-face.jpg"
    ],
    "mode": "max"
  }'
创建从一张人脸平滑过渡到另一张人脸的视频。
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Create a gradual morph animation video that smoothly transitions from the first face to the second face over 3 seconds. The transformation should be fluid and show intermediate blended states between both faces. Output as a video.",
    "image_urls": [
      "https://example.com/start-face.jpg",
      "https://example.com/end-face.jpg"
    ],
    "mode": "max"
  }'

7. Gender Swap

7. 性别转换

Transform facial features to appear as a different gender.
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Transform this face to show how the person might look as a different gender. Adjust facial features like jawline, brow ridge, cheekbones, and add appropriate hair and makeup while maintaining recognizable features from the original person.",
    "image_urls": [
      "https://example.com/original-face.jpg"
    ],
    "mode": "max"
  }'
转换面部特征以呈现不同性别的样貌。
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Transform this face to show how the person might look as a different gender. Adjust facial features like jawline, brow ridge, cheekbones, and add appropriate hair and makeup while maintaining recognizable features from the original person.",
    "image_urls": [
      "https://example.com/original-face.jpg"
    ],
    "mode": "max"
  }'

8. Ethnicity Blend

8. 种族特征融合

Create a face that blends features from multiple ethnicities.
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Blend these faces from different ethnic backgrounds into a single harmonious face. Create a natural-looking result that represents a mix of features from each source face - taking skin tone, eye shape, nose structure, and facial proportions from different inputs.",
    "image_urls": [
      "https://example.com/face-ethnicity1.jpg",
      "https://example.com/face-ethnicity2.jpg",
      "https://example.com/face-ethnicity3.jpg"
    ],
    "mode": "max"
  }'
创建融合多种族特征的人脸。
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Blend these faces from different ethnic backgrounds into a single harmonious face. Create a natural-looking result that represents a mix of features from each source face - taking skin tone, eye shape, nose structure, and facial proportions from different inputs.",
    "image_urls": [
      "https://example.com/face-ethnicity1.jpg",
      "https://example.com/face-ethnicity2.jpg",
      "https://example.com/face-ethnicity3.jpg"
    ],
    "mode": "max"
  }'

9. Historical Figure Modernization

9. 历史人物现代化

Transform a historical portrait to modern photographic style.
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Take this historical portrait and modernize it. Transform the face to show how this historical figure would look in a modern photograph - update the lighting to contemporary photography style, adjust skin texture to look photorealistic, and give them a modern hairstyle while preserving their distinctive facial features.",
    "image_urls": [
      "https://example.com/historical-portrait.jpg"
    ],
    "mode": "max"
  }'
将历史肖像转换为现代摄影风格。
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Take this historical portrait and modernize it. Transform the face to show how this historical figure would look in a modern photograph - update the lighting to contemporary photography style, adjust skin texture to look photorealistic, and give them a modern hairstyle while preserving their distinctive facial features.",
    "image_urls": [
      "https://example.com/historical-portrait.jpg"
    ],
    "mode": "max"
  }'

10. Create Average Face from Multiple Photos

10. 基于多张照片生成平均人脸

Generate an average face that combines features from multiple input faces.
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Create an average face from all these input photos. Blend the facial features mathematically to produce a single face that represents the statistical average of all inputs - averaged bone structure, feature placement, skin tone, and proportions.",
    "image_urls": [
      "https://example.com/face1.jpg",
      "https://example.com/face2.jpg",
      "https://example.com/face3.jpg",
      "https://example.com/face4.jpg",
      "https://example.com/face5.jpg"
    ],
    "mode": "max"
  }'
根据多张输入人脸生成平均人脸。
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Create an average face from all these input photos. Blend the facial features mathematically to produce a single face that represents the statistical average of all inputs - averaged bone structure, feature placement, skin tone, and proportions.",
    "image_urls": [
      "https://example.com/face1.jpg",
      "https://example.com/face2.jpg",
      "https://example.com/face3.jpg",
      "https://example.com/face4.jpg",
      "https://example.com/face5.jpg"
    ],
    "mode": "max"
  }'

Multi-Turn Creative Iteration

多轮创意迭代

Use
session_id
to refine and iterate on face morphs:
bash
undefined
使用
session_id
优化和迭代人脸变形效果:
bash
undefined

Initial morph

Initial morph

curl -X POST https://sense.eachlabs.run/chat
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "message": "Morph these two faces together with a 50/50 blend", "image_urls": [ "https://example.com/face-a.jpg", "https://example.com/face-b.jpg" ], "session_id": "morph-project-001" }'
curl -X POST https://sense.eachlabs.run/chat
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "message": "Morph these two faces together with a 50/50 blend", "image_urls": [ "https://example.com/face-a.jpg", "https://example.com/face-b.jpg" ], "session_id": "morph-project-001" }'

Adjust the blend ratio

Adjust the blend ratio

curl -X POST https://sense.eachlabs.run/chat
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "message": "Adjust the blend to be 70% first face and 30% second face", "session_id": "morph-project-001" }'
curl -X POST https://sense.eachlabs.run/chat
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "message": "Adjust the blend to be 70% first face and 30% second face", "session_id": "morph-project-001" }'

Request specific feature adjustments

Request specific feature adjustments

curl -X POST https://sense.eachlabs.run/chat
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "message": "Keep the eyes from the first face but use the jawline from the second face", "session_id": "morph-project-001" }'
undefined
curl -X POST https://sense.eachlabs.run/chat
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "message": "Keep the eyes from the first face but use the jawline from the second face", "session_id": "morph-project-001" }'
undefined

Mode Selection

模式选择

Ask your users before generating:
"Do you want fast & cheap, or high quality?"
ModeBest ForSpeedQuality
max
Final morph outputs, detailed blends, animationsSlowerHighest
eco
Quick previews, testing different combinationsFasterGood
生成前请询问用户:
"你想要快速低成本的效果,还是高质量的效果?"
模式适用场景速度质量
max
最终变形输出、精细融合、动画较慢最高
eco
快速预览、测试不同组合较快良好

Best Practices

最佳实践

Input Image Quality

输入图像质量

  • Resolution: Use high-resolution face photos (at least 512x512)
  • Lighting: Consistent lighting across input images produces better blends
  • Face Position: Front-facing photos with similar angles work best
  • Background: Clean backgrounds help isolate facial features
  • 分辨率:使用高分辨率人脸照片(至少512x512)
  • 光线:输入图像光线一致可获得更好的融合效果
  • 人脸姿态:正面、角度相似的照片效果最佳
  • 背景:简洁背景有助于分离面部特征

Morph Quality Tips

变形质量技巧

  • Similar poses: Input faces with similar head positions morph better
  • Clear features: Avoid obscured faces (sunglasses, hands covering face)
  • Age consistency: For family predictions, consider parent ages at time of photos
  • Multiple runs: Try different prompts to find the best blend style
  • 相似姿态:输入人脸头部姿态相似时变形效果更好
  • 清晰特征:避免使用面部被遮挡的照片(如戴墨镜、手遮脸)
  • 年龄一致性:进行后代预测时,考虑父母照片拍摄时的年龄
  • 多次尝试:尝试不同的提示词以找到最佳融合风格

Animation Considerations

动画注意事项

  • Frame count: More frames create smoother transitions
  • Duration: 2-5 seconds is ideal for morph animations
  • Loop-friendly: Request seamless loops for social media use
  • 帧数:更多帧数可实现更平滑的过渡
  • 时长:2-5秒是变形动画的理想时长
  • 循环友好:为社交媒体使用可请求无缝循环效果

Prompt Tips for Face Morphing

人脸变形提示词技巧

When creating face morphs, include these details in your prompt:
  1. Blend Ratio: Specify the percentage blend (50/50, 70/30, etc.)
  2. Feature Focus: Which features to take from which face
  3. Output Type: Image or video animation
  4. Style: Realistic, artistic, exaggerated, etc.
  5. Age Target: For child predictions, specify desired age
创建人脸变形时,提示词中请包含以下细节:
  1. 融合比例:指定融合百分比(如50/50、70/30等)
  2. 特征聚焦:明确从哪张人脸提取哪些特征
  3. 输出类型:图片或视频动画
  4. 风格:写实、艺术化、夸张等
  5. 年龄目标:进行孩子预测时,指定目标年龄

Example Prompt Structure

提示词结构示例

"[Action] these faces with [blend ratio].
Take [features] from the first face and [features] from the second.
Output as [image/video]. Make it look [style descriptor]."
"[动作]这些人脸,融合比例为[比例]。
从第一张人脸提取[特征],从第二张人脸提取[特征]。
输出为[图片/视频],风格为[风格描述]。"

Error Handling

错误处理

ErrorCauseSolution
Failed to create prediction: HTTP 422
Insufficient balanceTop up at eachlabs.ai
No face detected
Input image has no clear faceUse a clearer face photo
Face alignment failed
Faces too different in angleUse photos with similar head positions
TimeoutComplex generationSet client timeout to minimum 10 minutes
错误原因解决方案
Failed to create prediction: HTTP 422
余额不足在eachlabs.ai进行充值
No face detected
输入图像中无清晰人脸使用更清晰的人脸照片
Face alignment failed
人脸角度差异过大使用头部姿态相似的照片
超时生成过程复杂将客户端超时设置为至少10分钟

Related Skills

相关技能

  • each-sense
    - Core API documentation
  • face-swap
    - Swap faces between images
  • image-generation
    - Generate faces from text descriptions
  • video-generation
    - Create face animation videos
  • each-sense
    - 核心API文档
  • face-swap
    - 图像间人脸互换
  • image-generation
    - 根据文本描述生成人脸
  • video-generation
    - 创建人脸动画视频