clarification about r2 pricing
hello, can someone verify this interpretation of the free tier in https://developers.cloudflare.com/r2/pricing/
in a given month, using only the free tier, i can:
- upload 10gb or less of objects using fewer than 1 million class a operations
- access data using arbitrarily many s3 api requests (e.g. through a presigned url)
- publish the bucket to a custom domain’s url and access data through arbitrarily many http requests
- access data by making arbitrarily many class a operation equivalent calls from a worker (e.g. R2Bucket.list)
Cloudflare Docs
Pricing · Cloudflare R2 docs
R2 charges based on the total volume of data stored, along with two classes of operations on that data:
4 Replies
upload 10gb or less of objects using fewer than 1 million class a operationsStorage is billed in peak amount daily, so if you had 20 gb for 15 days and 0 for the other 15 days, would still fall exactly at/under 10 gb-month
access data using arbitrarily many s3 api requests (e.g. through a presigned url)Those take up Class A and Class B ops, presigned or not https://developers.cloudflare.com/r2/pricing/#class-a-operations
publish the bucket to a custom domain’s url and access data through arbitrarily many http requestsClass Bs/GetObject unless cached
access data by making arbitrarily many class a operation equivalent calls from a worker (e.g. R2Bucket.list)Class A/Class B depending on op
@Chaika so to clarify, the last line - "Egress (data transfer to internet) - Free" means that there are no additional costs beyond what's listed above
and within the limitations of the operations above
so if i've made 10m class b operations, i will not be able to make another without paying, since while the data transfer would be free, the operation to carry that out would not
It means Cloudflare isn't charging for data transfer out to the Internet. You pay for Ops and Storage. Infrequent Access has its own pricing too
so if i've made 10m class b operations, i will not be able to make another without paying, since while the data transfer would be free, the operation to carry that out would notYea, still have to pay for ops. Worth nothing though 1) R2 Custom Domain Cache Hits don't cost you a class B 2) You're billed in increments of a million. So if you use 10,000,001 requests, you'd be billed for 11 million of them (0.36 cents)
gotcha thanks