Skip to main content

Credit Pools

PoolSourceBehavior
SubscriptionMonthly plan allocationResets on billing date
PurchasedOne-time purchasesNever expires, rolls over
Consumption order: Subscription credits first, then purchased credits.

Check Balance

Dashboard

View credits at dashboard.cuadra.aiBilling.

API

curl https://api.cuadra.ai/v1/usage \
  -H "Authorization: Bearer YOUR_TOKEN"
Response:
{
  "credits": {
    "used": 15000,
    "limit": 50000,
    "available": 35000,
    "purchasedBalance": 100000,
    "totalAvailable": 135000,
    "billingPeriod": "monthly",
    "periodStart": "2025-01-01T00:00:00Z",
    "periodEnd": "2025-01-31T23:59:59Z"
  },
  "storage": { "used": 524288000, "limit": 1073741824 },
  "plan": { "tier": "pro", "name": "Professional" }
}

Purchase Credits

Dashboard → BillingPurchase Credits. Credit packages are available for Pro and Enterprise plans. See the Dashboard for current pricing.
Purchased credits never expire. Use them anytime.

When Credits Run Out

API returns HTTP 402 Payment Required:
{
  "title": "Insufficient Credits",
  "status": 402,
  "detail": "Insufficient credits. Required: 75 credits. Available: 50 credits."
}
Recovery OptionAction
WaitSubscription resets monthly
PurchaseBuy credits instantly
UpgradeHigher tier = more monthly credits

Monitor Usage

curl "https://api.cuadra.ai/v1/usage?period=month" \
  -H "Authorization: Bearer YOUR_TOKEN"

Reduce Costs

StrategyImpact
Use smaller models for simple tasksSignificant savings
Set maxTokens limitCaps response length
Keep system prompts conciseFewer input tokens
Cache frequent responsesAvoid duplicate requests

FAQ

How are credits calculated?

Credits are based on token usage. The exact formula depends on the model and request type. Each Chat API response includes token counts in the usage field.

Do unused subscription credits roll over?

No. Subscription credits reset on your billing date. Purchased credits roll over indefinitely.

Can I get a refund for unused credits?

Purchased credits are non-refundable. Contact support@cuadra.ai for billing questions.

How do I set up low-balance alerts?

Dashboard → SettingsNotifications. Set thresholds for email alerts.