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

Function: createAnthropicWithBilling()

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

Parameters

modelId

string The Anthropic model ID (e.g. "claude-sonnet-4-5").

Returns

LanguageModel
Last modified on October 29, 2026