Skip to main content
@ai-billing/core
@ai-billing/core / createV3BillingMiddleware

Function: createV3BillingMiddleware()

createV3BillingMiddleware<TTags>(options): LanguageModelV3Middleware
Defined in: packages/core/src/ai-sdk/language-model-middleware/v3/language-model-v3-base-billing-middleware.ts:49 Creates a billing middleware for the Language Model V3 API.

Type Parameters

TTags

TTags extends JSONObject = JSONObject The shape of the tags object, extending DefaultTags.

Parameters

options

BillingMiddlewareV3Options<TTags> Billing options; see BillingMiddlewareV3Options.

Returns

LanguageModelV3Middleware The billing middleware.
Last modified on October 29, 2026