Skip to content

[skills] Sync ai-gateway with current docs - #471

Open
vercel-gh-bot-4[bot] wants to merge 1 commit into
mainfrom
eve-drift/ai-gateway
Open

vercel-gh-bot-4[bot] wants to merge 1 commit into
mainfrom
eve-drift/ai-gateway

Conversation

@vercel-gh-bot-4

Copy link
Copy Markdown
Contributor

Corrects the budget scope, attribution, spend-alert, BYOK-fee, and re-created-budget claims in skills/ai-gateway/references/spend-observability.md to match the current Budgets page.

Source for every item: https://vercel.com/docs/ai-gateway/observability-and-spend/budgets (last_updated 2026-09-10).

  • Project budget scope. The skill said "Requests authenticated by that project's OIDC tokens" and "Project budgets apply only to OIDC-authenticated requests from that project's deployments". Project budgets also count API keys scoped to that project (projectId); an unscoped key used in the project's deployment does not count. Quote: "OIDC tokens from that project's deployments, and API keys scoped to that project".
  • User budget scope. The skill said "Requests using keys attributed to that member", "API key and user budgets apply to key usage", and "Only member-attributed keys count toward a user budget; OIDC tokens, personal access tokens, and app tokens never do". User budgets also count the member's personal access tokens and the app tokens issued to them. Only OIDC tokens and app tokens that act as the app itself never count. Quote: "Personal access tokens and app tokens issued to a signed-in user always act as that user, so their spend counts toward the team budget and that user's budget."
  • Spend-alert recipients. "team owners and members with the Billing role" becomes "Team owners, members with the Billing or Security role, and members with the Usage Viewer permission", quoted from the page's alert recipients table.
  • Default budgets and alerts. The skill said "Default budgets do not send spend alerts" and "Custom budgets can email…". Defaults can carry alerts, and alerts are off by default. Quotes: "A default carries a limit, a refresh period, and optional" and "They are off by default."
  • BYOK fee. The skill said "BYOK requests are metered but never counted against a limit" and, with no exception, "BYOK spend is metered separately and does not count toward any budget". The BYOK-without-fallback fee is deducted from AI Gateway Credits and counts toward budgets, and it can exhaust a budget on its own. An exceeded budget still rejects BYOK requests in its scope with HTTP 402. Quotes: "accumulated fees alone can exceed a budget, and AI Gateway then rejects your" and "An exceeded budget still rejects BYOK".
  • Re-created budgets. The skill said "metering is not retroactive for a re-created budget". A re-created budget is not reset; it comes back with the spend it had already counted in the current period. Quote: "Re-creating a budget later doesn't reset it: the budget comes back with the spend it had already counted in the current period".

Verification

run_plugin_checks: build, typecheck, validate, and test all pass (1364 pass, 0 fail).

Test updates

None.

Not changed

  • The other claims I checked match the current docs and CLI source: CLI flags and version notes, Virtual Model behavior and permissions, Logs retention, Custom Reporting, and OIDC authentication.

Opened automatically by the vercel-plugin drift agent. Review before merge.

<!-- vercel-plugin-drift-agent -->

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants