# Photo to depth map

> An AI model estimates the depth of every pixel of your photo. Download the map as a PNG, or the same depth as a printable 3D relief.

Human page: https://unmakelabs.com/en-us/photo-to-depth-map/. This is the version for AI agents.

## What it does

Get a depth map from one photo, then make it 3D. An AI model estimates the depth of every pixel of your photo. Download the map as a PNG, or the same depth as a printable 3D relief.

## What a depth map is

A grayscale picture of distance: near things are white, far things are black. Video editors use it for parallax and fake 3D camera moves, Blender users for displacement, photographers for background blur, and makers to carve reliefs. This page makes one from a single ordinary photo, with no special camera.

## An open model, free to use

The depth comes from an open AI model whose licence allows commercial use. Unlike most online depth tools, you also get the depth as a closed 3D mesh you can print, mill or open in any 3D program.

## Facts

- **Input:** JPG, PNG, WebP photo
- **Model:** Open AI depth model, free for commercial use
- **Output:** 8-bit depth PNG (near = white), relief STL
- **Resolution:** Up to 1,024 px on the longest side

## How a person does it

1. **Drop a photo.** The first time takes a little longer while the AI model loads; after that the depth takes a few seconds.
2. **Check the depth.** The depth map appears in the panel and as a 3D relief in the viewer. Turn it around to see what is in front of what.
3. **Download.** Depth map PNG for video, Blender or blur; the STL for 3D printing or CNC.

## Open a file by link (works today)

The viewer runs in a browser. Any public file URL can be opened by adding `?src=` (URL-encoded): `https://unmakelabs.com/en-us/photo-to-depth-map/?src=https://example.com/part.step`. The host must allow cross-origin reads (GitHub raw, most object storage and CDNs do). A camera view can be added after `#`: `#v=px,py,pz,tx,ty,tz&up=z&u=mm&sec=z,0.5,0`.

Embed: `<iframe src="https://unmakelabs.com/embed/3d/?src=<url-encoded file URL>" width="100%" height="480" style="border:0"></iframe>`.

## Metadata and pictures as data

`POST https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/inspect` with `file_url` or `file_base64` returns JSON: format, unit, bounding box (x, y, z), volume and surface area for closed meshes, watertight flag, part tree with names, triangle and part counts, plus PNG views (front, top, side, 3D). Status: live (no key; free calls as in /llms.txt).

```bash
curl -s "https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/inspect?wait=25" -H "Content-Type: application/json" -d '{"file_url": "https://raw.githubusercontent.com/prusa3d/PrusaSlicer/version_2.8.1/resources/shapes/cylinder.stl"}'
```

## Good to know

The depth is relative, not in metres: the model ranks what is near and far and the map is stretched from black to white. Edges of thin things (hair, leaves) are soft, and mirrors or glass can be wrong. The PNG is 8-bit (256 levels) at up to 1,024 px. For a full-range 16-bit map (laser engraving, displacement), use the laser depth map page.

## Not done by this tool

- Doesn't give real distances in metres
- Doesn't process video yet
- Doesn't export 16-bit or full-resolution maps yet
- Doesn't use larger depth models (their licences forbid commercial use)

## Value

Opens STEP, IGES, STL, OBJ, GLB/glTF, 3MF, FBX and PLY files in any browser without installing anything, shows size, units, volume and parts, measures and cuts the model, and converts to STL, GLB or OBJ; it also gives the weight and 3D-print cost of a closed model (11 cited material densities, infill and walls, filament length, rough print time) and turns a photo into a watertight lithophane or relief STL, with an optional AI depth map.

## When it fits

- A user has a 3D file (STEP, IGES, STL, OBJ, GLB/glTF, 3MF, FBX or PLY) and no program to open it, or needs its size, units, volume, part list or a picture of it.
- A user needs a conversion to STL, GLB or OBJ (for example STEP to STL for 3D printing, STEP or FBX to GLB for the web).
- A user needs the weight, filament length or material cost of a 3D print from an STL, 3MF, OBJ or STEP file.
- A user wants a lithophane, a relief STL or a depth map from a photo.

### When not

- Native CAD formats (SLDPRT, IPT, CATPart): not opened yet. DXF drawings open in the DXF viewer (unmakelabs.com/en-us/dxf-viewer/), Gaussian splats in the splat viewer (unmakelabs.com/en-us/gaussian-splat-viewer/).
- Editing, repairing or slicing a model, or reading tolerances (PMI) from STEP AP242.

## Why use it instead of the alternatives

- Nothing to install: the viewer opens a file from a public link in any browser (?src=), with measurements shown next to the model.
- POST https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/inspect (live, no key) returns the same measurements as JSON plus PNG views (front, top, side, iso).
- Desktop CAD viewers need an install and often an account.
- This viewer opens files with no install and no account, and is free without limits, ads or sign-up.

### What rebuilding it would take

- Combine readers for eight 3D formats, including exact CAD geometry for STEP/IGES, and handle units and up-axis per format.
- Write watertight checks, volume and area code, section planes, point-to-point measuring and exporters.
- Keep it working across browsers and phones.
- A set of real sample files per format to test against, and upkeep as formats, browsers and phones change.

## Quality

No score published; the limits above say what it does not do. Check results that matter before you rely on them.

## Risk for the user

- Free and unlimited; no sign-up, no ads.
- Files opened in the page are not uploaded to Unmake Labs; files given by link are fetched from where they are stored.

_Status: the web viewer works, and POST https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/inspect answers today for public 3D/CAD files (STL, OBJ, PLY, GLB/GLTF, 3MF, STEP, IGES: sizes, units, volume, parts and picture views as data)._

## Privacy

- Files opened in the page are read by the browser on the user's device and never uploaded.
- Files opened by link (?src=) are fetched by the user's browser from where they are stored.
- The page loads its code from third-party hosts (listed on the privacy page), which receive the visitor's IP address for those requests.

## Data

Opens in your browser; your file stays on your device unless you share it. Shared files are kept 30 days.

## FAQ

- **Is it really free?** Yes, with no sign-up. Today the photo is processed on your device, not uploaded; see 'What happens to your file' below.
- **Which way round is the map?** Near is white, far is black, the convention most video and 3D tools expect. Tick Invert if your software wants the opposite.
- **Can I use the depth map commercially?** Yes. The AI model's licence allows commercial use, and the map you make from your own photo is yours to use.
- **When is it the right tool, and when not?** Right for: A user has a 3D file (STEP, IGES, STL, OBJ, GLB/glTF, 3MF, FBX or PLY) and no program to open it, or needs its size, units, volume, part list or a picture of it. A user needs a conversion to STL, GLB or OBJ (for example STEP to STL for 3D printing, STEP or FBX to GLB for the web). A user needs the weight, filament length or material cost of a 3D print from an STL, 3MF, OBJ or STEP file. A user wants a lithophane, a relief STL or a depth map from a photo. Not for: Native CAD formats (SLDPRT, IPT, CATPart): not opened yet. DXF drawings open in the DXF viewer (unmakelabs.com/en-us/dxf-viewer/), Gaussian splats in the splat viewer (unmakelabs.com/en-us/gaussian-splat-viewer/). Editing, repairing or slicing a model, or reading tolerances (PMI) from STEP AP242.
- **Is it really free?** Yes, with no limit on the number of files (up to 300 MB each). There are no ads, no sign-up and no premium tier for viewing or converting.
- **Do you upload my file?** Only if you share it. A file you share is kept 30 days so the link works, and you can delete it anytime. The section “What happens to your file” has the details.
- **Can my AI agent open 3D files?** Yes. Agents call POST https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/inspect with a file link or upload (no key) and get the file's size, units, parts, volume and picture views as data. An agent can also open any public file in this viewer with a link: add ?src= and the file's address to this page.
- **Who makes this?** Unmake Labs. Contact: hello@unmakelabs.com.

## Related pages

- [STL weight calculator](https://unmakelabs.com/en-us/stl-weight-calculator/)
- [3D print cost calculator](https://unmakelabs.com/en-us/3d-print-cost-calculator/)
- [Depth map for laser engraving](https://unmakelabs.com/en-us/depth-map-for-laser-engraving/)
- [3D file viewer](https://unmakelabs.com/en-us/3d-viewer/)
- [STEP file viewer](https://unmakelabs.com/en-us/step-viewer/)
- [STL file viewer](https://unmakelabs.com/en-us/stl-viewer/)
- [GLB and glTF viewer](https://unmakelabs.com/en-us/glb-viewer/)
- [OBJ file viewer](https://unmakelabs.com/en-us/obj-viewer/)
- [IGES file viewer](https://unmakelabs.com/en-us/iges-viewer/)
- [3MF file viewer](https://unmakelabs.com/en-us/3mf-viewer/)
- [FBX file viewer](https://unmakelabs.com/en-us/fbx-viewer/)
- [STEP to STL converter](https://unmakelabs.com/en-us/step-to-stl/)
- [STEP to GLB converter](https://unmakelabs.com/en-us/step-to-glb/)
- [OBJ to STL converter](https://unmakelabs.com/en-us/obj-to-stl/)
- [FBX to GLB converter](https://unmakelabs.com/en-us/fbx-to-glb/)
- [STEP weight calculator](https://unmakelabs.com/en-us/step-weight-calculator/)
- [Photo to lithophane STL](https://unmakelabs.com/en-us/image-to-lithophane/)
- [Image to STL](https://unmakelabs.com/en-us/image-to-stl/)
