Credits
Overview
Section titled “Overview”CAVOS Agents uses a credit system denominated in USD. Credits are deducted per API request based on model pricing and token usage.
Balance Requirements
Section titled “Balance Requirements”- Minimum balance: $0.50 to make API requests
- Credits never expire
- Balance is shared across all API keys and agents
Top Up Credits
Section titled “Top Up Credits”Add credits via Stripe checkout:
- Navigate to Settings > Credits in the dashboard
- Enter the amount to add
- Complete payment via Stripe
- Credits are added instantly to your balance
Cost Calculation
Section titled “Cost Calculation”Each request cost is calculated as:
cost = (prompt_tokens × prompt_price / 1,000,000) + (completion_tokens × completion_price / 1,000,000)Where prompt_price and completion_price are the model’s per-million-token rates.
Transaction History
Section titled “Transaction History”Every credit change is recorded as a transaction:
| Type | Description |
|---|---|
PURCHASE | Stripe top-up |
USAGE | API/agent usage deduction |
REFUND | Credit refund |
ADJUSTMENT | Manual adjustment |
Each transaction records the amount, resulting balance, model used, and tokens consumed.
Agent Budget Limits
Section titled “Agent Budget Limits”Control per-agent spending with budget limits:
Daily Budget
Section titled “Daily Budget”Maximum USD an agent can spend per day. Resets at midnight UTC.
Monthly Budget
Section titled “Monthly Budget”Maximum USD an agent can spend per calendar month. Resets on the 1st.
Budget Check Flow
Section titled “Budget Check Flow”- Before execution, the system checks:
- Is the estimated cost within the daily budget?
- Is the estimated cost within the monthly budget?
- Does the user have sufficient credit balance?
- If any check fails, the execution is rejected with a reason:
daily_limit— Daily budget exceededmonthly_limit— Monthly budget exceededinsufficient_credits— Not enough credits
Setting Budget Limits
Section titled “Setting Budget Limits”Configure budgets in the agent settings:
{ "dailyBudget": 5.00, "monthlyBudget": 50.00}Set to null to remove a limit.
Budget Status
Section titled “Budget Status”Monitor agent spending:
| Field | Description |
|---|---|
dailyUsage | Amount spent today |
monthlyUsage | Amount spent this month |
dailyRemaining | Remaining daily budget |
monthlyRemaining | Remaining monthly budget |
totalCostIncurred | All-time total spend |