Every SaaS cost breakdown you read online is either vague ('it depends on scale') or片面 (only showing the good numbers). Here's the full picture: what EduPilotPro costs to build, what it costs to run per school per month, and where the cost surprises were. We're sharing this because cost transparency helps founders make better architectural decisions.
Development Cost Breakdown
Total development: 14 weeks with a team of 6 engineers. The cost breakdown by feature: Multi-tenant infrastructure with Supabase RLS: 25% of engineering time. This includes the tenant isolation layer, subdomain routing, and data migration tooling. AI agent system (6 agents): 30% of engineering time. Each agent required prompt engineering, tool integration, and testing across multiple school contexts. Web dashboard (Next.js): 20% of engineering time. Mobile app (React Native): 15% of engineering time. Deployment, monitoring, and DevOps: 10% of engineering time.
Monthly Infrastructure Cost
Running costs per school per month: Supabase Pro ($25/month base + $0.50 per active school): ~$50/month for 50 schools. Railway deployment: ~$20/month for the API server. Google Gemini API: ~$15/month per school (based on average agent usage). Redis (Upstash): ~$10/month for caching and session management. Total: approximately $95 per school per month at 50 schools. At 200 schools, this drops to ~$45 per school per month due to fixed cost amortization.
Note
The biggest cost surprise: Google Gemini API calls. Each AI agent invocation costs $0.001-0.003, but schools run hundreds of agent interactions daily. Budget 30% more than your initial API cost estimate.
The Cost of Multi-Tenancy
Multi-tenancy saved us 60% compared to separate databases per school. A single Supabase Pro plan serves all 50+ schools, with RLS ensuring isolation. The alternative — separate Postgres instances — would have cost $50/month per school minimum. But multi-tenancy has hidden costs: schema migrations must be backward-compatible (you can't ALTER TABLE in a way that breaks existing tenants), and debugging requires tenant-context switches in every query log.
Where We Saved Money
Three decisions saved significant cost: (1) Supabase over Firebase — Supabase's PostgreSQL foundation means we own the data and can self-host if needed. Firebase's vendor lock-in creates long-term cost risk. (2) Railway over AWS — Railway's managed platform eliminated the need for a dedicated DevOps engineer. AWS would have required separate services for compute, database, storage, and CDN, each with its own billing. (3) React Native over native — one codebase for iOS and Android saved 40% on mobile development costs.
Conclusion
Building a multi-tenant AI SaaS is not cheap, but it's predictable. The key insight: infrastructure costs scale linearly with schools (each adds ~$95/month), but development costs are front-loaded. The $15K-25K/month in engineering time during development drops to $2-3K/month for maintenance once the platform is stable. The real investment is in the first 14 weeks.
Key Takeaways
- AI agent engineering consumed 30% of development time — budget for prompt engineering and testing
- Supabase + Railway saves 60% vs. per-school database instances and managed AWS services
- Google Gemini API costs scale with usage — budget 30% more than initial estimates
- React Native saved 40% on mobile development vs. separate iOS and Android teams