去年9月份cloudflare推出了r2存储内测,现在已正式开放测试,主打免流量传输费用和s3兼容API。只按请求数量和存储容量收费,当其他家还在计费流量时土豪CF又一次站在了对象存储的前沿说明界面。
收费如下:
Pricing
R2 charges based on the total volume of data stored, along with two classes of operations on that data:
- Class A operations which are more expensive and tend to mutate state.
- Class B operations which tend to read existing state.
There are no charges for egress bandwidth.
All included usage is on a monthly basis.
[](https://developers.cloudflare.com/r2/platform/pricing/#r2-pricing)R2 pricing
Free | Paid - Rates | |
---|---|---|
Storage | 10 GB / month | $0.015 / GB-month |
Class A Operations | 1,000,000 requests / month | $4.50 / million requests |
Class B Operations | 10,000,000 requests / month | $0.36 / million requests |
[](https://developers.cloudflare.com/r2/platform/pricing/#storage-usage)Storage usage
Storage is billed using gigabyte-month (GB-month) as the billing metric. A GB-month is calculated by recording total bytes stored for the duration of the month.
For example:
- Storing 1 GB for 30 days will be charged as 1 GB-month.
- Storing 2 GB for 15 days will be charged as 1 GB-month.
[](https://developers.cloudflare.com/r2/platform/pricing/#class-a-operations)Class A operations
Class A Operations include ListBuckets
, PutBucket
, ListObjects
, PutObject
, CopyObject
, CompleteMultipartUpload
, CreateMultipartUpload
, UploadPart
, and UploadPartCopy
.
[](https://developers.cloudflare.com/r2/platform/pricing/#class-b-operations)Class B operations
Class B Operations include HeadBucket
, HeadObject
, and GetObject
.
[](https://developers.cloudflare.com/r2/platform/pricing/#free-operations)Free operations
Free operations include DeleteObject
, DeleteBucket
and DeleteMultipartUpload
.
[](https://developers.cloudflare.com/r2/platform/pricing/#r2-billing-examples)R2 billing examples
[](https://developers.cloudflare.com/r2/platform/pricing/#example-1)Example 1
If a user writes 1,000 objects in R2 for 1 month and each object is 1 GB in size and requested 1,000 times per month, the estimated cost for the month would be:
Usage | Free Tier | Billable Quantity | Price | |
---|---|---|---|---|
Class B Operations | (1,000 objects) * (1,000 reads per object) | 10,000,000 | 0 | $0.00 |
Class A Operations | (1,000 objects) * (1 write per object) | 1,000,000 | 0 | $0.00 |
Storage | (1,000 objects) * (1GB per object) | 10 GB-months | 990 GB-months | $14.85 |
TOTAL | $14.85 |
[](https://developers.cloudflare.com/r2/platform/pricing/#example-2)Example 2
If a user writes the same 1 GB object 1,000,000 times a day and the object is read 10,000,000 times a day, the estimated cost in a month would be:
Usage | Free Tier | Billable Quantity | Price | |
---|---|---|---|---|
Class B Operations | (1 object) (10,000,000 reads per day) (30 days) | 10,000,000 | 290,000,000 | $104.40 |
Class A Operations | (1 object) (1,000,000 writes per day) (30 days) | 1,000,000 | 29,000,000 | $130.50 |
Storage | (1 object) * (1GB per object) | 10 GB-months | 0 GB-months | $0.00 |
TOTAL | $234.90 |