# MoGe-2 API

> Monocular geometry model that predicts metric-scale 3D point maps with sharp detail. Extends MoGe, which predicted affine-invariant point maps.

## Details

- Model id: `microsoft/moge-2`
- Provider: Microsoft Research
- Type: Perception · Depth
- Output: Metric point map, depth and normals from one image
- Embodiments: Any (video)
- Endpoint: `POST /v1/depth`
- Price: $0.10 per 1,000 calls
- Checkpoint served: `Ruicheng/moge-2-vitl-normal`
- License: MIT
- Released: July 2025
- Status: Live
- Paper or model card: https://github.com/microsoft/moge

## Inputs

What a request to MoGe-2 needs beyond the endpoint's generic fields (also in `GET https://api.openrobotics.dev/v1/models/microsoft/moge-2` as `inputs`).

- `intrinsics` (optional): [fx, fy, cx, cy] in pixels of the image: fx fixes the field of view (without it the focal length is recovered from the predicted point map).

## Call MoGe-2

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": "microsoft/moge-2",
    "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: "microsoft/moge-2",
    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":"microsoft/moge-2","image":"<base64 JPEG or PNG>"}'
```

## Guides about MoGe-2

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

## MoGe-2 FAQ

### How do I run MoGe-2 without my own GPU?

Call POST /v1/depth on the OpenRobotics API with "model": "microsoft/moge-2". We run MoGe-2 on cloud GPUs that start on demand, so there is nothing to install or host.

### How much does the MoGe-2 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 MoGe-2 use?

The weights we serve (Ruicheng/moge-2-vitl-normal) are released under MIT. Check the license for your use case.

### Is MoGe-2 open source?

MoGe-2's weights are publicly available under MIT. 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
- [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
- [Lotus (Depth G v2.1)](https://www.openrobotics.dev/models/hkust-gz/lotus.md): `hkust-gz/lotus`, $0.10 per 1,000 calls
