# Video Depth Anything API

> Depth Anything V2 extended with a spatio-temporal head for consistent depth over arbitrarily long videos; Metric-Video-Depth-Anything variants output metric depth.

## Details

- Model id: `bytedance/video-depth-anything`
- Provider: ByteDance
- Type: Perception · Depth
- Parameters: 28M (Small)
- Output: Temporally consistent relative (or metric) depth for long videos
- Embodiments: Any (video), Single arm, Mobile manipulator, Humanoid
- Endpoint: `POST /v1/depth`
- Price: $0.10 per 1,000 calls
- Checkpoint served: `depth-anything/Video-Depth-Anything-Small`
- License: Apache-2.0 (Small; base Depth-Anything-V2-Small: Apache-2.0). Base and Large checkpoints are CC-BY-NC-4.0
- Released: January 2025
- Status: Live
- Paper or model card: https://arxiv.org/abs/2501.12375

## Inputs

What a request to Video Depth Anything needs beyond the endpoint's generic fields (also in `GET https://api.openrobotics.dev/v1/models/bytedance/video-depth-anything` as `inputs`).

- `frames` (optional): A clip, oldest first, all the same size: one consistent-scale depth map per frame comes back. A single image runs as a one-frame clip.

## Call Video Depth Anything

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": "bytedance/video-depth-anything",
    "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: "bytedance/video-depth-anything",
    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":"bytedance/video-depth-anything","image":"<base64 JPEG or PNG>"}'
```

## Guides about Video Depth Anything

- [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.

## Video Depth Anything FAQ

### How do I run Video Depth Anything without my own GPU?

Call POST /v1/depth on the OpenRobotics API with "model": "bytedance/video-depth-anything". We run Video Depth Anything on cloud GPUs that start on demand, so there is nothing to install or host.

### How much does the Video Depth Anything 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 Video Depth Anything use?

The weights we serve (depth-anything/Video-Depth-Anything-Small) are released under Apache-2.0 (Small; base Depth-Anything-V2-Small: Apache-2.0). Base and Large checkpoints are CC-BY-NC-4.0. Check the license for your use case.

### Is Video Depth Anything open source?

Video Depth Anything's weights are publicly available under Apache-2.0 (Small; base Depth-Anything-V2-Small: Apache-2.0). Base and Large checkpoints are CC-BY-NC-4.0. 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
- [Lotus (Depth G v2.1)](https://www.openrobotics.dev/models/hkust-gz/lotus.md): `hkust-gz/lotus`, $0.10 per 1,000 calls
