
# tdx limits

Read the calling API key's budgets and rate limits.

**Reads**

Read GET /v1/limits as the API key itself. It needs an explicit API key (tokedex_ik_, the family the gateway authenticates as inference) from exactly one of --key-file or --key-stdin; other token families are refused locally before any request. It never uses or sends the saved admin profile bearer or TOKEDEX_TOKEN, and never opens a saved profile. The host comes only from --host or TOKEDEX_HOST. The gateway serves this route only while user management is on (otherwise 404) and refuses non-inference principals (403). Amounts are decimal USD strings and appear only where the gateway discloses them. --dry-run still reads.

```bash
# GET /v1/limits
tdx limits [flags]
```

**Optional flags**

| Flag | Type | Default | Description |
|---|---|---|---|
| `--key-file` | path |  | Read the API key from this owner-only 0600 regular file; no symlinks. |
| `--key-stdin` | boolean | `false` | Read the API key from redirected standard input (8194 bytes, 3 seconds). |

**Constraints**

- Exactly one of `--key-file`, `--key-stdin`

**Output fields** (inside `data`)

| Field | Type | Description |
|---|---|---|
| `keyId` | string | Public id of the calling key. |
| `budgets` | key-budget[] | Scope, the public model id as model on a model budget, window, applies_via, resets_at, exhausted and disclosed limit_usd, spent_usd, remaining_usd strings. |
| `rateLimits` | key-rate-limit[] | Scope, requests_per_minute, remaining and reset_ms. |

Every command also takes the [global flags](/cli/reference#global-flags) and reads the [environment variables](/cli/reference#environment-variables) that the command reference lists once.
