vercel ai-gateway api-keys create adds expiration and alert thresholds
Introduced 2026-07-28 · score 0.93
HOW TO USE IT
When creating an AI Gateway API key, set its expiry and spend alert percentages with `--expiration` and `--alert-thresholds`.
vercel ai-gateway api-keys create --expiration 90d --alert-thresholds 75,100WHY THIS HELPS
Set expiration and alert thresholds when creating an AI Gateway API key from the CLI.
REQUIREMENTS AND LIMITATIONS
- Version: 58.1.0
- --expiration <PERIOD>: Key expiry: `7d`, `30d`, `60d`, `90d`, `1y`, or `none` (default: `none`).
- --alert-thresholds <LIST>: Comma-separated subset of `50`, `75`, and `100` spend percentages; for example, `75,100`.
FIRST-PARTY EVIDENCE
- https://github.com/vercel/vercel/releases/tag/vercel%4058.1.0
- https://github.com/vercel/vercel/blob/main/packages/cli/src/commands/ai-gateway/command.ts
- https://vercel.com/docs/ai-gateway/observability-and-spend/budgets
Check the installed version and the source before using it. Entry JSON