# π0 (pi0) API

> Generalist VLA built on PaliGemma with a flow-matching action expert, trained on cross-embodiment robot data. Weights and code are released through openpi.

## Details

- Model id: `physical-intelligence/pi0`
- Provider: Physical Intelligence
- Type: VLA
- Parameters: 3.3B
- Output: Flow-matching action chunks (action expert)
- Embodiments: Single arm, Bimanual, Mobile manipulator
- Endpoint: `POST /v1/act`
- Price: $0.40 per 1,000 calls
- Checkpoint served: `lerobot/pi0_libero_finetuned_v044`
- License: Gemma Terms of Use
- Released: October 2024
- Status: Live
- Paper or model card: https://arxiv.org/abs/2410.24164

## Inputs

What a request to π0 needs beyond the endpoint's generic fields (also in `GET https://api.openrobotics.dev/v1/models/physical-intelligence/pi0` as `inputs`).

- Cameras (`observation.images` keys):
  - `agentview`: Third-person (agent view) camera, upright: LIBERO's raw render rotated 180°
  - `wrist`: Wrist (eye-in-hand) camera, upright: LIBERO's raw render rotated 180°
- State (`observation.state`): 8 numbers: `eef_x`, `eef_y`, `eef_z`, `eef_axis_angle_x`, `eef_axis_angle_y`, `eef_axis_angle_z`, `gripper_qpos_left`, `gripper_qpos_right`. Units: end-effector position (m) and axis-angle rotation (rad) in the robot base frame; the two gripper finger joint positions
- Actions: 7 numbers per step, up to 50 steps per call (its own evaluation executes 5 per call): `delta_x`, `delta_y`, `delta_z`, `delta_axis_angle_x`, `delta_axis_angle_y`, `delta_axis_angle_z`, `gripper`. Units: LIBERO's OSC_POSE delta command, each in [-1, 1] (position and axis-angle rotation deltas, scaled by the controller); gripper -1 open, +1 close
- Instruction: required

## Call π0

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": "physical-intelligence/pi0",
    "instruction": "put the black bowl on the plate",
    "observation": {
      "images": {
        "agentview": "<base64 JPEG or PNG>",
        "wrist": "<base64 JPEG or PNG>",
      },
      "state": [0, 0, 0, 0, 0, 0, 0, 0],  # eef_x, eef_y, eef_z, eef_axis_angle_x, eef_axis_angle_y, eef_axis_angle_z, gripper_qpos_left, gripper_qpos_right
    },
    "action_horizon": 5,
  },
).json()
res["actions"]          # up to 5 rows × 7: delta_x, delta_y, delta_z, delta_axis_angle_x, delta_axis_angle_y, delta_axis_angle_z, gripper
```

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: "physical-intelligence/pi0",
    instruction: "put the black bowl on the plate",
    observation: {
      images: {
        agentview: "<base64 JPEG or PNG>",
        wrist: "<base64 JPEG or PNG>",
      },
      state: [0, 0, 0, 0, 0, 0, 0, 0],  // eef_x, eef_y, eef_z, eef_axis_angle_x, eef_axis_angle_y, eef_axis_angle_z, gripper_qpos_left, gripper_qpos_right
    },
    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":"physical-intelligence/pi0","instruction":"put the black bowl on the plate","observation":{"images":{"agentview":"<base64 JPEG or PNG>","wrist":"<base64 JPEG or PNG>"},"state":[0,0,0,0,0,0,0,0]},"action_horizon":5}'
```

## Guides about π0

- [π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.
- [VLA API requests: action chunks, contracts and failures](https://www.openrobotics.dev/blog/how-act-works.md): Build a VLA client around action horizons, embodiment-specific units, bounded retries and offline validation of the OpenRobotics /v1/act contract.
- [Diffusion Policy and imitation learning, explained](https://www.openrobotics.dev/blog/diffusion-policy.md): What imitation learning is, how ACT and Diffusion Policy (Chi et al. 2023) generate robot actions, and how flow matching carries over to π0 and SmolVLA.
- [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.

## π0 FAQ

### How do I run π0 without my own GPU?

Call POST /v1/act on the OpenRobotics API with "model": "physical-intelligence/pi0". We run π0 on cloud GPUs that start on demand, so there is nothing to install or host.

### How much does the π0 API cost?

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

### What license does π0 use?

The weights we serve (lerobot/pi0_libero_finetuned_v044) are released under Gemma Terms of Use. Check the license for your use case.

### Which robots does π0 work with?

π0 is listed for: Single arm, Bimanual, Mobile manipulator. The checkpoint we serve is lerobot/pi0_libero_finetuned_v044; a VLA works best on the robot, cameras and action space its checkpoint was trained on.

### Is π0 open source?

π0's weights are publicly available under Gemma Terms of Use. 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
