Credits & Budget Management
Three-layer credit system for managing API costs — platform credits, organization pools, and project budgets.
Credits & Budget Management
AEO Optima uses a three-layer credit system to manage API costs transparently. Credits flow from the platform through organizations to individual projects.
Credit Architecture
| Layer | Who Manages | What It Controls |
|---|---|---|
| Platform Balance | Platform Owner (T0) | Total OpenRouter credit pool shared across all organizations |
| Organization Pool | Platform Owner allocates | Credits available to the organization for distribution across projects |
| Project Budget | Organization Admin | Per-project allocation from the org pool — soft limit tracked in the application |
How Credits Flow
- Platform Owner loads credits via OpenRouter (the LLM API gateway)
- Platform Owner allocates a portion to each customer organization
- Organization Admin distributes their org pool across projects as budgets
- Snapshot captures deduct credits atomically as they consume API tokens
- Budget advisor monitors actual usage and recommends rebalancing
Budget Advisor
The budget advisor analyzes actual 7-day rolling daily cost (not estimates) and classifies each project:
- Critical — Less than 7 days of runway remaining
- Warning — Less than 14 days remaining
- Healthy — Sufficient budget for current usage patterns
- Idle — Budget allocated but no recent captures
Based on these classifications, the advisor generates smart recommendations:
- Transfer — Move budget from idle projects to starving ones
- Increase — Use unallocated org pool for underfunded projects
- Request Credits — Org pool exhausted, request more from platform owner
Onboarding Bonus
New organizations that complete their setup receive a one-time $1 onboarding credit and an auto-provisioned OpenRouter API key. Eligibility requires:
- A proper organization name (not auto-generated)
- At least 1 project created
- At least 5 prompts configured
Credit Requests
Organization admins can request additional credits:
- Navigate to Settings → Organization → Credits
- Enter the amount needed and a brief reason
- The Platform Owner reviews the request in the Platform Cockpit
- On approval, credits are added automatically and the org's OpenRouter key limit is synced
Where to Check Credits
- Header widget — Balance and runway shown next to the notifications bell
- Dashboard — Credit health alert appears when runway drops below 14 days
- Settings → Organization — Full breakdown with per-project budgets, usage history, and the budget advisor
Budget Alerts
The system runs proactive budget checks every 6 hours:
- Org pool low — Less than 20% of allocated credits remaining
- Project exhausted — Project budget fully consumed
- Project running low — Less than 14 days remaining at current burn rate
- Platform insufficient — Estimated monthly cost exceeds platform balance
Cost Estimation
Each project's estimated monthly cost is calculated from:
The average cost per snapshot is computed from actual 7-day data for the project, falling back to platform-wide averages when project data is insufficient.
API Key Management
Each organization can have an auto-provisioned OpenRouter sub-key with a credit limit matching their allocation. The key lifecycle:
- Created when platform owner provisions the organization
- Limit synced whenever credits are added or budgets change
- Disabled if the organization is paused
- Deleted if the organization is removed
Organizations can also bring their own API keys (BYOK) which bypass the credit system entirely.