> ## Documentation Index
> Fetch the complete documentation index at: https://www.narev.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Typedoc

**@ai-billing/core**

***

# @ai-billing/core

## Classes

* [AIBillingError](https://www.narev.ai/docs/ai-billing/reference/core/typedoc/classes/AIBillingError.md)
* [AiBillingCostError](https://www.narev.ai/docs/ai-billing/reference/core/typedoc/classes/AiBillingCostError.md)
* [AiBillingDestinationError](https://www.narev.ai/docs/ai-billing/reference/core/typedoc/classes/AiBillingDestinationError.md)
* [AiBillingExtractorError](https://www.narev.ai/docs/ai-billing/reference/core/typedoc/classes/AiBillingExtractorError.md)

## Interfaces

* [BuildV3EventPayload](https://www.narev.ai/docs/ai-billing/reference/core/typedoc/interfaces/BuildV3EventPayload.md)
* [BillingMiddlewareV3Options](https://www.narev.ai/docs/ai-billing/reference/core/typedoc/interfaces/BillingMiddlewareV3Options.md)
* [BuildV4EventPayload](https://www.narev.ai/docs/ai-billing/reference/core/typedoc/interfaces/BuildV4EventPayload.md)
* [BillingMiddlewareV4Options](https://www.narev.ai/docs/ai-billing/reference/core/typedoc/interfaces/BillingMiddlewareV4Options.md)
* [ModelPricing](https://www.narev.ai/docs/ai-billing/reference/core/typedoc/interfaces/ModelPricing.md)

## Functions

* [createV3BillingMiddleware](https://www.narev.ai/docs/ai-billing/reference/core/typedoc/functions/createV3BillingMiddleware.md)
* [createV4BillingMiddleware](https://www.narev.ai/docs/ai-billing/reference/core/typedoc/functions/createV4BillingMiddleware.md)
* [createDestination](https://www.narev.ai/docs/ai-billing/reference/core/typedoc/functions/createDestination.md)
* [consoleDestination](https://www.narev.ai/docs/ai-billing/reference/core/typedoc/functions/consoleDestination.md)
* [toJSONObject](https://www.narev.ai/docs/ai-billing/reference/core/typedoc/functions/toJSONObject.md)
* [buildMeterMetadata](https://www.narev.ai/docs/ai-billing/reference/core/typedoc/functions/buildMeterMetadata.md)
* [createBasePriceResolver](https://www.narev.ai/docs/ai-billing/reference/core/typedoc/functions/createBasePriceResolver.md)
* [createObjectPriceResolver](https://www.narev.ai/docs/ai-billing/reference/core/typedoc/functions/createObjectPriceResolver.md)
* [toUsage](https://www.narev.ai/docs/ai-billing/reference/core/typedoc/functions/toUsage.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.