Depth Anything V2 API

Also written: Depth Anything 2, DepthAnythingV2

Monocular depth from one image: Depth Anything V2 Small (depth-anything/Depth-Anything-V2-Small-hf, Apache-2.0). Returns relative inverse depth (unit "relative_inverse", larger = closer), longest side ≤ 256.

Live$0.10 per 1,000 callsGet an API key

Call Depth Anything V2

Send one request with your API key. The response comes back in the same call. See the API reference for every field.

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

GPUs start on demand. If Depth Anything V2 hasn't been called for a while, the first request returns 503 with a Retry-After header while it boots (usually a few minutes, never billed).

Guides about Depth Anything V2

Depth Anything V2 and 3: relative vs metric depth
Understand Depth Anything V2 and 3, relative versus metric depth, API output units, and a tested offline Python pinhole backprojection example.
Embodied AI: what it is, the model stack and benchmarks
What embodied AI means, how it differs from physical AI, the models an embodied agent runs (perception to world models), key benchmarks and companies.
Physical AI explained: the open model stack for robots
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.
VGGT explained: feed-forward 3D reconstruction
How VGGT predicts cameras, depth, point maps and tracks in one pass, how it compares with DUSt3R, MASt3R, MapAnything and Depth Anything 3, and its API.

Depth Anything V2 FAQ

How do I run Depth Anything V2 without my own GPU?
Call POST /v1/depth on the OpenRobotics API with "model": "bytedance/depth-anything-v2". We run Depth Anything V2 on cloud GPUs that start on demand, so there is nothing to install or host.
How much does the Depth Anything V2 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 Depth Anything V2 use?
The weights we serve (depth-anything/Depth-Anything-V2-Small-hf) are released under Apache-2.0. Check the license for your use case.
Is Depth Anything V2 open source?
Depth Anything V2's weights are publicly available under Apache-2.0. OpenRobotics serves them behind an API so you can use the model without hosting it.

Run Depth Anything V2 with one API call

Create a key, send POST /v1/depth with "model": "bytedance/depth-anything-v2", and pay $0.10 per 1,000 calls.

Get an API keyRead the /v1/depth referenceBrowse depth estimation models