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

# FetchTopUpConfig

[**@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) / [server](https://www.narev.ai/docs/ai-billing/reference/nextjs/typedoc/server/index) / fetchTopUpConfig

# Function: fetchTopUpConfig()

> **fetchTopUpConfig**(): `Promise`\<`TopUpConfig`>

Defined in: [packages/nextjs/src/polar/fetchTopUpConfig.ts:11](https://github.com/narevai/ai-billing/blob/main/packages/nextjs/src/polar/fetchTopUpConfig.ts#L11)

Fetches available top-up packages and optional tax behavior from Narev.

## Returns

`Promise`\<`TopUpConfig`>


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