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

# Credit Packs

> Configure credit packages that customers can purchase from the Commet Customer Portal.

Credit Packs are additional credit packages customers can purchase when they run out of included plan credits. Only available for plans using the **Credits** [consumption model](https://commet.co/docs/consumption-models.md).

## Credit pack components

| Component | Description | Example |
| - | - | - |
| **Pack Name** | Customer-facing name | "Starter Pack", "Power Pack" |
| **Credits** | Number of credits in the pack | 100, 500, 2000 |
| **Price** | How much the pack costs | $10.00, $40.00 |

## Availability by subscription status

Credit packs can be purchased on any subscription with a payment method — including during a trial and on free plans. Free plan customers are prompted to enter a payment method on their first purchase.

## Create credit packs in the dashboard

Go to **Credit Packs** and click **Create Credit Pack**. Pack names must be unique within your organization. Packs are available to all credits-based plans.

## List credit packs via SDK

**TypeScript**

```typescript theme={null}
const { data } = await commet.creditPacks.list()
```

**Python**

```python theme={null}
response = commet.credit_packs.list()
```

**Go**

```go theme={null}
result, err := client.CreditPacks.List(ctx)
```

**Java**

```java theme={null}
var creditPacks = commet.creditPacks().list();
```

**PHP**

```php theme={null}
$result = $commet->creditPacks->list();
```

**cURL**

```bash theme={null}
curl https://commet.co/api/v1/credit-packs \
  -H "x-api-key: $COMMET_API_KEY"
```

**Response:**

```json theme={null}
{
  "success": true,
  "data": [
    {
      "id": "cpk_abc123",
      "name": "Starter Pack",
      "description": "100 credits for light usage",
      "credits": 100,
      "price": 1000,
      "currency": "usd"
    }
  ]
}
```

The `price` field is in **cents** (1000 = \$10.00). Prices are always in USD.


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