depth-map-generationGenerate depth maps from images using each::sense AI. Create depth estimation for 3D effects, parallax animations, VR/AR applications, focus effects, and ste...
Install via ClawdBot CLI:
clawdbot install eftalyurtseven/depth-map-generationGenerate accurate depth maps from any image using each::sense. This skill extracts depth information from 2D images for 3D effects, parallax animations, VR/AR applications, computational photography, and more.
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": "Generate a depth map from this photo",
"image_urls": ["https://example.com/photo.jpg"],
"mode": "max"
}'
| Format | Description | Use Case |
|--------|-------------|----------|
| Grayscale | 8-bit depth (white=near, black=far) | General purpose, visualization |
| Inverse Grayscale | 8-bit depth (black=near, white=far) | Some 3D software compatibility |
| Normalized | 0-1 range depth values | Machine learning pipelines |
| Metric | Real-world distance estimation | AR/VR, robotics |
Basic depth extraction from any 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": "Generate a depth map from this image. Output as grayscale where white represents closer objects and black represents distant objects.",
"image_urls": ["https://example.com/scene.jpg"],
"mode": "max"
}'
Extract precise depth from portrait photos for bokeh effects and 3D portraits.
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 high-precision depth map from this portrait photo. Focus on accurate edge detection around the subject, especially hair and facial features. I need this for applying realistic depth-of-field effects.",
"image_urls": ["https://example.com/portrait.jpg"],
"mode": "max"
}'
Generate depth from landscape and outdoor scenes with extended depth range.
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": "Generate a depth map from this landscape photo. The scene has foreground elements, mid-ground terrain, and distant mountains. Capture the full depth range from near to far with good separation between depth layers.",
"image_urls": ["https://example.com/landscape.jpg"],
"mode": "max"
}'
Create depth maps for product images to enable 3D viewing experiences.
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": "Extract a depth map from this product photo. I need accurate depth information to create a 3D interactive view for an e-commerce website. Focus on capturing the product shape and surface details.",
"image_urls": ["https://example.com/product-sneaker.jpg"],
"mode": "max"
}'
Generate depth from architectural and interior photos for visualization.
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 depth map from this interior architecture photo. Capture the spatial relationships between walls, furniture, and architectural elements. I need this for a virtual tour with depth-based transitions.",
"image_urls": ["https://example.com/interior.jpg"],
"mode": "max"
}'
Generate depth maps optimized for creating parallax animations and Ken Burns effects.
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": "Generate a depth map from this photo that I will use for a 3D parallax animation. I need clear depth separation between foreground, midground, and background elements. The depth should be smooth with distinct layers for a compelling parallax effect.",
"image_urls": ["https://example.com/scene-for-parallax.jpg"],
"mode": "max"
}'
Create depth maps suitable for virtual and augmented reality applications.
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": "Generate a depth map from this room photo for AR/VR use. I need metric depth estimation that accurately represents real-world distances. This will be used for placing virtual objects in an augmented reality application.",
"image_urls": ["https://example.com/room.jpg"],
"mode": "max"
}'
Convert 2D images to stereoscopic 3D using depth estimation.
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": "Generate a depth map from this photo and use it to create a stereoscopic 3D image pair (left and right eye views). The stereo effect should be subtle enough for comfortable viewing but noticeable enough to create depth perception.",
"image_urls": ["https://example.com/photo-for-stereo.jpg"],
"mode": "max"
}'
Generate depth maps for computational focus stacking and all-in-focus composites.
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 depth map from this macro/close-up photo. I need precise depth information to identify focus planes for computational focus stacking. Each depth layer should be clearly defined so I can select which areas should be in focus.",
"image_urls": ["https://example.com/macro-photo.jpg"],
"mode": "max"
}'
Generate depth for applying realistic bokeh and background blur effects.
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": "Generate a depth map from this photo for applying depth-aware background blur. The subject in the foreground should be clearly separated from the background. I need accurate edge detection so the blur transition looks natural, similar to a portrait mode effect.",
"image_urls": ["https://example.com/photo-for-blur.jpg"],
"mode": "max"
}'
Use session_id to refine depth maps or process multiple related images:
# Initial depth estimation
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": "Generate a depth map from this photo",
"image_urls": ["https://example.com/scene.jpg"],
"session_id": "depth-project-001"
}'
# Refine the depth map
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 depth map looks good but can you enhance the edge detection around the main subject? The boundaries are a bit fuzzy.",
"session_id": "depth-project-001"
}'
# Apply the depth map for an effect
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 use this depth map to create a 3D parallax video animation with subtle camera movement",
"session_id": "depth-project-001"
}'
Process multiple images for consistent depth estimation:
# Process first 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": "Generate a depth map from this product photo. I will be sending more product images that need consistent depth estimation.",
"image_urls": ["https://example.com/product1.jpg"],
"session_id": "product-depth-batch",
"mode": "eco"
}'
# Process second image with same settings
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": "Generate depth map for this product using the same approach as before",
"image_urls": ["https://example.com/product2.jpg"],
"session_id": "product-depth-batch",
"mode": "eco"
}'
| Mode | Best For | Speed | Quality |
|------|----------|-------|---------|
| max | Final production depth maps, VR/AR applications, professional compositing | Slower | Highest precision |
| eco | Quick previews, batch processing, prototyping | Faster | Good quality |
Recommendation: Use max mode when depth accuracy is critical (VR/AR, 3D conversion, professional compositing). Use eco mode for rapid iteration and batch processing.
| Error | Cause | Solution |
|-------|-------|----------|
| Failed to create prediction: HTTP 422 | Insufficient balance | Top up at eachlabs.ai |
| Image loading failed | Invalid or inaccessible image URL | Verify image URL is publicly accessible |
| Timeout | Complex or high-resolution image | Set client timeout to minimum 10 minutes |
| Low quality depth output | Poor input image quality | Use higher resolution, better lit source image |
each-sense - Core API documentationimage-to-3d - Full 3D model generation from imagesimage-editing - Apply depth-based effects to imagesvideo-generation - Create parallax videos from depth mapsGenerated Mar 1, 2026
Online retailers can generate depth maps from product photos to create interactive 3D views, enhancing customer engagement and reducing return rates by providing a better sense of product shape and dimensions. This is particularly useful for items like sneakers, electronics, and furniture where spatial understanding is crucial.
Photographers and photo editing services use depth maps to apply realistic bokeh and depth-of-field effects, allowing for professional-grade background blur and focus stacking in portrait images. This improves aesthetic quality and enables creative effects without specialized camera equipment.
Architects and real estate agents generate depth maps from interior and exterior photos to create immersive virtual tours with depth-based transitions and parallax effects. This enhances visualization for clients, aiding in design decisions and property marketing.
Developers in gaming and augmented reality applications use depth maps to estimate real-world distances from 2D images, enabling accurate placement of virtual objects and enhancing immersive experiences. This supports applications in training simulations, entertainment, and interactive marketing.
Outdoor photographers and tourism agencies create depth maps from landscape photos to produce 3D parallax animations and enhanced visual effects for promotional materials. This adds depth and movement to static images, making them more engaging for viewers.
Offer the depth map generation as a pay-per-use API, charging based on the number of images processed or API calls. This model targets developers and businesses needing scalable, on-demand depth estimation without infrastructure investment.
Provide a subscription plan for photographers, designers, and video editors, offering advanced features like batch processing, high-resolution outputs, and priority support. This ensures recurring revenue from users in creative industries.
License the technology to large companies in e-commerce, real estate, or VR/AR for integration into their platforms, with custom solutions and dedicated support. This model leverages high-value contracts and long-term partnerships.
đŹ Integration Tip
Start by testing with sample images using the provided curl commands to understand output formats, then integrate the API into your application with error handling for image URLs and API key management.
Generate/edit images with Nano Banana Pro (Gemini 3 Pro Image). Use for image create/modify requests incl. edits. Supports text-to-image + image-to-image; 1K/2K/4K; use --input-image.
Capture frames or clips from RTSP/ONVIF cameras.
Batch-generate images via OpenAI Images API. Random prompt sampler + `index.html` gallery.
Generate images using the internal Google Antigravity API (Gemini 3 Pro Image). High quality, native generation without browser automation.
äœżçšć çœź image_generate.py èæŹçæćŸç, ć〿ž æ°ć ·äœç `prompt`ă
AI image generation powered by CellCog. Create images, edit photos, consistent characters, product photography, reference-based images, sets of images, style transfer. Professional image creation with AI.