Softwr

APIs · head to head

Basis Theory vs Cloudflare Workers

Basis Theory logo

Basis Theory

APIs

Developer tokenisation platform that holds card and sensitive data inside a PCI Level 1 environment you do not operate

From
$995/month
Free plan
No
Cloudflare Workers logo

Cloudflare Workers

APIs

Serverless compute on Cloudflare's network, free to start and $5 a month minimum on the paid plan

From
Free
Free plan
Yes

The short version

  • Cloudflare Workers has a free plan, then $5/mo; Basis Theory starts at $995/mo.
  • Only Basis Theory lists tokenisation API; only Cloudflare Workers lists edge execution.
  • Where Cloudflare Workers falls short: free has a 10 ms CPU cap.

How do Basis Theory and Cloudflare Workers differ?

Basis Theory and Cloudflare Workers differ on starting price ($995/month against Free), pricing model and free tier (No against Yes). Only the attributes on which Basis Theory and Cloudflare Workers actually diverge.

Attributes where Basis Theory and Cloudflare Workers differ
AttributeBasis TheoryCloudflare Workers
Starting price$995/monthFree
Pricing modelPer month by token volumeFree plan plus usage-based paid plan
Free tierNoYes
PlatformsWeb, iOS, Android, LinuxWeb, Linux, macOS, Windows

Not yet recorded: category for Cloudflare Workers.

Which features does each one have?

They share no listed features; 8 appear only for Basis Theory and 6 only for Cloudflare Workers. 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 Basis Theory

  • Tokenisation API
  • Hosted elements
  • Outbound proxy
  • PCI attestation of compliance
  • Processor portability
  • Reactors
  • Access controls and audit
  • PII and PHI options

Only in Cloudflare Workers

  • Edge execution
  • Workers KV
  • Durable Objects
  • Hyperdrive
  • Queues
  • Spend limits

What is each one used for?

Cloudflare Workers is most often brought in for A low-latency API or middleware. The jobs each tool is most often brought in to do.

Basis Theory

  • A payments company that wants card on file without bringing its own infrastructure into PCI scope and paying for the assessment that followsnot Cloudflare Workers
  • A merchant locked into a processor by that processor vault that wants to hold its own tokens and route to more than one acquirernot Cloudflare Workers
  • A fintech collecting bank account and identity data that needs it isolated from its application database before an enterprise security reviewnot Cloudflare Workers
  • A team that needs to send stored card data to a third party for a one-off integration without that data traversing its own serversnot Cloudflare Workers

Cloudflare Workers

  • A low-latency API or middlewarenot Basis Theory
  • A full-stack app with static assetsnot Basis Theory
  • A cron-driven data jobnot Basis Theory
  • Rewriting or protecting traffic at the edgenot Basis Theory

Where do Basis Theory and Cloudflare Workers fall short?

Cloudflare Workers's most cited limit: free has a 10 ms CPU cap. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Basis Theory

  • The Starter plan is 995 US dollars a month before any volume, which is a real floor for an early stage company and puts the product out of reach of teams tokenising a few thousand records
  • Starter is limited to the US region, so a company with European data residency requirements is pushed into a quoted Scale or Enterprise agreement immediately
  • Log retention on Starter is 24 hours, which is well below what most security teams expect for a system holding cardholder data and forces an upgrade for reasons unrelated to volume
  • Migrating away means moving card data out of the vault, which requires processor and assessor involvement and is slow, so the portability argument that attracts buyers cuts against them at exit
  • An attestation of compliance covers the vendor environment, not your assessment; your assessor still decides what is in scope, and buyers occasionally discover their integration pattern pulled systems back into scope anyway

Cloudflare Workers

  • Free has a 10 ms CPU cap
  • The runtime is not full Node.js, so some libraries do not run
  • Costs scale with CPU time, so heavy compute surprises
  • Durable Objects and other products are billed separately
  • Logs and Logpush follow separate observability pricing from December 2026

How much do Basis Theory and Cloudflare Workers cost?

