Skip to main content
Lyceum uses a credit-based system. Pay only for the compute resources you actually use, with transparent pricing and real-time tracking.

How It Works

Pay As You Go

Only charged for actual execution time

Real-time Tracking

Monitor usage and costs live

No Hidden Fees

Transparent pricing, no surprises

Check Your Balance

  • Dashboard
  • API
View your current balance and usage at dashboard.lyceum.technology
1

Navigate to Billing

Click on “Billing” in the dashboard navigation
2

View Balance

See your current credits and recent usage
3

Purchase Credits

Click “Add Credits” to top up your balance

Purchase Credits

1

Create Checkout Session

curl -X POST https://api.lyceum.technology/api/v2/external/billing/checkout \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "credits_amount": 100,
    "success_url": "https://yourapp.com/success",
    "cancel_url": "https://yourapp.com/cancel"
  }'
2

Complete Payment

You’ll receive a Stripe checkout URL:
{
  "checkout_url": "https://checkout.stripe.com/...",
  "session_id": "cs_test_..."
}
3

Credits Added

Credits are automatically added to your account upon successful payment
All payments are securely processed through Stripe. Receipts are automatically generated.

Track Your Usage

View detailed execution history with costs:
curl -X GET https://api.lyceum.technology/api/v2/external/billing/history \
  -H "Authorization: Bearer <token>" \
  -G -d "limit=50" -d "offset=0"
Returns execution records with:
  • Execution ID and duration
  • Machine type used
  • Credits consumed
  • Timestamp
Get combined view of all billing events:
curl -X GET https://api.lyceum.technology/api/v2/external/billing/activities \
  -H "Authorization: Bearer <token>" \
  -G -d "limit=10" -d "offset=0"
Includes both executions and credit purchases.
The dashboard provides visual analytics:
  • Daily and monthly usage trends
  • Cost breakdown by execution type
  • Resource utilization patterns
  • Credit consumption forecasts

Cost Optimization

Smart Resource Selection

# Let the platform choose optimal resources
execution_config = {
    "execution_type": "auto",
    "timeout": 300
}
Use GPU only when needed for ML workloads

Batch Operations

# Combine multiple tasks
tasks = [task1, task2, task3]
for task in tasks:
    process(task)
# Single execution, lower cost
Group related operations together

Best Practices

1

Set Timeouts

Always set reasonable timeout limits to prevent runaway executions
2

Monitor Usage

Regularly check execution logs to understand resource consumption patterns
3

Choose Right Resources

Use CPU for general tasks, GPU only for parallel computing and ML
4

Clean Up Storage

Remove unnecessary files to optimize storage costs

Programmatic Integration

  • Python
  • JavaScript
import requests

class BillingManager:
    def __init__(self, token):
        self.token = token
        self.base_url = "https://api.lyceum.technology/api/v2/external"
    
    def check_credits(self):
        """Check current credit balance"""
        response = requests.get(
            f"{self.base_url}/billing/credits",
            headers={"Authorization": f"Bearer {self.token}"}
        )
        
        if response.status_code == 200:
            data = response.json()
            credits = data['available_credits']
            
            if credits < 10:
                print(f"⚠️ Low balance: {credits} credits")
            else:
                print(f"✓ Credits available: {credits}")
            
            return data
        return None
    
    def should_execute(self, min_credits=5):
        """Check if enough credits for execution"""
        data = self.check_credits()
        return data and data['available_credits'] >= min_credits

FAQ

Credits are consumed based on:
  • Machine type (CPU/GPU)
  • Execution duration
  • Storage usage
Check your account settings for credit expiration policies. Generally, credits don’t expire for active accounts.
More advanced budgeting tool will be added soon but are not available at this point.
Monitor your credit usage regularly. Set up low-balance alerts in the dashboard to avoid execution interruptions.

Support

Billing Support

Contact: [email protected]For billing inquiries and payment issues

Documentation

Visit our API Reference for detailed endpoint documentation