ai-headshot-generation

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

AI Headshot Generation

AI头像生成

Generate professional AI headshots from casual photos or text descriptions using each::sense. This skill creates polished, professional portraits suitable for corporate use, social media profiles, resumes, and marketing materials.
借助each::sense,可通过日常照片或文字描述生成专业AI头像。该技能生成的精致专业肖像适用于企业宣传、社交媒体个人资料、简历及营销物料。

Features

功能特性

  • Corporate Headshots: Professional portraits for company websites and directories
  • LinkedIn Photos: Optimized headshots for professional networking
  • Executive Portraits: Premium headshots for C-suite and leadership
  • Team Photos: Consistent style across multiple team members
  • Background Options: Office, studio, gradient, or custom backgrounds
  • Outfit Changes: Transform casual attire to professional business wear
  • Expression Variations: Generate multiple expressions from same source
  • Multi-Platform: Optimized for various aspect ratios and use cases
  • 企业头像:适用于公司官网及员工名录的专业肖像
  • LinkedIn头像:为职业社交平台优化的头像
  • 高管肖像:面向高管及领导层的高端头像
  • 团队照片:多团队成员风格统一的照片
  • 背景选项:办公室、工作室、渐变或自定义背景
  • 着装更换:将日常着装转换为专业商务装
  • 表情变体:基于同一张源照片生成多种表情
  • 多平台适配:针对不同宽高比及使用场景优化

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": "Create a professional corporate headshot from this casual photo. Clean background, professional lighting, business appropriate appearance.",
    "mode": "max",
    "image_urls": ["https://example.com/casual-photo.jpg"]
  }'
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 professional corporate headshot from this casual photo. Clean background, professional lighting, business appropriate appearance.",
    "mode": "max",
    "image_urls": ["https://example.com/casual-photo.jpg"]
  }'

Headshot Formats & Sizes

头像格式与尺寸

Use CaseAspect RatioRecommended SizeNotes
LinkedIn1:1400x400 to 800x800Square crop, head-and-shoulders
Corporate Website3:4600x800Standard portrait orientation
Resume/CV1:1 or 3:4300x300 or 300x400Clean, minimal background
Email Signature1:1150x150 to 300x300Small but recognizable
Speaker Profile1:1 or 16:9800x800 or 1920x1080Conference/event use
Team Page1:1500x500Consistent across team
使用场景宽高比推荐尺寸说明
LinkedIn1:1400x400 至 800x800方形裁剪,仅展示头部及肩部
企业官网3:4600x800标准肖像竖版比例
简历/CV1:1 或 3:4300x300 或 300x400背景简洁、风格极简
邮件签名1:1150x150 至 300x300尺寸小巧但辨识度高
演讲者资料1:1 或 16:9800x800 或 1920x1080适用于会议及活动场景
团队页面1:1500x500团队成员风格统一

Use Case Examples

使用场景示例

1. Corporate Headshot from Casual Photo

1. 从日常照片生成企业头像

Transform a casual selfie or personal photo into a polished corporate headshot.
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 casual photo into a professional corporate headshot. Use a clean neutral gray background, soft professional studio lighting, and ensure the subject looks polished and approachable. Keep the likeness accurate.",
    "mode": "max",
    "image_urls": ["https://example.com/casual-selfie.jpg"]
  }'
将日常自拍或个人照片转换为精致的企业头像。
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 casual photo into a professional corporate headshot. Use a clean neutral gray background, soft professional studio lighting, and ensure the subject looks polished and approachable. Keep the likeness accurate.",
    "mode": "max",
    "image_urls": ["https://example.com/casual-selfie.jpg"]
  }'

2. LinkedIn Profile Headshot

2. LinkedIn个人资料头像

Create an optimized headshot specifically for LinkedIn that conveys professionalism and approachability.
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 LinkedIn-optimized professional headshot from this photo. Square 1:1 format, friendly but professional expression, clean blurred office background, warm natural lighting. The subject should appear confident and approachable.",
    "mode": "max",
    "image_urls": ["https://example.com/source-photo.jpg"]
  }'
