# Authentication

Send your key on every request. Any of these headers works:

| Header | Usually used by |
|---|---|
| `Authorization: Bearer <key>` | OpenAI SDK, curl |
| `x-api-key: <key>` | Anthropic SDK, Claude clients |
| `x-apix-key: <key>` | Alias |

```bash
curl "$APIX_BASE/v1/models" -H "Authorization: Bearer $APIX_KEY"
```

A missing or unknown key returns `401 INVALID_ACCESS_KEY`. Repeated bad keys from
one IP return `429 TOO_MANY_FAILED_ATTEMPTS`.

Keys carry their own limits: allowed models, requests per day, tokens per day and
spend per day. You can read them from `GET /apix/usage` or from the `x-apix-*`
response headers.

Never ship a key in a browser or mobile app: call ApiX from your backend.
