{
  "schema_version": "1.0",
  "id": "archive:https://vercel.com/changelog/ai-gateway-routing-rules",
  "slug": "ai-gateway-routing-rules-024ifzc",
  "url": "https://feed7.dev/p/ai-gateway-routing-rules-024ifzc",
  "title": "Routing rules now available on AI Gateway",
  "why_included": "Vercel AI Gateway adds firewall-style routing rules: rewrite one model to another or deny a model outright, applied at the gateway so you swap models across your whole team without shipping a code change.",
  "summary": "**The gist** AI Gateway now has **routing rules**, managed via the Vercel CLI and applied to every request made with your team's gateway credentials. Two types: **Rewrite** transparently serves one model's requests with another; **Deny** blocks a model and returns a **403**.",
  "practical_implication": "**Why it matters** When a model is retired or goes down, you push one rule instead of a code deploy and every request reroutes instantly—useful for migrating off dead models, standardizing on one, or steering an expensive model to a cheaper one. Existing config still applies to the destination: **BYOK**, fallbacks, sorting, provider options, **Zero Data Retention**, and the provider allowlist.",
  "agent_context": "**The gist** AI Gateway now has **routing rules**, managed via the Vercel CLI and applied to every request made with your team's gateway credentials. Two types: **Rewrite** transparently serves one model's requests with another; **Deny** blocks a model and returns a **403**.\n\n**Why it matters** When a model is retired or goes down, you push one rule instead of a code deploy and every request reroutes instantly—useful for migrating off dead models, standardizing on one, or steering an expensive model to a cheaper one. Existing config still applies to the destination: **BYOK**, fallbacks, sorting, provider options, **Zero Data Retention**, and the provider allowlist.\n\n**Watch out** Routing rules are in **beta** and CLI-managed only. They change only which model serves a request—nothing else—so behavior differences between source and destination models are on you to validate.",
  "source": {
    "name": "Vercel",
    "url": "https://vercel.com/changelog/ai-gateway-routing-rules",
    "published_at": null
  },
  "source_class": "blog_post",
  "content_type": "Engineering Post",
  "layer": "infra",
  "domains": [],
  "topics": [
    "gateways",
    "model-selection"
  ],
  "verification": {
    "status": "official_source",
    "label": "Official Source",
    "method": "source_feed",
    "verified_at": null
  },
  "uncertainty": [
    "Routing rules are in **beta** and CLI-managed only. They change only which model serves a request—nothing else—so behavior differences between source and destination models are on you to validate."
  ],
  "lifecycle": "Current",
  "published_at": null,
  "modified_at": null,
  "supersedes": [],
  "expires_at": null,
  "formats": {
    "html": "https://feed7.dev/p/ai-gateway-routing-rules-024ifzc",
    "json": "https://feed7.dev/p/ai-gateway-routing-rules-024ifzc.json",
    "markdown": "https://feed7.dev/p/ai-gateway-routing-rules-024ifzc.md"
  }
}