生成专为LinkedIn优化的头像,展现专业感与亲和力。
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 LinkedIn-optimized professional headshot from this photo. Square 1:1 format, friendly but professional expression, clean blurred office background, warm natural lighting. The subject should appear confident and approachable.",
    "mode": "max",
    "image_urls": ["https://example.com/source-photo.jpg"]
  }'

3. Executive Headshot

3. 高管头像

Premium quality headshot for C-suite executives, board members, and senior leadership.
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 premium executive headshot from this photo. Dark sophisticated background with subtle gradient, dramatic professional lighting, formal business attire appearance. The subject should convey authority, confidence, and leadership. Magazine cover quality.",
    "mode": "max",
    "image_urls": ["https://example.com/ceo-casual.jpg"]
  }'
面向企业高管、董事会成员及资深领导层的高品质头像。
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 premium executive headshot from this photo. Dark sophisticated background with subtle gradient, dramatic professional lighting, formal business attire appearance. The subject should convey authority, confidence, and leadership. Magazine cover quality.",
    "mode": "max",
    "image_urls": ["https://example.com/ceo-casual.jpg"]
  }'

4. Team Headshots (Consistent Style)

4. 团队头像(风格统一)

Generate matching headshots for team members to ensure visual consistency across your organization.
bash
undefined
为团队成员生成风格一致的头像,确保企业视觉形象统一。
bash
undefined

First team member - establish the style

第一位团队成员 - 确定风格

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 professional team headshot with these specifications: light gray background, soft diffused lighting from the left, 1:1 square format, head and shoulders framing. Professional but friendly expression. This will be the template style for our entire team.", "session_id": "team-headshots-2024", "mode": "max", "image_urls": ["https://example.com/team-member-1.jpg"] }'
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 professional team headshot with these specifications: light gray background, soft diffused lighting from the left, 1:1 square format, head and shoulders framing. Professional but friendly expression. This will be the template style for our entire team.", "session_id": "team-headshots-2024", "mode": "max", "image_urls": ["https://example.com/team-member-1.jpg"] }'

Second team member - maintain consistency

第二位团队成员 - 保持风格一致

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 headshot for this team member using the exact same style as the previous one - same background, lighting, framing, and overall aesthetic.", "session_id": "team-headshots-2024", "mode": "max", "image_urls": ["https://example.com/team-member-2.jpg"] }'
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 headshot for this team member using the exact same style as the previous one - same background, lighting, framing, and overall aesthetic.", "session_id": "team-headshots-2024", "mode": "max", "image_urls": ["https://example.com/team-member-2.jpg"] }'

Third team member

第三位团队成员

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 headshot for this team member matching our established team style.", "session_id": "team-headshots-2024", "mode": "max", "image_urls": ["https://example.com/team-member-3.jpg"] }'
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": "Create a headshot for this team member matching our established team style.", "session_id": "team-headshots-2024", "mode": "max", "image_urls": ["https://example.com/team-member-3.jpg"] }'
undefined

5. Headshot with Different Backgrounds

5. 不同背景的头像

Generate the same headshot with various background options.
bash
undefined
为同一张头像生成多种背景变体。
bash
undefined

Office background

办公室背景

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 professional headshot with a blurred modern office background. Glass windows, city view visible but out of focus. Natural daylight feel.", "session_id": "background-variations", "mode": "max", "image_urls": ["https://example.com/source-photo.jpg"] }'
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 professional headshot with a blurred modern office background. Glass windows, city view visible but out of focus. Natural daylight feel.", "session_id": "background-variations", "mode": "max", "image_urls": ["https://example.com/source-photo.jpg"] }'

Studio gradient background

工作室渐变背景

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": "Now create the same headshot but with a classic studio gradient background - deep blue fading to lighter blue. Keep the same professional lighting on the subject.", "session_id": "background-variations", "mode": "max" }'
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": "Now create the same headshot but with a classic studio gradient background - deep blue fading to lighter blue. Keep the same professional lighting on the subject.", "session_id": "background-variations", "mode": "max" }'

Nature/outdoor background

