API hosting
$20/mo
Railway · Pro
API, workers and cron in one project with usage-based billing
railway.com ↗The backend most SaaS products need: API, Postgres, sign-in, background jobs, cache, file storage and transactional email.
Good fit: B2B or B2C web apps from first customers to a few thousand paying accounts, built by a small team.
Hover or click a part to see what flows between them. Drag to move, use the buttons to zoom.
Railway · Pro
Inngest · Pro
← enqueue from API hosting
Neon · Launch
← queries from API hosting · read / write from Background jobs
Clerk · Pro
← verify sessions from API hosting
Upstash · Pay as You Go
← cache, rate limits from API hosting
Cloudflare R2
← signed uploads from API hosting
Postmark · Basic
← send from Background jobs
Stripe · US cards
← checkout, webhooks from API hosting
Expected cost at the usage below, and the range from half to double that usage. Worked out from each vendor's current prices and free tiers; your real bill depends on your traffic.
| Part | Pick | Expected / mo | Range |
|---|---|---|---|
| API hosting | Railway · Pro | $20/mo | fixed |
| Database | Neon · Launch | $19.43/mo | $8.04–$20.48 |
| Authentication | Clerk · Pro | $20/mo | fixed |
| Background jobs | Inngest · Pro | $99/mo | fixed |
| Cache & rate limits | Upstash · Pay as You Go | $6/mo | $1.50–$24 |
| File storage | Cloudflare R2 | $0 | $0–$0.45 |
| Transactional email | Postmark · Basic | $15/mo | $15–$54.60 |
| Infrastructure total | $179/mo | $164–$239 | |
Payment fees (Stripe · US cards): 2.9% + 30¢ per transaction
≈ $234 at 200 payments a month ($117–$468). Not in the infrastructure total: fees grow with your revenue, they aren't a cost of running the stack.
API hosting · Railway · Pro
Database · Neon · Launch
Authentication · Clerk · Pro
Background jobs · Inngest · Pro
Cache & rate limits · Upstash · Pay as You Go
File storage · Cloudflare R2
Transactional email · Postmark · Basic
Payments · Stripe · US cards
API hosting
$20/mo
API, workers and cron in one project with usage-based billing
railway.com ↗Database
$19.43/mo
Serverless Postgres with a database branch per preview deploy
neon.com ↗Authentication
$20/mo
Prebuilt sign-in UI plus organizations and roles for B2B
clerk.com ↗Background jobs
$99/mo
Durable functions with retries, schedules and fan-out in your codebase
inngest.com ↗Cache & rate limits
$6/mo
Serverless Redis billed per command; ready-made rate limiting
upstash.com ↗File storage
$0
S3-compatible with no egress fees for downloads
cloudflare.com ↗Transactional email
$15/mo
Best-in-class deliverability for password resets and receipts
postmarkapp.com ↗Payments
2.9% + 30¢ per transaction
Subscriptions, invoices and hosted checkout with the lowest card fee here
stripe.com ↗All costs are estimates. Prices are read from each vendor's pricing page and checked every 12 hours (last: Oct 30, 2026); your bill depends on your traffic.
"Half" and "double" in the ranges scale these numbers.
API and database
Set up the API project, connect Postgres, add migrations and a seed; deploy previews with their own database branch.
Uses: API hosting, Database
Sign-in and organizations
Add sign-up/sign-in, an organizations model and roles; check the session on every API route.
Uses: Authentication, API hosting
Send verification, password reset and notification emails from templates; set up SPF, DKIM and DMARC.
Uses: Transactional email
Background jobs
Move slow work (emails, webhooks, imports) into retried jobs; add a nightly cleanup schedule.
Uses: Background jobs
Uploads
Let clients upload straight to object storage with signed URLs; record files in the database.
Uses: File storage, Database
Payments
Create products and prices, send customers to hosted checkout, and process webhooks in a job so subscriptions stay in sync.
Uses: Payments, Background jobs
Protect and speed up
Rate-limit by user and IP, cache the hottest reads, and add indexes for the slowest queries.
Uses: Cache & rate limits, Database
Not covered by this estimate
We'll adapt this blueprint to your product, set it up on your accounts and hand it over working, with the monthly bill you saw here.