Softwr

File Storage · head to head

Cloudflare R2 vs DeepInfra

Cloudflare R2 logo

Cloudflare R2

File Storage

S3-compatible object storage that charges nothing for egress to the internet

From
Free
Free plan
Yes
DeepInfra logo

DeepInfra

Cloud

Low-cost cloud API for running open-source AI models

From
$0.08/month
Free plan
No

The short version

  • Cloudflare R2 has a free plan, then $0.015/mo; DeepInfra starts at $0.08/mo.
  • Only Cloudflare R2 lists S3 API compatibility; only DeepInfra lists open model hosting.
  • Where DeepInfra falls short: focuses on inference hosting rather than fine-tuning or full training pipelines that competitors like Fireworks AI offer.

How do Cloudflare R2 and DeepInfra differ?

Cloudflare R2 and DeepInfra differ on starting price (Free against $0.08/month), pricing model and free tier (Yes against No). Only the attributes on which Cloudflare R2 and DeepInfra actually diverge.

Attributes where Cloudflare R2 and DeepInfra differ
AttributeCloudflare R2DeepInfra
Starting priceFree$0.08/month
Pricing modelPer gigabyte stored per monthUsage-based
Free tierYesNo
CategoryFile StorageCloud

Identical on both: platforms (Web, API).

Not yet recorded: founded for Cloudflare R2.

Which features does each one have?

They share no listed features; 6 appear only for Cloudflare R2 and 6 only for DeepInfra. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in Cloudflare R2

  • Zero egress billing
  • S3 API compatibility
  • Worker binding
  • Jurisdictional restriction
  • Infrequent Access tier
  • Custom domain serving

Only in DeepInfra

  • Open model hosting
  • Pay-per-token pricing
  • Long context support
  • DeepCluster
  • Zero retention policy
  • Real-time metrics

What is each one used for?

DeepInfra is most often brought in for running open-source LLM inference without managing GPUs. The jobs each tool is most often brought in to do.

Cloudflare R2

  • Serving a large media or asset library to the public where transfer out, not storage, is the dominant costnot DeepInfra
  • Hosting a container or artefact registry that thousands of CI runners pull from every daynot DeepInfra
  • Distributing model weights or open datasets that are downloaded far more often than they are updatednot DeepInfra
  • Moving off S3 specifically to stop paying data transfer charges on a read heavy bucketnot DeepInfra

DeepInfra

  • Running open-source LLM inference without managing GPUsnot Cloudflare R2
  • Serving speech and image generation models via APInot Cloudflare R2
  • Cost-sensitive production inference at scalenot Cloudflare R2
  • Reserved GPU capacity via DeepCluster for steady workloadsnot Cloudflare R2

Where do Cloudflare R2 and DeepInfra fall short?

DeepInfra's most cited limit: focuses on inference hosting rather than fine-tuning or full training pipelines that competitors like Fireworks AI offer. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Cloudflare R2

  • There is no archive tier below Infrequent Access, so genuinely cold data costs roughly ten to fifteen times what it would cost in a deep archive class and there is nowhere cheaper to lifecycle it to
  • Class A operations are billed at 4.50 USD per million, so a workload that writes millions of small objects can spend more on operations than on the storage those objects occupy
  • Infrequent Access carries both a retrieval fee and a thirty day minimum storage duration, so data that is deleted or re-read sooner ends up more expensive than if it had stayed on Standard
  • You choose a location hint rather than a region, so you cannot prove to an auditor which datacentre holds an object unless you use a jurisdiction restricted bucket, and jurisdictions are limited
  • Support level follows your Cloudflare account plan rather than the storage spend, so a team on a low tier account gets ticket support with no storage specific SLA, and an R2 incident is a Cloudflare incident you cannot fail over from because the free egress only exists inside Cloudflare

DeepInfra

  • Focuses on inference hosting rather than fine-tuning or full training pipelines that competitors like Fireworks AI offer
  • Model selection is limited to what DeepInfra chooses to host, unlike self-managed platforms
  • No published free tier; usage is billed from the first token

How much do Cloudflare R2 and DeepInfra cost?

Cloudflare R2 has a free plan, with paid plans from $0.015/mo; DeepInfra starts at $0.08/mo. Plan by plan below, from each vendor's own pricing page.

Cloudflare R2

