How credits, allocations, and billing plans work

Billing & Credits

Vindex Ai Gateway uses a credit-based system to meter AI usage. This page explains how credits work, how they are allocated, and what happens when they run out.

How Credits Work

1 credit = 1,000 tokens of AI model usage (input + output combined). Different AI models consume credits at different rates — larger models cost more per token.
Your tenant account has three credit pools:
PoolPurpose
Main balance (
text
credits_balance
)
Your primary credit pool. Shared between channels and your assistant.
Assistant reserve (
text
assistant_reserve
)
Credits reserved exclusively for the tenant portal assistant. Channels cannot touch these.
Expiry credits (
text
expiry_credits_balance
)
Bonus credits from bundle purchases that expire at a set date. Consumed first.

Credit Consumption Order

When an AI request is made, credits are consumed in this order:
  1. Expiry credits (if active and not expired)
  2. Main balance (or assistant reserve, depending on the source)

Credit Allocation to Channels {#credit-allocation-to-channels}

Each channel you create has a spending cap called
text
credits_allocated
. This is a per-channel limit — not a reserved sub-pool.

How Channel Allocation Works {#how-channel-allocation-works}

text
Tenant main balance: 1,000 credits
├── Assistant reserve: 500 (assistant only)
└── Allocatable pool: 500 (channels can use)
    ├── Channel A: cap = 200, consumed = 150  ✓ Working
    ├── Channel B: cap = 300, consumed = 300  ✗ Blocked (cap reached)
    └── Unallocated: 0
  • text
    credits_allocated
    — the maximum credits this channel is allowed to consume
  • text
    credits_consumed
    — total credits this channel has used so far
  • When
    text
    consumed >= allocated
    , the channel's AI returns a 403 error to visitors
  • Credits are deducted from the tenant's shared balance, not from the channel's allocation specifically
  • The allocation is a ceiling, not a reservation — Channel A's unused credits do not transfer to Channel B

Allocating Credits

  1. Go to Portal → Credits (or click "Allocate Credits" in the dashboard)
  2. Adjust the Assistant Reserve if needed — this changes how many credits are reserved exclusively for the portal assistant
  3. Enter the
    text
    credits_allocated
    value for each channel
  4. Click Save Allocations
  5. The total across all channels cannot exceed your allocatable pool
Allocatable pool =
text
credits_balance
text
assistant_reserve
− already-allocated credits
Tip: Increasing the assistant reserve reduces the pool available for channels, and vice versa. Adjust based on your usage patterns.

Expiry Credits

If you purchase an expiry bundle (one-time credit purchase), those credits:
  • Have an expiration date shown in the allocation modal
  • Are consumed first before your main balance
  • Any unspent allocated credits from the expiry pool are lost when they expire
  • The allocation modal shows a warning banner when expiring credits are detected

Tenant Portal Assistant

The assistant in your portal uses a dedicated credit pool:
  • Expiry credits (if active) +
    text
    assistant_reserve
  • It cannot use credits from the channel allocatable pool
  • When the assistant's pool reaches 0 and you have no billing plan, the assistant becomes unavailable
This ensures your assistant stays functional even when all channel allocations are consumed.

What Happens When Credits Run Out

Channel Exhausts Its Allocation

  1. Channel's
    text
    credits_consumed
    reaches
    text
    credits_allocated
  2. Channel's AI assistant returns 403 with message: "This channel's AI assistant is currently unavailable due to reaching its allocated credit limit."
  3. To restore: Increase the channel's allocation from the Credits page, or purchase more credits

Tenant Assistant Exhausts Its Reserve

  1. text
    assistant_reserve
    reaches 0
  2. Assistant returns error: "Your AI assistant is currently unavailable. Please top up your credits."
  3. To restore: Purchase more credits or increase the assistant reserve (which reduces the channel pool)

Entire Tenant Balance Reaches Zero

  1. Both channels and assistant are blocked
  2. Portal access remains active — you can still manage settings, view usage, and purchase credits
  3. To restore: Purchase a plan or top up credits

Billing Plans

Billing plans provide ongoing credit access and additional features:
FeatureNo PlanWith Plan
CreditsOne-time purchase onlyMonthly credits included
OverageBlocked at 0Continues working, billed at cycle end
Overages chargedN/ACharged to stored card at billing cycle end

Overages

If you have an active subscription plan and your credits reach 0:
  • Your AI assistants continue working
  • Usage beyond your balance is tracked as
    text
    overage_credits
  • At the end of the billing cycle, overages are charged to your stored payment method
  • This prevents service interruption while keeping costs transparent

Lifecycle States

Your tenant account moves through these states:
StateConditionEffect
ActiveHas credits or a planFull access
EmptyNo plan + no creditsAI blocked, portal accessible
In GracePayment failed, within grace windowAI blocked, portal accessible
ExpiredGrace period expiredAI blocked, portal accessible
SuspendedAdmin actionAll access blocked

Low Balance Alerts

When your credit balance drops below 10% of your plan's included credits (or 10% of 1,000 if no plan), you receive a notification. Alerts are rate-limited to once per 24 hours.