自然/户外背景

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 another variation with a natural outdoor background - soft green foliage, blurred bokeh effect, golden hour lighting. More relaxed professional vibe.", "session_id": "background-variations", "mode": "max" }'
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": "Create another variation with a natural outdoor background - soft green foliage, blurred bokeh effect, golden hour lighting. More relaxed professional vibe.", "session_id": "background-variations", "mode": "max" }'
undefined

6. Headshot with Different Outfits

6. 不同着装的头像

Transform the subject's appearance with professional attire options.
bash
undefined
为人物更换专业着装风格。
bash
undefined

Navy suit

海军蓝西装

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 professional headshot from this casual photo. Dress the subject in a classic navy blue business suit with a white dress shirt and subtle tie. Clean gray background, professional studio lighting.", "session_id": "outfit-variations", "mode": "max", "image_urls": ["https://example.com/casual-photo.jpg"] }'
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 professional headshot from this casual photo. Dress the subject in a classic navy blue business suit with a white dress shirt and subtle tie. Clean gray background, professional studio lighting.", "session_id": "outfit-variations", "mode": "max", "image_urls": ["https://example.com/casual-photo.jpg"] }'

Business casual

商务休闲装

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 another version with business casual attire - a blazer over a smart polo shirt or open-collar dress shirt. Same background and lighting as before.", "session_id": "outfit-variations", "mode": "max" }'
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 another version with business casual attire - a blazer over a smart polo shirt or open-collar dress shirt. Same background and lighting as before.", "session_id": "outfit-variations", "mode": "max" }'

Creative professional

创意行业风格

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 version for creative industry - stylish but professional, perhaps a dark turtleneck or modern collarless jacket. Contemporary creative professional look.", "session_id": "outfit-variations", "mode": "max" }'
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": "Create a version for creative industry - stylish but professional, perhaps a dark turtleneck or modern collarless jacket. Contemporary creative professional look.", "session_id": "outfit-variations", "mode": "max" }'
undefined

7. Resume/CV Headshot

7. 简历/CV头像

Clean, professional headshot optimized for job applications and CVs.
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 clean, professional headshot suitable for a resume or CV. Simple solid light background (white or very light gray), professional attire, friendly and confident expression. The photo should be conservative and appropriate for any industry. Square format, head and shoulders framing.",
    "mode": "max",
    "image_urls": ["https://example.com/applicant-photo.jpg"]
  }'
为求职申请及CV优化的简洁专业头像。
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 clean, professional headshot suitable for a resume or CV. Simple solid light background (white or very light gray), professional attire, friendly and confident expression. The photo should be conservative and appropriate for any industry. Square format, head and shoulders framing.",
    "mode": "max",
    "image_urls": ["https://example.com/applicant-photo.jpg"]
  }'

8. Speaker/Author Headshot

8. 演讲者/作者头像

Dynamic headshot for conference speakers, authors, and thought leaders.
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 compelling speaker/author headshot. The subject should appear engaging, confident, and dynamic. Use dramatic lighting with a dark background to create visual impact. Slight smile, eyes that connect with the viewer. This should work well on book covers, conference websites, and keynote slides. High contrast, memorable, professional.",
    "mode": "max",
    "image_urls": ["https://example.com/author-source.jpg"]
  }'
为会议演讲者、作者及意见领袖打造的富有感染力的头像。
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 compelling speaker/author headshot. The subject should appear engaging, confident, and dynamic. Use dramatic lighting with a dark background to create visual impact. Slight smile, eyes that connect with the viewer. This should work well on book covers, conference websites, and keynote slides. High contrast, memorable, professional.",
    "mode": "max",
    "image_urls": ["https://example.com/author-source.jpg"]
  }'

9. Real Estate Agent Headshot

9. 房地产经纪人头像

Approachable, trustworthy headshot for real estate professionals.
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 real estate agent headshot. The subject should appear trustworthy, friendly, and professional. Warm lighting, genuine smile, approachable expression. Background should be a subtle blurred interior of an upscale home or modern building. Professional but not stiff - someone you would trust to help you buy a home.",
    "mode": "max",
    "image_urls": ["https://example.com/agent-photo.jpg"]
  }'
