# Cloudflare R2
[[Cloudflare]] R2 is an S3-compatible object storage service with **zero egress fees**. Same API surface as Amazon S3 (sigv4, PUT/GET/multipart, presigned URLs), distributed across Cloudflare's network, but you only pay for storage and operations — not for bandwidth out.
The egress economics are the entire pitch. On AWS, S3 storage is cheap but bandwidth is the bill that hurts: pulling 10 TB out of S3 costs ~$900/month. R2 charges $0 for that same egress. For any workload that serves media, hosts datasets, or backs a CDN, R2 is the cheapest object store on the market by an order of magnitude.
## Why It Matters
R2 turns "host large files on the cloud" from a budgeting exercise into a non-issue. It pairs natively with [[Cloudflare Workers]] (binding-based access, no creds in code) and with [[Cloudflare Pages]] for asset offloading. AI workloads benefit especially: training datasets, model weights, embedding caches, generated artifacts.
## Common Use Cases
- **Static asset hosting** behind a CDN or [[Cloudflare Pages]]
- **Media storage** (images, video, audio) without egress fear
- **Dataset hosting** for ML workloads — public datasets, fine-tuning corpora
- **Backups** — snapshots, archives, log dumps
- **S3 migrations** — drop-in replacement via S3 API + Super Slurper migration tool
## Pricing Shape
- Storage: $0.015/GB-month
- Class A ops (writes): $4.50 per million
- Class B ops (reads): $0.36 per million
- **Egress: $0**
- 10 GB/month free tier
## References
- R2 home: https://www.cloudflare.com/developer-platform/products/r2/
- Documentation: https://developers.cloudflare.com/r2/
- Pricing: https://developers.cloudflare.com/r2/pricing/
## Related
- [[Cloudflare]]
- [[Cloudflare Workers]]
- [[Cloudflare Pages]]
- [[Cloudflare D1]]
- [[Cloudflare KV]]
- [[Wrangler]]