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 Compression is
applied before upload, so you only pay for the compressed size.
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 file - DELETE /images/:id - Delete file Operation Count: - Each
action = 1.0 operation - 10,000 uploads = 10,000 operationsClass B Operations (Weight: 0.1)
Class B Operations (Weight: 0.1)
Light operations that only read data. Counted Actions: - File views via CDN URLs -
Public image/video access Operation Count: - 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) Total: 5,600 operations ✅ Fits
in Starter tier (100K 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
Optimize Operations
Tier Limits Reference
Quick reference for all tiers:| Tier | Storage | Operations/mo | Class A Weight | Class B Weight | 30D Key Price |
|---|---|---|---|---|---|
| Free | 1 GB | 10,000 | 1.0 | 0.1 | $0 |
| Starter | 5 GB | 100,000 | 1.0 | 0.1 | $2.49 |
| Pro | 10 GB | 1,000,000 | 1.0 | 0.1 | $6.99 |
| Business | 200 GB | 5,000,000 | 1.0 | 0.1 | $16.99 |
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 CDN URLs, it counts as 0.1 operations. Views from the
dashboard are not counted to avoid inflating your usage.
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.
What's Imperial's uptime guarantee?
What's Imperial's uptime guarantee?
Free, Starter, and Pro tiers have a 99.9% uptime target (no SLA). Business tier includes a 99.99%
uptime SLA guarantee. Check our real-time status at status.imperial.gay
What's the typical API response time?
What's the typical API response time?
Imperial is optimized for speed with health checks under 2ms average response, file uploads
between 300-800ms for images (varies for videos), and CDN delivery under 50ms globally at 95th
percentile. Load tested at 100+ concurrent users with 0% error rate.
System Status
View Live Status
Real-time monitoring powered by BetterStack. Check API health, uptime history, and incident
reports.