Free
  • Free tierFree
    • 10 GB stored per month
    • 1 million Class A operations
    • 10 million Class B operations
  • Standard$0.015/mo
    • Per gigabyte stored per month
    • 4.50 USD per million Class A operations
    • 0.36 USD per million Class B operations
  • Infrequent Access$0.01/mo
    • Per gigabyte stored per month
    • Per gigabyte data retrieval fee
    • Thirty day minimum storage duration

DeepInfra

$0.08/month
  • Pay-as-you-goOn request
    • Per-model token pricing from $0.08 to $2.85 per million input tokens
    • No long-term contract
  • DeepCluster$1.98/mo
    • Dedicated NVIDIA B300 GPU clusters at $1.98/GPU-hour

Which should you pick?

Choose Cloudflare R2 if

  • You need zero egress billing.
  • You want to start without paying.
  • You work on Web, API.
  • You also want s3 api compatibility.

Choose DeepInfra if

  • You need open model hosting.
  • You work on Web, API.
  • You also want pay-per-token pricing.

Questions people ask

Is Cloudflare R2 or DeepInfra better?
It depends on the job. Cloudflare R2 fits serving a large media or asset library to the public where transfer out, not storage, is the dominant cost; DeepInfra fits running open-source LLM inference without managing GPUs. Cloudflare R2 starts at Free and DeepInfra at $0.08/month.
Which is cheaper, Cloudflare R2 or DeepInfra?
Cloudflare R2 has a free tier; the other does not. Paid plans start at Free for Cloudflare R2 and $0.08/month for DeepInfra.
Does Cloudflare R2 or DeepInfra run on more platforms?
Both run on Web, API, so platform support will not decide this one for you.
Can I use Cloudflare R2 for free?
Yes. Cloudflare R2 has a free tier, so you can try it without paying. DeepInfra starts at $0.08/month.
What is Cloudflare R2 best used for?
Cloudflare R2 is most often used for serving a large media or asset library to the public where transfer out, not storage, is the dominant cost, hosting a container or artefact registry that thousands of ci runners pull from every day, distributing model weights or open datasets that are downloaded far more often than they are updated, moving off s3 specifically to stop paying data transfer charges on a read heavy bucket. Of those, serving a large media or asset library to the public where transfer out, not storage, is the dominant cost and hosting a container or artefact registry that thousands of ci runners pull from every day are not what DeepInfra is typically brought in for.
What can Cloudflare R2 do that DeepInfra cannot?
Cloudflare R2 covers Zero egress billing, S3 API compatibility, Worker binding, Jurisdictional restriction. DeepInfra covers Open model hosting, Pay-per-token pricing, Long context support, DeepCluster.

Answered from the vendors’ own pages

Cloudflare R2: Is egress really free, with no hidden transfer charge?

Yes for data served out of R2 to the internet. You still pay per operation for the requests that serve it, and if you pull data into R2 from another provider you pay that provider the egress on the way in.

DeepInfra: Is there a free tier on DeepInfra?

No free tier is published; usage is billed pay-as-you-go from the first token, though a credit card or pre-payment is required before you can send requests.

Source
Cloudflare R2: How does the total cost compare with S3 for a public download bucket?

Storage is more expensive per terabyte than S3 Infrequent Access, but S3 charges roughly 90 USD per terabyte served. Any bucket that serves more than about a fifth of its stored volume each month is cheaper on R2.

DeepInfra: How is usage priced?

Language models are billed per million input/output tokens, other models by inference execution time, and audio models per minute of audio processed, with no minimum commitment.

Source
Cloudflare R2: Can I use R2 without using the rest of Cloudflare?

Yes, it works through the plain S3 API from anywhere. You lose the Worker binding and the free CDN caching in front of it, which is where a lot of the practical benefit sits.

DeepInfra: What are the Standard, Priority, and Flex tiers?

Standard is default best-effort pricing at 1x, Priority costs 1.5x for faster time-to-first-token during peak demand, and Flex costs 0.8x for non-production or asynchronous workloads.

Source
Cloudflare R2: Does R2 have a cold archive class like Glacier?

No. Infrequent Access is the coldest tier, at two thirds of the Standard rate plus retrieval fees.

DeepInfra: How does billing scale with spend?

Accounts advance through usage tiers as cumulative payments cross $20, $100, $500, $2,000, and $10,000 thresholds, with invoices generated monthly or at each threshold.

Source
DeepInfra: Is there a limit on concurrent requests?

Yes, accounts are limited to 200 concurrent requests by default, though spending limits can also be configured to prevent unexpected charges.

Source
Share

Related pages

Other head to heads