# Distill Any Depth API

> Monocular depth model trained by cross-context / multi-teacher distillation from pseudo-labels, improving zero-shot accuracy over Depth Anything V2 at equal size.

## Details

- Model id: `westlake/distill-any-depth`
- Provider: Westlake University AGI Lab
- Type: Perception · Depth
- Parameters: 25M (Small)
- Output: Relative monocular depth map
- Embodiments: Any (video), Single arm, Mobile manipulator
- Endpoint: `POST /v1/depth`
- Price: $0.10 per 1,000 calls
- Checkpoint served: `xingyang1/Distill-Any-Depth-Small-hf`
- License: MIT (Small; base DAv2-Small architecture/init: Apache-2.0). Base/Large are built on DAv2-Base/Large (CC-BY-NC-4.0), so only Small is clean
- Released: March 2025
- Status: Live
- Paper or model card: https://arxiv.org/abs/2502.19204

## Call Distill Any Depth

Send one request with your API key to `POST https://api.openrobotics.dev/v1/depth`. The response comes back in the same call. The [API reference](https://www.openrobotics.dev/docs/api/depth) lists every field. GPUs start on demand: after a quiet spell the first call returns `503` with `Retry-After` while one boots (never billed).

Python:

```python
import os, requests

res = requests.post(
  "https://api.openrobotics.dev/v1/depth",
  headers={"Authorization": f"Bearer {os.environ['OPENROBOTICS_API_KEY']}"},
  json={
    "model": "westlake/distill-any-depth",
    "image": "<base64 JPEG or PNG>",
  },
).json()
res["depth"]["data"]    # row-major depth map
```

TypeScript:

```typescript
const res = await fetch("https://api.openrobotics.dev/v1/depth", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.OPENROBOTICS_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    model: "westlake/distill-any-depth",
    image: "<base64 JPEG or PNG>",
  }),
}).then((r) => r.json());
```

cURL:

```bash
curl https://api.openrobotics.dev/v1/depth \
  -H "Authorization: Bearer $OPENROBOTICS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"westlake/distill-any-depth","image":"<base64 JPEG or PNG>"}'
```

## Guides about Distill Any Depth

- [Depth Anything V2 and 3: relative vs metric depth](https://www.openrobotics.dev/blog/depth-anything.md): Understand Depth Anything V2 and 3, relative versus metric depth, API output units, and a tested offline Python pinhole backprojection example.
- [Physical AI explained: the open model stack for robots](https://www.openrobotics.dev/blog/physical-ai.md): What physical AI (embodied AI) means, the five kinds of models a robot uses, from perception to VLAs and world models, and open examples of each.

## Distill Any Depth FAQ

### How do I run Distill Any Depth without my own GPU?

Call POST /v1/depth on the OpenRobotics API with "model": "westlake/distill-any-depth". We run Distill Any Depth on cloud GPUs that start on demand, so there is nothing to install or host.

### How much does the Distill Any Depth API cost?

$0.10 per 1,000 calls, billed only for successful calls. Pay with prepaid credits or monthly pay-as-you-go.

### What license does Distill Any Depth use?

The weights we serve (xingyang1/Distill-Any-Depth-Small-hf) are released under MIT (Small; base DAv2-Small architecture/init: Apache-2.0). Base/Large are built on DAv2-Base/Large (CC-BY-NC-4.0), so only Small is clean. Check the license for your use case.

### Is Distill Any Depth open source?

Distill Any Depth's weights are publicly available under MIT (Small; base DAv2-Small architecture/init: Apache-2.0). Base/Large are built on DAv2-Base/Large (CC-BY-NC-4.0), so only Small is clean. OpenRobotics serves them behind an API so you can use the model without hosting it.

## Similar models

- [Depth Anything V2](https://www.openrobotics.dev/models/bytedance/depth-anything-v2.md): `bytedance/depth-anything-v2`, $0.10 per 1,000 calls
- [Depth Anything 3](https://www.openrobotics.dev/models/bytedance/depth-anything-3.md): `bytedance/depth-anything-3`, $0.10 per 1,000 calls
- [FoundationStereo](https://www.openrobotics.dev/models/nvidia/foundationstereo.md): `nvidia/foundationstereo`, $0.10 per 1,000 calls
- [MoGe-2](https://www.openrobotics.dev/models/microsoft/moge-2.md): `microsoft/moge-2`, $0.10 per 1,000 calls
- [Prompt Depth Anything](https://www.openrobotics.dev/models/bytedance/prompt-depth-anything.md): `bytedance/prompt-depth-anything`, $0.10 per 1,000 calls
- [Video Depth Anything](https://www.openrobotics.dev/models/bytedance/video-depth-anything.md): `bytedance/video-depth-anything`, $0.10 per 1,000 calls
