# CityWalker API

> Urban navigation policy trained on ~2,000 hours of web walking/driving videos: DINOv2 ViT-B/14 frame tokens plus a goal token through a transformer that predicts waypoints.

## Details

- Model id: `nyu/citywalker`
- Provider: NYU AI4CE
- Type: VLA
- Parameters: ~0.2B
- Output: 5 future 2-D waypoints + arrival logit
- Embodiments: Mobile manipulator, Humanoid, Quadruped
- Endpoint: `POST /v1/act`
- Price: $0.15 per 1,000 calls
- Checkpoint served: `ai4ce/citywalker`
- License: Apache-2.0 (weights and code; base DINOv2 ViT-B/14: Apache-2.0)
- Released: June 2025
- Status: Live
- Paper or model card: https://arxiv.org/abs/2411.17820

## Inputs

What a request to CityWalker needs beyond the endpoint's generic fields (also in `GET https://api.openrobotics.dev/v1/models/nyu/citywalker` as `inputs`).

- Cameras (`observation.images` keys):
  - `front-4` (optional): An earlier frame (front-4), at the model's frame rate; missing older frames repeat the oldest one given
  - `front-3` (optional): An earlier frame (front-3), at the model's frame rate; missing older frames repeat the oldest one given
  - `front-2` (optional): An earlier frame (front-2), at the model's frame rate; missing older frames repeat the oldest one given
  - `front-1` (optional): An earlier frame (front-1), at the model's frame rate; missing older frames repeat the oldest one given
  - `front`: The current front camera frame
- State (`observation.state`): 10 numbers: `past_4_x`, `past_4_y`, `past_3_x`, `past_3_y`, `past_2_x`, `past_2_y`, `past_1_x`, `past_1_y`, `goal_x`, `goal_y`. Units: robot frame (current position = origin): x forward, y left (m). The robot's positions at the earlier frames, oldest first, then the goal position.
- Actions: 2 numbers per step, up to 5 steps per call: `x`, `y`. Units: waypoints in the current robot frame: x forward, y left (m), yaw (rad); one per future step
- Instruction: unused
- Notes: The model works in step units of 1 m (the authors' reference robot): frames are expected at the model's rate.

## Call CityWalker

Send one request with your API key to `POST https://api.openrobotics.dev/v1/act`. The response comes back in the same call. The [API reference](https://www.openrobotics.dev/docs/api/act) 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/act",
  headers={"Authorization": f"Bearer {os.environ['OPENROBOTICS_API_KEY']}"},
  json={
    "model": "nyu/citywalker",
    "instruction": "put the black bowl on the plate",  # required, but this model ignores it
    "observation": {
      "images": {
        "front": "<base64 JPEG or PNG>",
      },
      "state": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],  # past_4_x, past_4_y, past_3_x, past_3_y, past_2_x, past_2_y, past_1_x, past_1_y, goal_x, goal_y
    },
    "action_horizon": 5,
  },
).json()
res["actions"]          # up to 5 rows × 2: x, y
```

TypeScript:

```typescript
const res = await fetch("https://api.openrobotics.dev/v1/act", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.OPENROBOTICS_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    model: "nyu/citywalker",
    instruction: "put the black bowl on the plate",  // required, but this model ignores it
    observation: {
      images: {
        front: "<base64 JPEG or PNG>",
      },
      state: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],  // past_4_x, past_4_y, past_3_x, past_3_y, past_2_x, past_2_y, past_1_x, past_1_y, goal_x, goal_y
    },
    action_horizon: 5,
  }),
}).then((r) => r.json());
```

cURL:

```bash
curl https://api.openrobotics.dev/v1/act \
  -H "Authorization: Bearer $OPENROBOTICS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"nyu/citywalker","instruction":"put the black bowl on the plate","observation":{"images":{"front":"<base64 JPEG or PNG>"},"state":[0,0,0,0,0,0,0,0,0,0]},"action_horizon":5}'
```

## Guides about CityWalker

- [VLA models explained: what they are and the best open ones in 2026](https://www.openrobotics.dev/blog/vla-models.md): What a vision-language-action (VLA) model is, how it turns a camera image and an instruction into robot actions, and how π0, OpenVLA, GR00T and SmolVLA compare.
- [π0 (pi0), π0-FAST and π0.5 explained: openpi models guide](https://www.openrobotics.dev/blog/pi0.md): What Physical Intelligence's π0, π0-FAST and π0.5 VLA models are, what's in the openpi repo, how to fine-tune them, and where π0.6 and π0.7 stand.

## CityWalker FAQ

### How do I run CityWalker without my own GPU?

Call POST /v1/act on the OpenRobotics API with "model": "nyu/citywalker". We run CityWalker on cloud GPUs that start on demand, so there is nothing to install or host.

### How much does the CityWalker API cost?

$0.15 per 1,000 calls, billed only for successful calls. Pay with prepaid credits or monthly pay-as-you-go.

### What license does CityWalker use?

The weights we serve (ai4ce/citywalker) are released under Apache-2.0 (weights and code; base DINOv2 ViT-B/14: Apache-2.0). Check the license for your use case.

### Which robots does CityWalker work with?

CityWalker is listed for: Mobile manipulator, Humanoid, Quadruped. The checkpoint we serve is ai4ce/citywalker; a VLA works best on the robot, cameras and action space its checkpoint was trained on.

### Is CityWalker open source?

CityWalker's weights are publicly available under Apache-2.0 (weights and code; base DINOv2 ViT-B/14: Apache-2.0). OpenRobotics serves them behind an API so you can use the model without hosting it.

## Similar models

- [SmolVLA](https://www.openrobotics.dev/models/huggingface/smolvla.md): `huggingface/smolvla`, $0.04 per 1,000 calls
- [Octo Base](https://www.openrobotics.dev/models/octo/octo-base.md): `octo/octo-base`, $0.05 per 1,000 calls
- [Octo Small](https://www.openrobotics.dev/models/octo/octo-small.md): `octo/octo-small`, $0.05 per 1,000 calls
- [CrossFormer](https://www.openrobotics.dev/models/berkeley/crossformer.md): `berkeley/crossformer`, $0.05 per 1,000 calls
- [OpenVLA 7B](https://www.openrobotics.dev/models/openvla/openvla-7b.md): `openvla/openvla-7b`, $0.15 per 1,000 calls
- [MiniVLA](https://www.openrobotics.dev/models/stanford-iliad/minivla.md): `stanford-iliad/minivla`, $0.15 per 1,000 calls
