Loading...
Loading...
Remove backgrounds from images using each::sense AI. Create transparent PNGs, replace backgrounds with solid colors or scenes, and handle complex edges like hair with precision.
npx skill4agent add eachlabs/skills background-removalcurl -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 background from this image and export as transparent PNG",
"image_urls": ["https://example.com/my-photo.jpg"],
"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": "Remove the background from this product photo. Create a clean cutout with transparent background, preserving all product details and shadows. Output as PNG.",
"image_urls": ["https://example.com/product-shoe.jpg"],
"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": "Remove the background from this portrait photo. Preserve all hair details and create clean edges around the person. Export as transparent PNG for professional use.",
"image_urls": ["https://example.com/headshot.jpg"],
"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": "Remove the background from this image and export as a high-quality transparent PNG. Ensure clean alpha channel edges suitable for compositing in Photoshop or Figma.",
"image_urls": ["https://example.com/object.jpg"],
"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": "Remove the background from this product image and replace it with a pure white background (#FFFFFF). Keep the product shadows for a natural look.",
"image_urls": ["https://example.com/product.jpg"],
"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": "Remove the background from this person photo and place them in a modern office environment with soft natural lighting from large windows. Make it look natural and professional.",
"image_urls": ["https://example.com/person.jpg"],
"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": "Remove the background from this portrait. Pay special attention to preserving fine hair details, flyaway strands, and wispy edges. The subject has curly hair that needs careful edge handling. Export as transparent PNG.",
"image_urls": ["https://example.com/curly-hair-portrait.jpg"],
"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": "Remove the background from this image of a fluffy cat. Preserve all the fur details including the soft edges and individual hair strands. The cat has white fur which is challenging - maintain clean edges without halos.",
"image_urls": ["https://example.com/fluffy-cat.jpg"],
"mode": "max"
}'# First image in batch
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 background from this product image. Export as transparent PNG with consistent edge quality.",
"image_urls": ["https://example.com/product-1.jpg"],
"session_id": "batch-background-removal-001",
"mode": "eco"
}'
# Second image (same session for 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": "Remove the background from this product image with the same settings as before.",
"image_urls": ["https://example.com/product-2.jpg"],
"session_id": "batch-background-removal-001",
"mode": "eco"
}'
# Third image
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 background from this product image, same approach.",
"image_urls": ["https://example.com/product-3.jpg"],
"session_id": "batch-background-removal-001",
"mode": "eco"
}'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 e-commerce ready product cutout from this image. Remove the background and replace with pure white. The product should be centered with clean edges. This is for Amazon/Shopify listing - must meet marketplace image requirements.",
"image_urls": ["https://example.com/product-handbag.jpg"],
"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": "Remove the background from this selfie and replace with a professional gradient background (dark blue to light blue). Preserve all hair details. This is for a LinkedIn profile photo - make it look polished and professional.",
"image_urls": ["https://example.com/selfie.jpg"],
"mode": "max"
}'session_id# Initial 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 background from this portrait photo",
"image_urls": ["https://example.com/portrait.jpg"],
"session_id": "portrait-project-001"
}'
# Refine the result
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 hair edges look a bit rough. Can you refine them to be smoother and more natural?",
"session_id": "portrait-project-001"
}'
# Change 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 place this cutout on a beach sunset background",
"session_id": "portrait-project-001"
}'| Mode | Best For | Speed | Quality |
|---|---|---|---|
| Final production images, complex edges, hair details | Slower | Highest |
| Quick previews, batch processing, simple objects | Faster | Good |
"Remove the background from this [subject type].
[Specific edge requirements like hair or fur details].
Output as [transparent PNG / white background / specific scene].
This is for [use case] - [any specific requirements]."| Error | Cause | Solution |
|---|---|---|
| Insufficient balance | Top up at eachlabs.ai |
| Poor edge quality | Low resolution input | Use higher resolution source image |
| Halos around edges | Complex background colors | Use |
| Timeout | Large image or complex processing | Set client timeout to minimum 10 minutes |
each-senseproduct-photo-generationimage-edit