AI Tools

pgvector vs Pinecone: which is cheaper at 1M vectors?

pgvector vs Pinecone at 1M vectors is a $20 against $15 decision on paper: Pinecone Builder is $20/mo flat and an 8 GB Hostinger VPS running pgvector renews at $14.99/mo. Pinecone's write meter breaks the tie, because Builder's 5M units stop short of a full backfill.

Key facts

What matters

  • Pinecone's paid usage meters are storage at $0.33/GB-month, writes at $4 to $4.50 per million, reads at $16 to $18 per million, and egress at $0.10/GB (Standard, verified 1 December 2026).
  • Builder includes 5M write units, which covers about 833,000 vectors at 1,536 dimensions, so a 1M-vector backfill needs roughly 6M units and does not fit the $20 tier.
  • Reads are billed per GB of the namespace searched, not per result: a 6.14 GB namespace costs 6.14 units per query, about $0.0001 at Standard rates.
  • pgvector 0.8.7 is free under the PostgreSQL license, but you own index build memory, recall tuning, and backups, and the vector type stops at 2,000 dimensions.

What pgvector and Pinecone actually are

pgvector is a Postgres extension that adds a vector column type plus HNSW and IVFFlat indexes, so similarity search runs inside a database you already operate. The current release is 0.8.7 under the PostgreSQL license, which means no per-vector or per-seat fee, ever.

Pinecone is a fully managed vector database. You create an index in a cloud region, upsert records, and it bills four meters: storage, reads, writes, and egress. Pinecone's pricing page lists no self-hosted tier, so this is not the usual same-software-hosted-or-not comparison. It is a $14.99 server bill against a usage meter with a floor under it.

pgvector vs Pinecone: the two pricing models side by side

Every figure below was read on the vendors' own pages on 1 December 2026. The VPS number is Hostinger's renewal rate rather than its 24-month promo, because a database you keep for a year spends most of its life at renewal.

Pinecone's tiers are easy to misread. Builder is $20/month flat with 10 GB of storage, 5M write units, 2M read units, and 10 GB of egress. Standard has no flat fee: a $50/month minimum, then $0.33 per GB-month of storage, $4 to $4.50 per million write units, $16 to $18 per million read units, and $0.10 per GB of egress with 100 GB included. Enterprise starts at $500/month. The page itself is stamped updated November 2026.

Where the write meter bites

A 1,536-dimension float32 embedding is 6,144 bytes, so a million of them is 6.14 GB of raw vectors before record IDs and metadata. Pinecone writes cost one unit per KB of the request, with a minimum of five per request, so a full backfill of that dataset takes roughly 6M write units however you batch it. Batching saves the five-unit floor, not the total.

Builder includes 5M. Divide that by 6.144 units per vector and you get about 833,000 records: a 1M-vector import does not fit the $20 tier even though its 10 GB storage allowance does. In practice that is the moment most teams discover the plan they signed up for is not the plan they need, and the next one starts at a $50 minimum.

On Standard the same load costs $24 to $27 once, and storage runs about $2.03 a month. Re-embed the corpus after a model change and you pay the write meter again, which is the cost nobody puts in the migration plan.

Read cost tracks the namespace, not the results

Pinecone defines a query as one read unit per GB of the namespace it searches, with a minimum of 0.25, and states that the number of results returned does not change the cost. A 6.14 GB namespace burns 6.14 units per query whether you return 5 rows or 50.

  • 100,000 queries a month: 614,400 units, about $9.83 at $16 per million.
  • 500,000 queries a month: 3.07M units, about $49, which is roughly where usage reaches Standard's $50 minimum.
  • 1,000,000 queries a month: 6.14M units, $98 to $111.

The lever is namespace design. Put each tenant in its own namespace and a 200 MB tenant costs the 0.25 floor per query instead of 6.14 units, which at volume is the difference between a $50 floor and a four-figure bill. pgvector has the same lever in a different shape: partition the table and keep one HNSW index per partition.

What pgvector asks you to operate

None of this appears on an invoice, and all of it is work.

  • Index build memory. pgvector builds HNSW significantly faster when the graph fits in maintenance_work_mem, and Postgres prints a notice when it stops fitting. On 8 GB of RAM, a million 1,536-dimension vectors is close to that line, so 16 GB is the safer floor: Hostinger KVM 4 renews at $28.99/mo, and a DigitalOcean 8 GiB droplet is $48/mo.
  • Recall tuning. Defaults are m=16, ef_construction=64, and hnsw.ef_search=40. Higher values buy recall and cost build time or latency. With no index, pgvector does exact search with perfect recall, and adding an approximate index changes your query results.
  • Filters behave differently. On an approximate index, filters apply after the scan. At ef_search=40 with a 10% match rate you average four matches, which is why 0.8.x added iterative index scans.
  • Type ceilings. The vector type caps at 2,000 dimensions, halfvec at 4,000, bit at 64,000. A 1,536-dimension model fits; a 3,072-dimension model needs halfvec or a different store.

Which one should you pick?

Take pgvector if Postgres is already in your stack, the corpus is under a few million vectors, one team owns the database, and you can budget RAM. A $14.99 to $28.99 VPS plus a cron backup is the whole bill, and the data never leaves your account.

Take Pinecone Builder if you want no index operations at all and your dataset stays under about 833,000 vectors with under roughly 325,000 queries a month. That fits inside the included 5M writes and 2M reads, and $20 flat is hard to argue with.

Take Pinecone Standard if you need more than one project or region, an uptime SLA, or sustained write volume. Budget the $50 minimum and expect roughly $100 a month at a million queries on a 6 GB namespace. Backups at $0.10/GB-month and object-storage imports at $0.25/GB are separate line items, so the invoice is never only the three meters you planned for.

The honest summary: pgvector wins on cash and data control, Pinecone wins on nights and weekends. The mistake is assuming the $20 plan covers a million-vector backfill. It does not.

At a glance

Line itempgvector 0.8.7Pinecone BuilderPinecone Standard
Software costFree, PostgreSQL license$20/mo flat$50/mo minimum usage
ComputeVPS from $14.99/mo (8 GB, renewal)ManagedManaged
StorageDisk you rent (100 GB on KVM 2)10 GB included$0.33 per GB-month
WritesYour disk IO5M units/mo included$4 to $4.50 per million
ReadsCPU and RAM2M units/mo included$16 to $18 per million
EgressYour bandwidth allowance10 GB included$0.10/GB, 100 GB included
Ops burdenIndex builds, recall tuning, backupsNoneNone

FAQ

Is pgvector free to use?

The extension is free under the PostgreSQL license, so there is no licence fee at any scale. You still pay for the Postgres server, its RAM, and the disk that holds the index, which is why the real comparison is a VPS bill against a usage meter.

How many vectors can pgvector handle?

The project documents index parameters and type limits rather than a row ceiling. The practical limit is RAM and index build memory, which is why a million 1,536-dimension vectors is comfortable on 8 to 16 GB and much larger corpora usually get partitioned.

Is Pinecone cheaper than pgvector?

For a 1M-vector dataset, no: Builder's 5M write units fall short of the roughly 6M a full backfill needs, which pushes you to Standard at a $50/month minimum. pgvector on a $14.99 to $28.99 VPS is cheaper on the invoice, and Pinecone only wins once you price in the hours of index tuning.

Related reading

best VPS for AI agents, cheap VPS options, vLLM vs Ollama for serving models, Hostinger VPS Pricing: What Do You Actually Pay After the First Term?, What is the best free VPS in 2026?, What does Minecraft server hosting cost?

Sources