关于 eye-color-changer
eye-color-changer 是基于 each::sense 的照片眼睛编辑技能,适用于写实修饰和创意人像。它支持自然与幻想色彩、异色瞳及特殊效果,并保留虹膜纹理与反光。
主要功能
- 01自然与幻想眼色替换
- 02异色瞳与瞳孔效果
- 03眼睛发光及图案效果
- 04增强原有眼色
- 05同图生成多种方案
- 06保留虹膜纹理与反光
适用场景
- 01为人像更换自然眼色
- 02制作奇幻或角色扮演效果
- 03增强照片中的原有眼色
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ eachlabs/ skills --skill eye-color-changer安装后在 Claude Code 中输入/eye-color-changer确认已加载。
附带文件references/SSE-EVENTS.md
详细介绍
眼睛颜色更换器
使用 each::sense 更改照片中的眼睛颜色。这项技能可逼真地更改眼睛颜色、创建奇幻效果和创意眼部效果,同时保持自然外观和适当的虹膜细节。
功能
- 自然颜色更改:蓝色、绿色、棕色、榛色、灰色、琥珀色
- 奇幻颜色:紫色、红色、金色、银色、白色
- 异色瞳:每只眼睛的颜色不同
- 特殊效果:猫眼/竖瞳、发光眼睛、催眠图案
- 颜色增强:加深自然眼睛颜色
- 批量处理:从一张照片生成多种颜色选项
- 逼真融合:保留自然的虹膜纹理和反光
快速开始
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Change the eye color to bright blue in this photo"}],
"model": "eachsense/beta",
"stream": true,
"image_urls": ["https://example.com/portrait.jpg"],
"mode": "max"
}'
支持的眼睛颜色选项
| 类别 | 颜色 | 最适合 |
|---|---|---|
| 自然 | 蓝色、绿色、棕色、榛色、灰色、琥珀色 | 逼真变换 |
| 奇幻 | 紫色、紫罗兰色、红色、金色、银色 | 创意/艺术肖像 |
| 特殊 | 发光、猫眼、异色瞳 | 奇幻角色、角色扮演 |
| 增强 | 自然颜色的鲜艳版本 | 让照片中的眼睛更醒目 |
使用案例示例
1. 更改为蓝色眼睛
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Change the eye color to a natural bright blue. Keep the iris texture and reflections realistic. The blue should look like natural blue eyes, not contact lenses."}],
"model": "eachsense/beta",
"stream": true,
"image_urls": ["https://example.com/portrait.jpg"],
"mode": "max"
}'
2. 更改为绿色眼睛
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Transform the eye color to emerald green. Maintain natural iris patterns and make sure the color blends realistically with the skin tone around the eyes."}],
"model": "eachsense/beta",
"stream": true,
"image_urls": ["https://example.com/portrait.jpg"],
"mode": "max"
}'
3. 更改为棕色眼睛
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Change the eyes to warm brown color. Make it look like natural dark brown eyes with subtle golden flecks in the iris for realism."}],
"model": "eachsense/beta",
"stream": true,
"image_urls": ["https://example.com/portrait.jpg"],
"mode": "max"
}'
4. 更改为榛色眼睛
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Transform the eye color to hazel - a natural blend of green and brown with golden undertones. The color should transition from darker near the pupil to lighter at the edges of the iris."}],
"model": "eachsense/beta",
"stream": true,
"image_urls": ["https://example.com/portrait.jpg"],
"mode": "max"
}'
5. 奇幻颜色(紫色、红色、金色)
# Purple/Violet Eyes
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Change the eye color to a deep violet purple. Make it look otherworldly but still maintain realistic iris texture. Perfect for a fantasy or cosplay character look."}],
"model": "eachsense/beta",
"stream": true,
"image_urls": ["https://example.com/portrait.jpg"],
"mode": "max"
}'
# Red Eyes
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Transform the eyes to a striking crimson red color. Keep the iris detail and make it look like supernatural red eyes - vampire or demon aesthetic."}],
"model": "eachsense/beta",
"stream": true,
"image_urls": ["https://example.com/portrait.jpg"],
"mode": "max"
}'
# Golden Eyes
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Change the eye color to golden yellow, like a wolf or supernatural being. Maintain realistic iris patterns but with a luminous golden color."}],
"model": "eachsense/beta",
"stream": true,
"image_urls": ["https://example.com/portrait.jpg"],
"mode": "max"
}'
6. 异色瞳(不同颜色的眼睛)
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create heterochromia - make the left eye bright blue and the right eye emerald green. Both eyes should look natural and realistic, just different colors from each other."}],
"model": "eachsense/beta",
"stream": true,
"image_urls": ["https://example.com/portrait.jpg"],
"mode": "max"
}'
7. 猫眼/竖瞳效果
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Transform the eyes to have cat-like vertical slit pupils with golden yellow iris color. Make it look like feline or reptilian eyes while keeping the overall eye shape natural to the face."}],
"model": "eachsense/beta",
"stream": true,
"image_urls": ["https://example.com/portrait.jpg"],
"mode": "max"
}'
8. 发光眼睛效果
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Make the eyes glow with an ethereal blue light. Add a subtle luminous effect that makes the eyes appear to emit light, with a soft glow around the iris. Perfect for a supernatural or magical character effect."}],
"model": "eachsense/beta",
"stream": true,
"image_urls": ["https://example.com/portrait.jpg"],
"mode": "max"
}'
9. 自然颜色增强
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Enhance the natural eye color to make it more vivid and striking. Intensify the existing color, add more depth and clarity to the iris, and make the eyes really pop without changing the base color."}],
"model": "eachsense/beta",
"stream": true,
"image_urls": ["https://example.com/portrait.jpg"],
"mode": "max"
}'
10. 从同一张照片生成多种颜色选项
# Use session_id to generate multiple variations
# First variation - Blue
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Change the eye color to bright blue. Keep it natural looking."}],
"model": "eachsense/beta",
"stream": true,
"image_urls": ["https://example.com/portrait.jpg"],
"session_id": "eye-color-variations-001",
"mode": "eco"
}'
# Second variation - Green (same session)
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Now create another version with emerald green eyes instead."}],
"model": "eachsense/beta",
"stream": true,
"session_id": "eye-color-variations-001",
"mode": "eco"
}'
# Third variation - Hazel (same session)
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create one more version with hazel eyes."}],
"model": "eachsense/beta",
"stream": true,
"session_id": "eye-color-variations-001",
"mode": "eco"
}'
最佳实践
打造逼真效果
- 高质量源图像:使用光线充足、眼睛清晰可见的照片
- 正面肖像:眼睛看向镜头时效果最佳
- 描述虹膜细节:说明是否需要特定图案、斑点或渐变
- 自然光线参考:说明光线风格,以保持反光一致
打造奇幻效果
- 指定美学风格:吸血鬼、外星人、动漫、超自然等
- 描述效果强度:微弱光芒还是明亮发光
- 提供角色背景:有助于 AI 匹配整体风格
提示词技巧
- 明确说明色调:“冰蓝色”与“海洋蓝”或“海军蓝”
- 说明融合方式:要求虹膜边缘自然过渡
- 指定虹膜纹理:保留或修改自然图案
- 考虑光线:说明是否要保留反光
模式选择
| 模式 | 最适合 | 速度 | 质量 |
|---|---|---|---|
max | 最终照片、专业用途、详细效果 | 较慢 | 最高 |
eco | 快速预览、批量变化、颜色测试 | 较快 | 良好 |
多轮创意迭代
使用 session_id 逐步优化眼睛颜色:
# Initial change
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Change the eye color to blue"}],
"model": "eachsense/beta",
"stream": true,
"image_urls": ["https://example.com/portrait.jpg"],
"session_id": "eye-edit-project"
}'
# Refine the result
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Make the blue more intense and add a slight ring of darker blue around the edge of the iris"}],
"model": "eachsense/beta",
"stream": true,
"session_id": "eye-edit-project"
}'
# Add special effect
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Now add a subtle glow effect to make the eyes look magical"}],
"model": "eachsense/beta",
"stream": true,
"session_id": "eye-edit-project"
}'
错误处理
| 错误 | 原因 | 解决方案 |
|---|---|---|
Failed to create prediction: HTTP 422 | 余额不足 | 在 eachlabs.ai 充值 |
| 未检测到眼睛 | 面部不可见或闭着眼睛 | 使用眼睛清晰可见且睁开的照片 |
| 融合不自然 | 源图像质量较差 | 使用分辨率更高、光线充足的照片 |
| 超时 | 生成过程复杂 | 将客户端超时设为至少 10 分钟 |
相关技能
each-sense- 核心 API 文档face-swap- 换脸功能image-edit- 通用图像编辑portrait-generation- AI 肖像创作
评论
支持 Markdown