Skip to main content
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

ModelInput (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
* Prices shown are Elyxir rates and subject to change. Check the Model Hub for current pricing.

Viewing Balance

In Dashboard

  1. Go to Settings > Billing
  2. View credit balance
  3. See usage this period

In Analytics

  1. Go to Analytics > Costs
  2. View credit consumption over time
  3. See breakdown by model

Purchasing Credits

Buy Credits

  1. Go to Settings > Billing > Credits
  2. Click Buy Credits
  3. Select amount
  4. Complete payment

Credit Packages

PackageCreditsPrice
Starter$25$25
Standard$100$100
Growth$500$500
EnterpriseCustomCustom

Credit Management

Low Balance Alerts

Set up alerts:

  1. Go to Settings > Billing > Alerts
  2. Set threshold (e.g., $10 remaining)
  3. Enable email notifications

Auto-Recharge

Enable automatic credit purchases:

  1. Go to Settings > Billing
  2. Enable Auto-Recharge
  3. 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:

  1. Go to Settings > Billing
  2. Set monthly budget
  3. Configure alerts or hard stops

Monitor Usage

Track where credits go:

  1. Review Analytics regularly
  2. Identify high-cost operations
  3. Optimize prompts and model selection

Credit vs Subscription

AspectCreditsSubscription
BillingPay per useFixed monthly
FlexibilityScale up/downConsistent
PredictabilityVariablePredictable
Best forVariable usageSteady usage
Credits | elyxir