How Imperial Billing Works
Imperial uses a transparent, usage-based system with two key metrics:Storage
Total bytes stored in your account
Operations
Weighted count of API actions
Storage
Storage is measured in bytes and counts toward your tier’s limit.What Counts as Storage?
✅ Counted:- Uploaded images (compressed or original)
- Uploaded videos
- Video thumbnails
- Deleted files (instant reclamation)
- Failed uploads
- Temporary processing files
Storage Calculation
- 100 images × 500 KB each = 50 MB
- 10 videos × 20 MB each = 200 MB
- Total: 250 MB used
Check your current storage usage in the Dashboard Overview.
Reducing Storage Usage
- Auto-Compression
- Delete Old Files
- Video Optimization
Enable in Settings → Uploads
- High Quality (80): ~40% smaller
- Balanced (65): ~55% smaller
- Optimized (50): ~70% smaller
Operations
Operations measure your API activity with a weighted system that makes reads much cheaper than writes.Operation Classes
Class A Operations (Weight: 1.0)
Class A Operations (Weight: 1.0)
Heavy operations that modify or create resources.Counted Actions:
POST /images/upload- Upload fileDELETE /images/:id- Delete file
- Each action = 1.0 operation
- 10,000 uploads = 10,000 operations
Class B Operations (Weight: 0.1)
Class B Operations (Weight: 0.1)
Light operations that only read data.Counted Actions:
GET /v/:id- View/serve file via CDN- Public image/video views
- Each action = 0.1 operation
- 10,000 views = 1,000 operations
Operation Tracking
Every action is logged with:- Operation type (upload, delete, view)
- Class (A or B)
- Weight (1.0 or 0.1)
- Timestamp
- Resource ID
- API key used (Pro/Business only)
Pro and Business users can view detailed operation logs in the API Dashboard.
Real-World Examples
- Content Creator
- Small Website
- API Integration
- High-Traffic App
Monthly Activity:
- Upload 500 screenshots (500 Class A ops)
- Screenshots get 50,000 views (5,000 Class B ops)
- Delete 100 old files (100 Class A ops)
Monitoring Your Usage
Dashboard Overview
View your current usage at app.imperial.gay:- Storage: Progress bar showing GB used / GB limit
- Operations: Monthly count with reset date
- Charts: 7/30/90-day breakdowns
- Projections: Estimated usage by month end
API Response Headers
Every API response includes usage headers:Usage Alerts
Pro and Business users receive alerts at:- 50% of operation limit
- 80% of operation limit
- 90% of operation limit
- 100% of operation limit
Overages & Limits
What Happens When You Hit Limits?
- Storage Limit
- Operations Limit
When you reach your storage limit:❌ New uploads will fail with error:✅ Existing files remain accessible
✅ Views still work (don’t consume storage)Solutions:
- Enable auto-compression
- Delete old uploads
- Upgrade to higher tier
No Surprise Charges
Imperial never charges overages. You’re limited to your tier’s allocation, but you’ll never receive unexpected bills.
Best Practices
Optimize Storage
1
Enable Auto-Compression
Reduce image sizes by 40-70% with negligible quality loss
2
Clean Up Regularly
Delete unused files to reclaim storage instantly
3
Choose Efficient Formats
- WebP for images (best compression)
- MP4 (H.264) for videos
- Avoid BMP, TIFF, or uncompressed formats
Optimize Operations
1
Batch Uploads
Upload multiple files in one request instead of separate API calls
2
Cache Locally
Don’t re-upload files that haven’t changed
3
Leverage Views
Views are 10x cheaper than uploads. Link to files instead of re-uploading.
4
Monitor Usage
Check dashboard regularly to avoid hitting limits
Tier Limits Reference
Quick reference for all tiers:| Tier | Storage | Operations/mo | Class A Weight | Class B Weight | Price |
|---|---|---|---|---|---|
| Free | 1 GB | 10,000 | 1.0 | 0.1 | $0 |
| Starter | 5 GB | 100,000 | 1.0 | 0.1 | $2.49/mo |
| Pro | 10 GB | 1,000,000 | 1.0 | 0.1 | $6.99/mo |
| Business | 200 GB | 5,000,000 | 1.0 | 0.1 | $19.99/mo |
Need custom limits? Business tier customers can contact us for enterprise plans.
Frequently Asked Questions
When do operations reset?
When do operations reset?
Operations reset on your billing anniversary. For example, if you subscribed on the 15th, operations reset on the 15th of each month.Free tier resets on the 1st of each month.
Do failed uploads count as operations?
Do failed uploads count as operations?
No. Only successful operations count toward your limit.
Do deleted files free up storage immediately?
Do deleted files free up storage immediately?
Yes. Deleting a file instantly reclaims its storage space.
Can I see which files use the most storage?
Can I see which files use the most storage?
Yes. The dashboard sorts your uploads by file size. Pro/Business users get detailed analytics per file.
What counts as a 'view'?
What counts as a 'view'?
Every time someone accesses your file via the
/v/:id endpoint or CDN URL, it counts as 0.1 operations. Dashboard views don’t count.Can I buy additional storage without upgrading?
Can I buy additional storage without upgrading?
Not currently. Storage and operations are bundled per tier. Consider upgrading if you need more capacity.

