Lower your Vercel AI Gateway spend.
Wrap your AI SDK calls. Connect your Vercel billing.
- Category
- Gateways
- Connects with
- SDKBilling
- AI cost observability
- Cost per customer, by functionId
Spend by modelVercel AI Gateway
$2,834
- openai/gpt-6.2-sol$1,640support-reply
- anthropic/claude-sonnet-5-5$980chat-stream
- google/gemini-4-hydrogen$214doc-search
OPT-21 · support-reply
Reuse the support-reply answer when a customer reloads the chat
In progressOwner Sam Okafor
$194–$238estimated per month
How it works with Vercel AI Gateway.
Tracked vs billed for Vercel AI Gateway.
Tracked$2,834
recorded as calls runlast 30 days
Billed$3,057
on your Vercel billlast 30 days
Gap$223
billed but not tracked7.3% of the bill
ModelTrackedBilledStatus
- openai/gpt-6.2-sol$1,640$1,640Matched
- anthropic/claude-sonnet-5-5$980$1,203Gap $223
$223 billed but not tracked: an edge route that streams without the wrapper.
- google/gemini-4-hydrogen$214$214Matched
Setup
- 1Wrap your AI SDK calls
Add these lines where you call the AI Gateway.
route.tsimport { init, trackGenerateText } from "@superpenguin/js";import { generateText } from "ai";init({ apiKey: process.env.SP_API_KEY });const trackedGenerateText = trackGenerateText(generateText, { provider: "vercel_ai_gateway", functionId: "support-reply",}); - 2Connect your Vercel billingOptional
In SuperPenguin, open Integrations > Vercel AI Gateway and add an AI Gateway API key. Billing docs →