Basis Theory starts at $995/mo; Cloudflare Workers has a free plan, with paid plans from $5/mo. Plan by plan below, from each vendor's own pricing page.

Basis Theory

$995/month
  • Starter$995/mo
    • 20,000 tokens included
    • Production PCI Level 1 environment
    • US region only
  • ScaleOn request
    • Quoted
    • Higher token volumes
    • Additional regions
  • EnterpriseOn request
    • Quoted
    • Additional compliance options for PII and PHI
    • Responses for 95 percent of PCI SAQ D

Cloudflare Workers

Free
  • Workers FreeFree
    • 100,000 requests per day
    • 10 ms CPU per invocation
  • Workers Paid$5/mo
    • 10 million requests included, then $0.30 per million
    • 30 million CPU ms included, then $0.02 per million

Which should you pick?

Choose Basis Theory if

  • You need tokenisation api.
  • You work on Web, iOS, Android, Linux.
  • You also want hosted elements.

Choose Cloudflare Workers if

  • You need edge execution.
  • You want to start without paying.
  • You work on Web, Linux, macOS, Windows.
  • You also want workers kv.

Questions people ask

Is Basis Theory or Cloudflare Workers better?
It depends on the job. Basis Theory fits a payments company that wants card on file without bringing its own infrastructure into PCI scope and paying for the assessment that follows; Cloudflare Workers fits a low-latency API or middleware. Basis Theory starts at $995/month and Cloudflare Workers at Free.
Which is cheaper, Basis Theory or Cloudflare Workers?
Cloudflare Workers has a free tier; the other does not. Paid plans start at $995/month for Basis Theory and Free for Cloudflare Workers.
Does Basis Theory or Cloudflare Workers run on more platforms?
Basis Theory runs on Web, iOS, Android, Linux. Cloudflare Workers runs on Web, Linux, macOS, Windows.
Can I use Cloudflare Workers for free?
Yes. Cloudflare Workers has a free tier, so you can try it without paying. Basis Theory starts at $995/month.
What is Basis Theory best used for?
Basis Theory is most often used for a payments company that wants card on file without bringing its own infrastructure into pci scope and paying for the assessment that follows, a merchant locked into a processor by that processor vault that wants to hold its own tokens and route to more than one acquirer, a fintech collecting bank account and identity data that needs it isolated from its application database before an enterprise security review, a team that needs to send stored card data to a third party for a one-off integration without that data traversing its own servers. Of those, a payments company that wants card on file without bringing its own infrastructure into pci scope and paying for the assessment that follows and a merchant locked into a processor by that processor vault that wants to hold its own tokens and route to more than one acquirer are not what Cloudflare Workers is typically brought in for.
What can Basis Theory do that Cloudflare Workers cannot?
Basis Theory covers Tokenisation API, Hosted elements, Outbound proxy, PCI attestation of compliance. Cloudflare Workers covers Edge execution, Workers KV, Durable Objects, Hyperdrive.

Answered from the vendors’ own pages

Basis Theory: Does this make us PCI compliant?

It removes cardholder data from your systems and gives you an AOC plus documented responses for most of a SAQ D. Your assessor still determines your scope, and a careless integration can pull systems back in.

Cloudflare Workers: Is Cloudflare Workers free?

Yes, with 100,000 requests a day.

Basis Theory: What does it cost to start?

995 US dollars a month on Starter, including 20,000 tokens, a production PCI Level 1 environment and US hosting. Higher tiers are quoted.

Cloudflare Workers: What does Paid cost?

A $5 monthly minimum plus usage.

Basis Theory: Can we switch payment processors without re-collecting cards?

Yes, that is the main non-compliance reason to buy it. You hold the tokens and detokenise into whichever processor you route to.

Cloudflare Workers: Are static assets charged?

No, they are free and unlimited.

Basis Theory: Is data stored outside the United States?

Not on Starter, which is US only. Other regions require a Scale or Enterprise agreement.

Share

Related pages

Other head to heads