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

Function: createXaiWithBilling()

createXaiWithBilling(modelId): LanguageModel
Defined in: packages/nextjs/src/wrapped.ts:118 Returns an xAI language model wrapped with Narev pricing and Polar billing.

Parameters

modelId

string The xAI model ID (e.g. "grok-3").

Returns

LanguageModel
Last modified on October 29, 2026