# pal cli infer

Source: https://pal.konvert7.com/docs/cli/infer

Run one inference call on the active agent's model; prompt on stdin

```bash title="Usage"
pal cli infer [options]
```

| Option | What it does |
| --- | --- |
| `--tier <tier>` | Model size: small, medium, large, flagship (default small) |
| `--system <file>` | System prompt file |
| `--schema <file>` | JSON schema file; a reply that doesn't match it fails |
| `--timeout <seconds>` | Give up after this long (default 60) |
| `--caller <label>` | Label for PAL's debug log |
| `--web` | Let the model search and read the web (Claude, Codex, Copilot) |
| `--route` | Print the agent, route and model as JSON instead of calling |

For scripts and bots: the prompt is read from stdin and the reply printed on stdout. A caller asks for a tier, never a model; the active agent's adapter picks that agent's model for the tier, and an agent without the tier refuses it.

The call loads no PAL hooks or context, and exits 1 with the reason when no route answers.