Skip to main content
@ai-billing/nextjs
@ai-billing/nextjs / server / createGatewayWithBilling

Function: createGatewayWithBilling()

createGatewayWithBilling(modelId): LanguageModel
Defined in: packages/nextjs/src/wrapped.ts:176 Returns a Vercel AI Gateway language model wrapped with Polar billing.

Parameters

modelId

string The gateway model ID (e.g. "openai/gpt-4o").

Returns

LanguageModel
Last modified on October 29, 2026