Skip to main content
AI companies pioneered usage-based pricing with tokens, credits, and compute-based billing. This model aligns cost with value: customers pay proportionally to their consumption.

Common AI Pricing Models

ModelHow It WorksBest ForExamples
Token-basedPrice per million input/output tokensLLM APIsOpenAI (2.5015/M),Anthropic(2.50-15/M), Anthropic (3-15/M)
Credit systemPre-purchased credits consumed by usagePredictable budgetingMany AI startups
Compute-basedPrice per GPU-hour or compute unitTraining, inferenceAWS, GCP, Replicate
Tiered + UsageBase subscription with usage included + overagesConsumer AI productsChatGPT Plus ($20 + limits)
Outcome-basedPrice per successful resultTask-specific AIPer document processed, per image generated

1

Create usage-based products

Navigate to ProductsAdd Product
  • Create “API Usage” as a metered product
  • Price per 1,000 or 1,000,000 tokens/units
  • Consider separate pricing for input vs. output tokens
2

Set up billable metrics

Navigate to Billable MetricsCreate Metric
  • Metric: “Input Tokens” (sum of input_tokens property)
  • Metric: “Output Tokens” (sum of output_tokens property)
  • Metric: “API Calls” (count of requests)
3

Implement credit system (optional)

Use Alguna’s credits/wallet feature:
  • Customers pre-purchase credits
  • Usage depletes credits in real-time
  • Auto top-up when balance is low
  • Overage billing when credits exhausted
4

Create tiered pricing for volume

Reward high-volume customers:
  • First 1M tokens: $3.00 per 1M
  • 1M - 10M tokens: $2.50 per 1M
  • 10M+ tokens: $2.00 per 1M
5

Set up real-time usage tracking

  • Ingest usage events via API
  • Provide customers with usage dashboards in portal
  • Configure alerts at 50%, 80%, 100% of limits

Billing Flow


Credit System vs. Post-Paid

ApproachProsConsBest For
Pre-paid creditsPredictable revenue, no collection riskFriction to start, unused creditsStartups, SMB customers
Post-paid usageEasy onboarding, pay for what you useCollection risk, bill shockEnterprise, established customers
Hybrid (committed use)Volume discounts, predictable minimumsRequires sales negotiationHigh-volume enterprise

Key Features to Configure

Billable Metrics

Define what usage events to track and how to aggregate them.

Credits & Wallets

Set up pre-paid credit systems with auto top-up.

Usage Metering

Ingest usage events and see real-time consumption.

Customer Portal

Let customers view their usage and manage billing.

API Reference

Ingest Events

Send usage events to Alguna.

Credit Grants API

Manage customer credit balances.

Webhooks

Get notified of billing events.

Customers API

Create and manage customer accounts.

Self-Serve (PLG)

Most AI companies start with self-serve checkout.

Developers

API integration for usage metering.

Hybrid Motion

Land self-serve, expand with sales for enterprise.

← Back to Quick Starts

See all quick start guides