AI RAG Chatbot: monthly cloud cost

Serverless API, Postgres for vectors and GPT-4o on every question, 100k questions/mo. RAG (Retrieval Augmented Generation) AI architecture using OpenAI GPT-4o API, Pinecone for vector search, and Vercel Edge Functions.

Workload: 100k requests/mo · 100 ms CPU each · 10 GB database · 20 GB files · 20 GB egress. Cheapest plan that fits: Cloudflare at $984/month.

Cost on every provider

ProviderServices usedEst. / month
CloudflareWorkers, R2 Storage, D1$984
AWSLambda, S3, RDS Postgres, CloudFront, Route 53, CloudWatch Logs, API Gateway$989
AzureAzure Functions, Blob Storage, Postgres Flexible Server, Azure DNS, Azure Monitor Logs$989
DigitalOceanFunctions, Spaces, Managed Postgres$997
Vercel + NeonHosting, Blob Storage, Neon Postgres$998
Google CloudCloud Run, Cloud Storage, Cloud SQL Postgres, Cloud DNS, Cloud Logging$1,004
Netlify + Cloudflare R2 + NeonHosting, R2 Storage, Neon Postgres$1,007
Alibaba CloudFunction Compute, OSS Storage, ApsaraDB RDS$1,010
Oracle CloudOCI Functions, Object Storage, OCI Postgres$1,093
IBM CloudCode Engine, Object Storage, Postgres$1,163
Fly.ioMachines, Tigris Storage, Postgres, Networking$985 *
Heroku + Cloudflare R2Dynos, R2 Storage, Postgres$989 *
Render + Cloudflare R2Web Service, R2 Storage, Postgres$999 *
RailwayCompute, Buckets, Postgres, Networking$1,004 *
Hetzner + NeonCloud Server, Object Storage, Neon Postgres$1,014 *
Linode (Akamai)Shared CPU Instance, Object Storage, Managed Database$1,017 *

* The plan prices every piece but something is too small for the workload, a compute style is substituted, or a requested piece is unavailable on that provider.

Open the template in the calculator and tweak traffic, database or cache to fit your app.

Load this template

Other templates