为房地产从业者打造的亲切、值得信赖的头像。
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 real estate agent headshot. The subject should appear trustworthy, friendly, and professional. Warm lighting, genuine smile, approachable expression. Background should be a subtle blurred interior of an upscale home or modern building. Professional but not stiff - someone you would trust to help you buy a home.",
    "mode": "max",
    "image_urls": ["https://example.com/agent-photo.jpg"]
  }'

10. Multiple Expression Variations

10. 多种表情变体

Generate several expression options from the same source photo.
bash
undefined
基于同一张源照片生成多种表情选项。
bash
undefined

Confident/serious

自信/严肃风格

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 professional headshot with a confident, serious expression. Professional and authoritative, suitable for a law firm or financial services. Neutral gray background, classic professional lighting.", "session_id": "expression-variations", "mode": "max", "image_urls": ["https://example.com/source-photo.jpg"] }'
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 professional headshot with a confident, serious expression. Professional and authoritative, suitable for a law firm or financial services. Neutral gray background, classic professional lighting.", "session_id": "expression-variations", "mode": "max", "image_urls": ["https://example.com/source-photo.jpg"] }'

Friendly/approachable

亲切/友善风格

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": "Now create a variation with a warm, friendly smile. Approachable and welcoming, suitable for customer-facing roles or consulting. Same background and lighting setup.", "session_id": "expression-variations", "mode": "max" }'
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": "Now create a variation with a warm, friendly smile. Approachable and welcoming, suitable for customer-facing roles or consulting. Same background and lighting setup.", "session_id": "expression-variations", "mode": "max" }'

Thoughtful/engaged

深思/专注风格

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 another variation with a thoughtful, engaged expression - slight smile, intelligent and curious look. Good for tech industry or academia. Same background and lighting.", "session_id": "expression-variations", "mode": "max" }'
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": "Create another variation with a thoughtful, engaged expression - slight smile, intelligent and curious look. Good for tech industry or academia. Same background and lighting.", "session_id": "expression-variations", "mode": "max" }'
undefined

Best Practices

最佳实践

Photo Input Guidelines

照片输入指南

  • Face Visibility: Ensure the face is clearly visible, well-lit, and not obscured
  • Resolution: Use source photos of at least 512x512 pixels for best results
  • Angle: Front-facing or slight angle (3/4 view) works best
  • Lighting: Avoid harsh shadows or extreme backlighting in source
  • Expression: Neutral or natural expression in source produces best transformations
  • 面部可见度:确保面部清晰可见、光线充足且无遮挡
  • 分辨率:源照片分辨率至少为512x512像素,以获得最佳效果
  • 拍摄角度:正面或轻微侧角(3/4视角)效果最佳
  • 光线条件:避免源照片存在强烈阴影或极端逆光
  • 表情:源照片采用中性或自然表情,转换效果最佳

Professional Headshot Standards

专业头像标准

  • Framing: Head and shoulders, with face occupying 60-70% of vertical space
  • Eye Contact: Subject should appear to look at the viewer
  • Background: Clean, non-distracting, complements the subject
  • Lighting: Soft, flattering light that minimizes harsh shadows
  • Attire: Appropriate for the industry and role
  • 构图:仅展示头部及肩部,面部占垂直空间的60-70%
  • 眼神交流:人物应直视观众
  • 背景:简洁不杂乱,与人物风格协调
  • 光线:柔和 flattering 光线,减少强烈阴影
  • 着装:符合行业及岗位要求

Industry-Specific Recommendations

行业专属建议

IndustryStyleBackgroundAttire
Finance/LegalConservative, formalNeutral gray/blueDark suit, traditional
TechModern, approachableClean gradient or officeSmart casual to business
CreativeDynamic, distinctiveBold or artisticContemporary, stylish
HealthcareTrustworthy, warmLight, clinical or neutralProfessional, white coat optional
Real EstateFriendly, trustworthyHome interior blurBusiness professional
AcademiaThoughtful, credibleLibrary or neutralBusiness casual to formal
行业风格背景着装
金融/法律保守、正式中性灰/蓝色深色西装,传统风格
科技现代、亲切简洁渐变或办公室背景商务休闲至商务正装
创意行业富有活力、特色鲜明大胆或艺术风格现代、时尚
医疗健康值得信赖、温暖浅色、临床风格或中性背景专业着装,可选择白大褂
房地产亲切、值得信赖模糊的住宅内部背景商务正装
学术深思、可信图书馆或中性背景商务休闲至正装

