> ## Documentation Index
> Fetch the complete documentation index at: https://docs.imperial.gay/llms.txt
> Use this file to discover all available pages before exploring further.

# Zero Egress Fees

> Learn how Imperial provides unlimited bandwidth with no egress costs

## What Are Egress Fees?

Egress fees are charges that cloud providers impose when data leaves their network. Traditional services like AWS S3, Google Cloud Storage, and Azure charge you every time someone views or downloads your files.

### Traditional Storage Costs

| Provider     | Storage Cost           | Egress Cost                 |
| ------------ | ---------------------- | --------------------------- |
| AWS S3       | \$0.023/GB             | **\$0.09/GB** (first 10TB)  |
| Google Cloud | \$0.020/GB             | **\$0.12/GB** (first 1TB)   |
| Azure Blob   | \$0.018/GB             | **\$0.087/GB** (first 10TB) |
| **Imperial** | **Subscription based** | **\$0.00** ✨                |

<Warning>
  With traditional providers, a single viral image (1GB of traffic) could cost **\$90-120 in egress
  fees alone**!
</Warning>

## How Imperial Eliminates Egress Fees

Imperial uses **Cloudflare R2** as our storage backend, which was specifically designed to eliminate egress fees and compete with traditional cloud storage providers.

### The Cloudflare R2 Advantage

<Steps>
  <Step title="Zero Egress Charges">
    Cloudflare R2 doesn't charge for data transfer out. You only pay for storage and operations.
  </Step>

  <Step title="Global CDN Included">
    Your files are automatically distributed across Cloudflare's global network at no extra cost.
  </Step>

  <Step title="S3-Compatible API">
    R2 is compatible with Amazon S3's API, ensuring reliability and performance.
  </Step>
</Steps>

## Real-World Cost Comparison

Let's say you host 100 images (500MB total) that get 1TB of traffic per month:

<Tabs>
  <Tab title="AWS S3">
    **Monthly Cost:** - Storage: 0.5GB × $0.023 = $0.01 - Egress: 1TB × $90 = **$90.00\*\* - **Total:
    \$90.01/month** 💸
  </Tab>

  <Tab title="Google Cloud">
    **Monthly Cost:** - Storage: 0.5GB × $0.020 = $0.01 - Egress: 1TB × $120 = **$120.00\*\* -
    **Total: \$120.01/month** 💸
  </Tab>

  <Tab title="Imperial (Starter 30D Key)">
    **Monthly Cost:** - Storage: 5GB included - Egress: Unlimited (0TB, 10TB, 100TB - doesn't
    matter) - **Total: \$2.49 per 30 days** ✨
  </Tab>
</Tabs>

## What This Means For You

<CardGroup cols={2}>
  <Card title="Predictable Costs" icon="calculator">
    Pay a fixed monthly fee based on storage, not unpredictable traffic costs.
  </Card>

  <Card title="Scale Freely" icon="arrow-up-right">
    Your content can go viral without worrying about massive bandwidth bills.
  </Card>

  <Card title="Better Performance" icon="gauge-high">
    Cloudflare's global network ensures fast delivery worldwide.
  </Card>

  <Card title="Sleep Better" icon="bed">
    No surprise bills at the end of the month from unexpected traffic spikes.
  </Card>
</CardGroup>

## Technical Details

### How R2 Works

Cloudflare R2 leverages their existing CDN infrastructure to provide zero-egress storage:

1. **Storage Layer**: Your files are stored in R2's distributed object storage
2. **Cache Layer**: Popular files are cached at Cloudflare edge locations worldwide
3. **Delivery**: Requests are served from the nearest edge location
4. **No Egress Charges**: Cloudflare doesn't charge for bandwidth because it's already part of their CDN network

### Network Architecture

```
User Request
    ↓
Cloudflare Edge (250+ locations)
    ↓
Cache Hit? → Instant delivery
    ↓
Cache Miss? → Fetch from R2 → Cache → Deliver
    ↓
All bandwidth: $0.00
```

## Cloudflare's Business Model

You might wonder: "How does Cloudflare afford this?"

<Info>
  Cloudflare makes money from their core CDN and security services. R2 is positioned as a
  competitive offering to win customers from AWS/Google/Azure. By eliminating egress fees, they make
  it easy for businesses to switch and stay within their ecosystem.
</Info>

## Operations Pricing

While egress is free, Imperial does count **operations** (uploads, downloads, API calls) as part of your subscription:

| Tier     | Monthly Operations | Cost per 1M extra |
| -------- | ------------------ | ----------------- |
| Starter  | 100,000            | \$0.50            |
| Pro      | 1,000,000          | \$0.40            |
| Business | 5,000,000          | \$0.30            |

<Tip>
  Operations are significantly cheaper than traditional egress fees. Even if you exceed your limit,
  you're still paying pennies instead of dollars per GB.
</Tip>

## Migration Benefits

If you're currently using traditional storage:

<Steps>
  <Step title="Calculate Current Egress Costs">
    Check your AWS/GCP/Azure bills for data transfer charges
  </Step>

  <Step title="Compare with Imperial">Most users save 90-95% on total storage costs</Step>
  <Step title="Easy Migration">Use our API to programmatically upload your existing files</Step>
  <Step title="Update URLs">Simply update your CDN URLs to point to Imperial</Step>
</Steps>

## FAQ

<AccordionGroup>
  <Accordion title="Is there really no catch?">
    No catch! Cloudflare R2 genuinely doesn't charge for egress. Imperial passes this benefit
    directly to you.
  </Accordion>

  <Accordion title="What about operations?">
    Operations (Class A: uploads/deletes, Class B: views) count toward your monthly limit, but are
    priced fairly and predictably.
  </Accordion>

  <Accordion title="Can my traffic really be unlimited?">
    Yes! Whether you serve 1GB or 1PB of bandwidth per month, you pay the same subscription price.
  </Accordion>

  <Accordion title="How is this sustainable?">
    Cloudflare's infrastructure makes it cost-effective for them, and we pass the savings to you.
  </Accordion>
</AccordionGroup>

## Get Started

Ready to eliminate egress fees from your infrastructure?

<Card title="Start Using Imperial" icon="rocket" href="/quickstart">
  Create your account and start uploading in under 5 minutes
</Card>
