Workers vs Supabase Edge Functions for an authenticated API

Comparison · supabase

Reviewed 2026-10-25 · against the official Cloudflare pricing pages listed under Sources

Try this scenarioLoads these inputs into the calculator so you can change them.

Supabase prices were not copied. The Cloudflare session-and-D1 model is calculated.

Competitor dollar amounts are unverified. This page calculates Cloudflare only and links the other price list. Do not quote a vendor price from memory.

Every call reads a session key. Logins write one. Five million calls and 100,000 logins are a read-heavy KV bill on top of Workers.

Supabase mixes a hosted Postgres bill with edge functions. Cloudflare splits that into D1 rows and Worker CPU.

A full table scan is the Cloudflare-specific gotcha. A missing index changes the D1 line even when the API returns one row.

KV writes cost ten times the reads

Paid reads are $0.50 per million after 10 million. Writes, deletes, and lists are $5 per million after 1 million. The same key can be written once per second. Free daily caps fail the operation instead of billing it, and they reset at 00:00 UTC.

This model

$5.00 · Paid

Workers Paid minimum
$5.00

The $5 is an account minimum for Workers Paid, not a per-product fee. Included usage sits inside it.

Assumptions

  • A 30-day month and steady traffic across it.
  • Rates as published on 2026-10-25; taxes excluded.
  • The Workers Paid plan has a $5 monthly minimum. It is charged even if you use nothing, and it covers the included allowances.
  • Everything you entered fits inside the included allowances, so you pay only the minimum.

Try this scenario

Sources