Mode Selection

模式选择

Ask your users before generating:
"Do you want fast & cheap, or high quality?"
ModeBest ForSpeedQuality
max
Final headshots, client deliverables, executive portraitsSlowerHighest
eco
Quick previews, testing styles, bulk draftsFasterGood
生成前请询问用户:
"您需要快速低成本的版本,还是高品质的版本?"
模式适用场景速度品质
max
最终头像、客户交付成果、高管肖像较慢最高
eco
快速预览、风格测试、批量草稿较快良好

Multi-Turn Headshot Refinement

多轮头像优化

Use
session_id
to iterate and perfect headshots:
bash
undefined
使用
session_id
逐步优化头像:
bash
undefined

Initial generation

初始生成

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 professional headshot from this photo with a blue gradient background", "session_id": "headshot-refinement", "mode": "max", "image_urls": ["https://example.com/source.jpg"] }'
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 professional headshot from this photo with a blue gradient background", "session_id": "headshot-refinement", "mode": "max", "image_urls": ["https://example.com/source.jpg"] }'

Refine based on feedback

根据反馈优化

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": "Make the lighting warmer and the expression slightly more friendly. Keep the same background.", "session_id": "headshot-refinement", "mode": "max" }'
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": "Make the lighting warmer and the expression slightly more friendly. Keep the same background.", "session_id": "headshot-refinement", "mode": "max" }'

Final 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": "Perfect. Now generate 2 more slight variations of this final result.", "session_id": "headshot-refinement", "mode": "max" }'
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": "Perfect. Now generate 2 more slight variations of this final result.", "session_id": "headshot-refinement", "mode": "max" }'
undefined

Batch Generation for Teams

团队批量生成

Generate consistent headshots for entire teams efficiently:
bash
undefined
高效生成风格统一的全团队头像:
bash
undefined

Define team style first

先定义团队风格

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": "I need to create headshots for a team of 10 people. Our brand colors are navy blue and white. We want: 1:1 square format, light gray background, soft professional lighting, business casual attire, friendly but professional expressions. First, create a headshot for this team member to establish the style.", "session_id": "acme-corp-team", "mode": "max", "image_urls": ["https://example.com/team/person-1.jpg"] }'
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": "I need to create headshots for a team of 10 people. Our brand colors are navy blue and white. We want: 1:1 square format, light gray background, soft professional lighting, business casual attire, friendly but professional expressions. First, create a headshot for this team member to establish the style.", "session_id": "acme-corp-team", "mode": "max", "image_urls": ["https://example.com/team/person-1.jpg"] }'

Continue with remaining team members using same session

使用同一会话继续生成其他团队成员

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 headshot for next team member, matching established style", "session_id": "acme-corp-team", "mode": "eco", "image_urls": ["https://example.com/team/person-2.jpg"] }'
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": "Create headshot for next team member, matching established style", "session_id": "acme-corp-team", "mode": "eco", "image_urls": ["https://example.com/team/person-2.jpg"] }'
undefined

Error Handling

错误处理

ErrorCauseSolution
Failed to create prediction: HTTP 422
Insufficient balanceTop up at eachlabs.ai
No face detectedFace not visible in sourceUse a clearer photo with visible face
Poor likenessLow quality source imageUse higher resolution source (512x512+)
TimeoutComplex generationSet client timeout to minimum 10 minutes
错误原因解决方案
Failed to create prediction: HTTP 422
余额不足前往eachlabs.ai充值
未检测到面部源照片中面部不可见使用面部清晰的照片
相似度低源照片质量差使用分辨率更高的源照片(512x512以上)
超时生成任务复杂将客户端超时设置为至少10分钟

Related Skills

相关技能

  • each-sense
    - Core API documentation
  • product-photo-generation
    - E-commerce product photography
  • meta-ad-creative-generation
    - Social media ad creatives
  • each-sense
    - 核心API文档
  • product-photo-generation
    - 电商产品摄影
  • meta-ad-creative-generation
    - 社交媒体广告创意