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

# Prepaid credits

Prepaid credits let customers pay upfront for a defined amount of usage. Each credit represents a unit of value in a chosen currency, which can then be spent on metered features. Prepaid balances are deducted in real time as usage happens, and customers can top up their balance at any time within configured rules (e.g., minimum or maximum purchase).

### Setting up a prepaid plan

1. Go to **Product Catalog > Plans**.
2. Click **+New plan**.
3. Select the product, enter the plan name, ID and optional descriton.
4. Click **Create**.
5. In the **Price** section, click **+Set**.
6. Set **Plan type** to **Paid**.
7. Click **Continue**.
8. Under **Billing model**, select **Prepaid**.
9. Click **Continue**.

#### Prepaid configuration

In the **Prepaid configuration** section, define how customers purchase and top up credits:

* **Currency**: choose the credit type (e.g., *AI Tokens (AIT)*).
* **Pricing model**: select the required top-up model, such as **Flat rate**.
* **Currency value**: define the rate for one credit (e.g., `1 AI Token = $1.00`).
* **Min, Max Rules** (optional): enable and set **Minimum** and **Maximum** purchase amounts (e.g., `250` to `8,000` credits).

#### Credit consumption (optional)

In the **Credit consumption** section, map how usage consumes credits:

1. Click **+Add**.
2. Select the metered feature (e.g., *AI Agent Email*).
3. Define the conversion (e.g., `1 email = 1 AI Token`).
4. Click **Add** to include additional feature mappings if needed.

<Note>
  Only **event-based meters** are currently supported for credit consumption mapping.
</Note>

5. Click **Set**.

#### Credit top-up (optional)

Configure whether customers can purchase additional credits beyond their prepaid balance:

* **Customer self-service:** Enable customers to top up their prepaid balance on demand through the [Credit top-up flow](./customer-credits).
* **Admin adjustments:** Admins can manually add or deduct credits from a subscription through the [Credit adjustment process](./customer-credits).
