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
| Provider | Services used | Est. / month |
|---|---|---|
| Cloudflare | Workers, R2 Storage, D1 | $984 |
| AWS | Lambda, S3, RDS Postgres, CloudFront, Route 53, CloudWatch Logs, API Gateway | $989 |
| Azure | Azure Functions, Blob Storage, Postgres Flexible Server, Azure DNS, Azure Monitor Logs | $989 |
| DigitalOcean | Functions, Spaces, Managed Postgres | $997 |
| Vercel + Neon | Hosting, Blob Storage, Neon Postgres | $998 |
| Google Cloud | Cloud Run, Cloud Storage, Cloud SQL Postgres, Cloud DNS, Cloud Logging | $1,004 |
| Netlify + Cloudflare R2 + Neon | Hosting, R2 Storage, Neon Postgres | $1,007 |
| Alibaba Cloud | Function Compute, OSS Storage, ApsaraDB RDS | $1,010 |
| Oracle Cloud | OCI Functions, Object Storage, OCI Postgres | $1,093 |
| IBM Cloud | Code Engine, Object Storage, Postgres | $1,163 |
| Fly.io | Machines, Tigris Storage, Postgres, Networking | $985 * |
| Heroku + Cloudflare R2 | Dynos, R2 Storage, Postgres | $989 * |
| Render + Cloudflare R2 | Web Service, R2 Storage, Postgres | $999 * |
| Railway | Compute, Buckets, Postgres, Networking | $1,004 * |
| Hetzner + Neon | Cloud 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