# Flex sandboxes

Set `flex: true` for half price ($0.02 per vCPU-hour) on work that can wait: batch agent runs, evals, data jobs, scheduled runs. In the CLI it is `--flex`.

```
curl https://api.groundbox.dev/v1/sandboxes \
  -H "Authorization: Bearer $GROUNDBOX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"cpus": 4, "flex": true}'
```

A flex sandbox starts when a box has spare room after full-price work, so it may stay `queued` for a while. Its timeout counts from when it starts. One that has not started in 24 hours fails. A running flex sandbox is never stopped to make room.
