# OpenVLA 7B API

> Open 7B VLA built on Llama 2 with DINOv2 and SigLIP vision encoders, trained on 970k Open X-Embodiment episodes.

## Details

- Model id: `openvla/openvla-7b`
- Provider: Stanford, UC Berkeley, TRI, Google DeepMind et al.
- Type: VLA
- Parameters: 7B
- Output: Discrete action tokens
- Embodiments: Single arm
- Endpoint: `POST /v1/act`
- Price: $0.15 per 1,000 calls
- Checkpoint served: `openvla/openvla-7b`
- License: MIT
- Released: June 2024
- Status: Live
- Paper or model card: https://arxiv.org/abs/2406.09246

## Inputs

What a request to OpenVLA 7B needs beyond the endpoint's generic fields (also in `GET https://api.openrobotics.dev/v1/models/openvla/openvla-7b` as `inputs`).

- Cameras (`observation.images` keys):
  - `primary`: Third-person camera over the WidowX workspace (Bridge)
- State: none, leave `observation.state` out.
- Actions: 7 numbers per step, up to 1 steps per call: `delta_x`, `delta_y`, `delta_z`, `delta_roll`, `delta_pitch`, `delta_yaw`, `gripper`. Units: end-effector deltas in the dataset's units (m, rad); gripper as in Bridge: 0 closed … 1 open
- Instruction: required
- Notes: The single camera may also be sent as observation.image.

## Call OpenVLA 7B

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": "openvla/openvla-7b",
    "instruction": "put the black bowl on the plate",
    "observation": {
      "images": {
        "primary": "<base64 JPEG or PNG>",
      },
    },
    "action_horizon": 1,
  },
).json()
res["actions"]          # 1 row × 7: delta_x, delta_y, delta_z, delta_roll, delta_pitch, delta_yaw, 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: "openvla/openvla-7b",
    instruction: "put the black bowl on the plate",
    observation: {
      images: {
        primary: "<base64 JPEG or PNG>",
      },
    },
    action_horizon: 1,
  }),
}).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":"openvla/openvla-7b","instruction":"put the black bowl on the plate","observation":{"images":{"primary":"<base64 JPEG or PNG>"}},"action_horizon":1}'
```

## Guides about OpenVLA 7B

- [OpenVLA and OpenVLA-OFT: architecture, results, fine-tuning](https://www.openrobotics.dev/blog/openvla.md): OpenVLA is an open 7B vision-language-action model built on Llama 2, DINOv2 and SigLIP. How it works, the OpenVLA-OFT recipe, MiniVLA, and how to run it.
- [RT-2, RT-1 and RT-X explained: Google's robot transformers](https://www.openrobotics.dev/blog/rt-2.md): How Google's RT-1, RT-2 and RT-X robot transformers work, what Open X-Embodiment is, which checkpoints are open, and the open VLAs that followed them.

## OpenVLA 7B FAQ

### How do I run OpenVLA 7B without my own GPU?

Call POST /v1/act on the OpenRobotics API with "model": "openvla/openvla-7b". We run OpenVLA 7B on cloud GPUs that start on demand, so there is nothing to install or host.

### How much does the OpenVLA 7B 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 OpenVLA 7B use?

The weights we serve (openvla/openvla-7b) are released under MIT. Check the license for your use case.

### Which robots does OpenVLA 7B work with?

OpenVLA 7B is listed for: Single arm. The checkpoint we serve is openvla/openvla-7b; a VLA works best on the robot, cameras and action space its checkpoint was trained on.

### Is OpenVLA 7B open source?

OpenVLA 7B's weights are publicly available under MIT. 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
- [MiniVLA](https://www.openrobotics.dev/models/stanford-iliad/minivla.md): `stanford-iliad/minivla`, $0.15 per 1,000 calls
- [RDT-1B](https://www.openrobotics.dev/models/thu-ml/rdt-1b.md): `thu-ml/rdt-1b`, $0.15 per 1,000 calls
