Skip to main content
Lyceum uses a credit-based system. Pay only for the compute resources you actually use.

Check Your Balance

Dashboard

View your current balance and usage at dashboard.lyceum.technology.

API

curl -X GET https://api.lyceum.technology/api/v2/external/billing/credits \
  -H "Authorization: Bearer YOUR_API_TOKEN"
Response:
{
  "available_credits": 125.50,
  "used_credits": 24.50,
  "remaining_credits": 101.00,
  "monthly_free_credits": 100.0,
  "purchased_credits": 25.50
}

Purchase Credits

1. Create Checkout Session

curl -X POST https://api.lyceum.technology/api/v2/external/billing/checkout \
  -H "Authorization: Bearer YOUR_API_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.

Track Your Usage

View detailed execution history with costs:
curl -X GET https://api.lyceum.technology/api/v2/external/billing/history \
  -H "Authorization: Bearer YOUR_API_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 YOUR_API_TOKEN" \
  -G -d "limit=10" -d "offset=0"
Includes both executions and credit purchases.

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.

Support

For billing inquiries, contact [email protected].