> ## 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.

# MessageCost

[**@ai-billing/nextjs**](https://www.narev.ai/docs/ai-billing/reference/nextjs/typedoc/index.md)

***

[@ai-billing/nextjs](https://www.narev.ai/docs/ai-billing/reference/nextjs/typedoc/index.md) / [index](https://www.narev.ai/docs/ai-billing/reference/nextjs/typedoc/index/index) / MessageCost

# Interface: MessageCost

Defined in: [packages/nextjs/src/chat/useChat.ts:21](https://github.com/narevai/ai-billing/blob/main/packages/nextjs/src/chat/useChat.ts#L21)

## Properties

### amount

> **amount**: `number`

Defined in: [packages/nextjs/src/chat/useChat.ts:22](https://github.com/narevai/ai-billing/blob/main/packages/nextjs/src/chat/useChat.ts#L22)

***

### currency

> **currency**: `string`

Defined in: [packages/nextjs/src/chat/useChat.ts:23](https://github.com/narevai/ai-billing/blob/main/packages/nextjs/src/chat/useChat.ts#L23)


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