Compute vs bandwidth
For always-on APIs the instance hours usually dominate, with egress a smaller slice.
Home / Dev & AI / API & Backend Cost / API Hosting Cost Calculator
API & Backend Cost
Estimate the monthly cost of hosting your API on always-on servers. Enter instance count, hourly rate, run hours and bandwidth, and see compute versus bandwidth in one view.
Estimated monthly cost
$0
Compute vs bandwidth
For always-on APIs the instance hours usually dominate, with egress a smaller slice.
Hosting an API on dedicated servers means paying for compute by the hour whether or not requests arrive, plus bandwidth for the responses you send. For a steady, always-on service this often works out cheaper than per request pricing, which is why many teams run their API on a small fleet of instances.
This API hosting cost calculator multiplies your instance count by the hourly rate and run hours to get compute cost, adds bandwidth egress, and shows the split so you know whether compute or data transfer drives your bill. A full month is 730 hours if you run around the clock.
Two m5.large instances at $0.096 an hour for 730 hours cost 2 × $0.096 × 730 = about $140. Add 500 GB egress at $0.09 for $45, and hosting is roughly $185 a month.
A small two instance setup often runs $100 to $250 a month including bandwidth. It scales with instance size, count and traffic. Enter your setup above for a figure.
For steady, predictable traffic, always-on instances are usually cheaper per request. For spiky or low traffic, serverless avoids paying for idle capacity.
About 730 hours for a 24/7 service. If you run only during business hours, reduce the hours to match.
Right size instances, use reserved or committed pricing for steady load, autoscale to match demand, and serve bandwidth through a CDN.
They are 2026 estimates. Confirm instance and egress pricing with your provider and region.