AI Credits
Manage your AI credit balance, purchase credit bundles, track monthly history, and control AI features for your organization.
Overview
TestKase AI features — including test case generation, the AI Agent, and AI-powered reports — consume credits from your organization's AI credit balance. Two pages cover this surface, each aimed at a different role:
| Page | Path | Audience | What it does |
|---|---|---|---|
| AI Credits | sidebar → AI Credits (/ai-privilege) | Every org member; owner can edit | Current balance, this month's usage, AI quality settings, per-call credit usage history |
| AI Credits (Admin) | Admin menu → AI Credits (/admin/ai-credits) | Org admins & owners | Everything above plus Monthly History (granted / consumed / expired totals per billing cycle) |
Both are driven by the same credit ledger.
How credits work
AI credits are an abstraction over raw AI tokens. Different AI models consume tokens at different rates, so credits provide a consistent unit for tracking and billing across all AI features.
- Every new organization receives 100 AI credits by default.
- Credits are consumed when any user in the organization uses an AI feature.
- Credits reset on the 1st of each month — any unused monthly allowance does not roll over.
- Credits purchased in a bundle are added to the balance and do not expire monthly.
AI Credits page layout
The org AI Credits page has three summary cards at the top:
- Enable AI Features — on/off toggle. Only the organization owner can flip this.
- Available Credits — remaining credits in the current period.
- This Month Usage — total credits consumed this month.
Below the cards, two collapsible sections (collapsed by default — click to expand):
- AI Quality Settings — pick a quality level per feature. See AI Quality Settings.
- Credit Usage History — paginated table of every individual AI call (date, user, use case, credits).
Screenshot (TODO): AI Credits page with the three cards and the two collapsible sections
Monthly History (Admin only)
On the Admin → AI Credits page, an additional Monthly History section is available. It shows per-month totals:
| Column | What it shows |
|---|---|
| Month | Month label (e.g., "Apr 2026"). |
| Granted | Credits added in the month — plan allowance + any bundle purchases. |
| Consumed | Credits spent in the month. |
| Expired | Unused monthly allowance that didn't carry over. |
| Utilization | Progress bar: consumed / granted — color-coded by burn rate. |
This view is useful for reconciling AI spend against a billing period or tracking trends across months.
Screenshot (TODO): Admin AI Credits page with Monthly History table expanded
AI Quality Settings
Each AI feature has an independent quality level. Pick based on the trade-off between speed, credits, and output quality.
| Level | Label (UI) | API value | Rough cost | Use when |
|---|---|---|---|---|
| Basic | Basic | cheap | Lowest | Quick iteration, bulk generation |
| Balanced | Balanced | medium | Moderate (default) | Everyday use |
| Premium | Premium | best | Highest | Complex specs, critical flows |
Applies independently to:
- AI Agent — the sidebar chat (
Ctrl+K). - Test Case Generation — the AI generate button in the test case editor.
Changes save on click and apply immediately to all users in the organization.
Start with Balanced for everyday use. Switch to Premium for test suites you want the AI to reason more carefully about, and to Basic for speed and volume.
Credit bundles
Purchase additional credits in one of four bundles:
| Bundle | Price | Credits | Rate | Savings |
|---|---|---|---|---|
| Starter | $10 | 1,000 | $1 = 100 credits | — |
| Professional | $50 | 5,500 | $1 = 110 credits | 10% (Popular) |
| Enterprise | $250 | 28,000 | $1 = 112 credits | 12% |
| Ultimate | $500 | 58,000 | $1 = 116 credits | 15% |
Beyond purchased bundles, extra credits are billed at $0.40 per credit.
Purchasing credits
Buying additional credits requires a Premium or Enterprise subscription. Free plan users must upgrade before purchasing bundles.
- Open AI Credits (sidebar).
- Click Buy Credits.
- Pick a bundle.
- Complete payment via Razorpay (UPI, cards, net banking, wallets, international).
- Credits are added to your balance immediately.
Enable or disable AI features
Use the Enable AI Features toggle (first card on the AI Credits page) to turn AI on or off for the entire org.
- Off — AI Agent won't open, AI generation buttons are disabled, AI reports stop refreshing. Zero credits consumed.
- On — AI features are available to all users according to their roles.
Existing AI-generated content (test cases, reports, conversations) is never deleted by flipping the toggle.
Only the organization owner can change this toggle.
Credit Usage History
Every individual AI call is logged:
| Column | Description |
|---|---|
| Date | When the call happened, shown in your local timezone. |
| User Name | Who made the call. |
| Use case | Which feature used the credit (AI Agent, Test Case Generation, etc.). |
| Credits | How many credits the call consumed. |
Use this to audit unusual spikes — e.g., investigate a user whose activity doesn't match their credit spend.
