Prompt Depth Anything API
Uses a low-resolution depth prompt (iPhone LiDAR or a cheap depth sensor) to produce accurate high-resolution metric depth; shown to improve generalizable robotic grasping, including on transparent objects.
Call Prompt Depth Anything
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/prompt-depth-anything", "image": "<base64 JPEG or PNG>", "prompt_depth": "<…>", # A low-resolution metric depth map of the same view (e.g. LiDAR): 16-bit grayscale PNG in millimetres, 0 = no measurement. },).json()res["depth"]["data"] # row-major depth mapGPUs start on demand. If Prompt Depth Anything 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).
Inputs
What Prompt Depth Anything needs in a request as served (depth-anything/prompt-depth-anything-vits-hf), beyond the fields every /v1/depth call takes. The same spec is in inputs on GET /v1/models.
prompt_depth- Required. A low-resolution metric depth map of the same view (e.g. LiDAR): 16-bit grayscale PNG in millimetres, 0 = no measurement.
Guides about Prompt Depth Anything
- 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.
- 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.
Prompt Depth Anything FAQ
- How do I run Prompt Depth Anything without my own GPU?
- Call POST /v1/depth on the OpenRobotics API with "model": "bytedance/prompt-depth-anything". We run Prompt Depth Anything on cloud GPUs that start on demand, so there is nothing to install or host.
- How much does the Prompt 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 Prompt Depth Anything use?
- The weights we serve (depth-anything/prompt-depth-anything-vits-hf) are released under Apache-2.0 (base Depth-Anything-V2-Small: Apache-2.0). Check the license for your use case.
- Is Prompt Depth Anything open source?
- Prompt Depth Anything's weights are publicly available under Apache-2.0 (base Depth-Anything-V2-Small: Apache-2.0). OpenRobotics serves them behind an API so you can use the model without hosting it.
Run Prompt Depth Anything with one API call
Create a key, send POST /v1/depth with "model": "bytedance/prompt-depth-anything", and pay $0.10 per 1,000 calls.