Credit model
a21e uses a simple credit system: 1 credit = 1 enhancement (one prompt compilation and execution). Your balance is split into two buckets:| Type | Source | Behavior |
|---|---|---|
| Subscription | Monthly plan | Resets on your renewal date |
| Add-on | Credit packs, admin grants | Never expires, never resets |
Checking your balance
balance field is your total available credits (subscription + add-on). mode indicates whether you’re on managed (a21e-hosted LLM) or BYOK (your own provider key).
Managed vs. BYOK
| Managed | BYOK | |
|---|---|---|
| Credit cost | 1 credit per enhancement | 1 credit per enhancement |
| LLM cost | Included in credit | Billed by your provider |
| Setup | Nothing extra | Add provider key in settings |
Usage tracking
Summary
Get a high-level overview of your usage over a time period:Daily breakdown
Run history
List individual runs with pagination:CSV export
Export your run history as a CSV file for accounting or analysis:Credit ledger
The ledger provides a full audit trail of every credit transaction.List transactions
entry_type field:
| Entry type | Meaning |
|---|---|
debit | Credit consumed by an enhancement |
refund | Credits returned (e.g. failed execution) |
grant | Credits added by admin or credit pack |
pinned_hit | Prompt pinning cache hit (no credit charged) |
dedup_hit | Deduplication cache hit (no credit charged) |
Period summary
Get aggregated credit activity over a time window (up to 90 days):Insufficient credits
When your balance reaches zero, API requests return a402 error:
Organization credits
Organizations have a separate credit pool shared across all members:- Org admins can purchase credits and set per-member spending limits
- Member usage is tracked individually within the org pool
- When a member’s personal credits are exhausted, org credits are used (if allowed by policy)