Data Types

Cloudflare R2 Support

Upload, transform, optimize, and serve files from any Cloudflare R2 bucket with Bytescale.

Own and manage the Cloudflare R2 bucket your files are stored in.

No storage charge for files stored in Cloudflare R2 buckets. *

*

You’ll still be charged the full price of your Bytescale Plan, which includes built-in storage and an upload request quota. Storage in your bucket can grow without limit and won’t incur extra charges from Bytescale. Uploads to external buckets using the Bytescale API count toward your upload request quota. Data transferred from Bytescale to external buckets counts as egress traffic. Enterprise Plans may use different bandwidth rates for egress to external storage vs. CDN delivery—please contact support for details.

Please note the following when using Cloudflare R2:

  • Storage usage for Cloudflare R2 is not reported in the Bytescale Dashboard.

  • Requests to transform files from Cloudflare R2 may incur additional latency due to internal download operations:

    • Video and audio transformations incur ~1 second of extra latency per 75MB of input file size when using Cloudflare R2.*

    • Image transformations incur no extra latency: the performance is the same as using Bytescale's Built-in Storage.

*

Applies to the first request only: once the result is cached all subsequent requests to the same URL will return near-instantly.

To use your own Cloudflare R2 bucket as read/write storage for your Bytescale account:

  1. Create an R2 bucket in Cloudflare (if you haven't already).

  2. Create an R2 access key + secret access key pair.

    This key pair must have read/write/list access to the R2 bucket.

  3. Create a folder in the Bytescale Dashboard.

  4. Edit the folder's settings.

  5. Click on "Storage Settings".

  6. Change "Storage Type" to "Cloudflare R2".

  7. Follow the instructions on the form that appears.

  8. Click on "Save Changes".

For reference, the "Storage Settings" section of the "Folder Settings" page is shown below:

Configuring an Cloudflare R2 bucket

These pages may also be helpful:

Was this section helpful? Yes No

You are using an outdated browser.

This website requires a modern web browser -- the latest versions of these browsers are supported: