APIs · head to head
Basis Theory vs Xata

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

Xata
Databases
Apache 2.0 platform for running many Postgres instances on Kubernetes, with copy-on-write branching and scale-to-zero.
- From
- Free
- Free plan
- Yes
The short version
- Xata has a free plan, then $1/mo; Basis Theory starts at $995/mo.
- Only Basis Theory lists tokenisation API; only Xata lists copy-on-write branching.
How do Basis Theory and Xata differ?
Basis Theory and Xata differ on starting price ($995/month against Free), pricing model and free tier (No against Yes). Only the attributes on which Basis Theory and Xata actually diverge.
| Attribute | Basis Theory | Xata |
|---|---|---|
| Starting price | $995/month | Free |
| Pricing model | Per month by token volume | Usage-based |
| Free tier | No | Yes |
| Platforms | Web, iOS, Android, Linux | Web |
| Category | APIs | Databases |
Which features does each one have?
They share no listed features; 8 appear only for Basis Theory and 10 only for Xata. 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 Xata
- Copy-on-write branching
- Scale-to-zero compute
- Compute autoscaling and bin-packing
- High availability with failover
- Point-in-time recovery
- Serverless driver
- pgroll migrations
- pgstream replication
What is each one used for?
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 Xata
- A merchant locked into a processor by that processor vault that wants to hold its own tokens and route to more than one acquirernot Xata
- A fintech collecting bank account and identity data that needs it isolated from its application database before an enterprise security reviewnot Xata
- 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 Xata
Xata
- Giving every pull request or coding agent its own branch of the production database, with real data volumes rather than a seeded fixturenot Basis Theory
- Running managed-Postgres economics in your own cloud account where data residency or compliance rules out a third-party control planenot Basis Theory
- Consolidating many small, mostly idle Postgres databases onto shared infrastructure where scale-to-zero and bin-packing recover the idle costnot Basis Theory
- Testing a destructive migration against a copy of production without waiting for a full restore or paying for a duplicate of the storagenot Basis Theory
Where do Basis Theory and Xata fall short?
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
Xata
- Self-hosting means operating Kubernetes and CloudNativePG, so the Apache 2.0 licence removes the vendor bill but replaces it with a platform team, and a database platform is not something a part-time operator maintains safely
- Copy-on-write branches are cheap to create but diverge as they are written to, so a long-lived branch carrying a heavy backfill quietly accumulates real storage and the cost arrives later than the decision that caused it
- Scale-to-zero means the first connection after an idle period pays a cold start, which is invisible in a busy production database and very visible in a demo, a staging environment or a cron job that runs once an hour
- The Xata sold before 2025 was a different product, a proprietary API and SDK layered over Postgres, so tutorials, blog posts and SDK examples from that era describe something that no longer exists and existing users had to migrate
- As a managed service it competes with RDS, Aurora and Cloud SQL, and it is a much smaller company, so procurement, certification coverage and the depth of the support bench behind a 3am corruption incident are all weaker than the incumbent even though the underlying Postgres is the same
How much do Basis Theory and Xata cost?
Basis Theory starts at $995/mo; Xata has a free plan, with paid plans from $1/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
Xata
Free- Free TrialFree
- 14 days free
- No credit card required
- Usage-Based$1
- 1,000 branches for $1
- Scale-to-zero compute model
- Branches hibernate when idle
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 Xata if
- You need copy-on-write branching.
- You want to start without paying.
- You also want scale-to-zero compute.
Questions people ask
- Is Basis Theory or Xata 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; Xata fits giving every pull request or coding agent its own branch of the production database, with real data volumes rather than a seeded fixture. Basis Theory starts at $995/month and Xata at Free.
- Which is cheaper, Basis Theory or Xata?
- Xata has a free tier; the other does not. Paid plans start at $995/month for Basis Theory and Free for Xata.
- Does Basis Theory or Xata run on more platforms?
- Basis Theory runs on Web, iOS, Android, Linux. Xata runs on Web.
- Can I use Xata for free?
- Yes. Xata 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 Xata is typically brought in for.
- What can Basis Theory do that Xata cannot?
- Basis Theory covers Tokenisation API, Hosted elements, Outbound proxy, PCI attestation of compliance. Xata covers Copy-on-write branching, Scale-to-zero compute, Compute autoscaling and bin-packing, High availability with failover.
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.
Xata: Is it real Postgres or a compatible reimplementation?
Real Postgres. It runs upstream Postgres instances on Kubernetes via CloudNativePG, so extensions, the wire protocol and version upgrades behave as they do anywhere else.
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.
Xata: Can I self-host the whole thing?
Yes. The platform is Apache 2.0 and designed for self-hosting a large number of Postgres instances on your own Kubernetes. Xata Cloud is the same platform run as a service.
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.
Xata: Does branching copy my data?
No. Branches are copy-on-write at the storage layer, so creating one is near-instant regardless of database size and storage is only consumed as the branch diverges from its parent.
Basis Theory: Is data stored outside the United States?
Not on Starter, which is US only. Other regions require a Scale or Enterprise agreement.
Xata: Is this the same Xata I used a couple of years ago?
No. The earlier product was a proprietary database API with its own SDK and search layer. The current product is a Postgres platform, and material written for the old one does not apply.
Xata: What happens to a branch when the parent changes?
A branch is a point-in-time fork. Later changes on the parent are not propagated, so long-lived branches drift and need to be recreated rather than refreshed if you want current data.
Related pages
More on Basis Theory
Other head to heads
- Basis Theory vs Skyflow
- Basis Theory vs Increase
- Basis Theory vs Lithic
- Basis Theory vs Volt
- Basis Theory vs Swan
- Basis Theory vs Trustly
- Basis Theory vs Moov
- Basis Theory vs Vodeno
- Basis Theory vs TrueLayer
- Basis Theory vs Paymentology
- Basis Theory vs Akoya
- Basis Theory vs Sila
- Basis Theory vs Yapily
- Basis Theory vs 10x Banking
- Basis Theory vs Appwrite
- Basis Theory vs Bruno
- Basis Theory vs Marqeta
- Basis Theory vs Temenos Transact
- Basis Theory vs Neon
- Basis Theory vs PlanetScale
- Basis Theory vs Amazon Aurora
- Basis Theory vs Supabase
- Basis Theory vs PostgreSQL
- Basis Theory vs Nile
- Basis Theory vs DuckDB
- Basis Theory vs Trino
- Basis Theory vs Convex
- Basis Theory vs turbopuffer
- Basis Theory vs Apache HBase
- Basis Theory vs MongoDB
- Basis Theory vs Redis
- Basis Theory vs SingleStore
- Basis Theory vs Oracle Database
- Basis Theory vs DynamoDB
- Basis Theory vs Apache Airflow
- Basis Theory vs Apache Druid
- Xata vs Skyflow
- Xata vs Increase
- Xata vs Lithic
- Xata vs Volt
- Xata vs Swan
- Xata vs Trustly
- Xata vs Moov
- Xata vs Vodeno
- Xata vs TrueLayer
- Xata vs Paymentology
- Xata vs Akoya
- Xata vs Sila
- Xata vs Yapily
- Xata vs 10x Banking
- Xata vs Appwrite
- Xata vs Bruno
- Xata vs Marqeta
- Xata vs Temenos Transact
- Xata vs Neon
- Xata vs PlanetScale
- Xata vs Amazon Aurora
- Xata vs Supabase
- Xata vs PostgreSQL
- Xata vs Nile
- Xata vs DuckDB
- Xata vs Trino
- Xata vs Convex
- Xata vs turbopuffer
- Xata vs Apache HBase
- Xata vs MongoDB
- Xata vs Redis
- Xata vs SingleStore
- Xata vs Oracle Database
- Xata vs DynamoDB
- Xata vs Apache Airflow
- Xata vs Apache Druid
