Commet
  • Pricing
Log InTry out
Introduction

Quickstart

Learn

Manage PlansConfigure FeaturesConsumption ModelsAdd-onsCredit PacksOffersIntroductory OffersPromotional OffersPromo CodesPlan GroupsRegional and Market PricingOne-Time PaymentsTrial Periods

Resources

SDK ReferenceAPI VersioningError HandlingTestingCLI

Plugins

Better Auth
System status
DocumentationKnowledge BaseBuild with AIAPI ReferenceWebhooks

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.

Credit pack components

ComponentDescriptionExample
Pack NameCustomer-facing name"Starter Pack", "Power Pack"
CreditsNumber of credits in the pack100, 500, 2000
PriceHow 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

const { data } = await commet.creditPacks.list()
response = commet.credit_packs.list()
result, err := client.CreditPacks.List(ctx)
var creditPacks = commet.creditPacks().list();
$result = $commet->creditPacks->list();
curl https://commet.co/api/v1/credit-packs \
  -H "x-api-key: $COMMET_API_KEY"

Response:

{
  "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.

Related

  • Consumption Models — How credits-based billing works
  • Manage Plans — Create plans with consumption models
  • Customer Portal — Where customers purchase credit packs
  • Configure Features — Define credit costs per feature

How is this guide?

Add-ons

Offer optional features customers can activate on their subscriptions for an additional price.

Offers

Define reusable introductory and promotional pricing terms.

On this page

Credit pack components
Availability by subscription status
Create credit packs in the dashboard
List credit packs via SDK
Related