object-removal
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseObject Removal & Inpainting
物体移除与图像修复
Remove unwanted elements from photos using each::sense. This skill intelligently removes objects, people, text, watermarks, and imperfections while seamlessly filling the removed areas with contextually appropriate content.
借助each::sense移除照片中不需要的元素。该功能可智能移除物体、人物、文字、水印和瑕疵,同时使用符合上下文的内容无缝填充被移除区域。
Features
功能特性
- Object Removal: Remove unwanted items from any photo
- Person Removal: Remove people from backgrounds cleanly
- Text/Watermark Removal: Clean up images with unwanted text overlays
- Blemish Removal: Remove skin imperfections and photo artifacts
- Wire/Line Removal: Clean up power lines, cables, and wires
- Logo Removal: Remove branding and logos from images
- Shadow Removal: Eliminate unwanted shadows
- Background Cleanup: Remove distracting background elements
- 物体移除:移除任意照片中不需要的物品
- 人物移除:干净地移除背景中的人物
- 文字/水印移除:清理带有多余文字叠加层的图像
- 瑕疵移除:移除皮肤瑕疵和照片伪影
- 电线/线条移除:清理电线、电缆等线条
- Logo移除:移除图像中的品牌标识和Logo
- 阴影移除:消除不需要的阴影
- 背景清理:移除分散注意力的背景元素
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": "Remove the person standing on the left side of this photo",
"image_urls": ["https://example.com/beach-photo.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": "Remove the person standing on the left side of this photo",
"image_urls": ["https://example.com/beach-photo.jpg"],
"mode": "max"
}'Use Case Examples
用例示例
1. Remove Person from Photo
1. 移除照片中的人物
Remove an unwanted person from a group photo or scenic shot.
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": "Remove the person in the red shirt from this beach photo. Fill the area naturally with the ocean and sand background.",
"image_urls": ["https://example.com/beach-group.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": "Remove the person in the red shirt from this beach photo. Fill the area naturally with the ocean and sand background.",
"image_urls": ["https://example.com/beach-group.jpg"],
"mode": "max"
}'2. Remove Unwanted Object
2. 移除不需要的物体
Clean up photos by removing distracting objects.
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": "Remove the trash can and bench from the right side of this park landscape photo. Make it look like a clean natural scene.",
"image_urls": ["https://example.com/park-landscape.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": "Remove the trash can and bench from the right side of this park landscape photo. Make it look like a clean natural scene.",
"image_urls": ["https://example.com/park-landscape.jpg"],
"mode": "max"
}'3. Remove Text/Watermark
3. 移除文字/水印
Clean up images with unwanted text overlays or watermarks.
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": "Remove the watermark from the bottom right corner of this image. Restore the original background seamlessly.",
"image_urls": ["https://example.com/watermarked-image.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": "Remove the watermark from the bottom right corner of this image. Restore the original background seamlessly.",
"image_urls": ["https://example.com/watermarked-image.jpg"],
"mode": "max"
}'4. Remove Blemish/Imperfection
4. 移除瑕疵/缺陷
Clean up skin imperfections or photo artifacts.
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": "Remove the skin blemishes and acne marks from this portrait photo. Keep the skin looking natural and maintain the original skin texture.",
"image_urls": ["https://example.com/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": "Remove the skin blemishes and acne marks from this portrait photo. Keep the skin looking natural and maintain the original skin texture.",
"image_urls": ["https://example.com/portrait.jpg"],
"mode": "max"
}'5. Remove Power Lines/Wires
5. 移除电线/线缆
Clean up landscape and architectural photos by removing distracting wires.
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": "Remove all the power lines and electrical wires from this sunset cityscape photo. Make the sky look clean and unobstructed.",
"image_urls": ["https://example.com/cityscape-wires.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": "Remove all the power lines and electrical wires from this sunset cityscape photo. Make the sky look clean and unobstructed.",
"image_urls": ["https://example.com/cityscape-wires.jpg"],
"mode": "max"
}'6. Remove Tourists from Landmark Photo
6. 移除地标照片中的游客
Get that perfect empty landmark shot by removing crowds.
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": "Remove all the tourists and people from this Eiffel Tower photo. I want it to look like an empty plaza with just the monument.",
"image_urls": ["https://example.com/eiffel-tower-crowded.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": "Remove all the tourists and people from this Eiffel Tower photo. I want it to look like an empty plaza with just the monument.",
"image_urls": ["https://example.com/eiffel-tower-crowded.jpg"],
"mode": "max"
}'7. Remove Ex from Photo
7. 移除照片中的前任
Salvage memories by removing someone from personal 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": "Remove the person on the right side of this vacation photo. Fill in with the background scenery naturally so it looks like a solo travel photo.",
"image_urls": ["https://example.com/vacation-couple.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": "Remove the person on the right side of this vacation photo. Fill in with the background scenery naturally so it looks like a solo travel photo.",
"image_urls": ["https://example.com/vacation-couple.jpg"],
"mode": "max"
}'8. Remove Logo/Branding
8. 移除Logo/品牌标识
Clean up product photos or images with unwanted branding.
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": "Remove the brand logo from the t-shirt in this photo. Replace it with plain fabric that matches the shirt color and texture.",
"image_urls": ["https://example.com/branded-shirt.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": "Remove the brand logo from the t-shirt in this photo. Replace it with plain fabric that matches the shirt color and texture.",
"image_urls": ["https://example.com/branded-shirt.jpg"],
"mode": "max"
}'9. Clean Up Product Photo
9. 清理产品照片
Remove distracting elements from e-commerce product shots.
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": "Clean up this product photo by removing the price tag, dust spots, and the reflection of the photographer in the surface. Make it look professional and ready for e-commerce.",
"image_urls": ["https://example.com/product-raw.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": "Clean up this product photo by removing the price tag, dust spots, and the reflection of the photographer in the surface. Make it look professional and ready for e-commerce.",
"image_urls": ["https://example.com/product-raw.jpg"],
"mode": "max"
}'10. Remove Shadow
10. 移除阴影
Eliminate unwanted shadows from 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": "Remove the harsh shadow cast by the photographer on the ground in this outdoor portrait. Make the lighting look natural and even.",
"image_urls": ["https://example.com/portrait-shadow.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": "Remove the harsh shadow cast by the photographer on the ground in this outdoor portrait. Make the lighting look natural and even.",
"image_urls": ["https://example.com/portrait-shadow.jpg"],
"mode": "max"
}'Multi-Turn Object Removal
多轮物体移除
Use for iterative removal and refinement:
session_idbash
undefined使用进行迭代移除和优化:
session_idbash
undefinedFirst removal
第一次移除
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": "Remove the car parked on the left side of this street photo", "image_urls": ["https://example.com/street-scene.jpg"], "session_id": "cleanup-project-001" }'
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "message": "Remove the car parked on the left side of this street photo", "image_urls": ["https://example.com/street-scene.jpg"], "session_id": "cleanup-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": "Remove the car parked on the left side of this street photo", "image_urls": ["https://example.com/street-scene.jpg"], "session_id": "cleanup-project-001" }'
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "message": "Remove the car parked on the left side of this street photo", "image_urls": ["https://example.com/street-scene.jpg"], "session_id": "cleanup-project-001" }'
Second removal (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": "Now also remove the garbage bins near the building entrance", "session_id": "cleanup-project-001" }'
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "message": "Now also remove the garbage bins near the building entrance", "session_id": "cleanup-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": "Now also remove the garbage bins near the building entrance", "session_id": "cleanup-project-001" }'
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "message": "Now also remove the garbage bins near the building entrance", "session_id": "cleanup-project-001" }'
Refinement (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": "The area where the car was removed looks a bit blurry. Can you improve the texture to match the surrounding pavement better?", "session_id": "cleanup-project-001" }'
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "message": "The area where the car was removed looks a bit blurry. Can you improve the texture to match the surrounding pavement better?", "session_id": "cleanup-project-001" }'
undefinedcurl -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": "The area where the car was removed looks a bit blurry. Can you improve the texture to match the surrounding pavement better?", "session_id": "cleanup-project-001" }'
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "message": "The area where the car was removed looks a bit blurry. Can you improve the texture to match the surrounding pavement better?", "session_id": "cleanup-project-001" }'
undefinedPrompt Tips for Object Removal
物体移除提示词技巧
When requesting object removal, include these details in your prompt:
- What to remove: Be specific about the object(s) to remove
- Location: Describe where the object is in the image (left, right, center, background)
- Fill guidance: Describe what should replace the removed area
- Context preservation: Mention if certain elements should be kept intact
请求物体移除时,请在提示词中包含以下细节:
- 移除对象:明确说明要移除的物体
- 位置:描述物体在图像中的位置(左侧、右侧、中心、背景)
- 填充指引:说明移除区域应该用什么内容替代
- 上下文保留:提及哪些元素需要保持完整
Example Prompt Structure
提示词结构示例
"Remove [object description] from [location in image].
Fill the area with [expected background/content].
Keep [elements to preserve] intact.""移除[物体描述],位于[图像中的位置]。
用[预期背景/内容]填充该区域。
保持[需要保留的元素]完整。"Good Prompt Examples
优秀提示词示例
- "Remove the person in the blue jacket standing near the fountain on the left side"
- "Remove all text and watermarks from the image, restore the original background"
- "Remove the car and fill with matching grass and pathway"
- "移除左侧喷泉附近穿蓝色夹克的人"
- "移除图像中所有文字和水印,还原原始背景"
- "移除汽车,用匹配的草地和路径填充"
Prompts to Avoid
应避免的提示词
- "Clean up this photo" (too vague)
- "Remove stuff" (not specific)
- "Make it better" (unclear objective)
- "清理这张照片"(过于模糊)
- "移除东西"(不够具体)
- "让它更好看"(目标不明确)
Mode Selection
模式选择
| Mode | Best For | Speed | Quality |
|---|---|---|---|
| Final deliverables, complex removals, professional work | Slower | Highest |
| Quick previews, simple removals, bulk processing | Faster | Good |
Recommendation: Use mode for complex removals (people, large objects) and for simple cleanups (small blemishes, dust spots).
maxeco| 模式 | 适用场景 | 速度 | 画质 |
|---|---|---|---|
| 最终交付成果、复杂移除操作、专业工作 | 较慢 | 最高 |
| 快速预览、简单移除操作、批量处理 | 较快 | 良好 |
推荐:复杂移除操作(人物、大型物体)使用模式,简单清理(小瑕疵、灰尘斑点)使用模式。
maxecoBest Practices
最佳实践
For Best Results
获得最佳效果的建议
- High-resolution source: Use the highest quality source image available
- Clear descriptions: Be specific about what to remove and where it is
- Simple backgrounds: Objects in front of simple, repetitive backgrounds are easier to remove cleanly
- Multiple passes: For complex scenes, use multi-turn removal to address one element at a time
- 高分辨率源图:使用可用的最高质量源图像
- 清晰描述:明确说明要移除的对象及其位置
- 简单背景:位于简单、重复背景前的物体更容易被干净移除
- 多轮操作:对于复杂场景,使用多轮移除功能逐个处理元素
Challenging Scenarios
具有挑战性的场景
- Complex backgrounds: Objects in front of detailed, unique backgrounds may require manual refinement
- Large objects: Removing very large objects (more than 30% of image) may produce less realistic results
- Reflections: Objects with reflections may need separate removal requests for the object and its reflection
- Shadows: Remember to request shadow removal if the object casts a visible shadow
- 复杂背景:位于细节丰富、独特背景前的物体可能需要手动优化
- 大型物体:移除占图像30%以上的大型物体可能导致结果不够真实
- 反光:带有反光的物体可能需要分别移除物体本身及其反光
- 阴影:如果物体投射了可见阴影,记得同时请求移除阴影
Error Handling
错误处理
| Error | Cause | Solution |
|---|---|---|
| Insufficient balance | Top up at eachlabs.ai |
| Content policy violation | Prohibited content | Review content guidelines |
| Timeout | Complex generation | Set client timeout to minimum 10 minutes |
| Poor removal quality | Vague prompt | Be more specific about location and fill content |
| 错误 | 原因 | 解决方法 |
|---|---|---|
| 余额不足 | 在eachlabs.ai进行充值 |
| 内容政策违规 | 包含违禁内容 | 查看内容指南 |
| 超时 | 生成过程复杂 | 将客户端超时设置为至少10分钟 |
| 移除效果差 | 提示词模糊 | 更具体地说明位置和填充内容 |
Client Timeout Configuration
客户端超时配置
Object removal operations can take time, especially for complex scenes. Configure your HTTP client with a minimum 10 minute timeout to avoid premature disconnections.
bash
undefined物体移除操作可能需要一定时间,尤其是复杂场景。请将HTTP客户端配置为至少10分钟超时,以避免提前断开连接。
bash
undefinedExample with extended timeout
超时设置示例
curl --max-time 600 -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": "Remove all people from this crowded plaza photo", "image_urls": ["https://example.com/crowded-plaza.jpg"], "mode": "max" }'
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "message": "Remove all people from this crowded plaza photo", "image_urls": ["https://example.com/crowded-plaza.jpg"], "mode": "max" }'
undefinedcurl --max-time 600 -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": "Remove all people from this crowded plaza photo", "image_urls": ["https://example.com/crowded-plaza.jpg"], "mode": "max" }'
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "message": "Remove all people from this crowded plaza photo", "image_urls": ["https://example.com/crowded-plaza.jpg"], "mode": "max" }'
undefinedRelated Skills
相关功能
- - Core API documentation
each-sense - - General image editing capabilities
image-edit - - Remove and replace backgrounds
background-removal
- - 核心API文档
each-sense - - 通用图像编辑功能
image-edit - - 移除并替换背景
background-removal