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

Function: createGoogleWithBilling()

createGoogleWithBilling(modelId): LanguageModel
Defined in: packages/nextjs/src/wrapped.ts:77 Returns a Google Generative AI language model wrapped with Narev pricing and Polar billing.

Parameters

modelId

string The Google model ID (e.g. "gemini-2.0-flash").

Returns

LanguageModel
Last modified on October 29, 2026