HomeCloud & Dev › Cloudflare

Cloudflare Workers & R2 — pricing, free tier & how to get a token

Cloudflare's developer platform runs code (Workers), stores objects with zero egress fees (R2), hosts sites (Pages) and offers a key-value store (KV) and SQL database (D1) — all on a generous free tier. Here's what each piece costs and how to get your API token.

Cloudflare developer pricing (reference, July 2026)

ProductFree tierPaidBest for
Workers free tier100k req/day$5/mo + 10M reqEdge functions, APIs
R2 storage zero egress10 GB$0.015/GB-moFiles, backups, media
Pagesunlimited sitesfree staticFront-ends, JAMstack
KV (key-value)100k reads/day$0.50/M readsConfig, sessions, cache
D1 (SQL)5 GB$0.75/M rows readSmall relational data
⚠️ Reference prices, July 2026. Cloudflare adjusts plans and free quotas — confirm on cloudflare.com/plans and the Workers pricing page before budgeting. Workers paid is a flat $5/mo that bundles 10M requests; overage is per million. · Report outdated price →
✓ Last verified: 2026-07-15· Source: official provider pricing page· Auto-monitored — report change →

→ Moving lots of data out of S3? Compare it with R2's zero egress on the cloud egress cost calculator, or model your whole stack on the API stack calculator.

Is there a free tier?

Yes, and it's one of the most generous in the business. Workers gives 100,000 requests a day free forever, R2 includes 10 GB storage with no egress charge, Pages hosts unlimited static sites, and KV and D1 both have free daily quotas. Many small projects never leave the free tier. You only pay when you cross into production volume, and even then Workers' paid plan is a flat $5/month.

How to get a Cloudflare API token (step by step)

1. Sign in at dash.cloudflare.com and create an account (a domain is optional for Workers).
2. Open My Profile → API Tokens → Create Token.
3. Pick a template (e.g. "Edit Cloudflare Workers") or set scoped permissions, then create and copy the token once.
4. Use it as a Bearer token, or install Wrangler (the CLI) which handles auth for deploying Workers.

Quick API test (list your account's Workers):

# replace $CF_TOKEN and $ACCOUNT_ID
curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/workers/scripts \
-H "Authorization: Bearer $CF_TOKEN"

Hidden costs to watch

Workers CPU time beyond the included allowance is billed separately on heavy compute, and Durable Objects, Queues and Workers AI are priced on top. R2 is cheap on egress but charges per-operation (Class A/B requests), so millions of tiny reads add up. Read the per-product pricing page before assuming "free tier" covers a production workload.

Cheaper or alternative options

For object storage with zero/low egress, R2 competes with Backblaze B2 and Wasabi; for edge functions, Vercel and Netlify cover similar ground with a different pricing model. If your bottleneck is data transfer out of a big-three cloud, R2 is usually the cheapest landing spot.

FAQ

Is Cloudflare Workers free?

Yes — 100,000 requests/day free. The paid plan is $5/month bundling 10M requests, then per-million overage.

How do I get a Cloudflare API token?

dash.cloudflare.com → My Profile → API Tokens → Create Token. Scope it, copy once, use as a Bearer token or via Wrangler.

Why is R2 cheaper than S3?

R2 charges no egress fees. Storage is similar to S3 (~$0.015/GB-mo), but for read-heavy or download-heavy workloads R2 avoids S3's biggest cost.

Do I need a domain to use Workers?

No — Workers run on a free workers.dev subdomain. A custom domain is optional and adds routing flexibility.

Not affiliated with Cloudflare. Prices are reference estimates — always verify on the official pricing page.

Host your project:DigitalOcean — $200 free ↗Hostinger VPS

Exchanges

BybitBinanceOKXKuCoinBitgetGate.ioMEXC

Tools & Hosting

📈 TradingView🔒 NordVPN💳 RevolutDigitalOcean $200Hostinger