# Model status

`/apix/models/info` is the catalog, not a live status. The only per-model state
it carries is `going_away` (retirement date) plus `operations`. Live probe
results are served separately:

| Endpoint | Returns |
|---|---|
| `GET /health` | `{"ok":true,"health":"ok"}` |
| `GET /health/models` | HTML page with every model |
| `GET /health/models` + `Accept: application/json` | `providers.<provider>.models.<model> = {state, ok, status, ts}` |
| `GET /api/dashboard.json` | `model_status` = `{<model id>: {state, ok, status, ts, attempts}}` |

`state` values:

| Value | Meaning |
|---|---|
| `ok` | the last probe worked |
| `limited` | the model answered but the account is throttled |
| `fail` | the last probe failed |
| `unknown` | not probed yet (or the model is unsupported) |

`/health` and `/health/models` need no key; `/apix/models/info` does.

### Turning that into a status dot

- **Catalog only**: green when `operations.chat.enabled` is true and there is no
  `going_away`; red when `going_away` is set or chat is disabled; grey when the
  model is not in the catalog.
- **Live**: use `state` from `/health/models` (`ok` → green, `limited` → amber,
  `fail` → red, `unknown` → grey).

No endpoint stores the error of your last call. A `429 PROVIDER_SATURATED` or
`PROVIDER_TEMPORARILY_UNAVAILABLE` is knowledge of that request only: if you want
the amber dot, remember it client-side for a minute or two.

Models being retired also send `x-apix-going-away` (the date) on every response.
