# Ask a reasoning model

> Ask an embodied-reasoning model about one or more images and get an answer in text, with points when it names places in the image.

`POST https://api.openrobotics.dev/v1/reason`

## Authorization

`Authorization: Bearer sk-orb-v1-…`, your [API key](https://www.openrobotics.dev/docs/authentication), or a free [test key](https://www.openrobotics.dev/docs/authentication#test-keys) (`sk-orb-test-…`; no account? get one with [`POST /sandbox/keys`](https://www.openrobotics.dev/docs/api/create-sandbox-key)).

## Request body

JSON, with `Content-Type: application/json`.

- `model` (string, required): The reasoning model to run, e.g. `nvidia/cosmos-reason-2`. The live models for this endpoint are listed below.
- `prompt` (string, required): The question or instruction, e.g. `"Point to the handle of the mug."` 1–4,000 characters.
- `image` (string): One image, base64 JPEG or PNG, under 4 MB of base64. Send `image` or `images`.
- `images` (string[]): 1–8 images, each under 4 MB of base64.
- `frames` (string[]): Video models only (e.g. `nyu/cambrian-s`): a clip instead of images, 1–32 frames oldest first, all the same size, under 4 MB of base64 together. Other models answer 400.

## Response

- `id` (string): Unique id of this call, e.g. `rsn_48213`. It matches the call in your Activity dashboard.
- `model` (string): The model that answered.
- `backend` (string): `"http"`: the real model ran on a GPU. `"simulated"`: stand-in output of the same shape, as test keys get.
- `sandbox` (boolean): `true` when the call was made with a [test key](https://www.openrobotics.dev/docs/authentication#test-keys): the output is simulated, nothing ran on a GPU and nothing was charged. Absent otherwise.
- `text` (string): The model's answer.
- `points` (object[]): Points the answer refers to, if any: `{ label, x, y }` in pixels of the first image.
- `usage` (object): What the call cost.
  - `cost_usd` (number): Charged to your credits, in US dollars.
  - `latency_ms` (integer): Time the model took, in milliseconds.

## Errors

Plus the errors every endpoint shares: see [Errors](https://www.openrobotics.dev/docs/errors).

## Example request

Python:

```python
import os, requests

res = requests.post(
  "https://api.openrobotics.dev/v1/reason",
  headers={"Authorization": f"Bearer {os.environ['OPENROBOTICS_API_KEY']}"},
  json={
    "model": "nvidia/cosmos-reason-2",
    "image": "<base64 JPEG or PNG>",
    "prompt": "Point to the handle of the mug.",
  },
).json()
res["text"], res["points"]  # answer + { label, x, y } points
```

TypeScript:

```typescript
const res = await fetch("https://api.openrobotics.dev/v1/reason", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.OPENROBOTICS_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    model: "nvidia/cosmos-reason-2",
    image: "<base64 JPEG or PNG>",
    prompt: "Point to the handle of the mug.",
  }),
}).then((r) => r.json());
```

cURL:

```bash
curl https://api.openrobotics.dev/v1/reason \
  -H "Authorization: Bearer $OPENROBOTICS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"nvidia/cosmos-reason-2","image":"<base64 JPEG or PNG>","prompt":"Point to the handle of the mug."}'
```

## Example response

```json
{
  "id": "rsn_48213",
  "model": "nvidia/cosmos-reason-2",
  "backend": "http",
  "text": "The handle is on the right side of the mug.",
  "points": [
    { "label": "handle", "x": 412, "y": 230 }
  ],
  "usage": { "cost_usd": 0.0008, "latency_ms": 1900 }
}
```

## Models

17 live for `/reason`:

- [Cosmos Reason 2](https://www.openrobotics.dev/models/nvidia/cosmos-reason-2.md): `nvidia/cosmos-reason-2`, $1.00 per 1,000 calls
- [GraspMolmo](https://www.openrobotics.dev/models/allenai/graspmolmo.md): `allenai/graspmolmo`, $0.10 per 1,000 calls
- [Cosmos Reason 1](https://www.openrobotics.dev/models/nvidia/cosmos-reason-1.md): `nvidia/cosmos-reason-1`, $0.50 per 1,000 calls
- [RoboBrain 2.0](https://www.openrobotics.dev/models/baai/robobrain-2.0.md): `baai/robobrain-2.0`, $0.50 per 1,000 calls
- [RoboBrain 2.5](https://www.openrobotics.dev/models/baai/robobrain-2.5.md): `baai/robobrain-2.5`, $0.50 per 1,000 calls
- [RynnBrain](https://www.openrobotics.dev/models/alibaba-damo/rynnbrain.md): `alibaba-damo/rynnbrain`, $0.50 per 1,000 calls
- [Pelican-VL 1.0](https://www.openrobotics.dev/models/x-humanoid/pelican-vl-1.0.md): `x-humanoid/pelican-vl-1.0`, $0.50 per 1,000 calls
- [MiMo-Embodied](https://www.openrobotics.dev/models/xiaomi/mimo-embodied.md): `xiaomi/mimo-embodied`, $0.50 per 1,000 calls
- [RoboPoint](https://www.openrobotics.dev/models/nvidia/robopoint.md): `nvidia/robopoint`, $0.50 per 1,000 calls
- [Molmo2-ER](https://www.openrobotics.dev/models/allenai/molmo2-er.md): `allenai/molmo2-er`, $0.50 per 1,000 calls
- [VST (Visual Spatial Tuning)](https://www.openrobotics.dev/models/bytedance/vst.md): `bytedance/vst`, $0.50 per 1,000 calls
- [Cambrian-S](https://www.openrobotics.dev/models/nyu/cambrian-s.md): `nyu/cambrian-s`, $0.50 per 1,000 calls
- [VeBrain](https://www.openrobotics.dev/models/opengvlab/vebrain.md): `opengvlab/vebrain`, $0.50 per 1,000 calls
- [SenseNova-SI 1.3](https://www.openrobotics.dev/models/sensenova/sensenova-si.md): `sensenova/sensenova-si`, $0.50 per 1,000 calls
- [Embodied-R1.5](https://www.openrobotics.dev/models/tju/embodied-r1.5.md): `tju/embodied-r1.5`, $0.50 per 1,000 calls
- [UnifoLM-ER-1](https://www.openrobotics.dev/models/unitree/unifolm-er-1.md): `unitree/unifolm-er-1`, $0.50 per 1,000 calls
- [EmbodiedBrain](https://www.openrobotics.dev/models/zte/embodiedbrain.md): `zte/embodiedbrain`, $0.50 per 1,000 calls
