Docs
Credits
Credits
Understand the Elyxir credit system for API usage.
Credits are the currency for API usage in Elyxir. Each API request consumes credits based on the model and tokens used.
How Credits Work
Credit Consumption
Credits are consumed based on:
- Model: More capable models cost more
- Input tokens: Tokens in your prompt
- Output tokens: Tokens in the response
Cost Calculation
Cost = (Input Tokens × Input Rate) + (Output Tokens × Output Rate)
Example
Using GPT-4o-mini:
Input: 100 tokens × $0.00000018/token = $0.000018
Output: 50 tokens × $0.00000072/token = $0.000036
Total: $0.000054 credits
Credit Rates by Model
| Model | Input (per 1M) | Output (per 1M) |
|---|---|---|
| GPT-5.2 | $2.10 | $16.80 |
| GPT-5.1 | $1.50 | $12.00 |
| GPT-5-mini | $0.30 | $2.40 |
| GPT-5-nano | $0.06 | $0.48 |
| GPT-4o | $3.00 | $12.00 |
| GPT-4o-mini | $0.18 | $0.72 |
| GPT-4.1 | $2.40 | $9.60 |
| GPT-4.1-mini | $0.48 | $1.92 |
| claude-sonnet-4.6 | $3.60 | $18.00 |
| claude-opus-4.6 | $6.00 | $30.00 |
| claude-sonnet-4.5 | $3.60 | $18.00 |
| claude-opus-4.5 | $6.00 | $30.00 |
| claude-haiku-4.5 | $1.20 | $6.00 |
| Gemini 3.1 Pro Preview | $2.40 | $14.40 |
| Gemini 3 Pro Preview | $2.40 | $14.40 |
| Gemini 3 Flash | $0.60 | $3.60 |
| Gemini 2.5 Pro | $1.50 | $12.00 |
| Gemini 2.5 Flash | $0.36 | $3.00 |
| Grok 4 | $3.60 | $18.00 |
| Grok 4 Fast | $0.24 | $0.60 |
Viewing Balance
In Dashboard
- Go to Settings > Billing
- View credit balance
- See usage this period
In Analytics
- Go to Analytics > Costs
- View credit consumption over time
- See breakdown by model
Purchasing Credits
Buy Credits
- Go to Settings > Billing > Credits
- Click Buy Credits
- Select amount
- Complete payment
Credit Packages
| Package | Credits | Price |
|---|---|---|
| Starter | $25 | $25 |
| Standard | $100 | $100 |
| Growth | $500 | $500 |
| Enterprise | Custom | Custom |
Credit Management
Low Balance Alerts
Set up alerts:
- Go to Settings > Billing > Alerts
- Set threshold (e.g., $10 remaining)
- Enable email notifications
Auto-Recharge
Enable automatic credit purchases:
- Go to Settings > Billing
- Enable Auto-Recharge
- Set threshold and amount
Credit Policy
Expiration
- Credits do not expire
- Balance carries forward indefinitely
Refunds
- Credits are non-refundable
- Unused credits remain in your account
- Contact support for billing issues
Transfer
- Credits cannot be transferred between organizations
- Credits stay with the organization
Optimizing Credit Usage
Use Alvin Routing
Alvin automatically routes to cost-effective models:
- Simple queries → cheaper models
- Complex tasks → capable models
- Typical savings: 30-50%
Set Budget Limits
Prevent overspending:
- Go to Settings > Billing
- Set monthly budget
- Configure alerts or hard stops
Monitor Usage
Track where credits go:
- Review Analytics regularly
- Identify high-cost operations
- Optimize prompts and model selection
Credit vs Subscription
| Aspect | Credits | Subscription |
|---|---|---|
| Billing | Pay per use | Fixed monthly |
| Flexibility | Scale up/down | Consistent |
| Predictability | Variable | Predictable |
| Best for | Variable usage | Steady usage |
Related
- Billing Overview - Billing management
- Plans - Subscription plans
- Cost Dashboard - Track spending