AI Privilege & Quality Settings
Enable AI for your organization and tune quality levels per feature.
AI Privilege & Quality Settings
The AI Credits page (/ai-privilege — linked from the sidebar as "AI Credits") is the control panel for AI features across your organization. From one page you can:
- Toggle AI features on or off for the whole org.
- See your available credits and this month's usage at a glance.
- Pick an AI quality level per feature (AI Agent vs. Test Case Generation).
- Browse a credit usage history of every AI call.
Who can access this page
Every org member can view the page. Only the organization owner can change the Enable AI toggle and the per-feature quality levels. Regular members see the settings in read-only mode.
Page layout
At the top of the page, three cards summarize status:
| Card | What it shows |
|---|---|
| Enable AI Features | On/off toggle. Disabling it stops AI calls across the org — AI Agent, AI test case generation, and AI reports. |
| Available Credits | Remaining AI credits for the current month. |
| This Month Usage | Credits consumed this month across all AI features. |
Below the cards, two collapsible sections:
- AI Quality Settings — per-feature quality level (covered below).
- Credit Usage History — paginated table of every AI call, who ran it, which feature, and credits consumed.
Screenshot (TODO): AI Credits page with the three cards + collapsible sections
Enable AI Features
Flip this toggle off if you want to temporarily disable all AI calls — for example, during a billing review or while training a new team. Effects:
- AI Agent won't open.
- AI test case generation button is disabled.
- AI reports stop refreshing.
Existing data (previously generated test cases, past AI agent conversations) is unaffected.
AI Quality Settings
Each AI feature has an independent quality level. Pick based on the trade-off between speed, cost, and output quality.
| Level | Speed | Credits per call | Use when |
|---|---|---|---|
Basic (cheap) | Fastest | Least | Quick iteration, bulk generation of straightforward cases |
Balanced (medium) | Default | Moderate | Everyday use — sensible default for most projects |
Premium (best) | Slowest | Most | Complex specs, critical flows, when you want the best reasoning |
AI Agent level
Applies to the conversational AI Agent — sidebar chat (Ctrl+K). See AI Agent.
Test Case Generation level
Applies to the AI "Generate Test Cases" action in the test case editor. See Test Generation.
Changing a level
Click the level button (Basic / Balanced / Premium) for the feature you want to change. The new level saves immediately and a toast confirms; failures revert to the prior level.
Credit Usage History
Each row in the history table shows:
- Date — when the call happened, in your local timezone.
- User Name — who triggered the AI call.
- Use case — which feature used credits (e.g., "AI Agent", "Test Case Generation").
- Credits — how many credits the call consumed.
Use this to audit unusual spikes — for example, if your credit balance drops faster than expected, check the history for unfamiliar usage.
Relationship to AI Credits (admin)
This page is for the organization as a whole. For monthly granted / consumed / expired totals across billing cycles, see the admin-only page at /admin/ai-credits, documented in AI Credits (org billing).
