{
  "slug": "vercel-ai-gateway-api-keys-create-adds-expiration-and-alert-thresholds-3faec5f0b74a",
  "title": "vercel ai-gateway api-keys create adds expiration and alert thresholds",
  "tools": [
    "vercel"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-07-28T15:51:39.000Z",
  "announced_at": "2026-07-28T15:51:39.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When creating an AI Gateway API key, set its expiry and spend alert percentages with `--expiration` and `--alert-thresholds`.",
    "examples": [
      "vercel ai-gateway api-keys create --expiration 90d --alert-thresholds 75,100"
    ],
    "gotchas": [
      "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`."
    ]
  },
  "why_it_matters": "Set expiration and alert thresholds when creating an AI Gateway API key from the CLI.",
  "sources": [
    "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"
  ],
  "rank": 0.93022,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "backfill-20261007",
    "verdict_id": "backfill-20261007:backfill-20261007-552b90a9bdf52918-0:gate",
    "evidence_hash": "a796093c26dc9aa8fad9f474f664d3d6791dc0ee3fcd9c9499c61c2bfe689e4d"
  },
  "review": {
    "draft_hash": "06a1b62d733114115094da93314bdeb8c2e14402cd1c167e6d6dbc5cd5317de5",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "backfill-20261007:gate",
    "reason": "2 of 3 judge runs approved with p_yes >= 0.9 (mean 0.93 >= 0.9; 2 needed) and Jev gave 0.80 (>= 0.6 needed)."
  }
}
